Ex No 6 a.INSTALLATION AND FILE SHARING OF SAMBA SOFTWARE
Aim:
To install Samba Software and share files between Linux and Windows operating system.
Tasks:
1. Installation of Samba Software.
2. Disabling security mechanisms like Firewall
3. Accessing folder and files from Linux System
1. Installation of Samba:
Requirement: Internet for downloading application. The installation of samba is simple.
Step 1: Login to the super user by typing,
sudosu
Step 2: Then install the samba by typing the following command,
apt-get install samba (Not needed if it is already installed)
Step 3: Make the Samba server to run by using the following command
servicesmbd start
2. Testing Communication of Linux with windows:
Requirement: Two systems, one is booted with Ubuntuand other is booted with Windows. Before going to accessing files of different environment, it is required to turnoff the Security mechanisms of Linux.
a) To access Windows from Linux:
Step1 : Find the IP Address of Windows system (sample: 192.168.1.26)
Step2 : In Ubuntu , in places, smb ://10.1.2.1
Step3 : It will ask for the following details
Pwd required for sharing C$ on 10.1.2.1
User Name:administrator(eg:)
Domain :cse
Password:(skrcse2011)
Step4 : the available files and folders will be visible in Ubuntu.
b) To access Linux from Windows
Step1 : In Ubuntu , check the status of samba using the following command
ccetstudent@BCSE17:~$ sudosu
[sudo] password for ccetstudent:
root@BCSE17:/home/ccetstudent# apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
samba is already the newest version.
The following packages were automatically installed and are no longer required:
account-plugin-windows-live libupstart1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 126 not upgraded.
root@BCSE17:/home/ccetstudent# service smbd status
root@BCSE17:/home/ccetstudent# rpm –qa |grep samba
root@BCSE17:/home/ccetstudent# service smbd restart (if not running already)
Step2: Now go to Windows Systems, Type the IP address of Ubuntu System in Run prompt as
Run ://192.168.1.245
Step3: To extend the functionality of Samba
root@BCSE17:/home/ccetstudent# gedit /etc/samba/smb.conf
Step4: Create a directory in desktop in the name oss
root@BCSE17:/home/ccetstudent#mkdir /oss
Step5: Make the subdirectory under oss as lab
root@BCSE17:/home/ccetstudent#mkdir /software/lab
Step6: To configure the samba file
root@BCSE17:/home/ccetstudent#geditsmb.conf
Type the following in last line
[oss]
Comment=Common Software Repository
Path==/home/ccetstudent/oss
Writable=yes
Readonly=yes
Public=yes
Browseable=yes
Save the file
Step7: To restart the samba service
root@BCSE17:/home/ccetstudent# service smbd restart
Step8: Now check in windows the folder osswill be visible with subfolder lab
Goto windows -run- type \\linux ipaddress
Result :
Thus the program to share the file using SAMBA is successfully completed.
Ex no: 6bCOMMON UNIX PRINTING SYSTEM (CUPS)
Aim:
To Installing Common UNIX Printing System (CUPS) and testing the given objective.
Procedure:
Step1: Open the terminal and log in.
Step2: Login to super user .
$sudosu
Password for root user:
Step3:Install the CUPS package
root@BCSE17:/home/ccetstudent# apt-get install cups
Step4: Check the status of the cups using the following command
#service cups status
Step5: Start the service of cups using the following command
#service cups status
Step6: Check the status of the cups again.
Step7: Click Mozilla browser and type
Step8: Select the option Adding printer and classes.
Step9: Select the option “Add printer”
Step10: Give the root username and root password.
Step11: Select the printer type and select continue option.
Step12: Give the printer name, location and description and give continue option.
Step13: Select the maker of printer and select the continue option.
Step14: Select the model of printer and select the option “Add printer”
Step15: Select the paper size and set the default options.
Step16: Click on the printer name and see the jobs that are pending.
Result :
Thus the program Installing Common UNIX Printing System (CUPS) and testing is successfully completed.