The Codex of Business Writing Software for Real-World Solutions 2.pptx
Rhel3
1.
2. xmms-1.2.10-9.i386.rpm
Package Name Version Type of Extension
architecture
rpm <options> <package name>
rpm -ivh <package name>
--aid (install package along with dependencies)
--force (forcefully)
3. -U (upgrade the package)
# rpm -q <package name> (Show whether package is install or not)
-qa (queries all installed rpm packages)
-qc (lists only the configuration files stored in the
queried package)
-qd (lists only the documentation files stored in the
queried rpm)
-qi (displays whole information about the queried rpm)
-qs (displays the states of files in the queried rpm)
-ql (displays all files related to the queried rpm)
4. crontab -e -u username
*/1 * * * * echo ‘Hello’ > /dev/tty2 (min, hour, date, month, day)
save file.
service crond restart (now when user login on 2nd
terminal it will get
message hello after every 1 min.)
crontab -l -u username (to see how many crontab are running for user)
crontab -r -u username (deletes the crontab)
crontab –e
11 12 * * * mkdir rahul
5. 1. # vi .bashrc (This is hidden file & used to create shortcuts for
commands)
alias c=’clear’
alias m=’mkdir’
save the file
by typing the above words it will create shortcut for clear and mkdir (c & m)
but after editing file first logout & again login.
2. # vi .exrc (we have to create this file)
:se nu (write this in the file)
save the file
After saving file you will find line numbers already written in every file you open
for editing
6. neat To open network configuration on
graphic terminal
ifconfig To check the IP & MAC address of
NIC.
ifconfig eth0 <ip address> To assign temporary IP
ifup eth0 To enable network card.
ifdown eth0 To disable network card.
vi /etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/sysconfig/networking/devices/ifcfg-eth0
To assign permanent IP , here we have to edit a file
7. ping (-c2, -a) <ip address> - To check connectivity
(-c2 for seeing two lines, -a listing)
wget <website> - To download the website
home page
elinks <website> - To open website in command line
htmlview <website name> - To open website in command line
8. Sharing of files & folders between Linux.
Packages:
portmap-4.0-63.i386.rpm
nfs-utils-1.0.6-4.6.i386.rpm
Port Number:
2049 – nfsd
111 – portmap
Configuration File:
/etc/exports
Service:
portmap
Nfs
Daemons:
nfsd
9. Create a folder and make files or paste files you want to share from in
network.
(ex.- /var/dump)
Edit file for sharing
# vi /etc/exports
/var/dump *(rw)
/var/rahul 192.168.1.15(ro) (save the file)
(in first line, we have share /var/dump for all users in a network with read &
write permission & in second line, we have shared /var/rahul only for the
PC having IP address 192.168.1.15 with read only permission)
service nfs restart
service portmap restart
10. showmount -e (To check NFS Server and its shared directory from Server itself)
showmount -e <IP address of Server > (To check NFS Server and its shared
doc from client)
CLIENT END: For taking NFS server service we have to mount directory from
server to client
mount -t nfs <server IP>:/var/dump /mnt
cd /mnt (here you will find all the shared material)
cd /net
cd /IP of NFS Server
11. Required Package
vsftpd*
rpm -ivh vsftpd*
vi /etc/vsftpd/vsftpd.conf
We have to remove # infront of the following lines.
Line no. 12:
anonymous = default user
(FTP uses two users anonymous & FTP anonymous has no password)
Line no. 15:
local_enable=yes
(Local user can login through FTP)
12. Line no. 18:
write_enable=yes
(write permission is enabled to FTP)
Line no. 27:
anon_upload_enable=yes
(anonymous user can upload files)
Line no. 31:
anon_mkdir_write_enable=yes
(anonymous user can create directory )
Line no. 35:
dir message enable=yes
Line no. 85:
Ftpd_banner= welcome to FTP