how to "see" windows on linux when using winXP gateway to net
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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...
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.
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.
Distribution: Mandriva 2006 & 2007 Power Pack Club
Posts: 178
Rep:
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
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
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
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
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.
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.
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
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..
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.