Tuesday, February 20, 2007

Fun with linux - Ubuntu Server 6.10

Ubuntu-Server 6.10 i386
  • DNS
  • Automatic LAMP (Linux, Apache, MySQL and PHP)

Introduction
Sometimes I like to play with Linux to see what a particular distribution has to offer, sometimes I just do it as part of my job - either the the case I always do it with pleasure. I'd like to have more time to publish many adventures in my experience - but that's another story.


Preparation

Disk partitioning - 80 GB (multi-OS proposal)

hda1 = /mnt/hda1-msdos (bootable, FAT16 - MS-DOS, 2 GB)
hda2 = /mnt/hda2-windows (bootable, NTFS - Windows XP, 12 GB)
hda3 = / (bootable, ext3 - Ubuntu, 12 GB)
hda4 = extended
hda5 = /mnt/hda5-ntfs (extended, 12 GB)
hda6 = /mnt/hda6-ntfs (extended, 12 GB)
hda7 = /mnt/hda7-ntfs (extended, 12 GB)
hda8 = /mnt/hda8-fat32 (extended, 12 GB)
hda9 = swap (extended, linux swap, 12 GB)


Network settings
  • eth0 = SIS900 PCI (built-in) => DHCP (no link)
  • eth1 = Realtek 8139 => DHCP (got IP)

Server settings (if asking at installation)
  • [X] DNS
  • [X] LAMP



Post-install

Hosts
# vi /etc/hosts
127.0.0.1               localhost.localdomain localhost
192.168.0.100           server1.example.com server1

UpdateDB
# sudo updatedb

Setup more repositories
# sudo vi /etc/apt/sources.list
=>> uncomment 'universe' repositories
# sudo apt-get updateSSH
# sudo aptitude install ssh
# vi /et
DMA settings
>> DMA is activated by default. To check, type:
# sudo hdparm /dev/hdc
Setup preferred desktop manager
=>> /etc/X11/default-display-manager
* for KDM, the file should read /usr/bin/kdm
* for GDM, the file should read /usr/sbin/gdm
New programs

mc 4.6.1 (Midnight Commander) - 1 dependency
# sudo aptitude install mc zip unzip arj
=> remove "exit" confirmation when close it

iptraf 3.0.0 - no dependencies
# sudo aptitude install iptraf

Links2 - graphics and text mode WWW browser, similar to Lynx
# sudo aptitude install links2

centericq - console multi-messenger
# sudo aptitude install centericq

X Window System - basic graphic mode
# sudo aptitude install x-window-system

GDM - graphical login prompt
# sudo aptitude install gdm

XFCE 4.3.99.1
# sudo aptitude install xfce4
Notes:
1. Make sure you have set up 'universe' repository
2. Make sure you have x-window-system installed

* Alternative 1:
# sudo aptitude install x-window-system gdm xubuntu-desktop
See notes above.

* Alternative 2:
# sudo aptitude update && sudo aptitude install xubuntu-desktop

Gnome
# sudo aptitude install gnome-core
#
sudo aptitude install ubuntu-artwork
Note: make sure to have set up 'universe' repository (!?!)
- error at login: "GConf schema installer error. battery_low_percentage cannot be zero". To investigate.
- double-click on Mixer icon error: "Failed to start Volume Control: Failed to execute child process"gnome-volume-control" (No such file or directory)"
- some other errors when installing packages for X (gnome, xfce):
"Errors were encountered while processing:
acpid
acpi-support
powermanagement-interface
gnome-power-manager
gnome-session
gnome-core
E: Sub-process /usr/bin/dpkg returned an error code (1)"

* Alternative 1:
# sudo aptitude install x-window-system gdm edubuntu-desktop
See note.

* Alternative 2:
# sudo aptitude install ubuntu-desktop

KDE
# sudo aptitude install x-window-system gdm kbuntu-desktopNotes (!?!):
1. Make sure you have set up 'universe' repository
2. Make sure you have x-window-system installed

* Alternative 1:
sudo aptitude install kubuntu-desktop

Terminal 0.2.5.4beta2 - X Terminal Emulator
=> installed with Xfce

Terminal Server Client (Rdesktop - RDP, VNC)
# sudo aptitude install tsclient

Firefox 2.0.0.1 - 3 dependencies (12/37 MB)
# sudo aptitude install firefox
=> automatically in menu, under Network category [Firefox browser]

Thunderbird 1.5.0.9 - 2 dependencies (10/32 MB)
# sudo aptitude install mozilla-thunderbird
=> automatically in menu, under Network category [Thunderbird Mail]

aMSN - MSN messenger
# sudo apt-get install amsn
Note: Make sure you have set up 'universe' repository
Gaim - multi-messenger
# sudo aptitude install gaim
Note: Make sure you have set up 'universe' repository
GNOME Commander 1.2.0 - drives buttons
# sudo aptitude install gnome-commander
=> automatically in menu, under Accessories category [GNOME Commander]

Atol 0.7.0 - dual panel file manager, built-in archive viewer
# wget ftp://ftp.akl.lt/Linux/Baltix/Baltix-Ubuntu-packages/dapper/atol-file-commander/
# sudo dpkg -i atol_0.7.0-0baltix1_i386.deb
=> automatically in menu, under Office category [Atol]

File Roller 2.16.1 - archive manager (for Gnome)
# sudo aptitude install file-roller

Xarchiver 0.4.0 - lightweight archive manager (for Xfce)
# sudo aptitude install xarchiver

OpenOffice.org
# sudo aptitude install openoffice.org
=> automatically in menu, under Office category [Database, Presentation, Spreadsheet, Word Processor]

AbiWord 2.4.5 (M$ Word support)
# sudo aptitude install abiword

Gnumeric Spreadsheet (Excell support)# sudo aptitude install gnumeric

XMMS 1.2.10 (10 dependencies) [2/12 MB]
# sudo aptitude install xmms
=> automatically in menu, under Multimedia category [XMMS Music Player]

Xfburn 0.2.0 - CD/DVD burning tool
sudo aptitude install xfburn cdrdao cdrecord

Helix-Player 1.0.6 (real-player support)
# yum install HelixPlayer
=>> got error: "The following components are required: protocol_rtsp_rdt"
=>> didn't know how to fix it


Install and configure:




Tools of network administrator in Linux router
Tools of network administrator in Linux router

Links:
Official website
Ubuntu Installation Guide
Ubuntu Server Guide
Working with your desktop
My Ubuntu Installation




Despre acest blog
Disclaimer and privacy statement
Actualizat: 2007-03-07.

___


No comments: