Re: networking

jstaff47_at_earthlink.net
Date: 10/27/03


Date: Mon, 27 Oct 2003 14:28:48 GMT

Doug Mitton wrote:

>
> Well, first the BAD news ... you may not be able to get Samba sharing
> to work based on the post by Harry Phillips this morning; that WinXP
> home can't do that! You may have to install a different version of
> Windows(?).

Thats what I originally had read somewhere in samba docs.

>
> But, now on to TCP/IP networking ...
>
> jstaff47@earthlink.net wrote:
>
>>> Prior to getting internet to work I myself would make sure that
>>> services work between the WinXP and Linux machines (such as telnet or
>>> http) and that will ensure you have no TCP/IP issues like lost packets
>>> or the like.
>>
>>I may have to have some guidance on that because I' sort of stalled here
>
> With the PINGS working I would try ... from the Windows box, and from
> the RUN menu or a DOS prompt
> `telnet 192.168.0.2` (or whatever the Linux box IP is)
>
> If you immediately get a "connection terminated" error that means
> telnetd is not installed or activated on the linux box. {On the linux
> box login as root and execute `telnetd` or `in.telnetd` or `tcpd
> in.telnetd` (until you don't get an error message) and try the command
> from WinXP again.}

I went through the advice and ran tcpd but then in.telnetd returns socket
operation on non socket.

I try telnet from linux and get connection refused

I try telnet from xp , it tried and then get could not open connection on
port 23

>
> If you get the login prompt on the WinXP box then all is well and
> routing is working OK from Windows to Linux.
>
>>> BUT, if you want to jump right in ...
>>>
>>> Can you explain how your network is set up and how you want it to
>>> work? Right now you have both machines dialing independantly to the
>>> internet.
>>>
>>> I would suggest letting the Linux machine be the gateway ... that is
>>> Linux dials to the internet and the WinXP machine connects through the
>>> Linux machine.
>>
>>I would absolutely love to have it set up that way with linux delivering
>>services that was my first preference from the begining.
>>
>>>
>>> To do this ... once the Linux machine is connected to the internet,
>>> and working normally, and communicating with the WinXP machine then
>>> ...
>>>
>>> On the Linux side you must enable ip forwarding ... this allows
>>> packets to bridge between ppp0 and eth0 ... to do this type (as root)
>>> echo 1 >/proc/sys/net/ipv4/ip_forward
>>> (thats a number 1 in there)
>>
>>I did that but was not sure it took I did not get a lot of spooling etc.
>
> You shouldn't see anything except that it is now possible to get on
> the internet from the WinXP box (once its configured), through the
> ethernet cable and out the modem on the Linux box.
>
>>> On the WinXP side you must configure the eth0 interface to use the
>>> linux machine as it gateway (gateway: 192.168.0.2 ???) and you must
>>> add the DNS numbers from the Linux machines /etc/resolv.conf so that
>>> WinXP can resolve DNS names.
>>
>>Therein lies one of the gaps, the resolve.conf is empty nada
>
> I don't have dial up PPP running here so I can't check BUT I am
> certain that pppd should populate the /etc/resolv.conf when you are
> connected to the internet ... at the very least there should be a
> current /etc/ppp/resolv.conf file. It may clear the file out when you
> disconnect ... try an `ls -l /etc/resolv.conf` and see if the
> date/time matches your last ppp session.
>
it returns following
-rw-r--r-- 2 root root 37 Oct 27 09:20 /etc/resolv.conf

but there is nothing in the file and I am logged in at the moment

> Even if DNS is not configured, entering http://64.4.32.7/ into your
> browser on XP should get you to HotMail.

This does not work but then telnet has not worked yet

>
>>> There are ways to automate this (ie. setting up a dhcp server on the
>>> linux machine and having WinXP auto-magically get its IP address from
>>> it) BUT that is a job for the next step. :-)
>>>
>>> Good luck! :-)
>
>>will need some direction to continue - I have spent the day working on
>>samba, read a lot and found a guide that was supposed to get me up and
>>running with it. At one point the linux machine was seeing the HP(winxp )
>>machine but it would not open the directory and allow me to see anything
>>on the xp machine. But is was clearly trying. Since then I have lost that
>>capablility and I'm just getting very tired. If you think I need to back
>>up to telnet http than that is probably the way to go.
>
> As the previous poster stated, this may not work with WinXP Home, I've
> gotten it to work with Win95, Win98 2e, WinXP Pro and Win2K Pro (and
> Linux of course).

I guess I am rushing things here but it might be confusing some other
setting so I include this. I tried making a smb.conf file as follows. Then
restarted smb. Not sure it is correct though. I have the same used jsnew
on both machines and the directories are the same on both machines. I can
shut samba off if this is a potential conflict.

#Global Parameters

workgroup = Mshome
netbios name = Samba
encrypt passwords = yes

[homes]
read only = no
browseable = no

[music]
path= /data/mp3
browseable = yes
write list = jsnew, js, jstaff

[everyone]
path = /data/everyone
read only = no
browseable = yes

[apps]

path =/data/apps
browseable = yes
valid user = root, jsnew, jstaff, js
write list = root, jsnew, jstaff, js

I just hope that someday I can help someone as much as you guys are helping
me.



Relevant Pages

  • Computer Browser service causes VERY slow startup
    ... I have a small LAN with two XPSP2 boxes and a Linux box running Samba. ... Browser, the Winboxes see the Samba server, but not themselves. ... and IRC each other to hand out the name, ...
    (microsoft.public.windowsxp.general)
  • Re: Is remote shutdown possible?
    ... |They are connected, of course, and I can use telnet to connect to the linux ... Also, samba is installed. ... is there a way to "tell" the linux pc to ... man shutdown ...
    (alt.os.linux.suse)
  • Can only print from some windows machines
    ... I still have a problem with my samba printing mechanism. ... then the jobs are saved there as root. ... # Browser Control Options: ...
    (SunManagers)
  • Re: [ubuntu-users] Error NT_STATUS_CONNECTION_REFUSED
    ... Samba has a huge number of configurable options (perhaps too ... spot, readonly, readwrite, pcguest, guest ... # Browser Control Options: ...
    (Ubuntu)
  • Re: [opensuse] trying to figure out how to share a data drive
    ... information about your linux setup so I can make sure we are talking ... partition that windows can read in a dual-boot scenario, ... running samba on linux, then you can share disk space just as if the operating ... your user name is 'george' If it's not, ...
    (SuSE)

Loading