Wednesday, May 27, 2009

NFS

The Network File System is a way to connect a folder or drive on one computer to a remote computer so that it looks like the folder or drive is a local folder or drive on the remote computer. I "exported" /home/tayloe on legacy to varsity by first making sure that nfs was running on legacy by using chkconfig and ps -e.

Then I had to add the following line to /etc/exports on legacy:

/home/tayloe     varsity(rw)

That means "Allow /home/tayloe on legacy to be exported to varsity and give read write permissions".

Then I had to run the following executable file on legacy to make the change take effect:

/usr/sbin/exportfs  -a

Then on varsity, I executed the following command:

mount -t nfs 192.168.1.20:/home/tayloe /mnt/legacy

That means "Mount the folder on legacy called /home/tayloe and call it /mnt/legacy. The "-t" stands for "type".  192.168.1.20 is legacy's IP address.

After all this, I could navigate to /mnt/legacy on varsity and see the /home/tayloe files on legacy as if they were local on varsity.

Friday, May 15, 2009

Linux services notes

/etc/inittab shows the run levels that are available and shows the default run level that will happen when system is started.

Actual startup scripts are in /etc/rc.d/init.d. In the various folders /etc/rc.d/rc0.d /etc/rc.d/rc1.d /etc/rc.d/rc2.d and so on are links to the actual scripts in init.d.

To run your own script at startup, put the script in /etc/rc.d/rc.local

use chkconfig --list to see what programs are started at the various run levels. Some distros use update-rc.d instead of chkconfig

To see what services will be started by xinetd when needed, look in /etc/inetd.d.

Monday, May 11, 2009

Router at Cotton Plant

The DSL Router we have at CP is a Comtrend ADSL2+ router. CT-5621T. Internet light on extreme right end of router goes red about every third morning and I have to unplug it and plug it back in to get it to go back green.

To change settings on router go to the IP address of the router in firefox and use root and 12345 as username and PW.

To change port settings, go to Advanced setup --> NAT --> virtual servers.

I opened port 873 to allow deltacopy (rsync) server on Blackhawk to be able to receive packets.
-------------------------------------------------------------------------------
To makle sure rsync was running, I typed:

netstat -ano | find "LIST"

That shows the ports that are being listened to and the -o shows the process ID of the program that is doing the listening. Then I went to the Windows task manager to see which process had the ID that was listening on port 873. PIDs are not shown by default in the task manager. Go to the view tab in Task Manager and choose PID as one of the columns to display.