Author Topic: (SOLVED)things that you forget: configure two pc network with a cross-over cable  (Read 1605 times)

Offline T6

  • Super Villain
  • ******
  • Posts: 19051
  • xmas is comming!
form the many things i forgot this one is annoying

how do i create a small network on pclinux between two pcs connected with a patch cord ethernet cable?

i was trying to do it using samba shares but on kde4 the menu is greyed out in kde control center so shared folders can't be sen form the other pc, could someone list the steps to do it?  thank you
« Last Edit: November 15, 2010, 05:49:12 PM by T6 »
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline jaydot

  • Administrator
  • Super Villain
  • *****
  • Posts: 15573
  • there is no limitation on imagination
Re: things that you forget
« Reply #1 on: October 03, 2010, 11:42:48 AM »
for a direct connexion, you need a crossover cable.  do you have such an item?
PCLinuxOS  Get it?  Got it?  Good!!   8)

We don't have any millionare angels or corporate backers paying the bills here, PLEASE DONATE.
http://pclinuxos.com/?page_id=7

Offline T6

  • Super Villain
  • ******
  • Posts: 19051
  • xmas is comming!
Re: things that you forget
« Reply #2 on: October 03, 2010, 11:47:04 AM »
yes, that would be the cross patch ethernet cable i mentioned(or maybe i didn't expressed it properly), the one i use when i do it in windows
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Re: things that you forget
« Reply #3 on: October 03, 2010, 08:39:01 PM »
T6
I am guessing a bit but if you allocate a fixed IP to each pc and plug in the cable tcp/ip should work.

From konsole ifconfig eth0 add 10.0.0.1 or similar per pc

Only meant to stir your memory, I have never tried it.

Is there not something about newer equipment does not even need to have a crossover cable?

I was just trying out  GNOME live CD on my Acer lappy when I came across your message
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline T6

  • Super Villain
  • ******
  • Posts: 19051
  • xmas is comming!
Re: things that you forget
« Reply #4 on: October 03, 2010, 08:46:37 PM »
thank you, will try that tomorrow, i do that in xp and it works almost instantly but both machines are in the same workgroup

what i remember i did in the past was create shares and also create a workgroup for samba when i had a mixed network with xp and pclinux that worked very well, now i can't remember how to work this way

"Is there not something about newer equipment does not even need to have a crossover cable?"

i remember the same but since i use old hardware and new hardware mixed all the time i use older and proved configuration
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Re: things that you forget
« Reply #5 on: October 03, 2010, 09:01:28 PM »
T6
I know the feeling, knowing you used to know how to do it etc ;D 
Actually having Gnome lappy going and this one, I will see if I can find my crossover and try it. Good to refresh my memory where I have my crossover cable anyway.
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline T6

  • Super Villain
  • ******
  • Posts: 19051
  • xmas is comming!
Re: things that you forget
« Reply #6 on: November 14, 2010, 08:24:02 PM »
ok, yesterday i tried to create the connection between tow windows machines and could do it without much effort

then tried to do it with one pc running pclinux fully updated and the other running livecd, configured both cards using the kde tool(i didn't had internet acces at that time so forgot part of the command), set static ip, netmask and gave a name to each machine, it tried to connect but failed

i really need this
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: things that you forget
« Reply #7 on: November 14, 2010, 09:01:35 PM »
try to do one thing at a time, sort the networking part first and then try to deal with the sharing part

You have two computers,

1. connect the computers through the cable,

2. give each computer a static ip address, give one 192.168.10.10 netmask 255.255.255.0 and the other 192.168.10.20 with the same netmask. YOu may need to set up a "point-to-point" connection btw the two addresses using "ifconfig"

3. ping one computer's ip address from the other to make sure they can see each other(make sure firewall is off on both). If you are on a computer with ip address 192.168.10.20, type "ping 192.168.10" and see if it will respond. You might need to add an entry to each system routing table for each to be aware of the other computer. Type "route -n" on the terminal to see the current routing table, you will use the same command with different options if you have to set a new routing entry

4. Samba shares do not care how computers see each other on the network, it only cares that they see each other. Try to sort out samba shares when you are sure both computers can ping each other. You have lump up two problems together and it is kind of hard to know where the fault it. Tying to solve both at the same time may lead to unnecessary confusion.




« Last Edit: November 14, 2010, 09:21:12 PM by muungwana »
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline T6

  • Super Villain
  • ******
  • Posts: 19051
  • xmas is comming!
Re: things that you forget
« Reply #8 on: November 14, 2010, 10:15:37 PM »
thanks for your answer, i did that but not using ifconfig, will try that tomorrow

i haven't tried to share anything yet, just create the direct connection

do you recommend to use samba?

this is what i did some years ago when i had a mixed network sharing resources, right now there is only internet for 3 machines without any other resource shared and i want to use linux in both machines to share some files directly, a learning process and a task i want to do
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline T6

  • Super Villain
  • ******
  • Posts: 19051
  • xmas is comming!
Re: things that you forget
« Reply #9 on: November 15, 2010, 09:17:43 AM »
just tried it but couldn't make it recognize a network

system can do ping to each other by setting a ip 192.168.1.2 on one and 192.168.1.3 in the other and netmask 255.255.255.0 on both

i created a name for each machine on that menu and created some samba shares in pcc

also tried to use ifconfig but couldn't understand how to tell it the device, ip and the pointopoint command, the --help didn't helped me much  :(

system couldn't see a samba share or the other machine on the network

i created a samba share because the files i want to copy are stored on a ntfs partition and i tried to work this way because it is the way i did it in the past

i also created a workgroup for both machines but nothing helped, in the end, i had to delete the ethernet adapter form the netbook and recreate it so i could connect and write this reply  :(

"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: things that you forget
« Reply #10 on: November 15, 2010, 09:29:11 AM »

Do you have samba-server installed and is it running?

You are getting ping replies from another computer, you should atleast be able to see the other computer name on samba share list.

Open pcc, go to services section and make sure smb service is running on the server before trying to access its shares on a client computer.

Use smb4k to see network shares, it works reliably.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline T6

  • Super Villain
  • ******
  • Posts: 19051
  • xmas is comming!
Re: things that you forget
« Reply #11 on: November 15, 2010, 09:51:46 AM »
i'm not sure if i have smb4k or samba-server in the livecd and i need it to be fast and simple to set

"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: things that you forget
« Reply #12 on: November 15, 2010, 11:19:31 AM »

samba-server need to be installed and running before a computer can expose its shares over the network using smb protocol.This is the first thing to check before setting up shares.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline T6

  • Super Villain
  • ******
  • Posts: 19051
  • xmas is comming!
Re: things that you forget
« Reply #13 on: November 15, 2010, 12:58:31 PM »
and i don't know if it is available in the livecd, probably not and if that is the case, this is as far i can go  :(
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: things that you forget
« Reply #14 on: November 15, 2010, 01:17:17 PM »
Are you doing this as a proof of concept or? Why doing it on a live cd?

samba-server is probably not included on a live cd

you can always go to the repository through a web browser, download samba-server rpm and install it manually on a live-cd using rpm. Tracking the package dependencies maybe problematic and annoying but its doable as i dont think the package has many if any dependencies.

.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..