LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2011, 08:55 PM   #1
enero forte
LQ Newbie
 
Registered: Aug 2011
Posts: 13

Rep: Reputation: Disabled
Thumbs up how to connect 2 computers


hi
congratulates for the forum ! keep it up !

here is my call.
I have a computer (Linux) in the Bar-club which I and my friends are running as a Collective . I want to be able to connect the laptop at home with the computer at the Bar so I can play songs from its discs or do other home-works while Im working at the Bar-

so, Im begining this process of learning to create a wireless connection
join me and send me Ideas, Experiences and so on.


:-)
gnu antelope
 
Old 08-31-2011, 09:02 PM   #2
ramkatral
Member
 
Registered: Aug 2011
Location: Tryon, NC
Distribution: Slackware x64, Arch x64
Posts: 74

Rep: Reputation: 12
Well my first question is... Does the laptop also run a variant of linux or is it a Windows machine? And you're wanting to play stuff ON the Linux machine at the bar FROM the laptop at home, correct? Obviously that's not gonna be able to be a wireless connection unless you live right next door. I'm assuming the machine at the bar has an internet connection as well as your laptop?
 
Old 09-01-2011, 09:21 PM   #3
enero forte
LQ Newbie
 
Registered: Aug 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
sorry for the drop off
my friend has a son! At around 18:00 hrs MidEurpTime Today, Eduard came at this World in a Berlin fullest Hospital.

so.back to subject. My plan is read/download all around SSH from the page https://help.ubuntu.com/community/SSHHowto

and than hire share my experience and troubles.

thnx for your kindness of teaching newbees :-KKKK
 
Old 09-02-2011, 08:01 PM   #4
ramkatral
Member
 
Registered: Aug 2011
Location: Tryon, NC
Distribution: Slackware x64, Arch x64
Posts: 74

Rep: Reputation: 12
Sorry if I sound redundant, I'm just having a hard time understanding your English. Not meaning that offensively, it's just a little difficult. I can help you much better if you could answer the questions I posted. Believe it or not, it does make a big difference in how you answer them. And don't worry, everyone starts as a newbie. No one is ever a guru. That's why this forum is so phenomenal.

P.S. Congrats to the new father! I have two of my own. They are the greatest gift a man can ever be given, and I thank the woman who blessed me with them every day.

P.P.S. I just had an amusing thought. Why is it that people like myself who natively speak English and, according to my college English grades, have a near masterful grasp of it, always have difficulty understanding people who don't speak it so well? Is it the same in other languages? Sorta like... If I were to come to Europe and speak some busted French, would native French people be able to understand me clearly or would it be a struggle for them, too?

Last edited by ramkatral; 09-02-2011 at 08:05 PM.
 
Old 09-02-2011, 08:32 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,360
Blog Entries: 12

Rep: Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740
To make sure I understand, while at the Club, you want to be able to connect to the home computer.

The simplest way would be to ssh to the home ip address. For this to work properly, port forwarding must be set up in the home router to send calls to port 22 from the router to the laptop. If your home ip address is DHCP, which is what most ISPs use, a service such as no-ip.com or dyn.com could help. Both of them offer a no-charge option.

If you want to stream or ftp, you will need to implement a web or ftp server of some sort.

The help files at no-ip.com give very clear explanations of how to do this sort of stuff. I expect that the ones at Dyn (which used to be DynDNS) do also; I'm familiar with no-ip, because I quite happily used their services for over four years and had excellent service.

http://www.no-ip.com/support/

Edit: You would use ssh simply to connect and scp to transfer files. There are man pages for both.

Last edited by frankbell; 09-02-2011 at 09:00 PM.
 
Old 09-02-2011, 08:47 PM   #6
Hevithan
Member
 
Registered: Apr 2011
Location: Washington State
Distribution: Zorin5-(Ubuntu 11.04) // Backtrack 5-(Ubuntu 10.04) // Dreamlinux 3.5-(Debian)
Posts: 275
Blog Entries: 5

Rep: Reputation: 40
Just as a suggestion, Couldn't a remote desktop viewer be setup on the bar system based on the IP of the laptop? I have that setup with my girlfriends computer so I can help her out from else where, no pass or acceptence needed. It's not exactly a 'networking' thing, But it would make it able to access the songs and stuff. Just tossing it out there.



