LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-21-2003, 10:26 PM   #1
shaneblyth
Member
 
Registered: Sep 2003
Location: Queenstown New Zealand
Distribution: Mepis , Linspire, Xandros.
Posts: 41

Rep: Reputation: 15
how to "see" windows on linux when using winXP gateway to net


I am a newbie and managed to get the internet gateway up and running.
I have a Windows XP machine with adsl connection and a linux workstation that can duel boot till i get this sorted..
I am using this setup to learn Linux and chose Mandrake 9.1
As I can access the net from the linux box throught the XP server the network is obviously talking to each other.
What i cannot figure is how to share and access files from either machine so I can see them. I read quite a bit but am quite confused there must be a straight forward easy setup to this surely. Can anyone help or point me to some simple info to help me with this. Linux is sure alot different to WinXP so I am rather handicaped with a lot of windows knowledge and concepts and very few Linux ones... I am using KDE as my interface

Thanks

Shane
 
Old 09-22-2003, 02:00 AM   #2
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
I think you should connect to the internet with the linux box. Then run a firewall on that connection. Route traffic to your windows box. Install samba so you may share files with the linux server.
 
Old 09-22-2003, 02:02 AM   #3
shaneblyth
Member
 
Registered: Sep 2003
Location: Queenstown New Zealand
Distribution: Mepis , Linspire, Xandros.
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by micxz
I think you should connect to the internet with the linux box. Then run a firewall on that connection. Route traffic to your windows box. Install samba so you may share files with the linux server.
No doubt a great idea ... But as it is setup and working well the other way I need to learn enough and get it setup beofre I swap it around...

Thanks
 
Old 09-22-2003, 02:27 AM   #4
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
I don't understand what you mean here. You need some tricky windows routing software to route traffic to your linux box with the windows as the gateway, sounds like hell to me.
 
Old 09-22-2003, 02:46 AM   #5
shaneblyth
Member
 
Registered: Sep 2003
Location: Queenstown New Zealand
Distribution: Mepis , Linspire, Xandros.
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by micxz
I don't understand what you mean here. You need some tricky windows routing software to route traffic to your linux box with the windows as the gateway, sounds like hell to me.
Linux was very easy to setup so that it used Windoze as a gateway to the net. The windows PC is working perfectly as a gateway to the net. Am having troble figuring how to set samba up for the actually sharing and viewing of resources on each PC.




Last edited by shaneblyth; 09-22-2003 at 02:48 AM.
 
Old 09-22-2003, 02:56 AM   #6
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Tell me how you set this up on the windows side.
Wow, I had the exact opposite problem.
 
Old 09-22-2003, 03:42 AM   #7
jchance
Member
 
Registered: Sep 2003
Location: New Hampshire USA
Distribution: Mandriva 2006 & 2007 Power Pack Club
Posts: 178

Rep: Reputation: 30
2 Second Solution well little longer

OK.. so you now want to keep the XP machine as your gateway / router... very very simple.. enable Internet Connection Sharing on that machine for starters.. XP has its wizard that allows u to make a disk so did ME for configuring your other Windows boxes to use the one connected to the net.. For Linux you need to manually configure it.. easy enough... manually assign an ip to your linux box of like:

Below is using Windows Default Settings for Networking:

192.168.0.X where X is a number between 2 and 255.. not 1 because 1 is what the XP machine along with any gateway will use as its ip address.

Next is your subnet if it doesn't get filled in automatically:
It is like 255.255.255.0

then set the gatway to the network in this case the internet would be:
192.168.0.1

Hope it works and helps
Good Luck
 
Old 09-22-2003, 04:26 AM   #8
shaneblyth
Member
 
Registered: Sep 2003
Location: Queenstown New Zealand
Distribution: Mepis , Linspire, Xandros.
Posts: 41

Original Poster
Rep: Reputation: 15
Re: 2 Second Solution well little longer

Quote:
Originally posted by jchance
OK.. so you now want to keep the XP machine as your gateway / router... very very simple.. enable Internet Connection Sharing on that machine for starters.. XP has its wizard that allows u to make a disk so did ME for configuring your other Windows boxes to use the one connected to the net.. For Linux you need to manually configure it.. easy enough... manually assign an ip to your linux box of like:

Below is using Windows Default Settings for Networking:

192.168.0.X where X is a number between 2 and 255.. not 1 because 1 is what the XP machine along with any gateway will use as its ip address.

