LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-17-2004, 07:23 AM   #1
Bob Moore
LQ Newbie
 
Registered: Apr 2004
Location: Barnehurst, Kent
Distribution: Suse Linux 9.1
Posts: 22

Rep: Reputation: 15
Cool Networking with Router and ADSL


Hi, my wife and I although being very familiar with the Windows XP OS, are
struggling somewhat with Linux.

We have installed Suse Linux 9.0, and then followed up with Suse Linux 9.1. We
have a Zyxel 643 router feeding three PC's via an ADSL broadband service. We
can both log on to the 'net without any problems at all.

Until we came over to Linux, we used a spare drive on my box as an
archive/file server for all to access. We have tried to emulate this with
Linux with varying degrees of success. But on one occasion both machines
locked up.

My question is this: Which is the best network protocol to use to achieve
this? We don't need to share printers or anything else other than a directory
etc. We would also need to be able to access our Windows partitions as we are
dual booting at present. We have tried to implement Samba, NFS, NIS etc. but
all to no avail.

As there doesn't seem to be a howto that covers all this in one article, can anyone point be in the right direction. :-)
 
Old 05-17-2004, 07:29 AM   #2
floyd
Member
 
Registered: Apr 2002
Location: Sydney, Australia
Distribution: Mandrake
Posts: 73

Rep: Reputation: 15
HI!

As far as sharing a directory I think the easiest way would probably be SAMBA, but as I am not an expert in this I will leave those problems for someone else.

As for accessing your windows partition, as far as I know SUSE will generally set that up for you. In Mandrake, my windows partitions are mounted in the /mnt directory, so I have /mnt/win_c and /mnt/win_d. I am not sure if SUSE also mounts your windows partitions in the mnt directory, but I am pretty sure they will be either mounted there or in your home directory.
 
Old 05-17-2004, 08:11 AM   #3
Bob Moore
LQ Newbie
 
Registered: Apr 2004
Location: Barnehurst, Kent
Distribution: Suse Linux 9.1
Posts: 22

Original Poster
Rep: Reputation: 15
Cool Networking with Router etc.

Hi Floyd, yes that's OK... But it doesn't allow you to save/delete a file from a windows directory into Linux. It only allows you to copy from. :-)
 
Old 05-17-2004, 09:59 AM   #4
carlmarshall
Member
 
Registered: Jan 2004
Location: North Yorkshire, UK
Distribution: Centos 5
Posts: 133

Rep: Reputation: 16
Bob,

I assume from the last post that you are accessing a linux based archive from windows based systems. If so you need samba.

Carl.
 
Old 05-17-2004, 10:15 AM   #5
Bob Moore
LQ Newbie
 
Registered: Apr 2004
Location: Barnehurst, Kent
Distribution: Suse Linux 9.1
Posts: 22

Original Poster
Rep: Reputation: 15
Cool Networking with Router etc.

Hi Carl, yes I am accessing windows files from Linux. I am also trying to access my Linux drives/files from within Windows.

I have both machines dual booting at present, mainly because there are some things that I can only do from within Windows.....
 
Old 05-17-2004, 10:29 AM   #6
carlmarshall
Member
 
Registered: Jan 2004
Location: North Yorkshire, UK
Distribution: Centos 5
Posts: 133

Rep: Reputation: 16
OK Bob, you definately need samba.

Here's an smb.conf file I use to give access to all the CUPS printers and shared directories we use.

[global]

workgroup = MYWORKGROUP

netbios name = Linux

server string = Linux

printcap name = cups
load printers = yes

printing = cups
printer admin = @adm

log file = /var/log/samba/log.%m

max log size = 50

log level = 0

map to guest = bad user

security = user

encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

username map = /etc/samba/smbusers

socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384 IPTOS_LOWDELAY SO_KEEPALIVE
read raw = yes
write raw = yes
max xmit = 65535

local master = yes

name resolve order = lmhosts wins bcast

wins support = yes

dns proxy = no

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes
create mode = 0770
use client driver = yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.

[print$]
path = /var/lib/samba/printers
browseable = yes
write list = @staff root
guest ok = yes
inherit permissions = yes

[common]
comment = Public Stuff
path = /home/common
public = yes
writable = yes
printable = no
browseable = yes
create mask = 0660
directory mask = 0770

[accounts]
comment = Accounts Area
path = /home/accounts
public = yes
writable = yes
printable = no
browseable = yes
create mask = 0660
directory mask = 0770

Install samba, create the Linux users (we put all ours in a group called "staff") with passwords.

change the group for the /home directory (and all below it to "staff")

Allow access to the /home directory (and all below it) for rwx by owner & group.

Create the smbusers file with the format:

linuxusername = "Windows username" (win can have spaces hence the inverted commas)

for each user.

create the samba passwords with:

smbpasswd linuxusername
and fill in the prompt with the WINDOWS password.

edit the /etc/samba/lmhosts file as for a windows lmhosts file

Restart samba (/etc/init.d/smb restart) and you should be away!!

If you're using XP, turn off "web client services" to speed up access.

Hope that helps.

Carl.
 
Old 05-17-2004, 11:35 AM   #7
Bob Moore
LQ Newbie
 
Registered: Apr 2004
Location: Barnehurst, Kent
Distribution: Suse Linux 9.1
Posts: 22

Original Poster
Rep: Reputation: 15
Wink Networking with Router etc.

Hi Carl, thanks for the info..... I'll try that and see how I get on. :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Vmware networking with adsl? subaruwrx Linux - Software 4 10-07-2008 03:21 AM
Sarge 3.1-Networking and aDSL problems...please have a look.. deepclutch Debian 18 10-29-2005 01:24 PM
ADSL Routers Setup- Microsom Deskporte router 100 and Planet ADSL modem router mabonline Linux - Hardware 1 02-27-2004 05:36 PM
Configuring ADSL coonection using ADSL router... manu2004 Slackware 3 01-04-2004 04:42 PM
ADSL Router + Linux Router + LAN = HELP!!! linuxlois Linux - General 2 09-16-2003 08:24 AM

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

All times are GMT -5. The time now is 08:51 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