Ali’s Notes

Adding network printers on Solaris

Posted in Solaris by aghoras on October 21, 2010

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

Posted in Solaris by aghoras on August 10, 2010

Here’s a list of things to do in order to install a new hard disk on Solaris.

  1. Put the disk in
  2. Log in as root
  3. # drvconfig
  4. # disk
  5. # format
  6. Select the new disk
  7. use fdisk and partition to configure the disk

Solaris screen saver

Posted in Solaris by aghoras on December 24, 2008

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.

How to get cpu info on Solaris

Posted in Solaris by aghoras on January 9, 2008

Use prtdiag to get hardware information on Solaris.

Solaris Services

Posted in Solaris by aghoras on January 8, 2008

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

Posted in Solaris by aghoras on October 2, 2007

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

Posted in Solaris, Uncategorized by aghoras on September 20, 2007

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

Follow

Get every new post delivered to your Inbox.