Posted on Leave a comment

PGP signature

My PGP key

—–BEGIN PGP PUBLIC KEY BLOCK—–
Version: GnuPG v1.4.9 (GNU/Linux)

mQGiBEbAzu4RBACnni7VtmImHwPKxvgRm6Q657MvAozeuaLDWiyoYA6t+dlTKtkj
cy05P+jcGiiD8PN196CEuX6he6W4gWGPArWpK7o1u7RXd/UMofJ/kVH74dJ98Pg3
rGThPr/GpPQ8oB5MeL2R8MVXycUXFJkVuEcAYbn2WIl6XOcoTvzra8KuawCglQCO
sKxJGDzEDOEea4Qjpcmig5MD/R+5MhARLelH/+jI94HxK4dmwLsCspg0HxAhwQwI
Qnf9sGB/iMXJghHjbBo7i34YXrADpwucf68iFLIylm51jjzHysBuoYNqVGoqbLcs
3CRp/J/xoLu82YqMqY9agFYwEbcRftmGshDqOHw4IBHHBTjXFHYta1IQCVm59/tP
czd4A/9ZEkFs4611l1xBnjCzOM7NKntFyCbmunTBpvyQKLGKOyWnS5VS4/g8NVfA
UXJCgu6OQKvrdmN7pn9Aa0Oen8KM1lhEcYQhOu7IhtC41RX/EriHPauR3DtkmoWq
weNF/sJnukOo/Ui9f5MI1rrydzdAgnwhADTE52tH/WMJQlxEKrRIanJlLXBob2Vu
aXggKG1vYmxvY2stZGViIG1haW50YWluZXIpIDxqcmUtcGhvZW5peEB1c2Vycy5z
b3VyY2Vmb3JnZS5uZXQ+iGYEExECACYFAkbAzu4CGwMFCQPCZwAGCwkIBwMCBBUC
CAMEFgIDAQIeAQIXgAAKCRDLU8QHkHKHC0jcAJ44PsVJhVNW/7Z+oIvaw3jBcP/T
2gCglBgiv5VSCKVLXvtuFRsRgrZabEK5AQ0ERsDO8BAEALvzb5FViglLWOxmu0F7
VmiJGerNZeOCsb5M3dOasvx9KbYGMaSgq8WAz8dBbEqrhK+GsrwmW03atxGe/oqB
qGzCJ/aufm6Jbc+9KSAWzbEKyyv1Kx+Kl8c5C6YKYrKw1WDdHcKEDjo4khRmz+ZV
YvQtoigjifP4rdHvnWWzHI1nAAMFA/4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UU9
TMSePyqMGQoeDK9f8djqhUht1DwCYqhH8L5hcc8zaW3XI0kciyvpRxg/p8KmKBU2
R8553jQky57ABj2Te3J3ANu37wnhq+mnGvPAgVbBjHi5PFdNxVbXCWNODsNdR/Yn
wAf8QDLfPVhRK0Ix6SlyRGFnVzS6de+mqVHUA8mppmyJ8edq4PjYvu+Vb4d9CUCX
kzRrR2X7kD6PhYqVU7r1tH3qnjQ5aYS4L+X3j23v36icmBfFWgCcCGE7ePoXVT2e
nSC+0iXoJPRTTWQoQVDkfaZ2+jtxT290ncTmrXntR+j7FcEZwg/udh8BOLF8Fx4Q
mVGD76YtKYy5CnDfAAMFCACcLSHhIizAFFkzedn2EV0D8GfWOzy/wP2EAKXG8T1s
RaiMM1L0xYqcABmn/ySyNiuA6yt1g6/VeT8IY7wp4SxnE0bkoSPOml4fY1a3TyoF
SCjQ2HVauzceoc0HmXFVc7/1NnUdtiCVMa4ro1XmERyEckMll0oTQ8ts23wVBZ0X
Vld301J6DK3DISri53zb8GQmNkzIWRkMrsgU1JCUKmQkqAT38UOtzy6ulwI2aZ3j
l+EdDmzocO4TQGfMPIYOIE13US6tOl3PRrta/wvvVbAg+Qn8jAEbKJhxIPQ63Ot/
dydvwK4BaYYV9FDnEZLQaBtvWe8oUdBFbuJvVDOHZLdGiEkEGBECAAkFAkliXS0C
GwwACgkQ133t+hVLTEknSQCdFRpKohBfrhgxplIPJl7jHgXve30AoLy+Ha2pteb/
jGzWODfwS3lOLaci
=GRul
—–END PGP PUBLIC KEY BLOCK—–

Posted on Leave a comment

Hacking my Lifedrive

WOw ,just read this thread in 1src forums about the Lifedrive CF hack and I find it amazing what it can do to ones Lifedrive.. I am planning to do this hack and I’ll probably document it here.

I had just recently bought a gps receiver for my lifedrive and I find that the lag is unacceptable for GPS . I hope this hack will solve that and I also will try to install Tomtom on a SD card that I also just bought. Lets cross our fingers folks!

Posted on Leave a comment

One small step

Hi! My name is Ralph Bacolod. I’m from the Philippines. I wrote this blog to show my love for Linux.

I first heard of linux back in 1998. I was new to the web then. I was hooked the very first time I surfed the web. But I was dismayed that I was using a very poor OS . Who hasn’t experience the dreaded BSOD (Blue Screen Of Death).

That got me started in my quest. Surely there is something better than this.

I found linux!

My first linux was Redhat. It was easy to install .The hard part was repartitioning the hard disk. This was two years ago. I installed redhat on the computer at work. I got the cd from a guy in our local LUG.

This past weeks got me kinda busy. I was busy surfing the web. I was looking for a cheap laptop I could install linux on. I finally bought one from ebay .I got it for $229. It’s a IBM Thinkpad 770x. I haven’t gotten my hands on it yet. It’s still in the post office. I’m gonna pick it up this monday..

Before this laptop,I was basically squatting for my linux experience. I installed Debian on my girls PC and also my sisters PC.
I also bought books so that I could learn more about linux.

Posted on Leave a comment

Awesome sound with ChainTech AV-710

Jus t upgraded my soundcard to a Chaintech AV-710. What i like about this card is the digital output,It’s way cooler to connect to my A/V receiver via TOSlink. I now can listen to my favorite internet radio through my receiver,Awesome!

Well,I had to search the net for a decent .asoundrc and I found one that works but It only allows me to connect through digital but not the analog. I want the analog to work coz my pc is in my bedroom and my A/V receiver is in the living room and I want the small speakers in my bedroom to function also.

So I did a little research and I did a little hack to my asoundrc .

Here is the original asoundrc.

I also added this to enable digital passthrough. You’ll need this if you want to watch DVDs and you want to hear Dolby/DTS surround sound. Just paste this to the original asoundrc.

pcm.!iec958 {
type plug
slave.pcm “hw:0,1”
}

I also made some some small tweaks to the asoundrc to allow me to switch outputs from digital to analog.
So this is the final asoundrc.

pcm.!default {
type plug
slave.pcm “dmixer”
}

pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm “hw:0,0”
format S32_LE
period_time 0
period_size 1024

# increased buffer_size because in my system 1024 cause bad
# audio performance (for totem media player and mplayer)
buffer_size 8096

rate 44100
}
bindings {
0 0
1 1
}
}

ctl.dmixer {
type hw
card 0
device 0
}

pcm.!iec958 {
type plug
slave.pcm “hw:0,1”
}

I just change dmix settings to device 0 instead of 1. So now what i do when I want to listen through my Onkyo 504 A/V receiver is this:

mplayer -ao alsa:device=iec958 *mp3

And If want digital surround Dolby or DTS :

mplayer -ao alsa:device=iec958 -ac hwac3 dvd://

Hope this Helps!

Posted on Leave a comment

My Openwrt “LinuxRules!” Dnsmasq setup for LTSP

Here it is ,my dnsmasq.conf :

# filter what we send upstream
domain-needed
bogus-priv
filterwin2k
localise-queries

# allow /etc/hosts and dhcp lookups via *.lan
local=/lan/
domain=lan
expand-hosts
no-negcache
resolv-file=/tmp/resolv.conf.auto

# enable dhcp (start,end,netmask,leasetime)
dhcp-authoritative
#dhcp-range=192.168.1.100,192.168.1.250,255.255.255.0,12h
dhcp-leasefile=/tmp/dhcp.leases

# use /etc/ethers for static hosts; same format as –dhcp-host
#
read-ethers

# other useful options:
# default route(s): dhcp-option=3,192.168.1.1,192.168.1.2
# dns server(s): dhcp-option=6,192.168.1.1,192.168.1.2

#My PXE setup 12-30-06
#dhcp-vendorclass=pxe,PXEClient

dhcp-option=17,”192.168.1.115:/opt/debian”
dhcp-option=128,e4:45:74:68:00:00
#dhcp-boot=/opt/debian/vmlinux,debian,192.168.1.115
dhcp-boot=/opt/ltsp/i386/vmlinux,debian,192.168.1.115
#dhcp-boot=/opt/linux/vmlinux,debian,192.168.1.115
dhcp-option=211,nfs
##
#new option from http://wiki.ltsp.org/twiki/bin/view/Ltsp/DHCP#dnsmasq
#
#dhcp-option=17,”192.168.1.115:/opt/ltsp/i386/”
#dhcp-vendorclass=pxe,PXEClient
#dhcp-boot=net:pxe,/var/lib/tftpboot/ltsp/i386/pxelinux.0,tux,192.168.1.115

The ones in red are the most important ones coz that will allow you to boot your thinclient via dhcp and nfs.

Posted on Leave a comment

Big Blue ThinClient with Debian

About a week ago ,I got the IBM Netvista 2200 that I bought from Ebay . I wasn’t expecting it to be that small a thin client . Its just about an inch and a half thick..Anyways, I was planning to setup it up as a diskless client. So I already had a pretty rough idea how a diskless client works.. To sum it up,it gets its kernel from a server and run everything off of that server ..

Well,for a client to boot from the server it must have PXE. Turns out mine doesn’t have it.. so it has to have some other means of booting from a server since it’s a thin client.. to get it to boot one must setup the dhcp server to serve the kernel via NFS since TFTP via PXE doesn’t work ..

I have my Openwrt setup that way ..I’ll post my dnsmasq here next time ..

Posted on Leave a comment

Azureus and Openwrt

The following problem has been bugging for the past two days . I have been using bittornado for my torrent needs ever since I was in to torrents. Bittornado is curses base and I tried Azureus which is java base for a while but I didn’t really tinker with it that much . Anyways ,I have a router in between my computer and my cable modem . I have OPENWRT White Russian on it. It’s really nice to have a little bit of something in between you and wild net outside ..

My home computer network looks like this :

* Debian Sid on a Pentium 3 500mhz
* Linksys WRT54G ver 2.2 i think
* Openwrt on the Linksys

I was trying Azureus 2.4.0.2 and I notice that It keeps telling me that my Router is not set up right . I always get a either a DHT firewalled or NAT firewalled status on the lower status bar .I went about googling for solutions :

