Solaris Tips

por | 30 enero, 2007
Mounting the floppy:
	# volcheck
	Now it should be mounted properly!

Install gcc from www.sunfreeware.com:
	Download gcc for Solaris and do:
	# gunzip [package.gz]
	# pkgadd -d [package]

	Make symbolic links for:
	# ln -s /usr/local/bin/gcc /bin/gcc
	# ln -s /usr/ccs/bin/make /bin/make
	# ln -s /usr/ccs/bin/ar /bin/ar
	# ln -s /usr/ccs/bin/ld /bin/ld
	or add the paths to PATH

Adding paths to PATH (the global varaible where the system searches for commands)

	For sh, ksh, bash shell add this line to your .profile file (in your home directory):
	PATH=$PATH:/usr/local/bin:/usr/ccs/bin
	export PATH

	For csh add this line to your .cshrc file:
	set path = ($path /usr/local/bin)

	For tcsh add the same line to your .tcshrc file:
	set path = ($path /usr/local/bin) 

sendmail [xxx]: unable to qualify my own domain name (localhost) -- using short name

	Assuming your machines name is "sol", add "sol." to /etc/hosts and /etc/hostname.[NIC]
	/etc/hosts
	127.0.0.1 localhost sol sol.
	/etc/hostname.elbc0
	127.0.0.1 localhost sol sol.

	sol is not a qualified domain name, but sol. is!	

Just for completeness a short guide to VI (the editor for sadists ;-)

	There are 2 modes for VI:
	The COMMAND MODE - press ESCape and the INPUT MODE - press "i" when being in COMMAND MODE

	Cursor movement in command mode:
			"k" up
	"h" left		"l" right  (lowercase L)
			"j" down
		 
	"D" Delete to the end of the line from the current cursor position.
	"dd" delete whole line
	"x" delete character under cursor
	"ZZ"  exit and save
	":quit!" quit without saving