Installation
Installation is not very complicated and is discussed lots of places.
KDE
Log out and choose KDE from Session
Log in and set KDE as default
Update the system
Run pup/Software Updater from the System menu.
alternatively:
# yum -y update
Reboot if the kernel has been updated
Setup things using a terminal
Start a Terminal (found under System) and type this:
# su -
- Sudo (will be done automatically in install personal files)
# visudo
Move to the bottom of the file, and to the end of the line
Press a (puts visudo in write mode) and enter
Type:
johnny ALL=(ALL) ALL
Change johnny for whatever username you’re using
Press Esc followed by :wq (this will save and quit)
- Change default hostname (keep forgetting that during installation)
# joe /etc/sysconfig/network (will be set on next reboot)
Change HOSTNAME=
Press Ctrl-k x to quit and save
# hostname
Install personal files
# rpm -Uvh johnny-firstinstall-1.0.x-y.i386.rpm
This will install all my emacs dotfiles, gaim setup, xmms setup, vmware files, ncftp setup, mplayer setup, personalized .bashrc and a global bash setup. It will set up sudo and create rpm build directory in my home directory
Sleep mode
Rightclick the batteryindicator in the bottom right corner, and choose Options
Go to the ACPI tab, and enable everything there
Close the settings window and open it up again
Choose Sleep-mode when lid is closed
Change the profiles for power to your likings
Sleep mode when critical level is reached
Setup desktop environment
Right click panel (bottom) and choose properties
Arrangement - Size: small
Taskbar - Uncheck ‘Show windows from all ?’, check ‘Show only minimized windows’
Add gnome-terminal to panel (add non-KDE program)
Add Binary clock and KWireless to the panel
Setup gnome-terminal
Edit->Profiles
Edit Default
Set scrolling to 10000 lines
Setup keyboard shortcuts
Start Control Center in the menu
Regionalt og tilgjengelighet - Hurtigtaster
Remove Alt-F4 key binding
Add:
Alt-F1 - Raise window
Alt-F3 - Lower window
Alt-F9 - Minimize window
Then create a shortcut to toggle play/pause in amarok:
Regionalt og tilgjengelighet - Input-handlinger
Ny handling
General tab
Handling: Amarok pausePlay
Handlingstype: Snarveistaster->DCOP-kall (simple)
Keyboard shortcut: Pause
Instillinger fro DCOP-kall
Remote program: amarok
Remote object: player
Function: playPause
Now delete all entries for xmms, since they relate to the Pause button as well. There is one inside Menu Editor entries as well.
Setup window behaviour
In Control Center
Desktop - Window behaviour - Focus follows mouse
Setup Thinkpad support
depmod /lib/modules/`uname -r`/kernel/drivers/char/nvram.ko
/dev/nvram already exists, otherwise mknod /dev/nvram c 10 144
chmod 664 /dev/nvram
Install firefox extensions
Open up Mozilla extensions
Install these (links on all):
SwiftTabs,Video downloader,Foxytunes,Bookmark Duplicate detector,AdBlock Plus, FlashGot, Session Manager, Forecastfox, Mouse Gestures, Linky, Answers, Flashblock, PDF Download, DictionarySearch, FoxClocks, TorrentSearch, Foxmarks Bookmark Synchronizer, (Mozilla Calendar)
Developer stuff:
Firebug,
Web Developer, Selenium, Selenium Recorder, HTML Validator, EditCSS, Checky
Install neat stuff
Update 6/6-2006: This didn’t work very well (stopped midway, didn’t keep track of what was installed etc…)
so jump to the next section…
# su - (to become root)
# wget -c http://easylinux.info/uploads/frog.tar.gz
# tar zxf frog.tar.gz
# yum update (if you haven’t updated for a day or so)
# xterm -e ~/.frog/frog.run
Check the extra programs you want installed.
PS: Make sure you let this script run without interruption and that ‘Extra repositories’ is checked.
Some of the packages are for Gnome only, so don’t bother to install those if you switched to KDE.
You will have to answer questions if you select Java and Acrobat Reader.
Install neat stuff2
Download some repos
tar xf repos.tar -C /etc/yum.repos.d
rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/5/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm
rpm –import http://freshrpms.net/packages/RPM-GPG-KEY.txt
rpm –import http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt
rpm –import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
Install additional modules/remove modules
# rpm -e totem rhythmbox
XMMS
# yum -y install xmms xmms-mp3 xmms-skins xmms-wma xmms-cdread xmms-flac xmms-modplug xmms-aac xmms-alarm xmms-crossfade xmms-xosd
Multimedia stuff
# yum -y install amarok amarok-visualisation audacity streamtuner grip xine xine-lib xine-skins videolan-client kino mplayer* kdemultimedia-extras
# yum -y –enablerepo=livna install amarok-extras-nonfree totem-xine k3b-mp3
# rpm -Uvh http://www.linuxtips.info/mplayerplug-in-3.25-2.rf.i386.rpm
Miscellaneous
# yum -y install acroread firestarter tuxtype2 stellarium stellarium-doc alacarte xscreensaver-gl-extras xscreensaver-base fortune-mod install yumex flash-plugin rar unrar unace p7zip digikam gwenview kipi-plugins webmin pgadmin* bash-completion ncftp
Games
# yum -y install ppracer frozen-bubble gweled lbreakout2 lincity-ng powermanga starfighter scorched3d supertux
Nagios
# yum -y install nagios nagios-devel nagios-plugins nagios-nsca
Fonts
# yum -y install fonts-arabic fonts-chinese fonts-gujarati fonts-hebrew fonts-hindi fonts-japanese fonts-korean fonts-tamil fonts-bengali fonts-punjabi hunky-fonts xorg-x11-fonts*
# rpm -Uvh http://www.linuxtips.info/msttcorefonts-1.3-4.noarch.rpm
# service xfs restart
Java
# wget http://www.linuxtips.info/jre-1_5_0_06-linux-i586.bin
# sh jre-1_5_0_06-linux-i586.bin
# rm -f jre-1_5_0_06-linux-i586.bin
# mv jre1.5.0_06 /opt/
# ln -s /opt/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins
# wget http://www.linuxtips.info/java.sh
# mv java.sh /etc/profile.d/
# source /etc/profile.d/java.sh
# /usr/sbin/alternatives –install /usr/bin/java java /opt/jre1.5.0_06/bin/java 2
# echo 2 | /usr/sbin/alternatives –config java
Install codecs
Download all-xx from MPlayer
eg:
# wget http://www4.mplayerhq.hu/MPlayer/releases/codecs/all-20060611.tar.bz2
# tar jxf all-xx
# mkdir /usr/local/lib/codecs
# mv all-xx/* /usr/local/lib/codecs
# rmdir all-xx
# ln -sf /usr/local/lib/codecs /usr/lib/win32
Enable/disable services
chkconfig httpd on
chkconfig isdn off
chkconfig irda on
chkconfig netplugd on
chkconfig smb on
chkconfig snmpd on
chkconfig snmptrapd on
service httpd start
service irda start
service snmpd start
service snmptrapd start
Setup PostgreSQL
# su - (to become root)
# chkconfig postgresql on
# service postgresql start
# su - postgres
# createuser -P johnny
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) y
# exit
# joe /var/lib/pgsql/data/pg_hba.conf
Change ident sameuser to md5 (bottom of the file, all three entries)
# service postgresql restart
# su - johnny
# psql postgres
postgres=# alter user postgres password ‘<new password’>;
postgres=# \q
Setup MySQL
chkconfig mysqld on
service mysqld start
/usr/bin/mysqladmin -u root password ‘new-password’
Setup ntp client
chkconfig ntpd on
joe /etc/ntp.conf #(check bottom for valid time servers)
service ntpd start
Setup samba server
chkconfig smb on
joe /etc/samba/smb.conf
(
Change the workgroup parameter to your liking
Add these lines to the [global] section
dos charset = 850
display charset = iso-8859-1
unix charset = iso-8859-1
Add these lines to the end of the file to share the whole root partition:
[lappen]
path = /
)
smbpasswd -a johnny
service smb start
Install dictionaries
Download language files. Norwegian from here: Norwegian language files
Alternatively, latest files of 1. May 06 is here
Unzip/untar the contents and extract the actual dictionary files (*.dic, *.aff, *.dat, *.idx)
Copy these files to /usr/lib/openoffice.org2.0/share/dict/ooo
Start OpenOffice.org and choose Tools->Settings… In Language, select the default language
Setup Thunderbird
-Add a mail account with my settings
-Other settings:
-Dictionary:
* Copy the *.aff/*.dic files from /usr/lib/openoffice.org2.0/share/dict/ooo to /usr/lib/thunderbird-1.5/components/myspell
This didn’t work:
-Add dictionary from http://www.mozilla.com/thunderbird/dictionaries.html
* Save the xpi-file to your home directory
* Tools->Extensions, Click Install
* Navigate to the xpi-file and install it
-Edit->Innstillinger…
* Visning->Skrifttyper->Tegnkodinger: UTF-8
* Skriving->Generelt->Videresend meldinger->Innbundet
* Skriving->Generelt->Automatisk lagring hvert 1 minutt
* Skriving->Stavekontroll->Språk: Norwegian
Setup amaroK
Using postgreSQL (revisit PostgreSQL setup if not already done):
[johnny@lappen ~]# createuser -P amarok
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles? (y/n) n
CREATE ROLE
[johnny@lappen ~]# createdb amarok
CREATE DATABASE
Set sound engine in settings to alsalink
Now start amarok and choose these settings in Settings…
Engine:
-Directories: /usr/local/RealPlayer/(common|plugins|codecs)
-Output plugin: alsa
Setup samba shares in fstab
These are the samba shares I mount on my machine.
Note that from Fedora Core 5 the filesystem is cifs and not smbfs
//server/podcasts /opt/mp3/_Podcasts cifs auto,credentials=/root/johnnycreds,uid=johnny,gid=navtek,rw 0
//server2/share /server2/share cifs auto,credentials=/root/johnnycreds,uid=johnny,gid=navtek,rw 0
/root/johnnycreds looks like this:
username=
password=
Install World Community Grid - Help fight AIDS
Download from here
Open a terminal and type
# mv boinc_5.2.13_i686-pc-linux-gnu.sh /opt
# cd /opt
# sh boinc_5.2.13_i686-pc-linux-gnu.sh
# /opt/BOINC/run_client &
# /opt/BOINC/boinc -attach_project www.worldcommunitygrid.org d22fd4b62d4987009c4e477dd439acef & (note: this is my account key. Please create your own at World Community Grid
# echo “/opt/BOINC/boinc -attach_project www.worldcommunitygrid.org d22fd4b62d4987009c4e477dd439acef&” >>/etc/rc.local
(Not used:
Download boinc from here and place it in /etc/rc.d/init.d/boinc
# chkconfig boinc on
# service boinc start
)
Setup wireless
Setup modem
Setup bluetooth
Setup firewire/dv-grabbing
Mount Windows NTFS partitions:
Use uname -rm to get the running kernel version.
Download and install NTFS module from:
Linux NTFS
Add the following line to /etc/fstab (Note: these are my personal lines. Find you own using fdisk -l)
/dev/hda1 /mnt/C ntfs ro,defaults,umask=0222 0 0
/dev/hda2 /mnt/D vfat defaults 0 0
Run these commands:
# depmod /lib/modules/`uname -r`/kernel/fs/ntfs/ntfs.ko
# mkdir -p /mnt/C /mnt/D
# mount /mnt/C
# mount /mnt/D