Skip to main content

Posts

Showing posts from June, 2006

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

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.

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 that in this …

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

fwbuilder and checkpoint firewall

Is it me or are the two interfaces rather similar? When I first installed fwbuilder on windows xp, i thought this looks rather familiar. I know I've seen this before.

Suddenly it dawned on me that that was how checkpoint firewall looked on the solaris firewall box. Ooo.

Anyway, its something worth checking out especially if you have a linksys router, although it is still an overkill.

http://www.fwbuilder.org/

enterprise ready cent os - the install

This weekend, I decided to blow away fedora core 3 and install something supposed to be more stable and enterprise ready. Part of the reason was also to do with another disk reshuffle and I've been finding an excuse to swap my creative live drive with my cdrom. the SDPIF cable was blocking the tray from opening properly. So why not just do a new distro upgrade as well.

Being familiar with redhat, I didn't think it would be that much of a challenge. Well, needless to say there were a couple of hickups. The first one being I had the install DVD and my machine didn't have the DVD rom. So off I went to download the 4 cd's.

After the installation, it refused to boot failing at the boot loader. I decided to stick to defaults and use the suggested LVM with root and swap. I modified the LVM to include a bigger mount for /home. As I was going to change my distro if things go sour.

After the machine booted sucessfully with the recommended disk partitions, I stuck in my backup hardd…