Linux

Tips for Linux Users

Installing Ubuntu along with Fedora Linux on an LVM formatted Partition

I have an unused partition and want to install Ubuntu Dapper on it. On reading through the docs it seems possible to install it from an existing linux/unix box.

  1. My current partition looks like below, of which "/dev/hda2" primary partition is unused:
    /dev/hda1               1        1044     8385898+   7  HPFS/NTFS
    /dev/hda2            1045        4699    29358787+  83  Linux LVM
    /dev/hda3            4700        4712      104422+  83  Linux
    /dev/hda4            4713        7296    20755980    5  Extended
    /dev/hda5            4713        7296    20755948+  8e  Linux LVM
    

eBox Installation and Configuration

eBox management tool will effectively and easily help you managing the advanced services for your corporate network.

eBox is a framework for the development and deployment of network services in small and medium-sized networks, offering a simplified graphical interface to non expert users. It can be set up as a gateway, having some extra features over a usual router.

Read Full article here

Detailed Bacula Network Backup Implementation Guide

This tutorial explains how to install and configure bacula network backup.

Bacula is a set of computer programs that permits you (or the system administrator) to manage backup, recovery, and verification of computer data across a network of computers of different kinds. Bacula can also run entirely upon a single computer, and can backup to various types of media, including tape and disk.

In technical terms, it is a network Client/Server based backup program. Bacula is relatively easy to use and efficient, while offering many advanced storage management features that make it easy to find and recover lost or damaged files. Due to its modular design, Bacula is scalable from small single computer systems to systems consisting of hundreds of computers located over a large network.

Deleting corrupt DOS files

I recently tried to resize my external usb drive partition which failed on me due to a corrupt file in the partition. The file could not be deleted or moved.

I used dosfsck which comes with dosfstools rpm. Installed it and ran `dosfsck -av /dev/sda1` on the unmounted drive, which automatically fixed the corrupt files. I was then able to resize the partition with the parted tool.

More on how to resize with parted to follow...

Minimum RPM packages required for Gnome graphical display on Cent OS 4.3

Below are the minimum RPM packages required that will also install all dependencies for Gnome Graphical display to be working on Cent OS 4.3:

# yum -y install xorg-X11 system-config-display gdm xterm gnome-desktop gnome-session

Run `system-config-display` to generate the "xorg.conf" file which will be saved to "/etc/X11/xorg.conf".

Set the runlevel to 5 in "/etc/inittab" and reboot.

Atheros AR5005G 802.11abg NIC on Cent OS 4.3

Install the RPM file madwifi-*.i386.rpm (or x86_64 respectively) plus the RPM kernel module packages (kmdl) appropriate for your kernel version and architecture, madwifi-kmdl-*.rpm and madwifi-hal-kmdl-*.rpm.

Use `uname -r` to determine which kmdl you need to download. If you use a depsolver like smart/yum/apt, all you have to do is point it to ATrpms and use

# smart install madwifi madwifi-kmdl-`uname -r`

Replace smart with yum or apt as appropriate. Note that you will have to install a new pair of madwifi*-kmdl packages for each kernel update, as the depsolvers aren't yet capable to automate this.

Read up more details at madwifi.org

You can download the respective rpms from http://atrpms.net/dist/el4/madwifi/ directly and install via:

# rpm -ivh madwifi*.rpm

After you have installed madwifi, reboot and the HAL (Hardware Abstraction Layer) deamon should automatically pick the card up for configuration. If you skip this configuration on boot, you can set up networking as below:

Install Democracy Player (Internet TV) on FC5

I've been using the democracy player under OSX and Windows for the last several versions which seemed very unstable. The Linux version just became available under beta... but seemed pretty stable on testing.

If you are using Fedora Core 5, then the installation is a breeze.

  1. If you have not setup yum for downloading from livna repository, you can do so by adding the repo file -- "/etc/yum.repo.d/livna.repo":
    [livna]
    name=Livna for Fedora Core $releasever - $basearch - Base
    baseurl=http://rpm.livna.org/fedora/$releasever/$basearch
    failovermethod=priority
    mirrorlist=http://rpm.livna.org/mirrorlist-5
    enabled=0
    gpgcheck=1
    

    Import the gpg keys.

    # rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
    
  2. Install the dependencies:
    # yum --enablerepo=livna --enablerepo=extras install \
          boost xine-lib libfame gnome-python2-gtkmozembed gnome-python2-gconf Pyrex
    
  3. Install the democracy player:
    # rpm -ivh http://ftp.osuosl.org/pub/pculture.org/democracy/linux/fc5/Democracy-0.8.2-1.i386.fc5.rpm
    

The install will place a shortcut under "Sound & Video". ENJOY!!

Installing Typo on Fedora Core 2 with Ensim Control Panel -- Part 1

Typo is a weblog application using the well known Ruby on Rails framework.

These are my notes as I remember on installation of Typo on FC2 with Ensim Control Panel...
(Ensim Pro 4.1.0-8.fc.2 )

This is the first part of a series of notes which will cover the preparation of what I need to get Typo up and running:

  • Install ruby.
  • Install gem.
  • Install rails.
  • Install mysql ruby binding.
  • Install the fcgi libraries.
  • Install mod_fcgi apache module.
  • Install fastcgi ruby binding.
  • Install and setup Typo.

Debian

Debian o Debian GNU/Linux es una distribución Linux, que basa sus principios y fin en el software libre.

Creada por el proyecto Debian en el año 1993, la organización responsable de la creación y mantenimiento de la misma distribución, centrado en GNU/Linux y utilidades GNU. Éste también mantiene y desarrolla sistemas GNU basados en otros núcleos.

Nace como una apuesta por separar en sus versiones el software libre del software no libre. El modelo de desarrollo es independiente a empresas, creado por los propios usuarios, sin depender de ninguna manera de necesidades comerciales. Debian no vende directamente su software, lo pone a disposición de cualquiera en Internet, aunque sí permite a personas o empresas distribuir comercialmente este software mientras se respete su licencia.

Installing Ruby on Rails on Fedora Core 5

Quick notes on installing Ruby on Rails on Fedora Core 5 ( It should be similar for other linux distros as well )

  1. Install ruby rpms via yum:
    # yum install ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ruby-docs
    
  2. Download and install rubygems from rubygems.org.
    Change to the extracted directory and run:
    # ruby setup.rb
    
  3. Now use gem to install rails. It will ask about installing dependencies. Answer "Y" or just hit return.
    # gem install rails
    
  4. Test it by creating a skeleton rails app in your home directory:
    $ cd ~
    $ rails testapp
    
  5. Start the WEBrick server.
    $ cd ~/testapp
    $ ruby script/server
    

    The WEBrick server should now be started and listening to the default port - 3000 .
    Point your browser to:

    http://localhost:3000/
    

    You should see a welcome page with some additional getting started info.

Comment