1. I sshd to my router and added the ff line in my /etc/firewall.user: iptables -t nat -A prerouting_rule -i $WAN -p tcp –dport 6880:6990 -j DNAT –to 192.168.1.100:10000
iptables -A forwarding_rule -i $WAN -p tcp –dport 10000 -d 192.168.1.100 -j ACCEPT
iptables -t nat -A prerouting_rule -i $WAN -p udp –dport 6880:6990 -j DNAT –to 192.168.1.100:10000
iptables -A forwarding_rule -i $WAN -p udp –dport 10000 -d 192.168.1.100 -j ACCEPT
2. I reloaded the firewall after that by : #/etc/init.d/S45firewall restart
3. however that didn’t work ,so ;I tried changing /etc/config/firewall ,this file is used by NBD’s qos-scripts and according to the info I googled supposedly makes it easy to change the nat behaviour ..
I added this line: forward:dport=6880-69990:192.168.1.100:10000

All this suppose to setup my my portforwarding , this supposedly forwards all incoming connections to my routers ports 6880-6990 to my computers port 10000. .
I tried to look at my computers netstat output but all I can see was that my port 10000 is open and when I used shields-up to probe my port 6880-6990 ,it was also open but still no NAT success with Azureus..

I also noticed that the netstat output shows that there are tcp6 and udp6 ports that are open . I didn’t know that I was using anything that has to do with ipv6 .. So I googled my friend google ..hehehehe .. and I came across this forum for redhat users … It suggested there to turn off aliases for ipv6 in /etc/modutils/aliases . That took care of the ipv6 problem when I rebooted no more ipv6 ports opened but i still have no nat for Azureus ..

I finally got a working /etc/firewall.user line that worked .after so many hours of tweaking . I read somewhere that azureus or bittorrent for that matter doesn’t like the usual ports opened coz some isp’s are blocking this ,so I thought about it.. Maybe just change the dport to something else and don’t change the forwarding rule to another port .

So my final rule that got me is this :

iptables -t nat -A prerouting_rule -i $WAN -p tcp –dport 60881 -j DNAT –to 192.168.1.100
iptables -A forwarding_rule -i $WAN -p tcp -d 192.168.1.100 -j ACCEPT
iptables -t nat -A prerouting_rule -i $WAN -p udp –dport 60881 -j DNAT –to 192.168.1.100
iptables -A forwarding_rule -i $WAN -p udp -d 192.168.1.100 -j ACCEPT

That dport flag on the prerouting rule is arbitrary .. You can change it to anything . After this I reloaded the firewall and to make sure ,I rebooted the router and also my computer ..
I also change the port settings on Azureus and voila! Magic! My azureus is going green eversince ..

A few pointers ,give it a little while if at startup its yellow .. it takes a while for it to change ..Also,there are some torrents out there that is bad ,meaning ,there is no seeds and tracker site is down ,So if you run into this then it’s not really you thats the problem . Also, I don’t have to say this but if you’re torrenting you must be prepared to give,i mean don’t try to be a leech.. or you’ll get what’s coming to you ..

I hope this helps all those Azureus users out there. Coz ,this has got me some lost hours of sleep!

HTH

Posted on Leave a comment

I am Ralph

Hi! My name is Ralph Bacolod. I’m from the Philippines. I wrote this blog to show my love for Linux.

I first heard of linux back in 1998. I was new to the web then. I was hooked the very first time I surfed the web. But I was dismayed that I was using a very poor OS . Who hasn’t experience the dreaded BSOD (Blue Screen Of Death).

That got me started in my quest. Surely there is something better than this.

I found linux!

My first linux was Redhat. It was easy to install .The hard part was repartitioning the hard disk. This was two years ago. I installed redhat on the computer at work. I got the cd from a guy in our local LUG.

This past weeks got me kinda busy. I was busy surfing the web. I was looking for a cheap laptop I could install linux on. I finally bought one from ebay .I got it for $229. It’s a IBM Thinkpad 770x. I haven’t gotten my hands on it yet. It’s still in the post office. I’m gonna pick it up this monday..

Before this laptop,I was basically squatting for my linux experience. I installed Debian on my girls PC and also my sisters PC.

I also bought books so that I could learn more about linux.