Next is your subnet if it doesn't get filled in automatically:
It is like 255.255.255.0

then set the gatway to the network in this case the internet would be:
192.168.0.1

Hope it works and helps
Good Luck
Yep that works and I managed to do that myself very easily. my problem is not the internet gateway throught the winxp machine but seeing files on the linux machine from the winxp machine and vice versa
 
Old 09-22-2003, 07:56 AM   #9
ikinad
LQ Newbie
 
Registered: Sep 2003
Location: australia
Distribution: mandrake/gnome
Posts: 18

Rep: Reputation: 0
this is all you have to do to run samba into a peer 2 peer windows environment
save original samba.conf
open your samba.conf file
change security=share
workgroup=<windows workgroup name>

goto shares section
create new share like:

[linux]
comment= linux box
path= /<linux folder that you want to share>
read only=yes
writable=no
browseable=yes
public=yes
guest ok=yes

save the file
and in a terminal do a samba restart /etc/rc.d/init.d/smb restart
oh i forgot that gets you looking at linux from windows now to get linux to look at windows
pull up a terminal and do
# mount.smbfs //<win box name>/<shared driveletter> /mnt/<created folder to dump win volume> -o ip=<ip address of win box> -N

Last edited by ikinad; 09-22-2003 at 08:04 AM.
 
Old 09-22-2003, 09:13 PM   #10
shaneblyth
Member
 
Registered: Sep 2003
Location: Queenstown New Zealand
Distribution: Mepis , Linspire, Xandros.
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by ikinad
this is all you have to do to run samba into a peer 2 peer windows environment
save original samba.conf
open your samba.conf file
change security=share
workgroup=<windows workgroup name>

goto shares section
create new share like:

[linux]
comment= linux box
path= /<linux folder that you want to share>
read only=yes
writable=no
browseable=yes
public=yes
guest ok=yes

I am pretty thick when it comes to this sort of stuff can u give me any more details or an actual example.

my winxp machine is called in windows network AMD
the linux Box is called Dell and i login as Dell
I login to winxp as Shane on the administrator level.
I am not to sure but do u need to lodin into both linux and winxp with the same login name and same password... set it up that way ??

thanks for your help

save the file
and in a terminal do a samba restart /etc/rc.d/init.d/smb restart
oh i forgot that gets you looking at linux from windows now to get linux to look at windows
pull up a terminal and do
# mount.smbfs //<win box name>/<shared driveletter> /mnt/<created folder to dump win volume> -o ip=<ip address of win box> -N
 
Old 09-24-2003, 06:19 AM   #11
ikinad
LQ Newbie
 
Registered: Sep 2003
Location: australia
Distribution: mandrake/gnome
Posts: 18

Rep: Reputation: 0
okay but ineed a bit more info to type you out an example
1. your windows workgroup name (default is WORKGROUP)
2.IP address of the box you want to see from linux
3.drive letter or windows share that you want to mount on linux
4. name of created folder on linux where you want to mount the windows share or drive ex: /mnt/amd

keeping in mind this samba.conf is a peer to peer setup so there are no passwords or logins to set. not the most secure samba but hell ya gotta start somewhere and then later you can play around with more security.

cya
 
Old 09-24-2003, 11:09 PM   #12
shaneblyth
Member
 
Registered: Sep 2003
Location: Queenstown New Zealand
Distribution: Mepis , Linspire, Xandros.
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by ikinad
okay but ineed a bit more info to type you out an example
1. your windows workgroup name (default is WORKGROUP)
2.IP address of the box you want to see from linux
3.drive letter or windows share that you want to mount on linux
4. name of created folder on linux where you want to mount the windows share or drive ex: /mnt/amd

keeping in mind this samba.conf is a peer to peer setup so there are no passwords or logins to set. not the most secure samba but hell ya gotta start somewhere and then later you can play around with more security.

cya
1) yes it is workgroup
2)windows xp IP is 192.168.0.1 submask 225.225.225.0
3)Windows share (of the C: drive) is called Amd and is mapped as the "Z" drive on the network
4)so i make a folder on the linux box which i mount I assume you mean and yes I will make it /mnt/Amd as you suggested (is this case sensitive at all)

by the way the Linux box is the same submask of course and a fixed Ip of 192.168.0.2 and is working perfectly as it connects through the windows XP machine to the net (I have an ADSL extrnal modem on winXP machine)
I have had no security problems as of the last year with my permanent connection to the net and i have a software friewall setup from Kerio which seems to block any hack attempts nicely.

