Wednesday, October 26, 2011

Ubuntu Remote Desktop

# Let's say you have installed xrdp (in Terminal: sudo apt-get install xrdp) and you have used RDP remote desktop quite a while to connect Windows to Ubuntu or one Ubuntu to another Ubuntu, then you might bump to a problem when you want to install or do some system settings. For example when you want to use synaptic package manager to install something. You will get an error or warning like:
"Failed to run /usr/sbin/synaptic as user root
Unable to copy the users Xauthorization file."
To solve this problem, firstly connect to your Ubuntu using the Remote Desktop Connection (in Windows: Start -> Run -> mstsc (Enter) in order to access the Remote Desktop Application; in Ubuntu: Applications -> Internet -> Terminal Server Client). After you have logged into your Ubuntu, then bring up your Terminal (Ctrl+Alt+T) and type the following instructions:
cd ~
touch ~/.Xauthority
chmod 600 ~/.Xauthority



# When you use one Ubuntu to "remote desktop" to another Ubuntu, there's something that might bother you. In Ubuntu's remote desktop application, there's no auto hide button or menu like Windows Remote Desktop Application that can let you minimize or close the connection. In other words, after you log in to your Ubuntu using full-display, you can only see the remote desktop. But the problem is that you might want to change the full screen mode to a window mode so that you can switch to other window without disconnecting the remote connection.

Here's how to do it, after you have log in to your Ubuntu using the remote desktop application, press Ctrl+Alt+Enter and congratulation you have change the full screen mode to window mode.

No comments:

Post a Comment