Tag Archives: ubuntu

Lo, Intrepid Ibex is coming

It would be a couple of minutes now, to finish my download of Kubuntu Intrepid Ibex. Yeah really, I embraced the idea to download Ubuntu, something was unthinkable on my previous dial up connection. Nice to see someone spend their monthly quota on something other than stupid Youtube video streams, right?

I’m using Kubuntu Gutsy Gibbon and the idea got into me after I drool over a few KDE 4 screenshots. The decision was not without doubt, however, I put quite a few days before hitting that download link yesterday. I know there are several issues on KDE 4, both on usability front and stability wise with the later more weighs more important to me.

Well, its done now. I shall march forward to the sweat, blood, and tears after a fresh install!! (and prospective self-loathing why I did this in the first place). This might my last time posting this using my trusted Kubuntu 7.10.

Leave a comment

Filed under Pendapat gak penting

Setup Ubuntu 7.10

Note: You can also download the nicely-formatted PDF file, or you can just go straight to the source.

This document was intended for me personally, but I think it can be much useful for others ( especially other Linux newbies ). I’m sorry for the lack of comments and/or if it doesn’t meet your expectations, after all this is only a list of what I use on MY computer, surely you have different needs than I am.

As always, I would like to hear comments (especially if I overlooked anything), advice, or (constructive) critics. Spare me the comment about how stupid I am, yes, I know I can just use one-liner ‘dpkg -i’ or to use ‘apt-get install’ instead of installing those debs.

A. Core Utilities

A.1. SSH Server

Setting up SSH server (and later on sshfs) is important for me because I work on this computer from another computer connected through LAN.
A.1.1. Install
# dpkg -i openssh-server_4.6p1-5build1_i386.deb
# dpkg -i sshfs_1.7-2.1_i386.deb

A.1.2. Setting up SSH identity
# ssh-keygen
# cat ~/.ssh/id_rsa.pub | ssh user@otherbox "cat - >> .ssh/authorized_keys"

A.2. Basic compiling environment

Since later on the setup process I’ll have to compile one or two programs, and quite a few afterwards, to install a series of programs needed to enable me to do this task is the next thing to do.
A.2.1. Install
NOTE: These files can be found inside Ubuntu Live CD.
# dpkg -i /media/cdrom/pool/main/l/linux-source-2.6.22/linux-libc-dev_2.6.22-14.46_i386.deb
# dpkg -i /media/cdrom/pool/main/g/glibc/libc6-dev_2.6.1-1ubuntu9_i386.deb
# dpkg -i /media/cdrom/pool/main/g/gcc-4.1/libstdc++6-4.1-dev_4.1.2-16ubuntu2_i386.deb
# dpkg -i /media/cdrom/pool/main/g/gcc-4.1/g++-4.1_4.1.2-16ubuntu2_i386.deb
# dpkg -i /media/cdrom/pool/main/g/gcc-defaults/g++_4.1.2-9ubuntu2_i386.deb
# dpkg -i /media/cdrom/pool/main/d/dpkg/dpkg-dev_1.14.5ubuntu16_all.deb
# dpkg -i /media/cdrom/pool/main/p/patch/patch_2.5.9-4_i386.deb

A.3. Vim (+ GVim)

Vim is an essential tool for modifying text files, which is common in Linux.
A.3.1. Install
# dpkg -i vim-gui-common_1%3a7.1-056+2ubuntu2_all.deb
# dpkg -i vim-runtime_1%3a7.1-056+2ubuntu2_all.deb
# dpkg -i vim-gtk_1%3a7.1-056+2ubuntu2_i386.deb

A.3.2. Optional components for Python programming
# dpkg -i vim-doc_1%3a7.1-056+2ubuntu2_all.deb
# dpkg -i vim-scripts_7.1.2_all.deb
# dpkg -i vim-python_1%3a7.1-056+2ubuntu2_i386.deb
# dpkg -i exuberant-ctags_1%3a5.7-1_i386.deb

B. Server Applications

B.1. Firebird

This is Firebird as database server ( not some e-mail client ). I need this because I make use FB for work and personal stuff.
B.1.1. Install
# dpkg -i gcc-3.3-base_1%3a3.3.6-15ubuntu2_i386.deb
# dpkg -i libstdc++5_1%3a3.3.6-15ubuntu2_i386.deb
# tar xf Firebird\ SuperServer\ v2.1.0.17798-0.i686.tar.gz
# cd FirebirdSS-
# ./install.sh
# cd ..
# rm -rf FirebirdSS-

B.1.2. Necessary post-installation steps
a. Setup database aliases :
# vim /opt/firebird/aliases.conf
b. Assign read & write access to database files to ‘firebird’ user and/or group.

