Wednesday, June 11, 2008

python


python comic

Tuesday, May 27, 2008

How to put SLAX in our pocket


We need (i) USB Drive with or without chain (ii) A pocket whether sleeve or a jeans
---------------------------------------------------------------------------------------------------

How to put Slax to USB drive or disk

Slax for USB is a Slax distribution in TAR format, designed to be unpacked to a writable disk. If you don't know what TAR format is, you may imagine it as a ZIP archive. Extract (unzip) the archive directly to your USB flash key, to an MP3 player or even to a Hard Disk. Most archival programs can extract TAR without any problem. Slax for USB is set to save all changes you make to the boot device (disk), so it will behave like a normally installed operating system.

How to make it bootable

When Slax is unpacked to your device, it will create '/boot/' and '/slax/' directories there. Only one more step is needed to make Slax boot from your USB device or disk: you have to manually navigate to the newly created /boot/ directory and run bootinst.sh script (if you are in Linux) or bootinst.bat script (if you are in Windows).

The method mentioned above will simply install syslinux bootloader to your device's MBR (master boot record). Syslinux works only on FAT filesystem (which is widely used on most USB flash keys, Cameras and MP3 players). If your device or disk is formated using a different filesystem (it is strongly recommended to use a native Linux filesystem like XFS), you will have to use 'liloinst.sh' script instead. Currently, liloinst doesn't provide the same nice boot menu like syslinux, but this will be implemented soon

LINUX in our pocket

Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organised graphical user interface and useful recovery tools for system administrators.

The modular approach gives you the ability to include any other software in Slax easily. If you're missing your favourite text editor, networking tool or game, simply download a module with the software and copy it to Slax, no need to install, no need to configure.

If you are a beginner or you're just too busy to make it yourself, follow a few steps to build your own customised operating system by using web-based interface here.

You can get Slax from this website in several formats. Slax for CD is distributed as an ISO image. Burn it to a CD using a special menu option in your burning software, it's usually labeled 'burn CD iso image'. Slax for USB is distributed as a TAR archive. Simply unzip it to your USB device and run bootinst.bat (or bootinst.sh) to make it bootable.

189MBiso download Slax for CDv 6.0.7[ md5 ]
189MBtardownload Slax for USBv 6.0.7[ md5

Thursday, May 22, 2008

How to install and configure Webalizer on Ubuntu

OS: Ubuntu 7.04

Webalizer is a nice web analysis tool for your server.

To install Webalizer open up a terminal and enter the following commands:

$ sudo aptitude update


$ sudo aptitude install webalizer



Webalizer didn't work right away, so I found a fix for it.

Edit webalizer.conf with your favorite editor:

$ vi /etc/webalizer/webalizer.conf



Find the following:

LogFile /var/log/apache/access.log.1



I'm using apache2 so replace the line with:

LogFile /var/log/apache2/access.log



Save and exit.

To run webalizer, enter this command:

sudo webalizer



and then go to http://localhost/webalizer/

Done!

Install Apache2 in ubuntu

Install Apache Web Server on Ubuntu

This step-by-step howto shows a basic setup for Apache 2 web server. Apache is installed on Ubuntu 6.06 LTS Dapper, but instructions will probably work on any Ubuntu. This document is a work in progress, initially only required commands are listed without troughout explanations.

© 2006 Tero Karvinen. GNU General Public License, version 2.

Install Apache

$ sudo apt-get install apache2

Test it

Surf to your own server on your own local computer:

$ firefox "http://localhost"

Find out how your server is found on the net. Anyone can use your IP address or DNS name to connect to your server:

$ ip addr

Use your own IP address (eth0, first IP number, does not end .255)

$ firefox "http://1.2.3.4"

If DNS is working on your network, you can see your fully qualified domain name with:

$ host 1.2.3.4

User homepages

With user homepages, anything you put in public_html in your home directory is published on the web.

Enabling Userdir on Server

For newer Ubuntu such as 8.04 Hardy, you have to explicitly enable userdir module. On older ones such as 6.06 LTS Dapper, userdir is enabled by default.

$ sudo a2enmod userdir
$ sudo /etc/init.d/apache2 restart

Test homepages

Go to your home directory

$ cd

Create a folder for public html files, note the underscore ‘_’

$ mkdir public_html

Check your name

$ whoami

Surf to ~yourname:

$ firefox "http://localhost/~tkarvine/"

You should see a directory listing of an empty directory. You can also try it using your IP address and a different machine.

If you see your homepage, well done. You have successfully installed a server with user homepages. You can create some web pages with OpenOffice and save them to your public_html directory.