SCCS – script header While sccs checked out a file, add these lines to the top of your script to preserve versions and file information. [bash] # Master: %P% # SCCS id: %Z% %M% %I% %E% [/bash]
VNC server on Unix Starting the VNC server on Unix for the First time VNC Server installs in /usr/local/bin, you need to make sure you have both /usr/local/bin and /usr/openwin/bin in your path, also the first time you run vnc you need to setup a vnc password, this is done with the /usr/local/bin/vncpassword command. After […]
Solaris Zones 1 Overview 1.1 Global Zone – overview 1.2 Non-Global Zone – overview 2 Considerations before choosing zones 2.1 When should I consider using zones? 2.2 Can Solaris 8 be provided in a zone? 3 Resource Management 3.1 CPU capping 3.2 Memory capping 3.3 Process capping 3.4 Global Zone Capping 4 Configuration 4.1 Supported […]
A Tutorial on Wget Basics Wget is one of the powerful tools available there to download stuff from internet. You can do a lot of things using wget. Basic use is to download files from internet. To download a file just type [bash] wget http://your-url-to/file [/bash] But you cannot resume broken downloads.use -c option to […]
Shell, KSH Read Variables Read in a Variable From a user we read with: read var. Then the users can type something in. One should first print something like: [bash] print -n “Enter your favorite haircolor: “; read var; print “”. [/bash] The -n suppresses the newline sign. Read into a File Line for Line […]
Change passwd – permission denied (NIS) I setup a new NIS server and put the NIS source files in /var/yp/src/ The command line “passwd” gave me a permission denied when changing an NIS user’s password. A restart of yp fixed the problem for me.. Eventually I restarted NIS with: [bash] /usr/lib/netsvc/yp/ypstop /usr/lib/netsvc/yp/ypstart [/bash]
Solaris 10 – Create an NFS Share The first step is to edit the /etc/dfs/dfstab file. [bash] share -F nfs -o rw=servername -d “share” /share [/bash] Start the server [bash] # /etc/init.d/nfs.server start [/bash]
SCCS Commands sccs Subcommands Checking Files In and Out The following subcommands are useful when retrieving versions or checking in changes. Checking Out a File for Editing: sccs edit 1 To edit a source file, you must check it out first using sccs edit. SCCS responds with the delta ID of the version just retrieved, […]
Setting up SSH public/private keys SSH (Secure Shell) can be set up with public/private key pairs so that you don’t have to type the password each time. Because SSH is the transport for other services such as SCP (secure copy), SFTP (secure file transfer), and other services (CVS, etc), this can be very convenient and […]
Checking Memory on UNIX [bash]ps -A –sort -rss -o comm,pmem | head -n 11[/bash] [bash]ps -auxf | sort -nr -k 4 | head -10[/bash] [bash]free[/bash] [bash]free -m[/bash] [bash]ps aux | awk ‚Äò{sum +=$4}; END {print sum}‚Äô[/bash]