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 04-25-2010, 05:39 PM   #1
mrgreaper
Member
 
Registered: May 2006
Posts: 167

Rep: Reputation: 15
control my ubuntu pc from my ubuntu netbook using only terminal instead of vnc


ok my ubuntu server sits in my kitchen and is a headless box, though it uses ubuntu desktop not server

my netbook is a samsung n110 running ubuntu remix (love that os)

now vnc can be slow and awkward (specialy when using a internet dongle) and 90% of what i do is done in terminal so i wondered is it possible to somehow log a terminal season on my netbook into my server pc and use it as though i was using the terminal on my server pc

the things i vnc into it for

burning discs (i use grow something... forget the name but its all terminal based)
editing config files (normaly sudo gedit /home/me/.aplication name/config.cfg ) this triggers gedit so not sure if that would work as the cfg would have to be sent to my netbook to be opened in gedit of my netbook then sent across to my server pc
installing stuff to mess about with (normaly sudo apt-get install app name

so is it doable?...by a ubuntu newb?
 
Old 04-25-2010, 05:44 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
You would use a utility called ssh. To enable it on your server (the box you remote into) just install openssh-server (I may not have the package name right) and start the service. Then on your client just type ssh or ssh -X to remote into the server and use your applications.

Regards,

Alunduil
 
Old 04-25-2010, 05:47 PM   #3
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Check for ssh and what comes with it. The client is installed, you need to install the server (sudo apt-get install openssh, if i recall correct).
To move stuff around you might use rsync ( -e ssh ...) instead of scp. I for one would edit the cfg-files with nano, vim or another cli-editor (to avoid moving them around), but that is up to you.
You could also use ssh with the -X option and open gedit on your netbook.

It's rather easy (both: setting it up and using it).

ups: I missed the previous post. Sorry.

PS: You might also consider replacing VNC by No mashine/NX (for me its way "faster" than VNC)
http://www.nomachine.com/

Last edited by j1alu; 04-25-2010 at 05:55 PM.
 
Old 04-25-2010, 06:14 PM   #4
mrgreaper
Member
 
Registered: May 2006
Posts: 167

Original Poster
Rep: Reputation: 15
i ran sudo apt-get openssh-server on my machine (while using vnc)

i then ran ssh -x and got the help info on my netbook

so i tried ssh -x my-servers-ip and it just sat there and waited
i tired ssh -x fakeip and it errored

im guessing (hoping infact) i just need to pass on my user and password details, i tried adding -l myusername at the end again it just sat thier doing naught lol

im about to do a massive google hunt wish me luck
 
Old 04-25-2010, 06:17 PM   #5
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
It's a capital X not a lowercase x for the option.

Regards,

Alunduil
 
Old 04-25-2010, 06:26 PM   #6
mrgreaper
Member
 
Registered: May 2006
Posts: 167

Original Poster
Rep: Reputation: 15
tried lower and upper

also looked up the manual page and tried,

ssh hostip -X -f -l username

the -f was recommanded in the maual incase it was asking for a password

and it errored
Cannot fork into background without a command to execute.

i added XTERM to the end
and it froze up again


i am still reading through the manaul but it is rather heavy reading and damn confusing lol
 
Old 04-25-2010, 06:29 PM   #7
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
What is the output of nmap -p 22 <host_ip>?

Regards,

Alunduil
 
Old 04-25-2010, 06:46 PM   #8
mrgreaper
Member
 
Registered: May 2006
Posts: 167

Original Poster
Rep: Reputation: 15
i figured it out...man im embarrassed, i forgot to port fwd port 22

its working now ... oops lol

thanks guys!
 
Old 04-25-2010, 06:47 PM   #9
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Glad to hear you got it figured out.

Regards,

Alunduil
 
Old 04-25-2010, 07:20 PM   #10
mrgreaper
Member
 
Registered: May 2006
Posts: 167

Original Poster
Rep: Reputation: 15
am i right in thinking that if i lose connection or if close the terminal while burning the burning fails?
 
Old 04-25-2010, 07:21 PM   #11
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
It kills the process so probably, yes. If you need to background a process and then "hangup" prefix your command with SIGHUP and it should stay alive when you disconnect.

Regards,

Alunduil
 
Old 04-25-2010, 07:45 PM   #12
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
Rather than VNC I just use XDMCP enabled on the machine I intend to log into. The GDM chooser in Ubuntu has an option for remote session, or you can do it from the a virtual terminal with something like
Code:
X :1 -query NAMEOFREMOTEBOX
. The nice thing about the manual way, is that then you can ctrl+alt+fN between the local and remote X sessions.

SSH as mentioned above is the way to do it for strictly terminal work.
 
Old 04-25-2010, 11:15 PM   #13
oopsCarol
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
you can try to check ssh and what comes with it. hope this help
 
  


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
Ubuntu VNC server BUG. I can connect but can't control my desktop. ytd Linux - General 11 06-16-2011 08:30 PM
LXer: Moblin V2 vs. Ubuntu Netbook Remix vs. Ubuntu MID LXer Syndicated Linux News 0 03-30-2009 10:30 AM
Problems installing the Ubuntu Netbook Remix package over Ubuntu 8.10 unluckystuntman Linux - Newbie 3 12-30-2008 01:19 AM
LXer: Ubuntu Netbook vs. Ubuntu Mobile Internet Devices: What's the Difference? LXer Syndicated Linux News 0 07-23-2008 09:30 PM
control backslash in gnome-terminal using vnc tibbitts Linux - Software 0 04-09-2008 05:34 PM


All times are GMT -5. The time now is 02:47 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