And as a side note to ramkatral, I think English is hard even for those of us here. Different dialects and slang terms make it hard for someone from the northwest to understand someone from the east coast or the south. I assume it is hard for them (and us) because in English you are taught to describe then define (such as blue dog -descriptive- -definitive-) whereas most other languages it is reverse (baton rouge (stick red) -stick being definitive and red descriptive). It's hard to learn to speak backwards haha
 
Old 09-02-2011, 09:10 PM   #7
ramkatral
Member
 
Registered: Aug 2011
Location: Tryon, NC
Distribution: Slackware x64, Arch x64
Posts: 74

Rep: Reputation: 12
Hey man, that makes sense. I've always wondered why English is considered one of the hardest languages in the world for non-native speakers to pick up. Especially when I look at something like Russian. Now that just looks difficult in every way. Of course, I'm sure a Russian doesn't view it as difficult at all. Anyway, I'll quit hijacking the thread.
 
Old 09-03-2011, 12:25 AM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
this actually sounds like a job for hamachi, assuming the machine at the bar(club) has an internet connection, and at home you have an internet connection, then you install hamachi on both machines to create a 'tunnel' between the two, then either use samba (if the laptop is windows) or NFS (or fuse sshfs) over the hamachi tunnel to mount the disks on your laptop and play the contents, that is if the disks are mp3s or other file based music, if they are audio cds however, you would use vlc to stream over the hamachi tunnel
hamachi can be found here
 
Old 09-05-2011, 06:09 PM   #9
enero forte
LQ Newbie
 
Registered: Aug 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
wow! you guys are great! so much options ! so much ideas!

Thank you Ramkatral! Yes both machines (machine is a BIG word for this junk but anyway...) are running Linux . The laptop at home has also windows- I can switch at the beginning between the two.
Hire we usually use rooters that comes with the telphn and so on. At home I have FRITZ.BOX and at the bar is 1&1 Different companies -same idea. Wireless WPA secured connection.

about the language. I will (try to) cut off the slang crap and I will try to express in the best engl I could.
by the way I speak also German,Spanish,Russian,Bulgarian ...and bad engl:-)
the thing is that in Grman we have COMPLETLY another structure of sentence.
so I may be sound unlogical to very often:-/

so.
what I did was trying the classic way.
first as I was in the pub I downloaded server AND client:

sudo apt-get install openssh-client openssh-server

than I did a few changes to the sshd_config file (yes I did a factory_default copy)

after this All ready at home I did the same thing. I also got the IP adreses from

ifconfig


as I was suspecting - it was not enough... All Im getting when I do

ssh usernameBARcomputer@192.168.x.xx

is:
ssh: connect to host xxx.xxx.xx.xx port 22: [B]Connection timed out[/B]

I need some answers about:

1.what IS forwarding of port? how we do it? (command line if possible!)
frankbell suggested this kindly but I dont know HOW TO


2. HOW TO check up if the SSH is working properly on the machine Im working with.

3. AN ESSENCIALL QUESTION!!! When i do operation in terminal, in root, HOW TO SAVE and FINISH THE OPERATION and come to a start position:

root@ubuntu:~#


I have tried to write END and push entr
to write EXIT and entr
to hit togather ctrl+D

does not work! And GENERALY : can you show me a good tutorial where I CAN EXERCISE ALSO my terminal command typeing ???

Are you all guys/girls from over the Ocean!?right now you probably get your first cofee...while Im hire take my last drops of beer and go dizzzzzzing

keep in touch
 
Old 09-05-2011, 07:01 PM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Well, I'm on the opposite side of the world to you now (assume you are in Germany/Austria; you could add that to your profile), but I used to live in London and went to Germany to see the NFL (Düsseldorf, Frankfurt) several times.
Good party...


Anyway, here are some good cmd line tutorials
http://rute.2038bug.com/index.html.gz
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/

It would help if we knew exactly which distro you have a both ends; post the results of these cmds
Code:
uname -a

