using graphical software on Ubuntu as root after you’ve logged in remotely

Ubuntu

Sometimes I find myself in the situation of having to lauch some graphical software like synaptic, gedit, baobab while already using the server as root from the command line. I do not want to ‘exit’ my session and use the previous methods of which I’ve written in the past.

This is how I did it.

koolinus@localhost:~$ ssh -Y koolinus@remote.server.it
koolinus@remote:~$ sudo -i
root@remote:~# touch .Xauthority
root@remote:~# xauth merge /home/koolinus/.Xauthority 

And that’s all. Now I can launch the needed program without interrupting my root session, for example:

root@remote:~# baobab &

One thought on “using graphical software on Ubuntu as root after you’ve logged in remotely

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s