Rudy is back ! It is a long time that I didn't write a new blog entry... Here we go ! I left Sun Microsystems and started my own and little company named VSolutions... Little because there is only 1 person inside : me ! I am still a Sun fan and will continue to make your life easier...
I bought my own laptop, a Dell Vostro 1720 and installed OpenSolaris 2009.06.
I will create a specific entry on the Dell Vostro... But I reviewed on the Internet that some people used Network Auto-Magic to configure the network and they had problems with dns. Especially using a browser like Firefox.
If you configured dns, used nslookup and it does not work using Firefox it is because the file /etc/nsswitch.conf was not updated to use dns !
Do the following as root :
cp /etc/nsswitch.conf /etc/nsswitch.conf.orig
cp /etc/nsswitch.dns /etc/nsswitch.conf
Restart your browser (by example)
That should do the trick !
- Rudy -
Blog Archive
I'll try to help you to use OpenSolaris without the headache ! I am an ex Sun Microsystems and please don't hesitate to contact me for any matter having a link with OpenSolaris... No stupid questions... It is a very nice OS ! Don't miss it !
Tuesday, December 29, 2009
Thursday, April 2, 2009
Adobe Reader on OpenSolaris !!!

Youpee !!!
Adobe Reader
root@catalogne:/export/home/rudy/Download# chmod +x AdbeRdr9.1.0-1_i486solaris_enu.bin
root@catalogne:/export/home/rudy/Download# ./AdbeRdr9.1.0-1_i486solaris_enu.bin
Extracting files, please wait. (This may take a while depending on the configuration of your machine)
This installation requires 171 MB of free disk space.
Enter installation directory for Adobe Reader 9.1.0 [/opt]
/opt
Installing platform independent files ... Done
Installing platform dependent files ... Done
Setting up libraries ... Done
Setting up desktop and menu icons ... Done
Setting up the browser plugin ... Done
-Rudy-
OpenSolaris 2008.11 - CUPS - Brother HL-2030 USB
I was a little bit disappointed... I plugged my laser printer Brother HL-2030 ( USB ) and enabled cups and played a little bit with the cups website but was not able to print anything as the printer goes offline ! S...
After reading several sources what have to be done :
Query the print service and cups is enabled.
root@catalogne:~# print-service -q
active print service: cups
If cups is not enabled :
print-services -s cups
You have to be in the group "sys".
root@catalogne:~# cat /etc/group | grep sys:
sys::3:root,bin,adm,rudy
In this example, the user "rudy" is in the "sys" group.
"THIS IS TEMPORARY ! ROOT CANNOT AUTHENTICATE INTO CUPS"
please remove later your user from "sys" !
This will create the necessary configuration for a test1 printer.
root@catalogne:/etc# more /etc/cups/cupsd.conf
#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#
# RUV
FileDevice Yes
...
...
...
Modify printers.conf
root@catalogne:~# more /etc/cups/printers.conf
# Printer configuration file for CUPS v1.3.7
# Written by cupsd on 2009-04-02 20:04
Info test1
Location test1
DeviceURI file://dev/printers/0
State Idle
StateTime 1238695489
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
From DeviceURI usb://Brother/HL-2030%20series
TO file://dev/printers/0
Printers--->Print Test Page

Printed a test page !!!
That's all for today !
-Rudy-
After reading several sources what have to be done :
- enable cups
Query the print service and cups is enabled.
root@catalogne:~# print-service -q
active print service: cups
If cups is not enabled :
print-services -s cups
- enable your user to use the cups website(when authentication is required)
You have to be in the group "sys".
root@catalogne:~# cat /etc/group | grep sys:
sys::3:root,bin,adm,rudy
In this example, the user "rudy" is in the "sys" group.
"THIS IS TEMPORARY ! ROOT CANNOT AUTHENTICATE INTO CUPS"
please remove later your user from "sys" !
- Access the cups website and create a new usb printer
This will create the necessary configuration for a test1 printer.
- Modify the cups configuration
root@catalogne:/etc# more /etc/cups/cupsd.conf
#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#
# RUV
FileDevice Yes
...
...
...
Modify printers.conf
root@catalogne:~# more /etc/cups/printers.conf
# Printer configuration file for CUPS v1.3.7
# Written by cupsd on 2009-04-02 20:04
Info test1
Location test1
DeviceURI file://dev/printers/0
State Idle
StateTime 1238695489
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
From DeviceURI usb://Brother/HL-2030%20series
TO file://dev/printers/0
- Access the cups website
Printers--->Print Test Page

