Archive for the 'Gentoo' Category


Gentoo – Framebuffer Splash Image

If you are tired of staring at a black console screen on your Gentoo box you can trick it out a bit using Gensplash. Gensplash or “fbcondecor” allows you to use different background images, fonts and colors to decorate your console so you don’t have the standard black background and white text. It also allows you to have nice boot and shutdown screens. (Think of the boot process and console on the install CD).

Continue reading ‘Gentoo – Framebuffer Splash Image’

Gentoo – Deny Hosts

If you find your ssh server is getting hit by a lot of brute force attempts from the internet, and want to do something to defend yourself against them then denyhosts is for you! It helps to alleviate some of the stress on your server that occurs when someone or lots of someones are trying to hack their way into your ssh server. Basically the service watches your ssh traffic, and if it sees an IP address hitting a threshold of failed attempts it adds the address to your /etc/hosts.deny file so that it is blocked from future access attempts.

Continue reading ‘Gentoo – Deny Hosts’

Gentoo – IRC Server

Want to host your own IRC server on your gentoo box? Well here is how:

emerge -av ngircd
cd /etc/ngircd/

Continue reading ‘Gentoo – IRC Server’

Gentoo – Getting Sound With Alsa

In order to get sound working in Gentoo you need to set up ALSA. If you have not set up your kernel with ALSA support you will need to do so, see here for more information. Recompile your kernel with ALSA support and your sound card built in. Then do the following:

Continue reading ‘Gentoo – Getting Sound With Alsa’

Gentoo – TeamSpeak 2 Server

In this guide I will discuss how to set up a Teamspeak 2 Server on Gentoo Linux. Teamspeak is a very popular tool used by gamers and online collaborators to provide an online group oriented voice chat environment. First thing you need to do is log in as root, then type:

emerge -av teamspeak2-server-bin

Continue reading ‘Gentoo – TeamSpeak 2 Server’

Gentoo – Protecting Web Directories With .htaccess

In this guide I will show you how to protect your localhost web root with .htaccess and .htpasswd files. By doing this a username and password will be required to enter the site. Let’s get started! As root do the following:

  • touch /var/www/localhost/htdocs/.htaccess
  • touch /etc/apache2/httpd-passwords

Continue reading ‘Gentoo – Protecting Web Directories With .htaccess’

Gentoo – SSMTP (Sending Mail)

Now that I finished showing you how to set up your LAMP server you are probably going to want to set up sendmail/ssmtp so that some of your new fancy websites can take advantage of it for their email services. Lets get started!

We are going to be using ssmtp which will replace sendmail as the MTA for the server. So as root type

emerge -av ssmtp

Once that completes we need to edit two config files.

Continue reading ‘Gentoo – SSMTP (Sending Mail)’

Gentoo – PHP

In a previous guide I discussed how to set up an Apache web server on your Gentoo box. In this part I will show you how to set up PHP so it works with Apache and MySQL which will allow you to host dynamic content rich websites on your web server. Plus by having MySQL, Apache, and PHP installed and working together you have access to a whole slew of web based tools that make managing your server much simpler.

In order to install PHP we must do the following as root:

echo "dev-lang/php  gd" >> /etc/portage/package.use

Save the file and type:

emerge -av php

PHP will take a while to compile even on a very fast PC so take a break and go do something for a half hour to an hour …

Continue reading ‘Gentoo – PHP’

Gentoo – Apache Web Server

In a previous guide I discussed how to set up MySQL on your Gentoo Linux box. One great use for MySQL is to combine it with an Apache web server and PHP to create content rich, dynamic websites. In this guide I will discuss how to set up an Apache web server with vhosts support.

Installing Apache is pretty straight forward, there are a few configuration files that need to be edited but nothing to difficult. First lets install apache:

emerge -av apache

Continue reading ‘Gentoo – Apache Web Server’

Gentoo – MYSQL Database Server

In this guide I will discuss how to setup a basic MySQL database server on Gentoo.

To install MySQL on your Gentoo system log in as root and type

emerge -av mysql

This will take some time to compile so you may wanna go grab a snack and watch some TV or something.

15 to 30 mins later …

Continue reading ‘Gentoo – MYSQL Database Server’