CS2406 – Lab Manual – NRCFOSS/AU-KBC Centre, Anna University Chennai

5.b : Installing various software packages - Advanced Samba, CUPS, Django. Aim: To know the how to install the packages like Samba, Common Unix Printing System (CUPS) and Django.

1. Samba Installation and Configuration 1.1 Introduction to Samba Samba can be used with Linux to provide transparent access between machines running Linux and machines running Windows. Samba itself runs on a Linux machine and makes shared files and printers available to Windows machines, as if they are available on a Window machine or server. Thus, Samba has several practical applications which can generally be categorized as follows: 1. Using a Linux server as a simple peer-to-peer server. There is no user authentication involved and no need for passwords. 2. Using a Linux server as a member server on an existing Windows NT domain. The existing Windows domain controller will use NT authentication tools to control file permissions and access. 3. Using a Linux server as a primary domain controller with its own user authentication and control mechanisms. Which of these three applications of Samba is used, determines how Samba is configured on the Linux machine.

1.2 Installing Samba $ su Enter Password: (Here enter the root password) # yum install samba Checking the samba running. # /etc/init.d/smb status

1

CS2406 – Lab Manual – NRCFOSS/AU-KBC Centre, Anna University Chennai Starting the samba service #/etc/init.d/smb start Restart the samba service #/etc/init.d/smb restart Creating a normal user # useradd samba-test

Configuring samba Creating a normal user # useradd samba-test Setting the password # passwd samba-test Changing password for user samba-test. New password: Retype new password: passwd: all authentication tokens updated successfully. Adding the user to access samba shares with a password # smbpasswd -a samba-test New SMB password: Retype new SMB password: Added user samba-test. Login into the samba as using the smbclient to add the files and folders to share with windows. # smbclient \\\\localhost\\samba-test -Usamba-test Here enter smb password for login Enter samba-test's password: You gets the following output to see the what are files you are sharing Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.8-68.fc15] smb: \> In this to see what are files you sharing enter ‘ls’ command smb: \> ls . D 0 Tue Aug 9 19:08:44 2011 .. D 0 Tue Aug 9 19:08:44 2011 .bash_logout H 18 Wed Jun 22 19:19:05 2011 .mozilla DH 0 Wed Feb 9 03:52:39 2011 .bash_profile H 193 Wed Jun 22 19:19:05 2011 .gnome2 DH 0 Tue Feb 8 14:08:01 2011 2

CS2406 – Lab Manual – NRCFOSS/AU-KBC Centre, Anna University Chennai .bashrc

H

124 Wed Jun 22 19:19:05 2011

56633 blocks of size 2097152. 7531 blocks available To see the where your current directory located enter the ‘pwd‘ command smb: \> pwd Current directory is \\localhost\samba-test\ To create a folder in sharing folder enter following command smb: \> mkdir test To check created directory enter the following command smb: \> ls . D 0 Tue Aug 9 19:10:50 2011 .. D 0 Tue Aug 9 19:08:44 2011 .bash_logout H 18 Wed Jun 22 19:19:05 2011 .mozilla DH 0 Wed Feb 9 03:52:39 2011 .bash_profile H 193 Wed Jun 22 19:19:05 2011 .gnome2 DH 0 Tue Feb 8 14:08:01 2011 test D 0 Tue Aug 9 19:10:50 2011 .bashrc H 124 Wed Jun 22 19:19:05 2011 56633 blocks of size 2097152. 7532 blocks available If you want to come out from samba client enter the ‘exit’ smb: \> exit

How to access the shared files from windows. Open the samba location as following. Start-> Run.. Enter the ip address of linux machine as following eg: \\192.168.1.2

It displays log in window to log into the samba sever. Here username and password should be what you given to while creating samba username and smb password. eg:

username: samba-test password:test123

Now you can see the what are files shared.

3

CS2406 – Lab Manual – NRCFOSS/AU-KBC Centre, Anna University Chennai

2. Common Unix Printing System (CUPS) Printing within UNIX has historically been done using one of two printing systems - the Berkeley Line Printer Daemon ("LPD") [RFC1179] and the AT&T Line Printer system. These printing systems were designed in the 70's for printing text to line printers; vendors have since added varying levels of support for other types of printers.

Linux Printing features ● All printing systems on Linux make use of the excellent PostScript system called GhostScript (www.ghostscript.org). ● Ghostscript is a PostScript interpreter that is most commonly used on Linux. ● Implements an excellent PostScript engine that can take as inputs formats like JPEG, TIFF, PS & Text and output data in formats like X Windows output, raster formats and PDF. ● Also handles conversion of PS output for non-PS printers; can also be used a basic, spooler less printing system. ● Most printing systems today use a combination of multiple tools (postscript interpreters, filters, rasterises etc) to process and print documents. ● The printing system converts PostScript into a raster format and then converts that into a printer specific language to send commands to the printer.

Installing CUPS To Install CUPS Enter the Following command as root user $ su # yum install cups Install the A printer administration tool # yum install system-config-printer

Configuring CUPS Open the cups by typing following URL http://localhost:631/

4

CS2406 – Lab Manual – NRCFOSS/AU-KBC Centre, Anna University Chennai

In this click on the Adding Printers and Classes Here click on the Add Printer.

After clicking on the Add Printer It will ask you for permission. Here you have to enter the system root username and password eg: User name: root

5

CS2406 – Lab Manual – NRCFOSS/AU-KBC Centre, Anna University Chennai password: root123

Then CUPS search for the printers available in your network.

If your printer is connected to the network it shows in the Discovered Network Printers. Select the printer and click on Continue button.

6

CS2406 – Lab Manual – NRCFOSS/AU-KBC Centre, Anna University Chennai

In following window give the name of printer and also description and location. At the location give your Lab name.

Here select the Maker of the Printer and click on the add printer.

7

CS2406 – Lab Manual – NRCFOSS/AU-KBC Centre, Anna University Chennai

Here select the Model of the Printer and click on the add printer.

Here you have to set the default options for printer. To set it click on the set default options. This is to manage paper size and also color and Quality.

8

CS2406 – Lab Manual – NRCFOSS/AU-KBC Centre, Anna University Chennai

After setting the options you can see following screen. In this you can see the maintenaince, in that drop down you can delete the printer and also Edit the printer. Below that you can see the Jobs. In that you can see Jobs you did till now means if you took any print from your machine that status it shows.

9

CS2406 – Lab Manual – NRCFOSS/AU-KBC Centre, Anna University Chennai If you want to see is your printer configured correctly , Go to the menu name called System -> Administration -> Printing .

3. DJANGO 3.1 Introduction to DJANGO Django is an web application framework, written in Python, which follows the ModelView-Controller (MVC) Pattern. It is named after Django Reinhardt, a gypsy jazz guitarist from the 1930s to early 1950s. To this day, he’s considered one of the best guitarists of all time. Django is pronounced JANG-oh. Rhymes with FANG-oh. It was originally developed to manage several news-oriented sites for The World Company of Lawrence, Kansas, etc., and was released publicly under BSD license by July 2005. In June 2008, It was announced that a newly formed Django Software Foundation will take care of Django in the future.

3.2 Installing DJANGO Installation First, download Django-x.x.tar.gz from the following link http://FOSS-LAB-SERVER-IP/content/code/Django/Django-x.x.x.tar.gz Go to Applications -> System Tools -> Terminal and type the follwing commands $su Enter Password: (Here enter the root user password) # tar xzvf Django-x.x.tar.gz # cd Django-x.x #python setup.py install

10

CS2406 – Lab Manual – NRCFOSS/AU-KBC Centre, Anna University Chennai

References: http://www.samba.org/samba/docs/ http://www.cups.org/articles.php?L274 https://docs.djangoproject.com/en/dev/topics/install/?from=olddocs

11

5.b : Installing various software packages - Advanced ... -

smbclient \\\\localhost\\samba-test -Usamba-test. Here enter smb .... Django is an web application framework, written in Python, which follows the Model-.

829KB Sizes 3 Downloads 118 Views

Recommend Documents

5.b : Installing various software packages - Advanced ... -
existing Windows domain controller will use NT authentication tools to control file permissions and access. 3. Using a Linux server as a primary domain controller with its own user authentication .... http :// www . cups . org / articles. php ? L 274

Appendix 5B - Neometals Ltd.
Dec 31, 2015 - Interest and other costs of finance paid. -. -. 1.6. Income taxes paid. -. -. 1.7. Other (R&D tax offset refund). -. 266. Net Operating Cash Flows.

Appendix 5B - Neometals Ltd.
Dec 31, 2015 - Mining exploration entity and oil and gas exploration entity quarterly report. + See chapter 19 for defined terms. 01/05/2010 Appendix 5B Page ...

Packages -
Por favor haga el cheque a nombre de : Detach, seal and return the envelope to the school on or before picture day. Separa, sella y regresa el sobre a la ...

The MTR-5B -
Line 4: Normal – Keyer Speed, 24 hour timer, battery voltage. Alternate – switch ... 2) TAP the RIT switch while in mode. Tapping will ...

5b - FRP strengthening.pdf
Aramid. •Provide strength and. stiffness. •transfer stress between. the reinforcing fibres. •hold the fibres together. •protect the fibres. •Improve performance (e.g..

20152 - 5b - Ryan.pdf
ISSN 2037-6677. Page 3 of 23. 20152 - 5b - Ryan.pdf. 20152 - 5b - Ryan.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying 20152 - 5b - Ryan.pdf.

The MTR-5B -
been color coded with a marker on the part carrier using the resistor color code to ..... the edge of the cut out and then use a file to clean it up to the final size.

Example Retail Packages
powered by Yext™. App: Quickly establish accurate business listings on 70+ reputable business listing sites in the U.S., including Apple Maps, Google, and Yahoo!. $25/month. SRP: $42/month. Margin: 40%. Listing Distribution. App: Build accurate bus

5B-i Counselors' 339 Plan.pdf
There was a problem previewing this document. Retrying... Download. Connect more ... 5B-i Counselors' 339 Plan.pdf. 5B-i Counselors' 339 Plan.pdf. Open.

Special Packages 3 - Off-Road.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item.

xfinity tv packages Minnesota.pdf
Download. Connect more apps... Try one of the apps below to open or edit this item. xfinity tv packages Minnesota.pdf. xfinity tv packages Minnesota.pdf. Open.

tata sky channel packages pdf
Page 1 of 1. File: Tata sky channel packages pdf. Download now. Click here if your download doesn't start automatically. Page 1 of 1. tata sky channel packages pdf. tata sky channel packages pdf. Open. Extract. Open with. Sign In. Main menu. Displayi

Strategic Defence Packages PRR.pdf
Page 1 of 10. Page 1 of 10. Page 2 of 10. Page 2 of 10. Page 3 of 10. Page 3 of 10. Strategic Defence Packages PRR.pdf. Strategic Defence Packages PRR.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Strategic Defence Packages PRR.pdf. P

Various Items.pdf
Cuttlefish(Theldala/Devilled). Hot Butter Cuttle Fish. Crumbed fried Cuttle Fish. Batter Fried Cuttlefish. Boneless Lamb Curry. BBQ Chicken+Pan Fried Pork+BBQ ...

Special Packages 1 - Rafting.pdf
Download. Connect more apps... Try one of the apps below to open or edit this item. Special Packages 1 - Rafting.pdf. Special Packages 1 - Rafting.pdf. Open.

Installing OSCARS 0.6 - GitHub
... memory recommended. • 30GB of hard disk space ... Please note these: a. RPMs do not perform any “merge” of data in case you have both 0.5 and 0.6 tables.