cat /etc/*release*
for both systems.

As for qn 3; at the cmd line, the operation/cmd is done/complete when the prompt "root@ubuntu:~#" re-appears with nothing next to it.

There are lots of good guides here http://www.linuxtopia.org/online_boo...ion_index.html

HTH

Welcome to LQ; you'll enjoy it here
 
Old 09-05-2011, 08:18 PM   #11
ramkatral
Member
 
Registered: Aug 2011
Location: Tryon, NC
Distribution: Slackware x64, Arch x64
Posts: 74

Rep: Reputation: 12
Well.... when you attempt to ssh to the IP address, you're actually trying to connect to the router. The router is what carries the IP from the provider. All the machines connected under the router use what's called NAT addresses (Locally assigned local network only addresses). Port forwarding is basically this: Let's say you wanna connect to a server that is under a router at port 80. When you input the IP address for that system on the remote computer it connects to the router on port 80. The router is set up to forward all incoming traffic on port 80 to the NAT of the server. So you need to set your router to forward the SSH request to the server. Otherwise it doesn't know what to do with the incoming connection. What router are you using? It should be easy to find a manual for it online.

Basically, without setting the router to forward that port, you are completely unable to reach any system on the local network under that router. With the proper forwarding set up... the router basically does what its name says... It routes inbound/outbound traffic on the network to where it's needed.

And BTW, the foreign language I've taken in college is German, so... Ich spreche Deutsch.

And about the DHCP frankbell is talking about... Generally most ISPs use dynamic IP assignment, which means everytime you connect to the provider you receive a new IP from a pool of available addresses. The sites he listed use what's called DNS name servers that give you a static hostname (IE: Mybutt.dyndns.com) and allow you to update the nameserver with your new IP address. So basically when you wanna connect to your server you just connect to mybutt.dyndns.com and the nameserver forwards the request to your actual IP address.

Last edited by ramkatral; 09-05-2011 at 08:29 PM.
 
Old 09-06-2011, 11:29 AM   #12
enero forte
LQ Newbie
 
Registered: Aug 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"


this is the PC at the bar

i guess the one I have at home is with the same construction. I will post it later.

chrism01: As for qn 3; at the cmd line, the operation/cmd is done/complete when the prompt "root@ubuntu:~#" re-appears with nothing next to it.
this I know . but I dont know how to End (and shure it is saved!)


ramkatral, I think you got exactly where the problem is.
first i have to work
than i have time to read... I hope!
thanks all of you for teaching me!!!!!!
 
Old 09-06-2011, 03:41 PM   #13
ramkatral
Member
 
Registered: Aug 2011
Location: Tryon, NC
Distribution: Slackware x64, Arch x64
Posts: 74

Rep: Reputation: 12
Quote:
Originally Posted by enero forte View Post
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"


this is the PC at the bar

i guess the one I have at home is with the same construction. I will post it later.

chrism01: As for qn 3; at the cmd line, the operation/cmd is done/complete when the prompt "root@ubuntu:~#" re-appears with nothing next to it.
this I know . but I dont know how to End (and shure it is saved!)


ramkatral, I think you got exactly where the problem is.
first i have to work
than i have time to read... I hope!
thanks all of you for teaching me!!!!!!
If you can tell me the brand and model of your router I can probably help you with exactly how to configure it to forwards the correct ports to the proper machine. Once that's done, it's a very simple matter to make the connection between two linux systems.
 
Old 09-06-2011, 04:17 PM   #14
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
my suggestion would be to use sshfs to connect to your home laptop (which communicates over ssh). then use xbmc-live on the bar-pc.


also, not really sure what fritz-box is:
http://www.google.com/search?q=FRITZ...ient=firefox-a

is there a way to log into it. maybe from your home laptop you can type in this address in firefox: 192.168.1.1 (or 192.168.0.1) and set it up.
else you can try calling your isp and asking how to do it but maybe they make it impossible so you would have to pay more for their hosting (if thats the case you would be better off buying an actual router like netgear, linksys...)?

Last edited by schneidz; 09-06-2011 at 04:30 PM.
 
Old 09-06-2011, 06:58 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
When the prompt re-appears it IS done, There is no more to be done. No 'END' to do, no 'SAVE' to be done.
If no error occurred its fine.
If you want, you can check the '$?' aka exit status value immediately after the cmd; should be zero for ok cmd eg
Code:
prompt: some-cmd
prompt: echo $?
prompt: 0
all good
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
We have moved computers and now I can’t connect. m_s_weir Linux - Wireless Networking 2 02-14-2011 09:21 AM
Two computers need to connect to the net through a third one. dalek Linux - Networking 4 10-01-2005 02:16 AM
Other computers cant connect to me? empiiricus Linux - Networking 1 05-17-2004 10:31 AM
My computers cannot connect to each other using samba ! Help! ZhiYi Linux - Networking 7 02-12-2003 08:08 AM
Trying to connect to other computers on the network hextex Linux - Networking 1 05-04-2001 09:13 PM


All times are GMT -5. The time now is 09:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration