LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-01-2007, 05:35 PM   #1
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Rep: Reputation: 32
Windows to Linux networking


Hi, I am starting off with ubuntu for a soft landing in to the world of linux. I am wondering if any one knows the best way to connect a linux system to read file from a windows system. For example to open word document in open office. Or are they totally incompatible.?

Also when I installed UBUNTU I was not given an option to setup root username and password. Only as my own chosen username and password. Does that mean I have admin privilages? I have not tried to modify system yet.

Finally, there seems to be mixed reviews with regards minimum system requirements to run Ubuntu. My system is an old Dell Dimension Pentuim III 800 MHz. I upgraded ram to 512 mb. It seems to be OK though i have to do some more testing before I can give a definitive impression.

I have minimal onboard graphics. Would help if i upgraded to a pci card. I wont be using this for gaming. Just want gui to run better.

Last edited by siawash; 12-01-2007 at 05:51 PM.
 
Old 12-01-2007, 06:21 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you open a *.doc file in Linux it will be opened with OpenOffice.

For Linux <-> Windows networking, you need samba installed. It may already be installed but might need configuring.

Be sure that both hosts use the same domain or workgroup. Add the windows user & password to samba.

Code:
sudo smbpasswd -a <username>[RETURN]
<password>
<password>
It is common for someone to ignore this and not be able to log into a share.

Windows has different networking models. In samba you need to use the corresponding "security=" type. If this is a home network, and you don't have a domain, then the default "security=user" will be fine. This is a line in /etc/samba/smb.conf in the [GENERAL] section.

Another thing you can do is have an entry to mount the share in /etc/fstab, or to mount the windows share manually. I would recommend creating a credentials file in your home directory. Then you could have an entry like this in /etc/fstab:

Code:
//hostname/servicename /mnt/servicename cifs user,noauto,uid=username,dmask=0077,fmask=0177,credentials=/home/username/.credentials
Here, use the hostname of the Windows machine instead of hostname and your username instead of username. The credentials file is a text file containing two entries:
Code:
username=value
password=value
Here is a real example I tried out on a dell laptop to access a share on my hp laptop.
From dell laptops /etc/fstab:
Code:
//hpamd64/jschiwal /home/jschiwal/hpamd64 cifs defaults,uid=jschiwal,gid=jschiwal,file_mode=0117,dir_mode=0077,credentials=/home/jschiwal/.credentials 0 0
Now I'll create a directory to mount it on:
mkdir /home/jschiwal/hpamd64

And I'll mount it:
sudo mount /home/jschiwal/hpamd64

Now I can open the directory in the file browser or cd to it in the console and use it as if it were a local directory.

Last edited by jschiwal; 12-01-2007 at 06:23 PM.
 
Old 12-01-2007, 06:25 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
It occurred to me that Ubuntu might not have the cifs kernel module loaded by default. You can check with the command:
/sbin/lsmod | grep cifs

If you don't see a line output, then you need to load the kernel module:

sudo /sbin/modprobe cifs
 
Old 12-02-2007, 05:50 PM   #4
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
Thank you very much. I will let you know how i get on with this
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux/Windows networking thomasfingram Linux - Networking 4 07-01-2005 12:23 AM
Networking Linux to Windows XP Barrie Linux - Networking 2 02-20-2005 06:05 AM
Networking Between Linux and Windows Virum Linux - Networking 1 07-30-2004 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration