Category Archives: Linux

qdpm/softaculous – Internal Server Error

Whoaaa, that was a nasty bug ๐Ÿ˜ฎ

Use: Debian 8.8 & Apache 2.4 & php 7.0:

  1. Install qdpm via softaculous (or manually, it doesn’t matter)
  2. Navigate to admin page.

and … BOOM: Internal Server Error.

Messages totally misleading. Directory permissions are okay as is the default .htaccess file. Bug is much deeper.

Continue reading qdpm/softaculous – Internal Server Error




Copy the file “foobar.txt” from a remote host to the local host

$ scp /some/local/directory

Copy the file “foobar.txt” from the local host to a remote host

$ scp foobar.txt

Copy the directory “foo” from the local host to a remote host’s directory “bar”

Continue reading SCP

Scriptable File sharing

Links for powerful scriptable file sharing.

Use at your own risk:


and others:



Upgrade to gcc 6.3+ in Ubuntu

To upgrade gcc to gcc6 use the following commands:

sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-6 -y


To set the new gcc as default use the following:

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

Once you have executed the previous command, g++ may not be available.

So you can execute the following to create a link:

sudo ln -s /usr/bin/g++-5 /usr/bin/g++



All letters echo twice

If you type any key in Double commander and it echoes twice in the screen most probably you use an old version of Lubuntu in combination IBUS or XIM. This can happen with Double Commander on old Xubuntu like preconfigured installations of mininet.

Unfortunately it is a known bug.

Continue reading All letters echo twice


Anatomy of a linux process

A great article about anatomy of a linux process:



Limit processes in Ubuntu based OSes (protection via Forkbombs)

Very useful especially if you are learning how to use fork() to create multiprocess applications.

Edit the following file:


Then add the line:

*    hard     nproc     X

Where X is the maximum number of processes you want.

A number around 400-500 is pretty much okay.






Teamviewer cannot connect in Linux

If you get the message “not ready please check your connection” but you are sure there are no network configuration problems then you can try these commands:

sudo teamviewer daemon start
sudo teamviewer daemon stop

or these commands:

sudo systemctl start teamviewerd.service
sudo systemctl stop teamviewerd.service

Network drives without samba

Samba is useful but many programs are not able to handle SMB protocol (eg notepadqq, geany, atom etc).

A more compatible way to use network drives is to map them with mount_cifs to a local path. Then all programs will be able to handle files from the network drives.

If you want to map a network drive for the current session then just type:

mount.cifs "//computer/share" /mnt -o user=username

If you want to have the drives mapped after each reboot then:

  1. chmod +s /sbin/mount.cifs
  2. chmod +s /sbin/umount.cifs
  3. chmod 600 /etc/fstab

Now for each share do the following:

  1. mkdir localpath
  2. vim /etc/fstab
  3. add the following line:

//computer/share /localpath cifs user=sambausername,pass=sambapassword,rw,users 0 0

And you are ready.



Display corrupted in Linux mint (Cinnamon/AMD)

I love mint, but it keeps messing up my display drivers whenever i do a mass update.

If an update has corrupted your display drivers you may have to do two three things:

  1. reset to default drivers
  2. uninstall any previous drivers
  3. install the new proprietary drivers

So here we go:

Step 1. Reset to default drivers:

  1. Press ctrl+alt+F2 to open a terminal and login:
  2. sudo /etc/init.d/mdm stop
  3. sudo apt-get purge fglrx*
  4. sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:amd64
  5. sudo dpkg-reconfigure xserver-xorg
  6. sudo reboot

You have to reboot at this point.


Step 2: Remove previous drivers:

sudo sh /usr/share/ati/ –force

Step 3: Install latest version of AMD drivers

  1. Download latest drivers from AMD official site
  2. unzip
  3. navigate to that directory
  4. sudo apt-get install cdbs dh-make dkms execstack dh-modaliases linux-headers-generic libqtgui4 xserver-xorg-dev debhelper lib32gcc1
  5. chmod +x
  6. sudo ./
  7. sudo amdconfig –initial -f
  8. sudo reboot

You have to reboot at this point.