This file contains a list of steps needed to setup additional programs I use on a RedHat Linux system. To find out answers I used various sites on the Internet. You can find an incomplete list at the end of this file.
You will have to do the following steps to ensure that you you will be able to see your data with the new OS.
To save a database into text format execute: pg_dump dbname > dumpfile
To restore a text dump of a database
psql template1
and then at psql prompt create database dbname
and \q. psql database < dumpfile
Execute svnadmin dump <myrepo>
> dumpfile for every repository you have.
To restore a repository into the newly installed OS type svnadmin
create newrepo;svnadmin load newrepo < dumpfile
User home directories are in /home/user.
These need to be saved only if you don't have the users data on a
separate logical volume (LVM).
Users,groups and shadow files are /etc/passwd,
/etc/group and /etc/shadow.
fdisk -l /dev/hda > log.txt df -h >> log.txt mount >> log.txt lvdisplay -m >> log.txt
I use two computers: a Dell Latitude C840 Laptop and a Dell Precision 530 Desktop.
I use a dual-boot Linux/Windows system with the following partitions:
| /dev/hda1 | /boot |
100MB |
| /dev/hda2 | /mnt/windows |
26GB |
| /dev/hda3 | Linux LVM | |
| LogVol00 | / |
10GB |
| LogVol01 | /home |
7GB |
| LogVol02 | /home/data |
17GB |
| LogVol03 | /usr/local |
2GB |
/
without affecting /home. Logical Volumes can
be resized, which is of great help if you want to move things around,
or you didn't get the partition sizes right the first time. Follow the instructions form fedorafaq.org
Create the following two links:
/root/.bashrc --> /home/<user</.bashrc
/root/.bash_login --> /home/<user>/.bash_login
yum install kmod-ntfs. If this
doesn't work, you will have to download manually the packages
appropriate for your kernel version: kmod-ntfs-2.1.26-4.2.6.16_1.2096_FC5.i686.rpm
and ntfs-kmod-common-2.1.26-2.lvn5.noarch.rpm
Check your kernel version: uname -r
and your processor: rpm -q --queryformat "%{ARCH}\n" kernel
Install NTFS rpm for your kernel and processor from http://rpm.livna.org
Load the driver: modprobe ntfs,
check the kernel logs: dmesg|grep NTFS, and
check if the kernel understands NTFS: cat /proc/filesystems
Find out the partition with the NTFS file system: fdisk
-l, mount the partition: mount /dev/hda2
/media/windows -r -o -umask=0222. If you want the
partition to be mounted at start-up, update /etc/fstab,
by adding the following line:
/dev/hda2 /media/windows ntfs ro,defaults,umask=0222 0 0
If you want a bigger window and no menu for the terminal
use the following parameters in the Launcher Properties: gnome-terminal
--geometry 80x40 --hide-menubar
yum install beagle wv gnumeric
Install xorg-x11-deprecated-libs from a FC4 repository and then intall nvu-1.0-1.rhel4.fs.i386.rpm.
rpm -e --nodeps totem;yum install
tetex-prosper octave octave-forge flash-plugin unace totem-xine
libdvdcss libdvdnav gstreamer-plugins-ugly alacarte yumex,
mplayerplug-in vnc-server unison pgadmin3 python-imaging psgml html401-dtds.noarch latex2html timidity++ mozplugger
yum --enablerepo=dag install mpg123
Disable handling of Real Media by adding in
/etc/mplayerplug-in.conf to lines
enable-helix=0
enable-rm=0
yum -y --enablerepo=atrpms install 'vtk*' cmake paraview PyOpenGL w32codec rapidsvn
/usr/local/share/texmf/tex/latex/usr/local/share/texmf/tex/latex/spietexhashInstall apa and apacite
(layout for American Psychological Association papers) and enumitem
(layout for enumerate, itemize and description) from CTAN in /usr/local/share/texmf/tex/latex.
Remove HelixPlayer-1.0.1.gold-6,
install RealPlayer10GOLD.rpm from http://www.real.com/linux/
and then reset FireFox cache rm
~/.mozilla/firefox/pluginreg.dat.
yum --enablerepo=dries install rar unace
To install nrg2iso find the rpm and install it. I could not
find a rpm for Fedora, but the one for Suse I found works
fine.
rpm -ivh nrg2iso-0.4-2.guru.suse102.i686.rpm
Install AdobeReader_enu-7.0.5-1.i386.rpm,
and then go to System>Administration>Security Level and
Firewall>SELinux>Modify SELinux
Policy>Compatibility>Allow the use of shared libraries
with Text Relocation
Setup Firefox plugin:
cd /usr/lib/mozilla/plugins
ln -s /usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so
Install Finance::Quote perl module that allows automatic
updating of the price of stocks and mutual funds you own. You have to
run the command update-finance-quote as root.
See GnuCash Tutorial and Concept Guide/Investment/Setting Stock Price
Automatically.
Add your users to users group. I
use this to provide everybody with access to CVS.
Queue Type,
Networked JetDirect, Printer
ip address of the printer and Port: 9100. and
a printer driver Color LaserJet 4600Queue Type,
Networked JetDirect, Printer
ip address of the printer and Port: 9100. and
a printer driver LaserJet 4100ftp://download.canon.jp/pub/driver/bj/linux/bjfilter-common-2.50-2.i386.rpm
and
ftp://download.canon.jp/pub/driver/bj/linux/bjfilter-pixusip4100-2.50-2.i386.rpm
/etc/init.d/cups restart.
http://localhost:631 and then Add Printer, Device: Canon MP760 (Canon MP760), Model: Canon Pixus IP4100 Ver.2.50 (en)
/etc/udev/rules.d/60-libsane.rules the
following line # Canon Inc.|PIXMA760
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="1708", SYMLINK+="scanner-%k"
Create a file /etc/udev/rules.d/10-visor.rules
that contains:
KERNEL="ttyUSB[13579]", SYMLINK="pilot"
See http://www.clasohm.com/blog/one-entry?entry_id=12096 for more informations about this.
You have to login as user postgres
and then use psql template1 to create a
PostgreSQL user that will match your username. Use create
user <user> superuser; for this. This will
allow you to connect directly to a database without specifying your
user name, if you are doing this from your account, and will allow you
to create databases. Exit psql with \q.
In /var/lib/pgsql/data/pg_hba.conf
you have to set what computers you accept connections from . If you
want to accept connections only from localhost
your IPv4 connections should look like the following:
#host all all 127.0.0.1/32 ident sameuser
host all all 127.0.0.1 255.255.255.255 trust
Install pgaccess, a user
friendly database editor. Untar pgaccess-0.98.7.tar.gz
in /usr/local.
Install msttcorefonts-1.3-3.noarch.rpm
from http://www.mjmwired.net/resources/mjm-fedora-fc3.html#ttf
and then restart the X Font Server: service xfs restart
Set the DocumentRoot in your /etc/httpd/conf/httpd.conf
to point to the root of your web pages: /home/<user>/public_html.
Set global read permisitons on public_html
cd ~;chmod ugo+x .For SELinux, change the security context of
chmod -R ugo+r public_html
public_html
and its content:
ls -Zd public_htmlIf the
chcon -R -t httpd_user_content_t public_html
chcon command fails you might need to
relabel the files system:
touch /.autorelabelor
reboot
fixfiles relabel.
To specify the administrator of the web server set ServerAdmin
your@email.address.
Upgrade jpackage-utils with yum
--enablerepo=jpackage-generic update jpackage-utils.
Download the following non-free packages from http://www.jpackage.org:
java-1.5.0-sun, java-1.4.2-sun,
jta, java3d, java-1.5.0-sun-manual
Non-free packages need to be rebuild by executing the following steps:
rpmbuild
--rebuild <package>. This will tell you what
non-free binaries are missing./usr/src/redhat/SOURCESnosrc package./usr/src/redhat/RPMSnosrc
package, you might be able to fix this by:
/usr/src/redhat/SPECSrpmbuild -bs
<specfile>cd ../SRPMS;rpmbuild
--rebuild <srpm>Install the Firefox plug-in:
cd /usr/lib/mozilla/plugins
ln -s /usr/lib/jvm/java-1.5.0-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so
Install Java Libraries: yum install
tomcat5-admin-webapps tomcat5-webapps jakarta-commons-cli
jakarta-commons-cli-javadoc jakarta-commons-fileupload-javadoc
More information about JPackage at:
jpackage-utils-1.6.3-1jpp at file:///usr/share/doc/jpackage-utils-1.6.3/jpackage-1.5-policy.xhtmlI removed the offending package: rpm -e
--nodeps geronimo-specs-compat
In the past I did this with mod_jk.
The same thing can be achieved with mod_proxy
which comes with httpd package. Add the
following lines in /etc/httpd/conf/httpd.conf
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so ProxyRequests Off # transfer URLs for 'convert' ProxyPass /convert/ http://localhost.localdomain:8080/convert/ # transfer URLs for 'hs' ProxyPass /hs/ http://localhost.localdomain:8080/hs/ # URL conversion for redirect from Tomcat to httpd ProxyPassReverse / http://localhost.localdomain:8080/
Make SELinux happy by checking System>Administration>Security
Level and Firewall>SELinux>Modify SELinux
Policy>HTTPD Service>Allow HTTPD scripts and modules to
connect to the network.
To access the root of the Tomcat installation type http://localhost:8080.
To be able to deploy applications using Tomcat Manager you will have to
change /usr/share/tomcat5/conf/tomcat-users.xml,
add two roles manager and admin
and a user having these two roles. See the existing file as an example
on how to do this.
To deploy an application, use Tomcat Manager and Select
WAR to upload and then press Deploy.
The .war file will be copied to /usr/share/tomcat5/webapps
and the context file will be copied to /usr/share/tomcat5/conf/Catalina/localhost.
Libraries installed by hand:
cd /usr/share/java/Libraries installed using JPackage:
ln -s /home/<user>/external/acme.jar
ln -s /usr/local/jogl-1.1/jogl.jar jogl-1.1.jar
ln -s jogl-1.1.jar jogl.jar
mkdir saxon8;cd saxon8
for i in /usr/local/saxonb8/*.jar; do ln -s $i; done
cd /usr/lib/jvm/java/jre/lib/i386
ln -s /usr/local/jogl-1.1/natives-linux/libjogl_cg.so
ln -s /usr/local/jogl-1.1/natives-linux/libjogl.so
cd ${JAVA_HOME}/jre/lib
build-jar-repository ext xerces-j2 postgresql-jdbc3.jar java3d acme jogl commons-cli saxon8
Copy OOoLatex-2.3.1/bin/OOoLatex to
~/bin. Install the macro from
OOoLatexMacro-test2/macro-2.0/script.xlb by selecting
Tools/Macros/Organize Macros/OpenOffice.org
Basic.../Organizer.../Libraries/Append....
Assign Ctrl-M shortcut to the operation that
creates the equation dialog, by selecting
Tools>Customize>Keyboard, for
Category select OpenOffice.org
Macros>user>OOoLatex>OOoLatexEquation and for
Function select main, select
OpenOffice.org radio button and select
Control+M and press Modify
Install vmware-any-any-update103.tar.gz
from here
before you run vmware-config.pl.
Add the folders you want to share between the host OS
(GNU/Linux) and the quest OS (Windows). VM>Settings...>Options>Shared
Folders>Add. To access a shared folder you can
explore My Computer and then navigate to My
Network Places>Entire Network>VMware Shared Folders.
Install the RPM from FreeWRL
home page. You will need the following aditional packages: yum
install libXp-devel openmotif openmotif-devel mesa-libGLw
mesa-libGLw-devel mesa-libGLU-devel. See this
for more links.
The driver configured by default nv
works well.
To install the hardware accelerated driver type yum
install kmod-nvidia.
Change /etc/pm/functions-nvidia and change
inside function resume_video() from:
/usr/sbin/vbetool post to
#/usr/sbin/vbetool post.
Change /etc/grub.conf and add after
kernel ... agp=off. See the
following fedoraforum.org
discution for more about this
Download atmel-firmware-1.3.tar.gz
from here,
and copy atmel_at76c502_3com.bin and atmel_at76c502_3com-wpa.bin
to /lib/firmware.
Setting the optimum vertical refresh for Dell 1900FP
Change in /etc/X11/XF86Config, VertRefresh
56.0- 61.0 (instead of up to 76.0). That will make the
graphic card to choose the refresh rate of 60Hz (instead of 75Hz) which
is said to be optimal for the display.
yum install apcupsd. See more
information at www.apcupsd.org
References: