![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Just Give Me the Beans!
![]() |
HowTo: Easiest way to share files & printers with Windows
Justification and Notes
- There are plenty of tutorials on the ubuntu forums that cover samba shares or printer sharing but I'll suppose that you want the fastest, easiest, least troublesome method to share files and printers with windows - I'll attempt to provide the simplest method to do so in this guide - For convention sake (rules for publishing a tutorial), author declares that no support is guaranteed. Assumptions - You want to share files & printers quickly and easily in a home environment - You've got a firewall which blocks everything save the ip addresses of the computers you want to share files with and a couple of other required services Sharing Files Linux - Open a terminal & enter "sudo apt-get install samba" without the brackets - In the same terminal type "sudo gedit /etc/samba/smb.conf" - For the following step set WORKGROUPNAME to the workgroup defined under the windows computer (Right click My Computer and select properties under windows to access the workgroup name under the 'Computer Name' tab) - Paste the following into the file, but edit the stuff in CAPS Code:
[global] workgroup = WORKGROUPNAME server string = COMPUTERDESCRIPTION security = share [Shared] path = /home/USERNAME/FOLDER available = yes browsable = yes public = yes writable = yes guest ok = yes create mask = 0777 directory mask = 0777 Code:
- In the same terminal enter "sudo chmod 777 -R /home/USERNAME/FOLDER" or whatever path you set above - Finally enter "sudo /etc/init.d/samba restart" in the same terminal Windows XP - Open My Computer, click tools->map network drive - Enter "\\LINUXIPADDRESS\Shared" in 'Folder' box and select an unused drive letter - Click 'Finish' Sharing Printers Linux - Click System->Adminstration->Printing (On the same menu as your 'start' bar or application launch bar) - Setup your printer - Select 'Share Published Printers Connected To This System' under 'Server Settings' Windows XP - Enter "LINUXIPADDRESS:631/printers" in Internet Explorer or compatible web browser - Mouseover the big printer name and copy the text in the status bar, or if you're using IE right click -> properties and copy the link address. In firefox, you can right click -> copy link location - Start the 'Add new printer wizard' under printers & faxes in the control panel - Select 'Network Printer' and click next - Choose 'Connect to this printer' and paste the stuff you copied just now - Select the driver for the printer (install it from disc) or choose a generic 'color printer' - Click 'Finish' to complete the wizard Resources - http://www.debuntu.org/guest-file-sharing-with-samba - Ubuntu Forums Remarks - Please tell me how it turned out! Last edited by netyire; November 13th, 2008 at 10:17 AM.. Reason: Iron out the permission problems |
|
|
|
|
|
#2 |
|
A Carafe of Ubuntu
![]() Join Date: Jun 2006
Location: Suffolk, UK
Beans: 134
Ubuntu 8.10 Intrepid Ibex
|
Re: HowTo: Easiest way to share files & printers with Windows
hi
i get an 'error 403 - forbidden' when i enter 192.168.1.1:631/printers why might that be ?? ta /neill |
|
|
|
|
|
#3 |
|
5 Cups of Ubuntu
![]() Join Date: Feb 2008
Beans: 22
|
Re: HowTo: Easiest way to share files & printers with Windows
Thank you very much. I tried to share the printer before with zero success. I followed your guide to the letter and it WORKS perfectly. I have just printed my first page from my XP laptop. On a secondary note, it will be useful for newbies to indicate where they can find the LINUXIP address. In my case (KUBUNTU) imoused over the plag icon (nera the clock and date) and that showed my kubuntu IP address.
Awesome. |
|
|
|
|
|
#4 |
|
Just Give Me the Beans!
![]() |
Re: HowTo: Easiest way to share files & printers with Windows
Hi Neil! I think the problem may be with how the printers are setup. Click System->Administration->Printing and make sure that sharing of printers is allowed and that no restrictions are in place as to which users can access the printer. (Select the printer you wish to share and click on the access control tab)
Check if you have the right IP address first, open a terminal and enter sudo ifconfig /all Then check if you can ping your linux box from windows, in windows click start->run type cmd and click run. Then type ping LINUXIPADDRESS. If you cannot ping the linux box this most probably means you have a firewall running. (Not sure which though). From here either add an exception if you know what firewall is running and how to go about doing that or install firestarter (hopefully the firewall is iptables, in which case you can use firestarter to reconfigure it), follow the setup instructions and add the WINDOWSIPADDRESS as an exception under the host section of the policy tab in Firestarter. Last edited by netyire; June 5th, 2008 at 11:29 PM.. |
|
|
|
|
|
#5 |
|
5 Cups of Ubuntu
![]() Join Date: Dec 2007
Beans: 41
|
Re: HowTo: Easiest way to share files & printers with Windows
Is there a way to monitor how much each ip (or computer on the network) has printed. Basically I live with 3 house mates and want to be able to monitor how much each person has printed so that we can split the cost of a new cartridge among ourselfs depending on how much each person has printed...
Thanks Nicky |
|
|
|
|
|
#6 |
|
Spilled the Beans
![]() Join Date: Dec 2007
Location: Austin, TX
Beans: 14
Ubuntu 8.10 Intrepid Ibex
|
Re: HowTo: Easiest way to share files & printers with Windows
If I understands this correctly, this assumes the printer is on the Linux box. In my house (due to space concerns), the printer is on the XP machine. Is there an easy and similar way to share printers in that config?
Thanks. Rick |
|
|
|
|
|
#7 |
|
5 Cups of Ubuntu
![]() Join Date: Feb 2007
Beans: 30
|
Re: HowTo: Easiest way to share files & printers with Windows
Anyone have any ideas about how to add a MAC OS X to this mix?
I have Ubuntu, XP and OS X (Tiger) at home and would like to share between all three. So how do I set up Tiger? Thanks Craig |
|
|
|
|
|
#8 |
|
First Cup of Ubuntu
![]() Join Date: Jan 2008
Beans: 6
|
Re: HowTo: Easiest way to share files & printers with Windows
WOW!! This worked GREAT! Simple and quick. I'm running Xubuntu, XP, XP, Ubuntu and PCOS. I gave up long ago trying to share files with my XPs and this worked perfectly. Thanks
|
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: May 2008
Beans: 9
|
Re: HowTo: Easiest way to share files & printers with Windows
Thank you so much
Only 1 question: How can you choose between color and black/white on Windows? |
|
|
|
|
|
#10 | |
|
First Cup of Ubuntu
![]() Join Date: May 2008
Beans: 9
|
Re: HowTo: Easiest way to share files & printers with Windows
Quote:
|
|
|
|
|
| Bookmarks |
| Tags |
| cups share, samba share, share folder, share printer, windows share |
| Thread Tools | |
| Display Modes | |
|
|