LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   To access remote machine as if using local machine. (https://www.linuxquestions.org/questions/linux-software-2/to-access-remote-machine-as-if-using-local-machine-4175475401/)

ravisingh1 08-31-2013 10:35 AM

To access remote machine as if using local machine.
 
I recently purchased a server of mine (VPS).
I log in via ssh and so enter into the terminal of my
remote server which is Centos 5
Now please assist me to say how I can access it as
if I am assessing my local machine.
By this I mean, I should see the complete desktop.
Then i can open terminal, browser,etc. just like my personal computer here locally.
(Just for info, mentioning that my local machine OS is ubuntu13.04)

rhbegin 08-31-2013 11:09 AM

I would think you could use tigervnc but configure it to use tunneling over ssh.

ravisingh1 08-31-2013 01:14 PM

I googled and found that tightVNC mentions that it is good for low speed internet and tigerVNC mentions that it is focused on performance and remote display functionality.
My internet speed is too slow (18kbps while downloading). So, which one is better tightVNC or tigerVNC?

TB0ne 08-31-2013 02:42 PM

Quote:

Originally Posted by ravisingh1 (Post 5019473)
I googled and found that tightVNC mentions that it is good for low speed internet and tigerVNC mentions that it is focused on performance and remote display functionality.
My internet speed is too slow (18kbps while downloading). So, which one is better tightVNC or tigerVNC?

Since you know which one is better over a slow link, which is better over a faster link, and know your connection speed, should you be able to figure this out for yourself??.

Slow link = tightVNC, as documentation says. Also, since you've said you have years of experience in unix, you should also already know that VNC and remote-desktop apps are insecure, slow, and unnecessary, and that ALL of your administration can be done over SSH. GUI programs can be run using SSH forward.

lleb 08-31-2013 05:49 PM

Quote:

Originally Posted by ravisingh1 (Post 5019399)
I recently purchased a server of mine (VPS).
I log in via ssh and so enter into the terminal of my
remote server which is Centos 5
Now please assist me to say how I can access it as
if I am assessing my local machine.
By this I mean, I should see the complete desktop.
Then i can open terminal, browser,etc. just like my personal computer here locally.
(Just for info, mentioning that my local machine OS is ubuntu13.04)

question #1 to ask, the VPS you are renting does it have the GUI installed? If not then you will not see anything remotely like you see in Ubuntu. its that simple.

as you should have root access you can yum install gdm and gnome shell (do some google searching as ive never bothered with a GUI for my centos servers)

Once you have it up and running you can either, as mentioned above, run some form of VNC or rdesktop, as that is built into the GUI in most cases, or just use ssh -Y or -X to access the specific local application. ie: firefox or thunderbird, or gedit, etc...

lleb 08-31-2013 05:51 PM

Quote:

Originally Posted by ravisingh1 (Post 5019473)
I googled and found that tightVNC mentions that it is good for low speed internet and tigerVNC mentions that it is focused on performance and remote display functionality.
My internet speed is too slow (18kbps while downloading). So, which one is better tightVNC or tigerVNC?

with that slow of a connection, neither will work well. you will be better off running raw ssh -X or ssh -Y on the single application you need access to. see my post above and tbones.

haertig 08-31-2013 10:34 PM

I doubt you'll find anything that will give you a useable remote GUI desktop with that slow of a connection. I have never found VNC (any flavor of VNC) to be fast. NX is significantly faster, and more secure. But still, that connection speed is not good for this type of stuff.

ravisingh1 09-01-2013 09:34 AM

Quote:

Originally Posted by lleb (Post 5019549)
question #1 to ask, the VPS you are renting does it have the GUI installed? If not then you will not see anything remotely like you see in Ubuntu. its that simple.

as you should have root access you can yum install gdm and gnome shell (do some google searching as ive never bothered with a GUI for my centos servers)

Once you have it up and running you can either, as mentioned above, run some form of VNC or rdesktop, as that is built into the GUI in most cases, or just use ssh -Y or -X to access the specific local application. ie: firefox or thunderbird, or gedit, etc...

Yes you pointed out the right thing.
It seems the below error is because GUI isn't installed.
I installed gparted and then ran only to get the below message.

Code:

ravbholua@ravi:~$ type gparted
gparted is /usr/sbin/gparted
ravbholua@ravi:~$ sudo gparted

(process:2249): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

(gpartedbin:2249): Gtk-WARNING **: cannot open display:
ravbholua@ravi:~$


TB0ne 09-01-2013 09:51 AM

Quote:

Originally Posted by ravisingh1 (Post 5019770)
Yes you pointed out the right thing. It seems the below error is because GUI isn't installed. I installed gparted and then ran only to get the below message.

Code:

ravbholua@ravi:~$ type gparted
gparted is /usr/sbin/gparted
ravbholua@ravi:~$ sudo gparted

(process:2249): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

(gpartedbin:2249): Gtk-WARNING **: cannot open display:
ravbholua@ravi:~$


You got it, because you haven't set up your X environment yet. Going back to what I posted before about using X over SSH, you have to set up the DISPLAY variable, and also configure ssh to ALLOW X to run over it, as well as using the "-x" parameter when you make your connection. Did you do any of that?

ravisingh1 09-01-2013 09:59 AM

Quote:

Originally Posted by TB0ne (Post 5019775)
You got it, because you haven't set up your X environment yet. Going back to what I posted before about using X over SSH, you have to set up the DISPLAY variable, and also configure ssh to ALLOW X to run over it, as well as using the "-x" parameter when you make your connection. Did you do any of that?

Thanks TBOne for the method to resolve the issue.
No, I haven't done any of that.
I need to google and understand how to proceed.
Any further assistance in this regard w'd be appreciated.

ravisingh1 09-01-2013 10:04 AM

Quote:

Originally Posted by TB0ne (Post 5019502)
ALL of your administration can be done over SSH. GUI programs can be run using SSH forward.

Pleased to read this.

ravisingh1 09-01-2013 10:09 AM

Quote:

Originally Posted by ravisingh1 (Post 5019399)
I recently purchased a server of mine (VPS).
I log in via ssh and so enter into the terminal of my
remote server which is Centos 5
Now please assist me to say how I can access it as
if I am assessing my local machine.

I w'd like to update that I have changed my Operating System from Centos 5 to Ubuntu13.04 in server (VPS).So, I have the same OS locally and in VPS.

lleb 09-01-2013 10:12 AM

then you need to talk with your VPS provider. this is something they should handle for you as they will have the tools to manage the VM that you will not.


All times are GMT -5. The time now is 08:42 PM.