Category: Debian

How To Harden Debian Server

Its not enough to harden just Debain. Its necessary to harden the rest of Apache-MySQL-PHP as well. Harden MYSQL sudo mysql_secure_installation answer Yes to all questions (but no need to change password) Disabling SSH root login and settings sudo vi /etc/ssh/sshd_config change PermitRootLogin yes to PermitRootLogin no LoginGraceTime 120 to LoginGraceTime 30 add line AllowUsers username username username Consider disabling...

Customize Debian Linux grub2

I wanted to remove the splash image while booting Debian 7 Wheezy and watch the code execute, while also use the full screen resolution.

Debian 7 Restart Network

Im using Debian Wheezy (7) desktop with DHCP. I had problems switching from wired to wireless and back, etc. I found that following other instructions did not work. The network will go down no problem;

Fix 64 bit Google Talk Plugin Linux

Credit for this fix belongs here but I have copied it here for ease of access Download the 64-bit .deb from: http://www.google.com/tools/dlpage/res/talkvideo/hangouts/ Create a tmp dir: mkdir tmp Extract the contents of the .deb to the tmp dir: dpkg-deb -x google-talkplugin_current_amd64.deb tmp Extract the control files: dpkg-deb –control google-talkplugin_current_amd64.deb tmp/DEBIAN Fix the dependency: sed -i "s/lib32v4l-0/libv4l-0/" tmp/DEBIAN/control Repackage the .deb:...

GPG PGP Keys

Generate an SSH Key pair and upload public key to remote host

Ubuntu Dynamic MOTD Message of the Day

How to create Dynamic Message of the Day in Ubuntu cd /etc/update-motd.d/ any script you want ubuntu to run and display at login is here. create your own or modify those in this directory.

Apache Virtual Host Example

There are so many variation of how to setup Apache VirtualHost that its difficult for a beginner to figure it all out. Here is how I have found works best for a LAMP server that you own. If its not a standard Linux distro (Debian/Ubuntu here) all bets are off. sudo vi /etc/apache2/sites-available/www.example.com copy this code into the file <VirtualHost...

Setup Fail2ban for Debian and Ubuntu

My Notes Only taken from various sources. There are other much more complete guides for Fail2ban available. Install Fail2ban sudo apt-get install fail2ban filter definitions located in /etc/fail2ban/filter.d action definitions located in /etc/fail2ban/action.d The following is a minimal setup. Configure Fail2ban sudo vi /etc/fail2ban/jail.conf Configuration for jail.conf destemail = you@example.com # Email of where alerts should be sent to ignoreip...