B.2. TLS & SSL

This mostly related to my work.
B.2.1. Install
# dpkg -i libgnutlsxx13_1.6.3-1build1_i386.deb
# dpkg -i libtasn1-3-dev_0.3.9-1_i386.deb
# dpkg -i libpopt-dev_1.10-3build1_i386.deb
# dpkg -i libgpg-error-dev_1.4-2ubuntu1_i386.deb
# dpkg -i libgcrypt11-dev_1.2.4-2ubuntu2_i386.deb
# dpkg -i liblzo2-dev_2.02-3_i386.deb
# dpkg -i libopencdk8-dev_0.5.13-2_i386.deb
# dpkg -i libgnutls-dev_1.6.3-1build1_i386.deb
# dpkg -i libssl-dev_0.9.8e-5ubuntu3_i386.deb

B.3. MySQL

Although I’m more an FB enthusiast rather than MySQL but since most ( worthwhile ) PHP scripts make use of MySQL then I have to install it.
B.3.1. Necessary pre-installation steps
a. Create ‘mysql’ user & group
# groupadd mysql
# useradd -g mysql mysql

B.3.2. Install / Compile the server
# dpkg -i libncurses5-dev_5.6+20070716-1ubuntu3_i386.deb
# tar xf MySQL\ v5.0.67.tar.gz
# cd mysql-5.0.67

These lines related to what kind of CPU on the computer, they were taken from MySQL website:
# export CFLAGS="-march=pentium4 -mcpu=pentium4 -O3 -pipe -fomit-frame-pointer -msse -mmmx -mfpmath=sse"
# export CXXFLAGS="-march=pentium4 -mcpu=pentium4 -O3 -pipe -fomit-frame-pointer -msse -mmmx -mfpmath=sse -felide-constructors -fno-exceptions -fno-rtti"
# ./configure --with-mysqld-user=mysql --without-debug --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --disable-shared --enable-assembler --prefix=/usr/local/mysql
# make
# make install

B.3.3. Necessary post-installation steps
a. Create MySQL config file
# cp support-files/my-medium.cnf /etc/my.cnf
# vim /etc/my.cnf

Edit the file to set datadir (create `datadir` entry under `mysqld` section if not exists), and ..
# ln -s /usr/local/mysql/bin/my_print_defaults /usr/bin/my_print_defaults
b. Create GRANT tables
# /usr/local/bin/mysql_install_db --user=mysql
c. Test the server
# /usr/local/bin/mysqld_safe -user=mysql
d. Create INIT script
# cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysql
# chown root:root /etc/init.d/mysql
# chmod 755 /etc/init.d/mysql
# vim /etc/init.d/mysql

Edit the file for ‘basedir’, ‘datadir’, and pid file location.
e. Set proper access permission to any of those files (e.g. write permission for pid directory) when running the daemon as non-root user.

B.4. Lighttpd

I need it to use some PHP scripts and playing around with CGI.
B.4.1 Install / Compile the server
# dpkg -i libpcre3-dev_7.2-1ubuntu2_i386.deb
# tar xf lighttpd-1.4.18.tar.bz2
# cd lighttpd-1.4.18
# ./configure --without-bzip2 --prefix=/usr/local/lighttpd
# make
# make install

B.4.2 Necessary post-installation steps
a. Create the configuration file
# cp doc/lighttpd.conf /usr/local/etc/lighttpd.conf
b. Create INIT script
# cp /etc/init.d/skeleton /etc/init.d/lighttpd
# vim /etc/init.d/lighttpd

Edit the file and..
# update-rc.d lighttpd defaults
c. Create log directory
# mkdir /var/log/lighttpd
d. Set proper access permission to any related file (e.g. write permission for pid directory, or execute permission for cgi programs) when running the daemon as non-root user.

B.5. PulseAudio

See, I put my music collection on this computer and I only have this one set of speaker on the other computer. After a few experiments I found the best solution is networked audio system, as in PulseAudio’s not Ice/Shoutcast’s NAS.
B.5.1. Install
# dpkg -i libpulse0_0.9.6-1ubuntu2.1_i386.deb
# dpkg -i libpulse-browse0_0.9.6-1ubuntu2.1_i386.deb
# dpkg -i libpulse-mainloop-glib0_0.9.6-1ubuntu2_i386.deb
# dpkg -i padevchooser_0.9.3-2_i386.deb

