Error message

User warning: The following theme is missing from the file system: responsive_green. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1143 of /var/www/


How to add SSH key to remote server

Step One—Create the RSA Key Pair
The first step is to create the key pair on the client machine (there is a good chance that this will just be your computer):

ssh-keygen -t rsa

Step Two—Copy the Public Key
Once the key pair is generated, it's time to place the public key on the virtual server that we want to use.

You can copy the public key into the new machine's authorized_keys file with the ssh-copy-id command. Make sure to replace the example username and IP address below.

The code has been tested and works

How to launch application as root from Unity Launcher?

If you want the app to always run as root

1) Pin the application to the launcher as normal.

2) Locate the applications .desktop file which will be in either:

or somewhere else, use locate .desktop|grep APPAME

3) Open with gedit:

gksudo gedit /usr/share/applications/APPNAME.desktop
4) Then change the line


Exec=gksudo -k -u root APP_COMMAND
5) Save

The code has been tested and works

Изменение символической ссылки

Однажды столкнувшись с необходимостью быстро переключать символическую ссылку на различые директории, я долго не мог понять как это сделать одной командой. Сначала я никак не мог пересоздать симлинку поверх существующей, потом возникла проблема с тем, что симлинка ссылается на директорию и новая линка создавалась в директори...
Однако все оказалось проще пареной репы:
ln -nfs dir_name link_name перевесит ссылку link_name на папку dir_name.
-s - тут все понятно, указываем, что хотим симлинку
-f - опция разрешает переписывать существующую симлинку

The code has been tested and works

Reinstall virtualbox debian

Uninstall VirtualBox -> sudo apt-get purge "^virtualbox-.*"

Check carefully what will be removed before you confirm.

Update the software repositories -> sudo apt-get update

Clean up -> sudo apt-get autoremove | sudo apt-get autoclean | sudo apt-get clean

rm -r /etc/init.d/vboxdrv
rm -r /var/lib/update-rc.d/vboxdrv
apt-get install virtualbox virtualbox-dkms virtualbox-guest-utils virtualbox-guest-additions virtualbox-qt

Vagrant commands manage

A VirtualBox machine with the name 'vm_name' already exists. Please use another name or delete the machine with the existing name, and try again.

I listed current running virtual machines from the command line :

vboxmanage list vms

Result :

"vm_name" {8ba467b7-da96-4f68-9bf8-671dd6f0d007}

Then proceeded with the removal of the offending virtual machine :

VBoxManage unregistervm 8ba467b7-da96-4f68-9bf8-671dd6f0d007 --delete

vagrant up --provision

The code has been tested and works


Subscribe to RSS - Linux