Begin Linux Blog

Linux Distro Releases and News

Archive for July, 2008

How to Pause Downloads in Firefox

Posted by beginlinux on July 31, 2008

Pausing downloads can be important if you’d like to start a download, close Firefox, and come back to the download at a later time. To do this simply open up Firefox and find a file you’d like to download.

After selecting Save File your download will begin to download automatically. Here we can see the status of the download along with two icons to the right of the status bar. The first one is a pause icon and the second a stop sign. Press the pause icon to pause your download and come back to it later. Press the stop icon to completely stop the download.

After pressing the pause icon you will see that the download status stands still. The pause icon is now a play icon and clicking it will begin the download right where you left off.

This screen shot shows the download completed successfully.

Posted in Uncategorized | Tagged: , , | Leave a Comment »

How to Create an Internet Radio Station

Posted by beginlinux on July 30, 2008

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):

http://www.shoutcast.com/download/files.phtml

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

cd /usr/shout

tar zxvf sc_serv_1.9.8_Linux.tar.gz

chmod 755 sc_serv

Edit the config File:
vim sc_serv.conf

Password=MakeANewPassword
Be sure you document your password for the furture.

Start the Server:

./sc_serv

You should see that it is running.

Step #2: Create a way to feed Music Into the Server
This will use ices0.4 so you will be able to use mp3s.

http://downloads.us.xiph.org/releases/ices/ices-0.4.tar.gz

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.

cd ices-0.4

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
partner
free non-free

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

Compile ices
Move into the directory that you created.

cd /usr/ices-0.4

./configure –with-lame

If you do not have errors then continue, if you do have errors then download the needed dependencies.

make

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.

Posted in Uncategorized | Tagged: , , , | 5 Comments »

BeginLinux.com Face Lift

Posted by beginlinux on July 23, 2008

BeginLinux.com received a much needed face lift today. The Linux training site now offers better navigation of the many Linux articles and tutorials. Plus quicker, safer, more secure shopping with the new BeginLinux shopping cart. To finish off the summer we’re offering unbeatable prices on Linux distro CDs and DVDs plus a different discounted product every week. This week it’s the Linux Server Management Manual so hurry over and check out what’s new.

Posted in Desktop User | Tagged: , , | Leave a Comment »

Desktop Virus Scanner for Ubuntu

Posted by beginlinux on July 22, 2008

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:

clamtk
clamav
clamav-base
clamav-daemon
clamav-freshclam

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.

Posted in Uncategorized | Tagged: , , , | 2 Comments »

PolicyKit Solutions with Ubuntu 8.04

Posted by beginlinux on July 12, 2008

Imagine my joy, when having just install all of the updates for Ubuntu 8.04, and finding that I have lost my network connection because the hardware access layer, hal, has failed. Not only that, I now have no access to the administration tools as the PolicyKit will not allow the Unlock process on any administrative tools, including my network connection. This is a total show stopper….no network connection, no permissions to change the no network connections!!!

Here is the Error after an Update:
Setting up hal (0.5.11~rc2-1ubuntu8.1) …
* Reloading system message bus config… [ OK ]
polkit-read-auth-helper: needs to be setgid polkituser
polkit-auth: NotAuthorizedToReadAuthorizationsForOtherUsers: uid 0 is not authorized to read authorizations for uid 111 (requires org.freedesktop.policykit.read)
polkit-read-auth-helper: needs to be setgid polkituser
polkit-auth: NotAuthorizedToReadAuthorizationsForOtherUsers: uid 0 is not authorized to read authorizations for uid 111 (requires org.freedesktop.policykit.read)
dpkg: error processing hal (–configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
hal
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here is how I fixed it.

First…panic…this is a disaster, but it can be fixed.

Second…create a network connection.
You desperately need a network connection in order to fix this. Configure your network interface with a static IP Address as my problem was that it would no longer accept an IP supplied by DHCP.

sudo vim /etc/network/interfaces

iface eth0 inet static
address 192.168.5.2
netmask 255.255.255.0
gateway 192.168.5.1

auto eth0

Make sure you enter the information for your network. You also need to enter the gateway IP or internal IP Address of your router. Save your configuration and then restart your network with this command:

sudo /etc/init.d/networking restart

This should provide you with a network connection. It will allow you the ability to do research and download any updates that you might need.

Third…reinstall PolicyKit.
You can see from the information below that this is for PolicyKit .7-2. Before you make any changes verify that this is the version you are having problems with.

sudo dpkg -l policykit*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii policykit 0.7-2ubuntu7 framework for managing administrative polici
ii policykit-gnom 0.7-2ubuntu1.1 GNOME dialogs for PolicyKit

Now reinstall PolicyKit

apt-get install –reinstall policykit

Fourth…reinstall hal.

apt-get install –reinstall hal
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/420kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database … 118858 files and directories currently installed.)
Preparing to replace hal 0.5.11~rc2-1ubuntu8.1 (using …/hal_0.5.11~rc2-1ubuntu8.1_i386.deb) …
* Stopping Hardware abstraction layer hald [ OK ]
Unpacking replacement hal …
Setting up hal (0.5.11~rc2-1ubuntu8.1) …
* Reloading system message bus config… [ OK ]
* Starting Hardware abstraction layer hald [ OK ]

Fifth….Restart Your System.
That should do it….just another fix.

Posted in Uncategorized | 7 Comments »