Software

Changing the NTP server in Solaris or Linux.

September 21, 2009
By Andrew Lin

Here is how you can change the NTP server’s information on your Solaris server. Edit /etc/inet/ntp.conf add the below line server ntp.paris.hilton.com You will now need to restart the NTP service. /etc/init.d/xntpd stop /etc/init.d/xntpd start The last thing you need to do is to check to see if the client is communicating with the...
Read more »

Tags: ,
Posted in Software | No Comments »

How to automate ftp login and file transfer with bash script

August 27, 2009
By Andrew Lin

Sometime ago I had posted a Korn script to automate FTP login and upload of file on a Unix or Linux computer. The default shell for most Linux servers is bash. I ran into a situation on a VMware ESX server where the only shell available is bash. I had rewrite my script in...
Read more »

Tags: ,
Posted in Software | 1 Comment »

Blat a Windows command line utility to send email with attachment.

August 26, 2009
By Andrew Lin

Blat is a handy command line utility that sends email with attachment using SMTP. It can also be used to post to usenet using NNTP. It is not an SMTP server, you will need an SMTP server for Blat to send email. Blat can be downloaded from blat.net, it is very wasy to use....
Read more »

Tags:
Posted in Software | 4 Comments »

Enable outbound FTP ports on VMware ESX server.

August 26, 2009
By Andrew Lin

The operating system on VMware ESX 3 is a striped down version of linux. It has only the bare necessities for VMware to function. I wanted to configure a cron job to email the log file, but because sendmail is not installed the mailto command did not work. I decided to write a script...
Read more »

Tags:
Posted in Software | 2 Comments »

Awk the swiss army knife of the Unix toolkit.

August 20, 2009
By Andrew Lin

The awk command is very handy when you need to filter the contents of a file, a pipe,or keyboard. It searches each line of input for patterns that you specify and when the pattern is matched, it performs an action. You specify the action and patterns. The action could be to count the number...
Read more »

Tags: ,
Posted in Software | No Comments »

Explanation of Standard input-output in Unix and Linux

August 19, 2009
By Andrew Lin

Once a command is run, a process is created. This process then opens three flows: stdin, called the standard input, where the process will read the input data. By default stdin refers to the keyboard; STDIN is identified by the number 0; stdout, called standard output, where the process will write the output data....
Read more »

Tags: ,
Posted in Software | No Comments »

How to automate ftp login and file transfer

August 6, 2009
By Andrew Lin

As a Linux/Unix server administrator I ran into an occasion where I had to automate the file transfer via ftp to a remote server. I had to create a shell script to automatically login to the remote ftp server and then upload the file. I then schedule this script to run daily through a...
Read more »

Posted in Software | 4 Comments »

Auditing the cron jobs scheduled on the Unix or Linux server.

July 7, 2009
By Andrew Lin

I have recently taken ownership of a Solaris 5.9 server and am in the process of migrating the applications over to a recent release. I decided to audit the applications and configuration of all the apps installed. One of the very long list of items I needed to figure out is the cron job,i.e....
Read more »

Tags: , ,
Posted in Software | No Comments »

How to backup and compress a folder in one step, using tar and gzip.

June 11, 2009
By Andrew Lin

If disk space is limited on your Linux or Unix server and you wish to backup a folder or file that is larger than the available free space. Then creating a compressed archive in one step may be the only option, not to mention that it is also faster. tar cf – folder_name |...
Read more »

Tags: ,
Posted in Software | No Comments »

How to change Red Hat Linux to boot to command line mode from Gnome.

June 5, 2009
By Andrew Lin

Changing the default runlevel of the Red Hat Linux server can switch the bootup from Gnome to command line mode. You can make the changes consitent by editing the /etc/inittab file. Change the line id:5:initdefault: to id:3:initdefault: The number 5 specifies the graphical login mode. Changing this value to 3 will boot the system...
Read more »

Tags: ,
Posted in Software | No Comments »