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.
yum install gcc make kernel-devel
yum install gimp GREYCstoration-gimp.i386 gimp-help.noarch gimp-resynthesizer.i386 ufraw-gimp.i386 xsane-gimp.i386 xfig
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
Execute rpm --import
/etc/pki/rpm-gpg/RPM-GPG-KEY*
Create the following two links:
/root/.bashrc --> /home/<user</.bashrc
/root/.bash_login --> /home/<user>/.bash_login
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
yum install emacs psgml html401-dtds.noarch
xhtml1-dtds.noarch latex2html emacs-auctex
tetex-xdvi xpdf aspell-en
For psgml copy
http://www.utoronto.ca/webdocs/HTMLdocs/HTML_Spec/xhtml1.0/xhtml.soc
and xhtml1.dcl into
/usr/share/sgml/xhtml1/xhtml1-20020801/DTD. This
works with SGML_CATALOG_FILES environment
variable and with the xml-mode and psgml-mode entries in
.emacs file.
/usr/local/share/texmf/tex/latex/usr/local/share/texmf/tex/latex/spieapa 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.texhashrpm -e --nodeps totem;yum install
octave octave-forge flash-plugin totem-xine
libdvdcss libdvdnav gstreamer-plugins-ugly alacarte
mplayerplug-in vnc-server unison pgadmin3 timidity++
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
rapidsvn PyOpenGL python-imaging
Install RealPlayer10GOLD.rpm from http://www.real.com/linux/
and yum install compat-libstdc++-33
and then reset FireFox cache rm
~/.mozilla/firefox/pluginreg.dat.
yum install rar unace nrg2iso
rpm -ivh --prefix=/usr/local AdobeReader_enu-8.1.1-1.i486.rpm
Modify SE Linux to allow Adobe Reader to run:
Applications > System Tools > SE Linux Management >
Boolean > Allow making a modified private file mapping
executable (text relocation).
Setup Firefox plugin:
cd /usr/local/Adobe/Reader8/Browser/ ./install_browser_plugin
If the plugin doesn't work see
/usr/local/Adobe/Reader8/Browser/HowTo/ENU/Browser_Plugin_HowTo.txt. I
had to uninstall mozplugger to make adobe reader
plugin to work.
Modify SE Linux to allow Adobe Reader to run:
Applications > System Tools > SE Linux Management >
Boolean > Allow making the heap executable (execheap).
Add your users to users group. I
use this to provide everybody with access to Subversion.
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
using yum localinstall --nogpgcheck
bjfilter-*.
/usr/share/cups/model/canonpixusip4100.ppdlsusb to find out the bus and the device on
which your scanner is connected and then do chmod
ugo+w /dev/bus/usb/<bus>/<device>/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.
yum install postgresql postgresql-jdbc
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.
Follow instructions at fedorafaq to
builds and install
msttcorefonts-2.0-1.noarch.rpm
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.6.0-sun
java-1.5.0-sun, java-1.4.2-sun,
jta, java3d, java-1.6.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.xhtmlIn 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/ ln -s /home/<user>/external/acme.jar ln -s /usr/local/jogl-jsr-231-1.0.0/jogl-1_0_0-linux-i586/lib/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 for i in /usr/local/jogl-jsr-231-1.0.0/jogl-1_0_0-linux-i586/lib/*.so; do ln -s $i; doneLibraries installed using JPackage:
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.
Setup the repository:
wget https://dl-ssl.google.com/linux/google-repo-setup.sh bash google-repo-setup.shInstall software:
yum install picasa google-desktop-linux
Make sure bluetooth service is running:
service bluetooth status, check if the Bluetooth
adapter is detected: hcitool dev list a device
hci0, and check that the Palm device is
discovered: hcitool scan. Make a note of the
address listed.
Modify /etc/bluetooth/rfcomm.conf, uncomment
the example, and change bind yes and add the
device address on the line device .... Restart
the bluetooth service.
Add a file /etc/ppp/peers/dun that contains:
115200 192.168.100.177:192.168.1.1 local ms-dns 192.168.10.254 noauth debug
The important values are 192.168.100.177 the
IP address of the PC the palm pilot connects to,
192.168.1.1, the IP address the Palm device
will get, and 192.168.10.254, the DNS server
the local computer uses. You can find out the DNS server IP
address by executing cat /etc/resolv.conf
Start Bluetooth dial-up networking daemon: dund
--nodetach --listen --persist --msdun call dun
When you are done testing and you wan to always have the
Bluetooth dial-up networking daemon running you have to edit
/etc/sysconfig/dund and add
DUNDARGS='--listen --persist --msdun call dun'
and then start dund daemon in System >
Administration > Services
Note that your PC will become a router that routes packets
from your Palm Pilot (interface ppp0) and send
them out on the external network (interface
eth0). Note also that your PC needs to do SNAT
(source network address translation) (IP masquerading) for
packets that arrive from your Palm Pilot. To do that use the
scrip at Linux IP
Masquerade HOWTO in section 3.4.1
with EXTIF=eth0 and INTIF=ppp0.
The driver configured by default nv
works well.
To install the hardware accelerated driver type yum
install kmod-nvidia-legacy and then modify the end
of /etc/X11/xorg.conf to read
Section "Extensions"
Option "Composite" "Disable"
EndSection
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
There is an unwanted
interaction between pulseaudio and skype. I have tried the
instructions at pulseaudio website but they didn't work for
me. Search for pulseaudio skype to get more
information.
libxcb-1.0-4 to libxcb-1.1-1I used the script at: http://daveshuck.instantspot.com/blog/2008/01/29/cxliblock-failed-error-on-Java-applications and that worked for me. Aparently, there is an old version of xinerama library statically linked in with java and that creates problems. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373 for more info. The script is:
#!/bin/sh # S. Correia # 2007 11 21 # A simple script to patch the java library in order # to solve the problem with "Assertion 'c->xlib.lock' failed." # see bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373 LIB_TO_PATCH=libmawt.so for f in `find /usr/lib/jvm -name "$LIB_TO_PATCH"` do echo "Patching library $f" sudo sed -i 's/XINERAMA/FAKEEXTN/g' "$f" done
Unfortunatelly this didn't work for
jogl-jsr-231-1.0.0 I have installed on my
machine. So I had to revert back to
libxcb-1.0-4.
References: