This tutorial will help you set up an Internet Radio station on your server. You can create the content and then provide it for your listeners. The example uses an Ubuntu server for the set up.
Step #1: Download the Shoutcast Server (latest version):
Copy it to the /usr directory and create a folder called shout:
sudo cp sc_serv_1.9.8_Linux.tar.gz
sudo mkdir shout
tar zxvf sc_serv_1.9.8_Linux.tar.gz
chmod 755 sc_serv
Edit the config File:
Be sure you document your password for the furture.
Start the Server:
You should see that it is running.
Save the file to the /usr directory.
tar -zxvf ices-0.4.tar.gz
This will create a folder called ices-0.4. Move into this folder.
Make sure your /etc/apt/sources.lst has these sources as you will need them to download the files you need. Use all of the usual sources but be sure these three are included so you can draw from them.
backports main restricted universe multiverse
sudo apt-get update
sudo apt-get install libshout3 libshout3-dev liblame-dev libxml-dev
Make sure you have a compiler.
sudo apt-get install gcc g++ make
Move into the directory that you created.
If you do not have errors then continue, if you do have errors then download the needed dependencies.
sudo make install
Step #3: Create a mp3 Directory
You can create the directory anywhere but one good location might be /mp3.
sudo mkdir /mp3
Copy your mp3s into that location.
find /mp3 -type f -name “*.mp3” > /mp3/playlist.txt
Now edit your config file for ices.
sudo vim /usr/local/etc/ices.conf.dist
Change the Playlist to /mp3
Change the Hostname
Change the Password
Change Protocol to icy
ices -c /usr/local/etc/ices.conf.dist
Typically the port to connect to the radio station is port 8000 but you can change that in the config.
The first question you may ask is why a virus scanner for Linux? Well, the level of sharing that is done between Windows computers and Linux computers suggests that it may be a nice option to be able to scan files and directories to protect your Windows machines. In addition, if you are using Wine to run Windows computers you will need to verify that those files are not infected. Who knows, there may be a time when Linux is also dealing with virus activity as well, yes I know there are a few active Linux viruses now.
I found this easy to install and use graphical tool that many will like, called clamtk.
In order to install ClamTK in Ubuntu 8.04 open Synaptic Package Manager and search for clamav. Once you have a list install these programs:
Here are some quick ways to scan with various options.
Type of Scan Command
Scan a File Ctrl+F
Quick Home Scan Ctrl+Q
Full Home Scan Ctrl+Z
Scan a Directory Ctrl+D
Recursive Scan Ctrl+R
Your virus signatures automatically update every hour…nice feature.
Window Maker is an alternative to the Gnome Desktop. The real purpose of Window Maker is to explore an alternative to the heavy weight Gnome which uses a lot of resources from your machine. How much, well in a test we did with Window Maker we found that it used only 4.5% of the resources, RAM and CPU, that are typically used by Gnome, a very significant difference.
Here is a list of Resource Comparison with other window managers that you could use.
Gnome is a hog, it uses a lot of resources. If you would rather save your resources for a faster more efficient Desktop test out Window Maker. For directions on how to test out an alternative Desktop CLICK HERE.
Window Maker can run any of the applications you have installed on Ubuntu. It is highly configurable, lightweight and great looking.
A great source of information for Window Maker can be found at the site. Here is a project that has documentation that will help you use Window Maker efficiently.
Here is a link to the User Guide
When any Linux system is operating there hundreds of processes that could be running. A basic understanding of how these processes function is a great advantage to a Linux user. There are a number of ways to view these processes and the resources that they may use.
System Monitor on the Gnome desktop gives you excellent access to the workings of your computer. The graphical charts provide a quick glimpse of activity on the system and the process Listing allows you to switch between the processes that you are running, all processes and active processes. If you go to System/Administration and System Monitor you will find excellent tools to monitor your Ubuntu 8.04 system. The first tab will display you Linux Kernel, memory, CPU and available disk space.
The second tab describes the processes that are running on your system. These processes provide you with an excellent tool to see where the most memory or CPU time is going. This is great for trouble shooting.
The third tab is a easy way to glance at a graphical output showing your CPU usage, memory and network connections.
The last tab will show you how your system is partitioned.
A common method of viewing processes is by using the terminal. The ps command generates a snapshot of the currently running processes. In order to really see the whole picture three options are usually added to the command:
a shows processes used by other users
u the user format showing user names ans start times
x includes processes not started from a terminal like a daemon such as ftp
The results show several important categories;the user, PID (Process ID), % of CPU usage, % of Memory and the start time. This is an easy way to locate a process that is taking too many resources or too large a percentage of CPU and Memory on the system that can cause all other processes to be very slow. This is a good way to review your system to look for problems.
The pstree command not only shows the processes but it also shows how each process is related to other processes, a tree if you will.
Use this command to see the tree with the process ID;
This is a very interesting way to view the system processes and helps you understand how it is all working together.
The final command that is often used to view processes is the top command:
The top command is just filled with information. The upper section of the screen gives you a summary of the whole system:
uptime – how long the system has been running
users – how many users are currently logged in
tasks – the example shows 87 tasks with one running and 86 sleeping
zombie – programs that are running but are dead
CPU – user %, System %, idle % –all interesting stuff
Swap Space usage
In addition, top gives you the PID, user, etc. that the other commands do. From this information you can get a feel for what is happening on the system as well as locate bottlenecks and programs that are misbehaving.
Ubuntu is trying to break into the server market. Indeed as I talk with companies moving to Linux on a weekly basis over 50% of them want to move to Ubuntu as the server of choice. If Ubuntu 8.04 is the server of choice of so many and if Ubuntu wants so desperately to move into the server market then you would expect Ubuntu to have server quality options easily available on the Ubuntu install. What I cannot understand then is why RAID tools are not available, why Logical Volume Management version 2 is not installed and why Access Control Lists for the file system are also not installed on the server. All of these can easily be installed and upgraded but my question is …why not default?
Note: With 8.04.1 some of these issues like LVM2 have been updated, the original install DID NOT have LVM2.
If you want to create RAID on Ubuntu you will need to install RAID tools before you can do so. Now I am talking about software RAID. You do have access to tools to install RAID during installation but the mdadm program is not installed by default. So if you want to install RAID after the installation you need to add it so you have the tools.
sudo apt-get install mdadm
If you would like to see a tutorial on installing RAID on Ubuntu CLICK HERE.
Install LVM2 on Ubuntu
Ubuntu does not have LVM2 installed by default…why? If Ubuntu wants to move to the server market why not have lvm2 intalled by default like RHEL 5 or CentOS 5? Now it can easily be upgraded with this command:
sudo apt-get install lvm2
If you want to see a tutorial on how to install and configure LVM2 on Ubuntu 8.04 CLICK HERE.
Access Control Lists
Access Control Lists (ACLs) allow you to provide different levels of access to files and folders for different users. The Red Hat Enterprise 5 / CentOS 5 have implemented ACLs in the file system by default. This new feature will allow you to set a file where one user can read, other users cannot read and yet other users are able to read and write to the same file. This was not possible previously.
sudo apt-get install acl
If you would like to see a tutorial on installing and configuring acls CLICK HERE.
If Ubuntu really wants to break into the server market, they will need to install by default features that the server market really wants to use, specifically RAID tools, LVM2 and acls. Until they make this transition many will not take them seriously in the server arena.