X2Go “stdin: is not a tty” error on login

Apparently from time to time the contents of /root/.profile are for some reason changed within the Ubuntu 16.04 installation. The default looks like this: # ~/.profile: executed by Bourne-compatible login shells. if [ "$BASH" ]; then if [ -f ~/.bashrc ]; then . ~/.bashrc fi fi mesg n Which doesn't work well together with X2Go interface. Basically you need to amend the last line "mesg n" with following: tty -s && mesg n Reboot the machine and profit 🙂 Read more [...]

How to deal with X2Go Client error “Unable to create SSH tunnel for X2Go session (NX) startup”

Today I had a weird problem – my X2Go Client just kept saying “Unable to create SSH tunnel for X2Go session (NX) startup”. I tried to reboot remote server but no luck. What is the solution?

It’s rather easy – reboot the local computer you are trying to connect from (yes the PC you are sitting in front of), after that it should be fine.

Setup: Ubuntu x64 server 14.04.3 LTS running XFCE as GUI. The client I was connecting from: Windows 7 Pro x64.

How to show real visitor’s IP address after installing CloudFlare protection while running Apache web server on Debian 7 or Debian 8

Well it's fairly self explanatory - you are running any service that needs customer's real IP address and now you have a problem - it shows only the proxy address of CloudFlare, this is especially painful when you do for example access restrictions (IP restrictions) via .htaccess file. So how to fix this on Debian 7? Btw. the # means you need to be root just fyi... 1) Check for dependencies: # apt-get install libtool apache2-threaded-dev 2) wget the necessary files: # wget https://www.cloudflare.com/static/misc/mod_cloudflare/mod_cloudflare.c (Just Read more [...]

How to install VMware tools in Ubuntu 14.04 LTS x64

The instructions are pretty much same as for 12.04 LTS, which I described in detail here. Though to make it complete: 1/ Bootup, login as root, click "Install VMWare tools" from your host machine 2/ mount the ISO: mount /dev/cdrom /mnt/cdrom you might need to make directory for it first: mkdir /mnt/cdrom 3/ copy the files from there to temp: cp /mnt/cdrom/VMwareTools-*.tar.gz /tmp 4/ unpack it: tar -xvzf VMwareTools*.tar.gz 5/ do the installation (you can omit -d Read more [...]