(vps): Noexec and /tmp troubleshooting

Chrooted /tmp directory There is also a new method that ensures that no processes currently accessing /tmp are interrupted in any way. This also ensures that your /tmp that allows execution is never accessible to currently running processes. This limits your exposure to possible exploits. First, create a chrooted environment… Continue reading

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

Linux:: SSH configuration file

To save some typing you can create aliases to the servers you frequently access via ssh. This can be accomplished by either editing the global file ( /etc/ssh/ssh_config ), if you’re root and and to make changes for all the users, or your own config file ( $HOME/.ssh/config ). Follow… Continue reading

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

Thanks to Thibaut Lauzière

Today I got 10 stickers from Thibaut Lauzière, creator of Linux Live USB Creator. I couldn’t find anything really white right away, so I thought I’d just take a picture against my LCD monitor 🙂 Thanks, Thibaut

Changing default editor for “crontab -e” in Slackware 13.1

Just found this thread (posting here for future reference, without using Google): http://ubuntuforums.org/showthread.php?p=9789781#post9789781 sudo nano /etc/profile export EDITOR=”/usr/bin/nano” export VISUAL=”/usr/bin/nano” Note: you have to reboot or log out/log back in to see the changes take effect

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