LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   network??? (https://www.linuxquestions.org/questions/linux-newbie-8/network-58547/)

annehoog 05-07-2003 06:27 AM

network???
 
Hi,

Pretty soon I'll be receiving a router with built in ADSL modem. I'm pretty sure that i'll be able to get adsl going with it but:
I also want to built a little network between my pc and my boyfriends laptop so he can simple plug in to it use the adsl and connect to my pc and vice versa.
I understand that this is possible via the router, but I'm absolutely clueless as to how to achieve it.
This internet part should be relatively easy (same way as I configure my own pc?), but how to make it so that as soon as the laptop is plugged in to the network we can browse each other's files and maybe even connect to each other desktop (via a sort of remote desktop tool?)

And would it be possible to build a kind of remote network between my pc and his at his home so that he could use his own pc in my house and vice versa (again via a sort of remote desktop tool?) We will then both have a adsl connection so it should be fast enough.

A colleague of mine uses mgetty to log in to his linux server so I know that's possible, but I would really like it with the desktop included.

Sorry if this is asking to much, I would really apreciate it if at least someone could put me on the right track.

Anne

Satriani 05-07-2003 07:07 AM

Hi Anne!

This shouldn't be too difficult....
Lets start with the 1st part:
Quote:

I also want to built a little network between my pc and my boyfriends laptop so he can simple plug in to it use the adsl and connect to my pc and vice versa.
I don't know which type of router / adsl modem your going to use, but since youre from NL (As I am) I presume you will use the draytek vigor? (AFAIK thats the only one with modem in it working with KPN-ADSL)

However, Regardless of your router type: This router will have a switch build in. So, lets take some steps: (If I'm being too simple, im sorry, i don't know the level where to start)

1: In the manual of your router is a default "IP-Address" of your router. Probable will be 192.168.0.1 (or something similar)
Please note the last digit. (1)

2: Configure your PC's to use the same subnet, so change its IP address to: (i.e.) 192.16.0.2 (please note, the last digit has changed, so this is a different IP in the same subnet)

3: Depending on your preferences, you might want to setup the router as a DHCP server: This will give the machines on your LAN an IP address on request.If you do this, remember to set your client PC to use DHCP.
3.a If you intend to use DHCP server, set the DNS servers to the DNS servers of your provider (or to their current settings).
3.b Set the default gateway to your router (192.168.0.1)
3.c Set the subnetmask to 255.255.255.0
3.d Set the clients to use dhcp.


4. Independing on your OS (linux vs M$) you should be able to see eachother: try ping 192.168.0.1 : you should get reply.
In M$ use the command-prompt and type ipconfig (w9x: winipcfg)
In linux type ifconfig
You should see an ip address.. If this is also in the 192.168.0.x range, you could think it went OK.. Try to ping your boyfriends machine by typeing: ping: 192.168.0.X Where X is the digit you saw on your boyfriends machine using ipconfig or ifconfig...

If this works, you should be fine. See if both your PCS can go to the internet (Should be).

Quote:

And would it be possible to build a kind of remote network between my pc and his at his home so that he could use his own pc in my house and vice versa (again via a sort of remote desktop tool?) We will then both have a adsl connection so it should be fast enough.
Depending on the configurations and the possibilities of your firewall, there souldn't be a problem. You could build a VPN between the two routers, and use that. you also might consider prot forwarding and IIP-packet filters... This is a step ahead maybe, but I need more info to know exactly what it is you want.


Good Luck

Satriani

annehoog 05-07-2003 07:25 AM

Quote:

Originally posted by Satriani
I don't know which type of router / adsl modem your going to use, but since youre from NL (As I am) I presume you will use the draytek vigor? (AFAIK thats the only one with modem in it working with KPN-ADSL)
I signed up with studentenadsl (studenten.net) and they had a e-tech 4-port router on offer which they claim to have tested thoroughly and they are even offering technical support for linux. So that should be good.
(They work with babyxl btw)

Quote:

3: Depending on your preferences, you might want to setup the router as a DHCP server: This will give the machines on your LAN an IP address on request.If you do this, remember to set your client PC to use DHCP.
I'll have to read up on this and decide on my preferences after that

Quote:

Try to ping your boyfriends machine by typeing: ping: 192.168.0.X Where X is the digit you saw on your boyfriends machine using ipconfig or ifconfig...
and then I can type that adres in a browser and I should be able to get in to his files? Or should I install something else for that?
Preferably I would like his pc to show up in mc or some oher file browser just like novel does at the office where I work.

Quote:

Depending on the configurations and the possibilities of your firewall, there souldn't be a problem. You could build a VPN between the two routers, and use that. you also might consider prot forwarding and IIP-packet filters... This is a step ahead maybe, but I need more info to know exactly what it is you want.

Am searching google for vpn right now ;)

Thanks for the response,

Anne

annehoog 05-07-2003 07:48 AM

OK,
So I'm a litte bit wiser now. I found out that I could either use (thight)vnc of putty with X11 forwarding to run programs from a remote pc... I'm a happy girl.

Anne

Satriani 05-07-2003 08:19 AM

Hi Anne,

Can you please help me out a bit: What kind of machines are we talking about? Both Linux, Or M$, what OS is on what machine ?

This info is needed to provide you the solution for sharing eachothers drives....

Satriani 05-07-2003 08:24 AM

And, for being able to answer you more precise: which option did you choose on studentenadsl? (Doe Het zelf-pakket 1,2,3 of 4 ?)

annehoog 05-07-2003 09:01 AM

I run a pc with Windows XP, RH 8.0, Debian and knoppix (I know a little overboard, but I'm still trying distro's out to see which I like best, RH will be Suse as soon as I get adsl btw),

My boyfriends laptop runs Debian (although he'll try to install knoppix on it via the network to be b/c it's cd-rom-less) and his home pc dual boots between Windows 98 and RH 8.0.

Networking between the windows os's is definately not a must though, those are mainly for gaming and banking.

I went for adsl option 1: Do it your self kit with e-tech 4-port router and adsl modem for normal phone line.

Anything I forgot to mention? :)

Anne

Satriani 05-07-2003 10:19 AM

OK: If you want the clientmachines to be able to talk to eachother (file sharing) trhough both linux and windows, you will need software to do so:
For windows-drive sharing SAMBA is your tool...
For Linux-drive-sharing you could use NFS. (Don't ask me too much about NFS, i'm still a newbie..... :-) )
To take over desktops from a windows machine, there are a few tools: I personally use xwin-pro (currently named WinaXe) and im quite happy with it. If you want to know how this works, you might want to take a look at my dutch site: linux.abdala.nl (This was a start to gather all info about my Linux experiences, but time, time time......)

For linux to linux desktops there's not very much needed: just export DISPLAY=your.IP; and run startx from a ssh-session....

Hopefully i was of any use to you.....

annehoog 05-08-2003 01:31 AM

You have certainly given me a good start on where to look to get started on all of it, Thanks!

I'll keep you updated as soon as adsl is working.

Anne

Satriani 05-09-2003 06:26 PM

Hi Anne,

Sorry, was away, but: good luck, and i would appriciate a follow-up when its working! Just to learn and so....


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