formats

Install Firefox 4 in Ubuntu 10.04 / 10.10

Published on March 24, 2011,

Install Firefox 4 in Ubuntu 10.04 / 10.10 | Here’s how to upgrade your Firefox 3.x in Ubuntu to Firefox 4 using the Mozilla stable ppa. Simply issue these commands one after another: $ sudo add-apt-repository ppa:mozillateam/firefox-stable $ sudo apt-get update $ sudo apt-get install firefox ubufox Your existing Firefox will be replaced with the new Firefox 4.

formats

Set Password Expiration for Linux Accounts

Published on March 19, 2011,

Set Password Expiration for Linux Accounts | For security, it is good to enforce password expiration. Here’s how you do it in Linux. Edit the file /etc/login.defs: sudo nano /etc/login.defs Here you can specify options for password expiration: PASS_MAX_DAYS 90 PASS_MIN_DAYS 7 PASS_MIN_LEN 14 PASS_WARN_AGE 7 Max Days: maximum life of a password Min Days: prevent a second change again for X

formats

SSH Password Login From Specific IP Ranges

Published on March 16, 2011,

SSH Password Login From Specific IP Ranges | Want to require ssh keys from remote sources, but then allow ssh passwords from your local home network? It is easy to make this specific configuration or alter as desired for your server. I’ll show you how! 1. Edit the sshd_config file sudo nano /etc/ssh/sshd_config In this file, edit the existing line PasswordAuthentication to ‘no’

formats

Securing phpMyAdmin

Published on March 14, 2011,

Securing phpMyAdmin | phpMyAdmin is a great tool but it is also a large target by hackers. Take these initial steps to secure your phpMyAdmin install in Ubuntu Linux. 1. First we will setup an Apache login and password in order to load the phpmyadmin page. This command creates an apache authenticated user (Example here creates a username

formats

Ubuntu 11.04 Change From Unity To Classic Gnome

Published on March 5, 2011,

Ubuntu 11.04 Change From Unity To Classic Gnome | Classic Gnome fans, fear not. You can still use standard Gnome in Ubuntu 11.04 if Unity is not your bag. To change to traditional Gnome, logout and then after clicking on your username, select Ubuntu Classic Desktop at the bottom of the login screen. Enjoy the latest and greatest Ubuntu with regular Gnome! Edit! Alternate

formats

Rotate MySQL Backups With Logrotate

Published on March 4, 2011,

Rotate MySQL Backups With Logrotate | logrotate can be used to rotate and auto-purge any file, including mysql backups. This very server (scottlinux.com) backs up a mysql dump daily, keeping the previous 8 with this method. I’ll show you how: 1. Create the following file, editing as desired. This example backs up all mysql databases in one dump. Of course you

formats

Check Apache Permissions

Published on March 1, 2011,

Check Apache Permissions | How can I check Apache permissions for world writeable files or directories? You can use the find command to check for 777 (world writeable) directories and files. This command searches for directories that are 777 in /var/www/: sudo find /var/www/ -type d -perm -002 And this command searches for files that are 777 in /var/www/:

formats

Backup Gmail Email in Linux

Published on February 28, 2011,

Backup Gmail Email in Linux | How can I backup my gmail email in Linux? On Linux (and OS X) you can use the command line program getmail. This how-to uses IMAP to connect to your gmail account. If you haven’t already, make sure to enable IMAP in the gmail settings! 1. Ok now install getmail in Ubuntu: sudo apt-get install

formats

Disable Guest Access – Samba

Published on February 22, 2011,

Disable Guest Access – Samba | Samba by nature has guest access for various purposes. However, you can disable guest access to prevent anonymous browsing and tighten security overall. 1. Edit the smb.conf file: $ sudo nano /etc/samba/smb.conf Add this line to the [global] section: restrict anonymous = 2 2. Close and save the file. Then restart samba. This will restart

formats

Could not reliably determine the server’s fully qualified domain name

Published on February 16, 2011,

Could not reliably determine the server’s fully qualified domain name | After the initial install of Apache in Ubuntu, you’ll first see this message below: stmiller@brahms:~$ sudo /etc/init.d/apache2 restart * Restarting web server apache2 apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName … waiting apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName