lsa
lsa
B) Basic Command
1.ifconfig
2. vim/vi :
Press i –> to write context
To quit and save – > esc :wq!
3. hostname :
4. chmod
First is symbolic mode
Second is octal mode
5. mkdir
6. a) ls
b) ls –a
7.cat
Cat > [filename]
To save and quit =crl+d
8. Pwd
9. Man
To exit =q
10. Cal
11. History
12. Touch
13. cp
14. mkdir
15. mv
16. rm
17. head
18. tail
20. sort
sort –n = by number
22. Runlevel
c) Creating a Repository
Create a Directory with the Name of ‘repo’ using ‘mkdir’ command
cat /etc/yum.repos.d/rhel-source.repo
gedit /etc/yum.repos.d/repo.repo
Creating a directory
Mount the partition in /etc/fstab
Choose eth0
Press space after coming to Use DHCP Configuration
Enter IP Address, Subnet Mask
Adding Groups
Allo
w outgoing ssh (ESTABLISHED state only) connection (for the corresponding incoming
Make a directory to be exported , create few files into it and give it full
permission
Open The configuration File and write the following lines under it:
directory on it.
Try to create new dile in client side.
b) Configuring Samba
VmNet1 configuration
Vmware configuration
Go to Packages Folder, and install samba with rpm command
To query whether samba packages installed
Go to home directory, create folder tysamba
Create files using touch or cat command
Block firewalls
To give temporary read only permissions
In this file home directory is off To make it on copy first line and paste with setsebool
command as follows
Start and restart smb services
Now to check whether files are been transferred from Samba to Windows Run- >\\192.168.1.3
c) Configuring FTP
Verify the if all 5 packages vsftpd for FTP is installed :
Only 3
Now use following command to start vsftpd services at boot time using
chkconfig command.
By default /var/ftp is ftp user Home directory. Check the context offile
/var/ftp/pub and change to ftp
Restart the service of vsftpd and enable it from boot. Also give full
permission to the directory/var/ftp/pub.
Now FTP is configure. Test as FTP client from other machine.
PRACTICAL NO 8: DNS, DHCP and Mail Server
a) DHCP
First we have to check whether DHCP is available on our machine or
not that we can check with rpm command.
To assign IP to dhcp server DHCP server have a static IP address. First configure the IP
address192.168.1.3with netmask of 255.255.255.0 on server.
select DHCP
stop Firewall
Stop dhcp server
To Create a Clone, we right click on the virtual machine, click Manage and then click Clone
Right Click on Network Icon, Select Edit Connection, select system eth0