Posts

installing firefox 1.5.0.4 on centos 4.3

Well, i'm sure there are a hundred different ways of doing this. I believe you can even download the rpm from somewhere, but I decided to download it directly from mozilla. Visit http://www.mozilla.com/firefox/index.html and it will have the download link. The program comes in a form of a tar.gz file. This means after you download it, you need to run the following command in terminal. $ tar xzvf firefox-1.5.0.4.tar.gz $ su # mv firefox /opt/ # cd /usr/bin/ # mv firefox firefox-1.0.7 # ln -s /opt/firefox/firefox firefox # cp /opt/firefox/firefox /opt/firefox/firefox-1.5.0.4 I'm quite sure this isn't the best way of doing it, but it works. It shouldn't get stuffed up with any patching as well and should be easy enough to recover. If anyone knows a better way, please feel free to correct me.

coldplay concert 23rd Jun 2006

Image
A pretty good concert, looks like most people replaced lighters with light from mobile phones. Only managed to see one guy with a lighter during the whole event. Lots of camera flashes as wel. I need to upgrade my phone's camera. VGA just doesn't cut it anymore. Anyway here's it again with the lights on.

psc 2510 install on centos 4.3

If you have the full installation of centos, there is actually very little to do to establish printing and scanning for the HP PSC-2510 printer. Setup printing : Plug in the printer and turn it on. A dialog box should pop up and you just need to select (HP | PSC 2500 series) as the connected printer If you launch the (applications > system settings > printing) application you should see the printer. Setup scanning : start a terminal window and su as root $ su - # ptal-init setup -v follow the prompts, this works for network as well, but in my case my connection is just usb. Probe for USB-connected devices ([y]/n)? y Probing "/dev/usb/lp0"... Found "psc 2500 series" # exit $ xsane This runs xsane which is the scanning application

centos 4.3 install - yes again

After my failure to install a new kernel, I realised that the LVM default install wasn't any good. So I decided to try again. This time, i did a manual disk setup and created one /dev/hda1 for the / install with about 7.8 GB, enough for the install and other source files if required. /dev/hda2 for swap twice memory for 1538 MB. And the last /dev/hda3 for /home to speed up the mp3 process just run this # rpm -ivh http://mirror.optusnet.com.au/dag/redhat/el4/en/i386/dag/RPMS/xmms-mp3-1.2.10-11.1.2.el4.rf.i386.rpm It downloads and installs in no time.

my oracle dba past

I was trying to look up an old friend with google with no luck and just decided to do a search on my name as well. I discovered this new link. Apparently someone actually found my script useful and posted it at this forum. Cool. http://www.dbaclick.com/forums/archive/48/9798.html

iptables cheats

Can't remember iptables commands and what youre doing? Its easier to modify the default saved configuration instead of trying to write your own ipchains especially if you do not do this on a daily basis. step 1: find your iptables config file. Use "locate iptables | more". This should give a listing of anything related to iptables. Normally this should be in the /etc/sysconfig/ directory step 2: change your rules using vim centos: /etc/sysconfig/iptables openwrt: /etc/firewall.user and run: centos # /etc/init.d/iptables restart openwrt(i think) # /etc/init.d/S45firewall restart The good news is that in most cases now, the default firewall does give an example of a tcp port and udp port. and openwrt gives a commented version on forwarding ports. e.g. WAN=$(nvram get wan_ifname) ### Port forwarding iptables -t nat -A prerouting_rule -i $WAN -p tcp --dport 22 -j DNAT --to 192.168.0.2 iptables -A forwarding_rule -i $WAN -p tcp --dport 22 -d 192.168.0.2 -j ACCEPT Note t...

yum updates using a proxy

I did this for centos, but I'm sure its usable on anything that uses yum. create a new file for dag repo in /etc/yum.repos.d called dag.repo Find your local ISP mirror. I think both pacificnet and optus does mirrors. Here is what the file should look like. name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://mirror.optusnet.com.au/dag/redhat/el$releasever/en/$basearch/dag/ gpgcheck=1 enabled=1 After creating this file, you can run the following commands to complete the update. # export http_proxy=http://proxy:port[dag] # yum update