Wednesday May 13, 2009 sftp default client which ships as part of ssh package doesn't handle recursive copy. Found a really good command line tool lftp . Lftp - Sophisticated file transfer program can handle sftp protocol too. This is being shipped as part SUNWlftpu package.
lftp username@host
To connect to host.
lftp:~> mirror <remote dir> <local dir>
The above command will mirror the remote directory to local directory. For more information for lftp http://tutorials.papamike.ca/pub/lftp.html
Solaris Thinkpad T61 / T61p Suspend to RAM support
Currently I am running Solaris Nevada 102 build and suspend to RAM and resume works with Thinkpad T61p and T61 laptops. Only problem I faced is with OSS driver, sound stops working after resuming. With the recent "audiohd" driver integration this can be tackled. If you have freshly installed Solaris Nevada 102 and above then you can skip the OSS removal step and go direct to enabling suspend to RAM support.
1) remove oss driver with "pkgrm oss"
2) touch /reconfigure and then reboot the machine.
Now Solaris uses "audiohd" driver for sound instead of oss driver.
Enabling Suspend to RAM support:
Add the below entry to /etc/power.conf
--------
S3-support enable
---------
Run " /usr/sbin/pmconfig" to activate it.
To test the Suspend to RAM support run the command " /usr/openwin/bin/sys-suspend" and then select "suspend" option. To resume press power button.
Posted by pradhap ( Nov 26 2008, 06:36:54 AM PST ) Permalink Comments [4]
Solaris Thinkpad T61p projector configuration
The
default Nvidia driver that is being shipped with Solaris
Express/OpenSolaris distro doesn't allow you to switch to 1024x768
resolution for Thinkpad T61p. Most of the LCD
projectors works with "1024x768" resolution. Add the following
lines to Nvidia device section in /etc/X11/xorg.conf for 1024x768 resolution.
---
Option "UseEdidFreqs" "False"
---
I have attached xorg.conf file for reference. Tested this on Thinkpad T61p which comes with Nvidia Quadro FX 570M chipset.
For projector setup. Copy the xorg.thinkpad.t61p.projector.conf to /etc/X11/xorg.conf and restart the gdm or CDE login . You can remove/move the file once you are done with the projector setup.
Posted by pradhap ( Nov 25 2008, 04:50:16 AM PST ) Permalink
VirtualBox Solaris / OpenSolaris Build 95 / 96
Installed Solaris Nevada build 96 . Then installed VirtualBox on top of it. While starting VirtualBox from command line it hangs giving out "ERROR: 0 bytes read from child process" . Found the work around . Follow the below procedure to fix it.
Move the VBoxSVC to VBoxSVC.real
#mv /opt/VirtualBox/VBoxSVC /opt/VirtualBox/VBoxSVC.real
Create a shell script for VBoxSVC and export the LD_NODIRECT and then exec the real VBoxSVC
#cat > /opt/VirtualBox/VBoxSVC
#!/bin/sh
LD_NODIRECT=1
export LD_NODIRECT
exec /opt/VirtualBox/VBoxSVC.real "$@"
End the script and make sure you chmod +x the script
#chmod +x /opt/VirtualBox/VBoxSVC
Looks like one could hit this issue with Solaris Nevada Build 95 too.
Prozilla download accelerator for Solaris / OpenSolaris
Solaris 10 or OpenSolaris by default ships /usr/sfw/bin/wget tool for downloading. If you are trying to download largefile then its good to use download accelerator so that it can parallely fetch the file and it would reduce the waiting time considerably . I have ported Prozilla download accelerator for Solaris / OpenSolaris .
To install run the following command
#pkgadd -d SFEprozilla-2.0.4.i386.pkg
SPEC file is locate at http://pkgbuild.svn.sourceforge.net/viewvc/pkgbuild/spec-files-extra/trunk/
Posted by pradhap ( Aug 21 2008, 08:37:11 AM PDT ) Permalink Comments [1]
Its generally good practice to use non-root user and when you require certain commands to be run as root you can use pfexec command. Pfexec is somewhat similar to sudo but much powerful than sudo.
$pfexec bash
When you install OpenSolaris 2008.05 if you specify username during installation, then it permits login only for non-root user. Run the following command so that root can login as a user.
#rolemod -K type=normal root
For more info on this check out this.
Posted by pradhap ( Aug 19 2008, 04:03:03 AM PDT ) Permalink
Solaris HP Proliant Server installation
Came across query regarding installation of Solaris 10 on HP Proliant Server DL 360 series machines. By default Solaris 10 doesn't ship drivers for HP Smart Array Controllers . So during installation one would encounter disk unable to recognize or missing disk or no disk connected. Follow below procedure for Solaris 10 installation.
* Download the drivers from
ftp://ftp.hp.com/pub/softlib2/software1/pubsw-windows/p1220948930/v46783/CPQary3-1.90-solaris10-i386.tar.gz
* Extract the tar.gz file using below command
# gzcat CPQary3-1.90-solaris10-i386.tar.gz | tar xvf -
* burn the iso CPQary3.iso
which is located under CPQary3-1.90-solaris10-i386 directory by using favorite any of your cd burning software (cdrw, cdrecord, k3b ) . In Solaris one can use cdrw
#cdrw -i CPQary3.iso
* Once the driver CD is ready . Now boot up the HP DL server with the Solaris 10 installation media and follow below instruction to get your disk recognized.
-----
a. Boot the Solaris installation to the following menu:
1. Solaris Interactive (default)
2. Custom JumpStart
3. Solaris Interactive Text (Desktop session)
4. Solaris Interactive Text (Console session)
5. Apply driver updates
6. Single user shell
Enter the number of your choice.
b. Select option 5, "Apply driver updates".
c. At the following prompt:
Insert media and enter media type:
Floppy [f], CD/DVD [c] or End [e]
insert the driver cd, and choose "c". Solaris will extract the
driver, and the following messages will indicate success:
extracting software on cd
installing driver update in the miniroot
d. Following driver application, Solaris will return to the following
prompt:
Insert media and enter media type:
Floppy [f], CD/DVD [c] or End [e]
Choose "e", and Solaris will continue with the installation. Solaris
will prompt for re-insertion of the Solaris media; complete this step
and proceed with the installation.
------
The driver disk support variety of HP Smart Array Controllers for Solaris 10
* Smart Array 5300 Controller
* Smart Array 5i Controller
* Smart Array 532 Controller
* Smart Array 5312 Controller
* Smart Array 641 Controller
* Smart Array 642 Controller
* Smart Array 6400 Controller
* Smart Array 6400EM Controller
* Smart Array 6i Controller
* Smart Array P600 Controller
* Smart Array E200 Controller
* Smart Array E200i Controller
* Smart Array E500 Controller
* Smart Array P400 Controller
* Smart Array P400i Controller
* Smart Array P800 Controller
You can upgrade and remove drivers by using pkgadd and pkgrm driver package CPQary3 found in CD .
Thanks for good readme.txt found at CPQary3.iso image. For more detail information checkout the readme.txt found in CD.
How to speed up your Solaris/OpenSolaris remote login
If you are logging into remote Solaris / OpenSolaris, it could take quite a few seconds to get the login prompt. If your home directories are exported with NFS while logging (ssh, rsh & telnet) into remote machine this delay can be noticed. The bottleneck here is with the /etc/profile file.
<<snip>> case "$0" in
-sh | -ksh | -ksh93 | -jsh | -bash)
if [ ! -f .hushlogin ]
then
/usr/sbin/quota
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
/bin/cat -s /etc/motd
trap "" 2
/bin/mail -E
case $? in
0)
echo "You have new mail."
;;
2)
echo "You have mail."
;;
esac
fi
esac
<<snip>>
Each time a user logs in /etc/profileshell script is executed. The script runs quota,mail and displays motd . If your sure that you d'nt need any of this, then go ahead and just touch .hushlogin file in your home directory
$touch ~/.hushlogin
Now login to remote machine and see the difference.
Posted by pradhap ( Jul 21 2008, 03:33:05 AM PDT ) Permalink Comments [1]
Solaris Nevada / OpenSolaris Mac book right-click
When you run Solaris on Macbook. Trouble is that the right-click doesn't work . One way to solve is to have USB mouse or you can have a key mapped to right-click so that when ever you press the key it automatically maps the key to right click. To enable this goto Start -> Preferences -> Keyboard Accessibility Preferences .
click on "Enable Keyboard accessibility features" and then click "Enable Mouse Keys"
We need the scancode of the key to map it to right-click. For identifying scancode you can run Xev utility . Start the terminal and run xev "/usr/openwin/demo/xev" program. Click on Xev window and press the key which you wanted to map it to right-click, xev will show the scancode for the key . Once you get the scancode you can kill xev.
Sample xev screen:

Now to open your favorite editor and create a file under your home directory ~/ .xmodmap . Put the following entry into it.
-----------
keycode 117 = Pointer_Button3
---------
Save the file and run the command " xmodmap ~/.xmodmap" to activate it. Now while pressing the key you should be able to see right-click menu. Put the an entry in
Start -> Preferences -> Session
so that "xmodmap" command is executed each time you log into Gnome. Add entry "/usr/openwin/bin/xmodmap <path>" . Substitute <path> with location of ".xmodmap" file eg. /export/home/guest/.xmodmap
Solaris Thinkpad T61 Xorg Projector configuration
The default Nvidia driver that is being shipped with Solaris Express/OpenSolaris distro doesn't allow you to switch to 1024x768 resolution for Thinkpad T61. The issue here is most of the LCD projectors loves "1024x768" resolution. So with below workaround you can switch to 1024x768 (note this is experimental). Add the following lines to Nvidia device section in /etc/X11/xorg.conf
---
Option "UseEdidFreqs" "False" Option "HorizSync" "DFP-0: 40-70" Option "VertRefresh" "DFP-0: 58-62"
---
I have attached xorg.conf file for reference. Tested this on Thinkpad T61 which comes with Nvidia Quadro NVS 140M chipset. Special thanks to John.M.Martin for pointing this workaround.
Thinkpad T61 Solaris Projector configuration
Here is the xorg.conf.projector.T61.Nvidia projector configuration of Thinkpad T61 for Solaris . Best resolution is "1280x960" for display in case your are using with projector . Note this for the Thinkpad T61 which comes with Nvidia display card. Below is the PCI ID.
pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x10de device 0x0429
nVidia Corporation Device unknown
Installed "Solaris Express Developer Edition 1/08 snv_79a X86" on Thinkpad T61 . Here is the list of devices
Wireless doesnot work. Waiting for iwk driver release.
For sound driver use the OSS driver from http://www.4front-tech.com/download.cgi . One issue with OSS driver is that it puts "input-mixer" on high, so its noisy while you boot up. Workaround is to mute while bootup and then set the ossmix after bootup.
#~ossmix connector.int-speaker.input-mix 0
This comes with Nvidia card so compiz-fusion works fine . Compiz-fusion can be downloaded from Erwann's blog
bash~# scanpci
pci bus 0x0000 cardnum 0x00 function 0x00: vendor 0x8086 device 0x2a00
Intel Corporation Mobile Memory Controller Hub
pci bus 0x0000 cardnum 0x01 function 0x00: vendor 0x8086 device 0x2a01
Intel Corporation Mobile PCI Express Root Port
pci bus 0x0000 cardnum 0x19 function 0x00: vendor 0x8086 device 0x1049
Intel Corporation 82566MM Gigabit Network Connection
pci bus 0x0000 cardnum 0x1a function 0x00: vendor 0x8086 device 0x2834
Intel Corporation 82801H (ICH8 Family) USB UHCI #4
pci bus 0x0000 cardnum 0x1a function 0x01: vendor 0x8086 device 0x2835
Intel Corporation 82801H (ICH8 Family) USB UHCI #5
pci bus 0x0000 cardnum 0x1a function 0x07: vendor 0x8086 device 0x283a
Intel Corporation 82801H (ICH8 Family) USB2 EHCI #2
pci bus 0x0000 cardnum 0x1b function 0x00: vendor 0x8086 device 0x284b
Intel Corporation 82801H (ICH8 Family) HD Audio Controller
pci bus 0x0000 cardnum 0x1c function 0x00: vendor 0x8086 device 0x283f
Intel Corporation 82801H (ICH8 Family) PCI Express Port 1
pci bus 0x0000 cardnum 0x1c function 0x01: vendor 0x8086 device 0x2841
Intel Corporation 82801H (ICH8 Family) PCI Express Port 2
pci bus 0x0000 cardnum 0x1c function 0x02: vendor 0x8086 device 0x2843
Intel Corporation 82801H (ICH8 Family) PCI Express Port 3
pci bus 0x0000 cardnum 0x1c function 0x03: vendor 0x8086 device 0x2845
Intel Corporation 82801H (ICH8 Family) PCI Express Port 4
pci bus 0x0000 cardnum 0x1c function 0x04: vendor 0x8086 device 0x2847
Intel Corporation 82801H (ICH8 Family) PCI Express Port 5
pci bus 0x0000 cardnum 0x1d function 0x00: vendor 0x8086 device 0x2830
Intel Corporation 82801H (ICH8 Family) USB UHCI #1
pci bus 0x0000 cardnum 0x1d function 0x01: vendor 0x8086 device 0x2831
Intel Corporation 82801H (ICH8 Family) USB UHCI #2
pci bus 0x0000 cardnum 0x1d function 0x02: vendor 0x8086 device 0x2832
Intel Corporation 82801H (ICH8 Family) USB UHCI #3
pci bus 0x0000 cardnum 0x1d function 0x07: vendor 0x8086 device 0x2836
Intel Corporation 82801H (ICH8 Family) USB2 EHCI #1
pci bus 0x0000 cardnum 0x1e function 0x00: vendor 0x8086 device 0x2448
Intel Corporation 82801 Mobile PCI Bridge
pci bus 0x0000 cardnum 0x1f function 0x00: vendor 0x8086 device 0x2811
Intel Corporation Mobile LPC Interface Controller
pci bus 0x0000 cardnum 0x1f function 0x01: vendor 0x8086 device 0x2850
Intel Corporation Mobile IDE Controller
pci bus 0x0000 cardnum 0x1f function 0x02: vendor 0x8086 device 0x2829
Intel Corporation Mobile SATA AHCI Controller
pci bus 0x0000 cardnum 0x1f function 0x03: vendor 0x8086 device 0x283e
Intel Corporation 82801H (ICH8 Family) SMBus Controller
pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x10de device 0x0429
nVidia Corporation Device unknown
pci bus 0x0003 cardnum 0x00 function 0x00: vendor 0x8086 device 0x4230
Intel Corporation Device unknown
pci bus 0x0015 cardnum 0x00 function 0x00: vendor 0x1180 device 0x0476
Ricoh Co Ltd RL5c476 II
pci bus 0x0015 cardnum 0x00 function 0x01: vendor 0x1180 device 0x0832
Ricoh Co Ltd Device unknown
pci bus 0x0015 cardnum 0x00 function 0x02: vendor 0x1180 device 0x0822
Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter
pci bus 0x0015 cardnum 0x00 function 0x03: vendor 0x1180 device 0x0843
Ricoh Co Ltd Device unknown
pci bus 0x0015 cardnum 0x00 function 0x04: vendor 0x1180 device 0x0592
Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter
pci bus 0x0015 cardnum 0x00 function 0x05: vendor 0x1180 device 0x0852
Ricoh Co Ltd xD-Picture Card Controller
Different ways of playing audio CD in Solaris
* Solaris Express and SXDE by default ships
- rhythmbox (/usr/bin/rhythmbox) for organizing and playing audio CD's
- sound-juicer (/usr/bin/sound-juicer) for playing audio CD's
If you wish to play audio CD's from Xmms . Follow the below steps .
*) install Xmms from blastwave.org
*) start Xmms right click and goto Options -> Preferences
* ) Select Solaris audio plugin (libSolaris.so)
*) Click on CD Audio Player plugin and then click on Configure button
*) Make sure you enter the correct information for Device: and to a vaild Directory:
hint: to find the correct CD/DVD drive info you can run "rmformat" command
*) Insert the CD into drive and click on add files and browse the directory which you have pointed in previous step.
Enjoy music !!!
Projector configuration for intel i945 ( i810 ) driver for Solaris
Recently installed Solaris Express build 70 in couple of laptops which had Intel 945 chipsets . So enabled compiz-fusion on them with the help of Erwann's Compiz-fusion packages . Next step was to configure display for projector. Below procedure should work for Intel chipsets which uses i945 (i810) driver. To make laptop projector aware add the following lines in /etc/X11/xorg.conf in Section "Device" . Note that you need to modify BusID for your Laptop / Desktop requirement.
<snip>
BusID "PCI:0:2:0" # modify it for your laptop / desktop
Option "Clone" "true"
Option "MonitorLayout" "CRT,LFP"
<snip>
Sample section
<code>
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "i810"
VendorName "Intel Corporation"
BoardName "Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
BusID "PCI:0:2:0"
BusID "PCI:0:2:0"
Option "Clone" "true"
Option "MonitorLayout" "CRT,LFP"
EndSection
</code>
You can have a look at the sample xorg.conf from Solaris Express build 70 . I have tested with Intel 945 GM chipset .
Posted by pradhap ( Sep 13 2007, 06:48:11 AM PDT ) Permalink Comments [3]
X.Org 7.3 with DTrace support released
X.Org 7.3 has been released last week. One of the interesting feature is DTrace support for X server. When run under OpenSolaris platform it allows detailed accounting of operations inside the X server. For more information visit Alan Coopersmith's webpage.
Posted by pradhap ( Sep 09 2007, 10:27:17 PM PDT ) Permalink