Printed a test page !!!
That's all for today !
-Rudy-
Monday, March 23, 2009
swap space on Solaris 10(in Virtual Box)
Can we define space using a zfs pool... Seems not...
I did the exercise but swap -a did not accept to add the files I created with the command mkfile !
It was a little bit trickier that I thought because I was using a Solaris 10 created in Virtual Box.
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
1. c0d1
/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0
2. c1d1
/pci@0,0/pci-ide@1,1/ide@1/cmdk@1,0
Specify disk (enter its number): 2
selecting c1d1
NO Alt slice
No defect list found
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.
/dev/dsk/c1d1s0 is currently mounted on /extraswap. Please see umount(1M).
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
volname - set 8-character volume name
! - execute , then return
quit
format> pa
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
! - execute , then return
quit
partition> pr
Current partition table (original):
Total disk sectors available: 8372158 + 16384 (reserved sectors)
Part Tag Flag First Sector Size Last Sector
0 usr wm 256 3.99GB 8372158
1 unassigned wm 0 0 0
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
8 reserved wm 8372159 8.00MB 8388542
partition>
^D
newfs: construct a new file system /dev/rdsk/c1d1s0: (y/n)? y
Warning: 2370 sector(s) in last cylinder unallocated
/dev/rdsk/c1d1s0: 8371902 sectors in 1363 cylinders of 48 tracks, 128 sectors
4087.8MB in 86 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
7472672, 7571104, 7669536, 7767968, 7866400, 7964832, 8063264, 8161696,
8260128, 8358560
-bash-3.00# mkdir extraswap
-bash-3.00# mount -F ufs /dev/dsk/c1d1s0 /extraswap/
-bash-3.00# mkfile 1g swap2
-bash-3.00# mkfile 1g swap3
-bash-3.00# mkfile 900m swap4
-bash-3.00# swap -a /extraswap/swap2
-bash-3.00# swap -a /extraswap/swap2
-bash-3.00# swap -a /extraswap/swap3
-bash-3.00# swap -a /extraswap/swap4
-bash-3.00# swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 181,1 8 1048568 1048568
/extraswap/swap1 - 8 2097144 2097144
/extraswap/swap2 - 8 2097144 2097144
/extraswap/swap3 - 8 2097144 2097144
/extraswap/swap4 - 8 1843192 1843192
That's all !
-Rudy-
I did the exercise but swap -a did not accept to add the files I created with the command mkfile !
It was a little bit trickier that I thought because I was using a Solaris 10 created in Virtual Box.
- Create a new disk in Virtual Box and assign the disk to you Virtual Machine
- Boot the Virtual Machine(Solaris) and execute a reboot -- -r
- use format and fdisk to partition the new disk
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
1. c0d1
/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0
2. c1d1
/pci@0,0/pci-ide@1,1/ide@1/cmdk@1,0
Specify disk (enter its number): 2
selecting c1d1
NO Alt slice
No defect list found
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.
/dev/dsk/c1d1s0 is currently mounted on /extraswap. Please see umount(1M).
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
volname - set 8-character volume name
!
quit
format> pa
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!
quit
partition> pr
Current partition table (original):
Total disk sectors available: 8372158 + 16384 (reserved sectors)
Part Tag Flag First Sector Size Last Sector
0 usr wm 256 3.99GB 8372158
1 unassigned wm 0 0 0
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
8 reserved wm 8372159 8.00MB 8388542
partition>
^D
- use newfs to create the filesystem
newfs: construct a new file system /dev/rdsk/c1d1s0: (y/n)? y
Warning: 2370 sector(s) in last cylinder unallocated
/dev/rdsk/c1d1s0: 8371902 sectors in 1363 cylinders of 48 tracks, 128 sectors
4087.8MB in 86 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
7472672, 7571104, 7669536, 7767968, 7866400, 7964832, 8063264, 8161696,
8260128, 8358560
- mount the filesystem
-bash-3.00# mkdir extraswap
-bash-3.00# mount -F ufs /dev/dsk/c1d1s0 /extraswap/
- create the swap space and add it to the system
-bash-3.00# mkfile 1g swap2
-bash-3.00# mkfile 1g swap3
-bash-3.00# mkfile 900m swap4
-bash-3.00# swap -a /extraswap/swap2
-bash-3.00# swap -a /extraswap/swap2
-bash-3.00# swap -a /extraswap/swap3
-bash-3.00# swap -a /extraswap/swap4
-bash-3.00# swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 181,1 8 1048568 1048568
/extraswap/swap1 - 8 2097144 2097144
/extraswap/swap2 - 8 2097144 2097144
/extraswap/swap3 - 8 2097144 2097144
/extraswap/swap4 - 8 1843192 1843192
That's all !
-Rudy-
Thursday, March 19, 2009
Moving Virtual Box Machines
This document does not show the way to make a Virtual Box configuration see a Virtual Box machine that was copied from somewhere. What I propose(temporarily) is to rename the current Virtual Box directory(.VirtualBox) and then copy the files from the Virtual Box machines where you did the copy. At this time, why would you run 2 machines at the same time ?
enter your name and email address
compreg.dat HardDisks Machines VirtualBox.xml xpti.dat
tank is a ZFS filesystem on an external disk(from where the VM was copied).
rudy@catalogne:/tank/VirtualBox$ cp -pr HardDisks /export/home/rudy/.VirtualBox
rudy@catalogne:/tank/VirtualBox$ cp -pr Machines /export/home/rudy/.VirtualBox
rudy@catalogne:/tank/VirtualBox$ cp -pr VirtualBox.xml /export/home/rudy/.VirtualBox/
That should make the trick ! You have now access to the VM that was moved !

