LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   win xp system seeing files on linux system (https://www.linuxquestions.org/questions/linux-newbie-8/win-xp-system-seeing-files-on-linux-system-705772/)

cherokeeman96 02-18-2009 10:12 PM

win xp system seeing files on linux system
 
I have a small home network, 2 xp desktops, and 1 linux laptop. I can see and transfer files from my linux laptop to the xp desktops, but I can not see my linux laptop from either of my 2 xp desktops. What do I need to do on the desktops so that I will be able to see the files on my linux laptop?

pentode 02-18-2009 10:20 PM

One thing you have to do is turn on file sharing on the Windows XP machines and indicate which files you want to share. I believe if you right-click on the drive or folder you want to share, you will see an option to share the drive. If it isn't shared, you won't be able to see them. If the folders are properly shared, you should be able to see the shared files on your other XP box. If this is working, then there are other issues.

What Linux distribution do you have and which desktop are you using (Gnome or KDE or ??).

John VV 02-18-2009 11:21 PM

are you running samba
if not then win xp will never see a lvm or ext3 filesystem

lazlow 02-18-2009 11:33 PM

You might also want to look at Cifs (newer version of samba).

taylorkh 02-19-2009 08:43 AM

Samba is certainly a good approach. I have Samba running on several Linux machines and can access files on the Linux machines from my XP and Vista machines.

One thing to be aware of... the firewall software on your Windows machines may block access to the Linux machines. I had that happen when I first tried Samba some years back. An upgrade to Zone Alarm put me out of business. Took me several MONTHS to get it working again. But don't let that put you off - if the Windows machines can see each other then they should be able to see the shares presented by Samba which are intended to look like Windows shares to Windows machines.

Another option... If you have ssh (secure shell, openssh etc.) installed on the Linux you can access the files on the Linux machine from a Windows machine using Winscp (a free utility). Looks and works like the old Windows File Manager.

To make your network complete you can add Putty to the Windows machines to have command line access to the Linux machine and something like Vnc to allow remote desktop access between machines.

Good luck,

Ken

alan_ri 02-19-2009 09:11 AM

Or you can use Ext2Fsd.

cherokeeman96 02-19-2009 09:11 AM

Yes as far as I know samba is running. The folders I want to share are setup correctly because I can see the xp machine from my linux laptop. The other xp desktops can see each other. I just don't know how to get the xp machines to see the linux laptop. What do I type in? The ip address oesn't give me anything. Do I need to run the network wizard on the xp machine or something?

i92guboj 02-19-2009 09:20 AM

Quote:

Originally Posted by cherokeeman96 (Post 3449680)
Yes as far as I know samba is running. The folders I want to share are setup correctly because I can see the xp machine from my linux laptop. The other xp desktops can see each other. I just don't know how to get the xp machines to see the linux laptop. What do I type in? The ip address oesn't give me anything. Do I need to run the network wizard on the xp machine or something?

You just might need to configure samba correctly.

I have no idea if your distro offers some kind of graphical tool to do it, but the straight way to do it would be to edit this file:

/etc/samba/smb.conf
Code:

[global]
#this needs to be the same group that the windows machines
workgroup = homenetwork
#a string to identify the machine, it can be whatever
server string = my_linux_box
security = user
log file = /var/log/samba/log.%m
encrypt passwords = yes
socket options = TCP_NODELAY

[my_samba_share]
comment = massive storage
#path to share
path = /my_samba_files/
read only = yes
guest ok = yes

This is for zero security and no pain just like windows does by default. You probably want to tweak some options etc. etc. Check the smb man page for the full galore of config options.

vlademir 02-19-2009 09:23 AM

Quote:

Originally Posted by cherokeeman96 (Post 3449680)
Yes as far as I know samba is running. The folders I want to share are setup correctly because I can see the xp machine from my linux laptop. The other xp desktops can see each other. I just don't know how to get the xp machines to see the linux laptop. What do I type in? The ip address oesn't give me anything. Do I need to run the network wizard on the xp machine or something?

Try to type on you internet explorer brosser :
Quote:

\\ IP ADRESS OF YOUR LAPTOP

cherokeeman96 02-19-2009 09:24 AM

I am running SimplyMepis 8 kde3.5 I believe it is based on the debian lenny kerner 2.6.27

taylorkh 02-19-2009 09:42 AM

On the Linux machine you need to create Samba accounts to match the Windows accounts. Type the following in a terminal:
Quote:

sudo smbpasswd -a username
where username is the Windows user then enter and confirm the user's password. The password should match the user's Windows password.

Here is the smb.conf entry to allow me to access my home directory on one of my Linux machines:
Quote:

[ken]
path = /home/ken
available = yes
browsable = yes
public = yes
writable = yes
To access the Linux machine I can simply do Start; Run; enter the machine name "\\taylor6" and then <Enter>. I then see the share named "ken" in a Windows explorer window. I can map a drive letter to the share and have it always available.

I do have a static IP address assigned to machine taylor6 and an entry in the host file on the Windows machine.

Ken

cherokeeman96 02-19-2009 09:04 PM

I have been in the control center under the samba settings and made sure it is on the same network, but I cannot get windows to see it. I tried typing in the ip address, and I also tried to go to start run and type in the server string "name" of my laptop and windows error says that network path can't be found. I have used teamviewer and I can connect to my windows machine from linux and control everything fine, but also when I run teamviewr from my windows machine to connect to my linux machine it connects fine and displays the desktop but I can't control anything on the linux side even though I have it set up to have full control in the options.

taylorkh 02-21-2009 09:19 AM

I have not used teamviewer however, a quick scan of their web site it implies that it can works through firewalls (apparently without user intervention/configuration of the firewall). I am not sure that the fact that it can see the Linux desktop implies that all is well for Samba sharing etc.

The first fundamental check - can you ping the Linux machine from the XP machine? by name? by IP address?

If not, you have some network or firewall or dns issues. What firewall to you have on the XP machines?

Then download putty from http://www.chiark.greenend.org.uk/~sgtatham/putty/

This should allow you to make a command line connection from the XP machines to the Linux machine.

If both of these work then the issue may be with your Samba configuration. You did use smbpasswd to create an account on the Linux machine corresponding to the XP account(?)

Ken

cherokeeman96 02-26-2009 08:17 PM

I tried Putyy, it couldn't connect. I tried to ping the address of the linux box and kept getting request timeout. I am running Bitdefender Internet Security 2009. I temporarily disabled the firewall and still could not connect to linux box. I do not have a account per say on xp box, as I do not have to log in it just boots straight into my desktop.

sleddog 02-26-2009 08:43 PM

Quote:

Originally Posted by cherokeeman96 (Post 3458848)
I tried Putyy, it couldn't connect. I tried to ping the address of the linux box and kept getting request timeout. I am running Bitdefender Internet Security 2009. I temporarily disabled the firewall and still could not connect to linux box.

This would seem to indicate that there's a firewall on the Linux box.


All times are GMT -5. The time now is 03:22 AM.