This one is necessary because we need PulseAudio support for ALSA which available as plug-in.
# dpkg -i libasound2-plugins_1.0.14-1ubuntu3_i386.deb
B.5.2. Necessary post-installation steps
a. Update ALSA settings to use PulseAudio
# vim /etc/asound.conf
Edit (or create) this file and add these lines :

       pcm.pulse {
         type pulse
       ctl.pulse {
         type pulse
       pcm.!default {
         type pulse
       ctl.!default {
         type pulse

b. Set PulseAudio’s connection to audio server
# vim /etc/pulse/client.conf
Edit (or uncomment) the ‘default-server’ entry, or alternatively just use padevchooser to choose the server.

B.6. Music Player Daemon

The name is pretty self-explanatory. That and PulseAudio, go figure.
B.6.1. Install
# dpkg -i libid3tag0_0.15.1b-10_i386.deb
# dpkg -i libmikmod2_3.1.11-a-6ubuntu3_i386.deb
# dpkg -i libmpcdec3_1.2.2-1build1_i386.deb
# dpkg -i libfreebob0_1.0.3+svn443-2_i386.deb
# dpkg -i libjack0_0.103.0-6ubuntu1_i386.deb
# dpkg -i mpd_0.13.0-2ubuntu1_i386.deb

B.6.2. Necessary post-installation steps
a. Update mpd configuration
# vim /etc/mpd.conf
Edit the path to music directory, and set its audio output to PulseAudio as follows :

      audio_output {
        type     "pulse"
        name     "PulseAudio for MPD"
        server "TheOtherBoxActingAsPulseAudioServer"

b. Recreate the music database
# mpd --create-db

C. Utilities

C.1. Compression stuff

Nothing fancy, just some programs to support various file-archive format.
C.1.1. Install
# dpkg -i p7zip-full_4.51~dfsg.1-1_i386.deb
# dpkg -i unrar_1%3a3.7.3-1.1_i386.deb
# dpkg -i unzip_5.52-10ubuntu1.1_i386.deb
# dpkg -i zlib1g-dev_1%3a1.2.3.3.dfsg-5ubuntu2_i386.deb

C.2. libxml2 & libxslt

I have to say that this one, also, related to work.
C.2.1. Install / Compile libxml2
# tar xf libxml2\ v2.6.30.tar.gz
# cd libxml2-2.6.30
# ./configure --prefix=/usr/local/libxml2
# make
# make install

C.2.2. Install / Compile libxslt
# tar xf libxslt\ v1.1.24.tar.gz
# cd libxslt-1.1.24
# ./configure --prefix=/usr/local/libxslt --with-libxml-prefix=/usr/local/libxml2
# make
# make install

C.3. PHP

PHP is a handy scripting language, but IMHO inferior to Python. I set it up as fast-cgi for Lighttpd too.
C.3.1. Install
# dpkg -i libmcrypt4_2.5.7-5_i386.deb
# dpkg -i libltdl3-dev_1.5.24-1ubuntu1_i386.deb
# dpkg -i libmcrypt-dev_2.5.7-5_i386.deb
# dpkg -i libmhash2_0.9.7-1_i386.deb
# dpkg -i libmhash-dev_0.9.7-1_i386.deb
# tar xf PHP\ v5.2.6.tar.bz2
# cd php-5.2.6
# ./configure --enable-fastcgi --enable-discard-path --enable-force-cgi- redirect --with-openssl --with-zlib --enable-zip --enable-soap --enable-mbstring --with-mcrypt --with-mhash --with-libxml-dir=/usr/local/libxml2 --with-xsl=/usr/local/libxslt --with-mysql=/usr/local/mysql --prefix=/usr/local/php
# make
# make install

C.3.2. Setting up PHP for Lighttpd
# mkdir /var/run/lighttpd
# vim /usr/local/etc/lighttpd.conf

Enable ( remove comment on ) mod_fastcgi module, and enable PHP handling by fastcgi module ‘php-cgi’. Always save and restart the web server to apply changes.

C.4. SOX

Useful tool to play, convert, create and modify audio files.
C.4.1. Install
# dpkg -i libsamplerate0_0.1.2-5_i386.deb
# dpkg -i libmad0_0.15.1b-2.1ubuntu1_i386.deb
# dpkg -i libgsm1_1.0.10-13build1_i386.deb
# dpkg -i sox_13.0.0-1build1_i386.deb

C.4.2. Optional
# dpkg -i liblame0_3.97-0.0_i386.deb

C.5. ImageMagick

Another useful tool, I use it to convert, edit, and viewing pictures.
C.5.1. Install
# dpkg -i imagemagick_7%3a6.2.4.5.dfsg1-2ubuntu1_i386.deb

Leave a comment

Filed under Ilmu, Orang bego punya kegiatan