Linux: Runlevel configuration tool to start service on Ubuntu/Debian

Under Debian or Ubuntu based distro, use the runlevel configuration tool to manage services run levels To turn on mongodb service, use the following command: update-rc.d mongodb defaults you may to sudo: sudo update-rc.d mongodb defaults To remove service, use update-rc.d mongodb defaults or using sudo: sudo update-rc.d mongodb defaults

Squeeze: Setting up compiz on Debian Squeeze

My laptop has a nVidia Geforce 8660M GT, so I’m installing nVidia drivers follow this: http://wiki.debian.org/NvidiaGraphicsDrivers apt-get install module-assistant nvidia-kernel-common m-a auto-install nvidia-kernel${VERSION}-source Let’s go for the eye candy sudo apt-get install compiz compizconfig-settings-manager compiz-fusion-plugins-main Follow this: http://wiki.debian.org/Compiz

Squeeze: Installing VirtualBox 3.2_3.2.12-68302~Debian~squeeze_amd64

First we install some required packages sudo aptitude install libqt4-network libqt4-opengl libqtcore4 libqtgui4 Then we install VirtualBox download from VirtualBox.org : sudo dpkg -i virtualbox-3.2_3.2.12-68302~Debian~squeeze_amd64.deb Include your user in the group “vboxusers”

Linux:: settings shortcuts for your ssh connections to hosts

If you wish you could use friendly names to access your servers, here’s how to do it: Edit your ~/.ssh/config and add the following: Host myserver HostName 123.123.123.123 Port 12345 User bob Host other_server HostName test.something.org User alice CheckHostIP no Cipher blowfish Please, remember to customize “HostName” and “User” values… Continue reading

Use an alias to SSH to a server

Create a file ~/.ssh/config and insert the following: mauricio@rynex:~$ cat .ssh/config Host SERVER_ALIAS Port PORT HostName SERVER_NAME User USERNAME Compression yes TCPKeepAlive yes Change according to your servername, username and port, of course. Then you can simply use: ssh SERVER_ALIAS to connect to the server instead of using: ssh username@hostname