-Rudy-
- make a copy of the current Virtual Box
- start Virtual Box
enter your name and email address
- exit VirtualBox
- copy the files
compreg.dat HardDisks Machines VirtualBox.xml xpti.dat
tank is a ZFS filesystem on an external disk(from where the VM was copied).
rudy@catalogne:/tank/VirtualBox$ cp -pr HardDisks /export/home/rudy/.VirtualBox
rudy@catalogne:/tank/VirtualBox$ cp -pr Machines /export/home/rudy/.VirtualBox
rudy@catalogne:/tank/VirtualBox$ cp -pr VirtualBox.xml /export/home/rudy/.VirtualBox/
- start Virtual Box(new VM copied)
That should make the trick ! You have now access to the VM that was moved !

-Rudy-
Virtual Box on OpenSolaris 2008.11
- Download the software archive
Download
- Extract the software
% tar xvf VirtualBox-2.1.4-42893-SunOS.tar
- Install Virtual Box
VirtualBoxKern-2.1.4-SunOS-r42893.pkg
VirtualBox-2.1.4-SunOS-r42893.pkg
as root
# pkgadd -d VirtualBoxKern-2.1.4-SunOS-r42893.pkg
# pkgadd -d VirtualBox-2.1.4-SunOS-r42893.pkg
- start Virtual Box
/usr/bin/VirtualBox
In foreground
rudy@catalogne:~$ VirtualBox
-Rudy-
Wednesday, March 18, 2009
cacao - the basics
Cacao stands for Common Agent Container, i.e. a Container for deploying OSNode agents that help managing the OSNode. You can view it as collection of MBeans available to manage something on this OSNode.
-bash-3.00# cacaoadm stop
-bash-3.00# cacaoadm status
default instance is DISABLED at system startup.
default instance is not running.
-bash-3.00# cacaoadm start
-bash-3.00# cacaoadm status
default instance is DISABLED at system startup.
Smf monitoring process:
7130
7131
Uptime: 0 day(s), 0:0
-bash-3.00# cacaoadm stop
-bash-3.00# cacaoadm status
default instance is DISABLED at system startup.
default instance is not running.
-bash-3.00# cacaoadm start
-bash-3.00# cacaoadm status
default instance is DISABLED at system startup.
Smf monitoring process:
7130
7131
Uptime: 0 day(s), 0:0
Subscribe to:
Posts (Atom)