Adding network printers on Solaris
To Add a printer using the lpadmin util:
lpadmin -p Carefree \
-v /dev/null \
-A none \
-o dest=192.168.5.40 -o protocol=bsd \
-o banner=never \
-m netstandard_foomatic \
-n /usr/lib/lp/model/ppd/system/foomatic/Samsung/Samsung-ML-2551N-Postscript.ppd.gz \
-I postscript -T PS \
-D "The Carefree printer"
Where Carefree is the name of the printer, 192.168.5.40 is the IP address of the printer, and the pdd.gz file is printer config file provided by the manufacturer or the OS install.
After installing the printer, it needs to be enabled via the following commands:
/usr/bin/enable Carefree accept Carefree
The printer can be removed by:
lpadmin -x Carefree
You must be root (of course) to run the above commands.
How to install a new disk on Solaris
Here’s a list of things to do in order to install a new hard disk on Solaris.
- Put the disk in
- Log in as root
- # drvconfig
- # disk
- # format
- Select the new disk
- use fdisk and partition to configure the disk
Solaris screen saver
To enable the screen saver on Solaris, use xscreensaver-demo. Do a man on xscreensaver for more info. To start xscreensaver automatically, put xscreensaver-command exit and xscreensaver & in Xsession. Do a find and edit all the Xsession files since there are more than one on Solaris.
Solaris Services
svcs -xv # tells you what the problems are
svcs -d [s] #tells you what services [s] depends on
svcs -D [s] #tells you what services depend on [s]
svcs -a # shows all the services
svcs -l # shows all the information about the services
To get Solaris version number
To get the version number of the operating system on a Solaris system:
less /etc/release
To get architecture info:
isainfo -v
To Split MP3 files using Silence
To split an mp3 into 5 minute segments:
mp3splt -t 5.0 file.mp3
To tag all the created segments with info:
n=0;
for i in *.mp3;
do let n=$n+1;
mp3info -a “Sir Arthur Conan Doyle” -l “The Adv. of Sherlock Holmes I” -t “Sherlock Holmes Part I ($n)” -g 12 $i;
echo $i;
done
leave a comment