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 firstname.lastname@example.org
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 &
Bad Poster Bingo
A “game” to play at your next scientific (or schoolar) conference. If you win ALL the times then point your browser to Better Posters to get some insightful tips & tricks on the art of visual communication…
Recently we’ve decided to move all our CentOS 5 server installations to a more modern, and bioinformatics friendly, environment. So the choose was on Ubuntu, in it’s 12.04 LTS version.
Some commands are different, especially those for exploring packages, their releases and such.
For example to see what packages install $something now I do a:
sudo apt-file search $package
while to see a package’s details, for example nano, I give a:
sudo apt-cache show nano
Maintainer: Ubuntu Developers
Original-Maintainer: Jordi Mallach
Depends: libc6 (>= 2.11), libncursesw5 (>= 5.7+20100313), dpkg (>= 1.15.4) | install-info
Breaks: alpine-pico (<= 2.00+dfsg-5)
Description-en: small, friendly text editor inspired by Pico
GNU nano is an easy-to-use text editor originally designed as a replacement
for Pico, the ncurses-based editor from the non-free mailer package Pine
(itself now available under the Apache License as Alpine).
However, nano also implements many features missing in pico, including:
- feature toggles;
- interactive search and replace (with regular expression support);
- go to line (and column) command;
- auto-indentation and color syntax-highlighting;
- filename tab-completion and support for multiple buffers;
- full internationalization support.
Task: standard, kubuntu-active
That’s all (for now).
(BIG) thanks to my fine pal @tannoiser for pointing that to me!