Thanks once again I really appreciate it

Shane
 
Old 09-29-2003, 03:43 AM   #13
ikinad
LQ Newbie
 
Registered: Sep 2003
Location: australia
Distribution: mandrake/gnome
Posts: 18

Rep: Reputation: 0
okay if you have samba running do this in a terminal as root
#mount.smbfs //amd/amd /mnt/amd -o ip=192.168.0.1 -N
-o=options which is the ip address of the windows box
-N is no passwords other than administrator if you have set one on the winbox
make sure your share name of your C: on winbox is actually "amd'
that should mount your winbox from linux
you can turn this command into an executable and run it from the desktop once it works.
now on your linux box goto samba.conf file and hack this
workgroup=WORKGROUP
security=share
now in the shares/homes section do this
[linux]
comment=dell box
path=/
read only=yes
writable=no
browseable=yes
public=yes
guest ok=yes
save the file restart samba, now you should get this in nethood on your winbox "Samba file server (dell)" double click and you should see "linux"
sorry for taking so long i am in the process of building Morphix onto my machine and had no internet for a while now im back

Last edited by ikinad; 09-29-2003 at 03:50 AM.
 
Old 09-30-2003, 12:45 AM   #14
shaneblyth
Member
 
Registered: Sep 2003
Location: Queenstown New Zealand
Distribution: Mepis , Linspire, Xandros.
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by ikinad
okay if you have samba running do this in a terminal as root
#mount.smbfs //amd/amd /mnt/amd -o ip=192.168.0.1 -N
-o=options which is the ip address of the windows box
-N is no passwords other than administrator if you have set one you should get this in nethood on your winbox "Samba file server (dell)" double click and you should see "linux"
sorry for taking so long i am in the process of building Morphix onto my machine and had no internet for a while now im back
Yes Yes finally thank you so much !!
That worked perfectly... I didnt find it straight away though as in the "My Network Places" the linux box appears a few levels.
Entire Network..Microsoft Windows Network...Workgroup...Workgroup...AMD

also when i run that first command to mount it did not accept the - N option anyway I dont need any passwords so that is great and thanks you again..

Discovered how to make a link,...URL on the desktop to give me instant access on the linux box to the windows one...
How do i change the icon displayed ? it is just a very plan icon on the desktop and I see no way of changing to a more accurate image.. I would like to use something like the Hard Disk icons

Now alls I have to do is try and get my epson stylus Photo 890
inkjet which is situated on the windows box to work from the Linux box... havnt tried it scince this is up so off to have a go..

Thanks again
 
Old 09-30-2003, 07:08 AM   #15
dave37
Member
 
Registered: Sep 2003
Location: Ottawa, Canada
Distribution: Ubuntu Dapper
Posts: 70

Rep: Reputation: 16
Quote:
Originally posted by ikinad
okay if you have samba running do this in a terminal as root
#mount.smbfs //amd/amd /mnt/amd -o ip=192.168.0.1 -N
-o=options which is the ip address of the windows box
-N is no passwords other than administrator if you have set one on the winbox
make sure your share name of your C: on winbox is actually "amd'
that should mount your winbox from linux
you can turn this command into an executable and run it from the desktop once it works.
now on your linux box goto samba.conf file and hack this
workgroup=WORKGROUP
security=share
now in the shares/homes section do this
[linux]
comment=dell box
path=/
read only=yes
writable=no
browseable=yes
public=yes
guest ok=yes
save the file restart samba, now you should get this in nethood on your winbox "Samba file server (dell)" double click and you should see "linux"
sorry for taking so long i am in the process of building Morphix onto my machine and had no internet for a while now im back
How do I create more than one share on my linux box, for example the CD writer and a folder on the hard drive, and how do I create an executable as mentioned above and have it run on start up on the linux box?
 
  


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
what is "FRAG" in "/proc/net/sockstat" ? dileepkk Linux - Networking 1 06-21-2011 11:16 AM
have to ping gateway to "kickstart" net connection and routing bPrompter Linux - Networking 0 01-19-2005 02:56 PM
linux loads winxp(second disk), it says "ntldr is missing" alexko Linux - Newbie 1 11-15-2004 05:55 AM
"Linux Gateway" for Terminal Services andre.morita Linux - Software 7 10-08-2004 11:32 AM
Can "minimize all windows" aka <windows>-m be emulated in Fedora Linux? jdruin Linux - Software 4 04-19-2004 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:08 PM.

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