Change the SSH login message
To change the message displayed before login, edit /etc/ssh/sshd_config : $ sudo vi /etc/ssh/sshd_config and add (or uncomment) the line Banner /etc/banner ...
To change the message displayed before login, edit /etc/ssh/sshd_config : $ sudo vi /etc/ssh/sshd_config and add (or uncomment) the line Banner /etc/banner ...
Dreamhost sends you an email by default every time you run a cron job. To turn this off, run $ crontab -e and add this line to the top of your cron file: MAILTO=""
Dreamhost sets your default editor to pico. To change it to Vi, add the following line to the .bashrc file in your home directory : export VISUAL="vi"
Ubuntu Enterprise 6 seems to install as DHCP out-of-the-box. To change to a static ip, open the file /etc/network/interfaces. It should contain some lines like : auto eth0 iface eth0 inet dhcp Change this to something like : ...
Ubuntu Enterprise 6 doesn’t seem to install sshd out-of-the-box. To install : $ sudo apt-get install openssh-server
Before you do anything, Install Subversion . Install Python : ...
Make sure you have a newish version of libtool $ wget http://ftp.gnu.org/gnu/libtool/libtool-1.5.22.tar.gz $ tar xvzf libtool-1.5.22.tar.gz $ cd libtool-1.5.22 $ ./configure $ make $ make install ...
Edit app/webroot/index.php and change the lines that read like : if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') { } else { $Dispatcher=new Dispatcher(); $Dispatcher->dispatch($url); } to something like : ...
To find the 10 largest folders in the home directory : du -k /home/ | sort -n | tail -10
To recursively delete all files with a given extension (eg all .pyc files in a django application), use : find . -name "*.pyc" -exec rm '{}' ';' Change the “*.pyc” part to delete different file types.