Jump to content

Simple 2 pc "linux network"


LI-6YLUCY
 Share

Recommended Posts

Hello every BDY,

i was just wondering on how to connect 2pc "linux" with only cross wire and 2 NIC

without iptables and these hard stuff cause i am still a NOOBY and how to configure it through console no GUI :deal: and how to transfer data between them ;)

ThnX AloT.

Link to comment
Share on other sites

iptables is used for advanced fire-walling etc.

 

All you need to do is give each machine an ip address (192.168.0.*) in the same range and off you go!

 

What do you want to do? Share files? Share printers? It all depends...

Link to comment
Share on other sites

Cool, just us the Mandrake Control Centre to give each machine an IP adress in the same range.

 

For simple file-transfers I recommend setting up SSH and then using the scp command to copy files over the SSH port...

 

Setting up SSH in Mandrake is easy, so you shouldn't have any problems...

 

# urpmi open-ssh

Link to comment
Share on other sites

Not that simple - because in Mandrake, installing ssh will set things up for you, in Gentoo (for example) you will have to create your own ssh keys and start the sshd server.

 

Now, it will all be much easier if you do some reading and learning on your own. I am only going to point you in the right direction and help if you get stuck.

 

The scp command in universal:

$ scp -options file/directory user@host:/target

Link to comment
Share on other sites

Hi there,

 

In the pc you do:

open a console

 

(as root = #)

 

# ifconfig eth0 192.168.0.1

 

In the laptop:

open a console

(as root = #)

 

# ifconfig eth0 192.168.0.2

 

then try to ping each one using the ping command like this:

 

from pc:

 

# ping 192.168.0.2

 

you should see something like:

 

64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=1.94 ms

untill you force the ping stop using <Ctrl> + <c>

 

from laptop try the same but using this time the pc ip address:

 

# ping 192.168.0.1

 

you should see something like:

 

64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=1.94 ms

untill you force the ping stop using <Ctrl> + <c>

--------------------------------------------------------------------------------------

 

For sharing files using the console you can use sftp, you should have the ftp server enable.

 

try man sftp or by searchig on google for "ftp linux" and you get all you need.

 

---------------------------------------------------------------------------------------

 

I'm a portuguese linux user/administrator so don't look at my bad english ok.

jcmail@iol.pt

Link to comment
Share on other sites

how about setting this scenario up when both machines connect through the same router. For example, my desktop (wired) and laptop (wireless) share the same linksys router which is connected to my dsl modem.

 

If both machines are on, how can I pass stuff between them, no server involved. Is this possible? Doesnt sound like a SAMBA situation to me.

 

Thanks,

RF

Link to comment
Share on other sites

Hi there,

 

In the pc you do:

open a console

 

(as root = #)

 

# ifconfig eth0 192.168.0.1

 

In the laptop:

open a console

(as root = #)

 

# ifconfig eth0 192.168.0.2

 

then try to ping each one using the ping command like this:

 

from pc:

 

# ping 192.168.0.2

 

you should see something like:

 

64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=1.94 ms

untill you force the ping stop using <Ctrl> + <c>

 

from laptop try the same but using this time the pc ip address:

 

# ping 192.168.0.1

 

you should see something like:

 

64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=1.94 ms

untill you force the ping stop using <Ctrl> + <c>

--------------------------------------------------------------------------------------

 

For sharing files using the console you can use sftp, you should have the ftp server enable.

 

try man sftp or by searchig on google for "ftp linux" and you get all you need.

 

---------------------------------------------------------------------------------------

 

I'm a portuguese linux user/administrator so don't look at my bad english ok.

jcmail@iol.pt

uh... I wouldn't recommend using ifconfig in Mandrake... in fact I'm not even sure that Mandrake has it.

 

Use the Mandrake Control Centre to setup your network - much simpler and safer for n00bs.

 

Also, scp is a much easier way to transfer files in this situation than going to the trouble of setting up an ftp server.

Link to comment
Share on other sites

how about setting this scenario up when both machines connect through the same router. For example, my desktop (wired) and laptop (wireless) share the same linksys router which is connected to my dsl modem.

 

If both machines are on, how can I pass stuff between them, no server involved. Is this possible? Doesnt sound like a SAMBA situation to me.

 

Thanks,

RF

Samba is for sharing files, etc. with WINDOWS machines. Only use it if you have a network with 'doze machines on it.

 

For simple file transfers USE SCP.

 

It is basically cp (the copy command) for network connections.

 

read.

Link to comment
Share on other sites

Hi there,

 

In the pc you do:

open a console

 

(as root = #)

 

# ifconfig eth0 192.168.0.1

 

In the laptop:

open a console

(as root = #)

 

# ifconfig eth0 192.168.0.2

 

then try to ping each one using the ping command like this:

 

from pc:

 

# ping 192.168.0.2

 

you should see something like:

 

64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=1.94 ms

untill you force the ping stop using <Ctrl> + <c>

 

from laptop try the same but using this time the pc ip address:

 

# ping 192.168.0.1

 

you should see something like:

 

64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=1.94 ms

untill you force the ping stop using <Ctrl> + <c>

--------------------------------------------------------------------------------------

 

For sharing files using the console you can use sftp, you should have the ftp server enable.

 

try man sftp or by searchig on google for "ftp linux" and you get all you need.

 

---------------------------------------------------------------------------------------

 

I'm a portuguese linux user/administrator so don't look at my bad english ok.

jcmail@iol.pt

uh... I wouldn't recommend using ifconfig in Mandrake... in fact I'm not even sure that Mandrake has it.

 

Use the Mandrake Control Centre to setup your network - much simpler and safer for n00bs.

 

Also, scp is a much easier way to transfer files in this situation than going to the trouble of setting up an ftp server.

Actually soulse, its the opposite - MCC's network wizard is a frontend to ifconfig

 

In this case, ifconfig is a good idea as it will do a great impromptu network without having to reconfigure the system

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...