2 Synthesis‎ > ‎Computing‎ > ‎Linux‎ > ‎Shell‎ > ‎

Networking

UNFINISHED CONTENT

Accessing another machine over the network.
Ensure the user


INTRODUCED NEW GROUP "lanusers" WITH NUMBER 1000 ON BOTH MACHINES
MADE SURE USER "tom" WITH NUMBER 500 WAS MEMBER OF IT USING YAST SECURITY AND USERS
ON SUSE AND BLAH ON FEDORA

192.168.1.100 gold    (Fedora Top)
192.168.1.101 silver    (Susi Bottom)
192.168.1.102 copper    (Fedora Bottom)
192.168.1.200 NPI129BAS (HP Color LaserJet 2600n)


TO FIND IP ADDRESS IT IS FIRST IP ADDRESS
/sbin/ifconfig


TO UNMOUNT AND MOUNT
[root@Vigor10 tom]# umount /home/tom/SilverImage
[root@Vigor10 tom]# mount 192.168.1.101:/home/tom/Silver /home/tom/SilverImage -tnfs


TO START STOP RESTART NFS
/etc/init.d/nfs start|stop|restart

TO SHOW THE FILE
cat /etc/exports
/home/tom/Gold/ *(rw,root_squash,sync)


TO LIST CONTENTS OF DIRECTORY GIVING RW STATUS ETC
[root@Vigor10 tom]# ls -l /home/tom/Gold

TO LOOK AT THE MANUAL ON THE COMMAND OR FILE EXPORTS
man exports
USE q TO EXIT


TO CHANGE GROUP OR OWNER AND ACCESS OF FILEs AND DIRECTORIES RECURSIVELY
chgrp lanusers /home/tom/Silver -R
chown tom /home/tom/Silver -R
chmod ug+rwx /home/tom/Silver -R
 

TO CHANGE ACCESS
chmod


TO SETUP THE FILE SYSTEM TABLE
[root@Vigor10 tom]# gedit /etc/fstab
ADD LINE
/home/tom/SilverImage    192.168.1.101:/home/tom/Siver    nfs    defaults    0 0

TO OPEN VI
vi <filepath>
QUIT USING <escape>:q


UNINSTALL AN RPM PACKAGE
rpm -e <package name>




© Tom de Havas 2011. The information under this section is my own work it may be reproduced without modification but must include this notice.







Comments