Archive

Archive for the ‘Solaris’ Category

Fixing the Backspace key in the UNIX shell

16/04/2009 Leave a comment

Allot of times when at the command prompt in UNIX, the backspace key doesn’t do what the backspace key should and instead simply put ^H’s on the screen.

Backspace

photo by thegareth

There are three ways to fix this:

  1. Use the delete key instead. Sometimes the delete is mapped to erase the first character to the left.
  2. Use CTRL+H to backspace. Sometimes simply using ctrl+h will erase the first character to the left.
  3. Use stty to map ^H to be erase, like this,
    # stty erase ^H

You can also fix it put configuring the terminal program you are using. Look for any options mentioning backspace or CTRL+H and turn them on.

Categories: Solaris, UNIX

VirtualBox Screen Resolution for OpenSolaris

13/04/2009 Leave a comment

The default screen resolution in Virtual Box for OpenSolaris is 1024×768.
If you want a higher resolution screen for you OpenSolaris virtual machine then before starting the VirtualBox guest run:

C:\virtual\box\install\path> VBoxManage setextradata "OSolarisVB" "CustomVideoMode1" "1280x10240x24"

Where “OSolarisVB” is the name of OpenSolaris VirtualBox and I’d recommend bumping the video memory to at least 64MB.

Then run in full screen mode.

Categories: Solaris, UNIX

Fixing unknown hostname when using DHCP

12/04/2009 Leave a comment

With Solaris 10 just make sure that the hostname you want to use is in /etc/nodename; the contents of that file will then be used to set the hostname. Note that it is essential that the hostname you put into /etc/nodename is terminated with a carriage return

Categories: Solaris, UNIX

Setting up a network printer in Solaris 10

12/12/2008 Leave a comment

Setting up a network printer is a bit more difficult in Solaris than it
is in Linux.
And it can be a tick to find a helpful page on the internet.

But I did manager to find this page,
http://www2.petervg.nl/cgi-bin/docs.cgi?a=read&doc=168 and I have added
a tip to my tips database about it
(http://www.malcolmchalmers.com/tips/tip.php?tipid=83)

Categories: Solaris

Top Memory Processes

01/01/2008 Leave a comment

To view the process consuming the most virtual memory

# prstat -s size -n 5
Categories: Solaris, UNIX

INIT Level (in Solaris)

01/01/2008 Leave a comment

To stop a Solaris server it is best to use the init command and the number of the level you want to go to.

However I can never remember which number is which, so here they are:

Event Level
Power Off 5
Reboot 6
PROM/BIOS 0
Categories: Solaris, UNIX

Setting the data and time in Solaris

01/01/2008 Leave a comment

The Solaris date command syntax format is “mmddhhmmyy” ,

where mm is month ,
dd is day of the month,
hh is the hour
mm is minutes
yy is the current year.

For example :

# date 0309081408
Sun Mar 9 08:14:03 EST 2008
#
Categories: Solaris, UNIX

Encrypt files in Solaris

01/01/2008 Leave a comment

To encrypt

encrypt -a aes -i input_file -o output_file

and decrypt a file: -

decrypt -a aes -i input_file -o output_file
Categories: Solaris, UNIX

How to connect to a CIFS/windows share with Samba

01/01/2008 Leave a comment

In Linux

mount -t smbfs -o username=tridge,password=foobar //server/share /local/folder

In Solaris

mount -F smbfs -o username=tridge,password=foobar //server/share /local/folder
Categories: Linux, Solaris, UNIX

Using the extra keys on a Type 6 keyboard

01/01/2008 Leave a comment

Sun type 6 keyboards come with a bunch of ‘extra’ keys on the left hand side. If these aren’t working for you try adding the following entries to you .Xmodmap file.

! Sun Type 6 USB PC keyboard special keys
keycode 117 = SunCompose
keycode 134 = SunProps
keycode 140 = SunFront
keycode 248 = SunCopy
keycode 191 = SunOpen
keycode 192 = SunPaste
keycode 188 = SunCut
keycode 222 = SunPowerSwitch SunPowerSwitchShift
keycode 135 = SunUndo
keycode 133 = SunAgain
keycode 122 = SunFind
keycode 232 = SunStop
keycode 113 = SunAltGraph
keycode 174 = SunAudioLowerVolume SunVideoLowerBrightness
keycode 176 = SunAudioRaiseVolume SunVideoRaiseBrightness
keycode 160 = SunAudioMute SunVideoDegauss
keycode 245 = Help

Read the file with “xmodmap ~/.Xmodmap”, which you can put in your .xsession or .xinitrc or whatever you use to initialize your desktop.

Categories: Solaris
Follow

Get every new post delivered to your Inbox.