Archive for the ‘tech’ Category
Upgrading my PS3 harddrive
Today I bought a new external USB harddrive, a MSI 320 GB, 4200 rpm 2.5″ disk. I removed it from it’s cabinet and replaced the 40GB disk from my PS3 with the 320 GB Fujitsu disk that came from the MSI case.
I expected the disk-upgrade for the PS3 to go quite easy, as I had already heard of some other people doing it, and many instruction pages and video’s online. I was however surprised by a message that popped up when I booted my PS3 after swapping the hard drive:
The system software cannot be run correctly. Press the PS button to try to restart the system.
If the system cannot be restarted, the system partition of the hard disk must be reformated and you must install the system software. Insert storage media that contains update data of version 2.30 or later, and then press the START and SELECT buttons at the same time.
For information on how to obtain update data, refer to the SCE web site for your region
After some searching I found the right update software and copied it tot a usb-stick and booted my PS3 again… still no luck.
After some more googling I found out that the update file “PS3UPDAT.PUP” needs to be placed in the /PS3/UPDATE directory on the usb-stick, or the PS3 won’t find it.
For EU playstations, you can get the update file here: http://uk.playstation.com/help-support/ps3/system-software/download/
For US playstations: http://www.us.playstation.com/Support/SystemUpdates/PS3
So now I’m waiting for the formatting to complete, and then I can restore my backup. Which will leave me with 280 Gigs of empty space to fill up with games, music and movies
Nokia finally getting it…
Today I was pleasantly surprised by the news that Nokia is gonna be releasing the N97 smartphone. It tickles all my buttons:
- Large hi-res display (640×360)
- UMTS/HSDPA
- Touchscreen + Accelerometer
- GPS (with a-APS)
- Symbian S60 OS (v5)
- Wifi/Bluetooth/Micro-SD
- Full QWERTY keyboard
- Huge amount of flash (32GB), expandable to 48
- Large battery
- 5Mpix cam with flash
I’m quite sure that this will be to device replacing my trusty E70… now only if they can ship them somewhere in Q1 2009
Optimizing memory usage on Virtual Private Servers
A repost from vps.stoned-it.com:
The smaller VPS’s might be a bit limited in memory if you want to run more advanced web-setups. In this post I’ll try to give some pointers on reducing memory usage, so you can have a more feature-full environment without running out of memory:
Looking at the memory usage in a smaller VPS a few things are obvious:
- sshd
- mysql-server
- apache
These processes are essential to the functioning of a VPS, but they can be tuned a lot. I’ve tuned a 80MB VPS from 4MB free back to 30MB free by making a few small modifications:
- Replace openssh-server and clients with dropbear, dropbear only uses 900K vs more than 3MB for OpenSSH
- Configure mysql for low-memory systems, by using the my.cnf recommended by vpslink
- Run apache’s prefork-mpm with the following settings:
-
StartServers 1
-
MinSpareServers 1
-
MaxSpareServers 5
-
ServerLimit 50
-
MaxClients 50
-
MaxRequestsPerChild 5000
-
- Disable any apache-module that you don’t really need with:
- a2dismod <module>
Using ‘top’, and sorting on the “RES” column you can easily spot the memory hogs. Try looking for smaller or simpler alternatives for large processes.
Also consider if you need various services, or that you could possibly do without.
Update 2008/11/04: Some more pointers for reducing your memory footprint (from the perspective of a debian etch install):
- Install ‘dash’ and make that the default shell (saves 2MB per shell)
- Install ‘runit’ to replace init and ‘runit-run’ to replace sysv-rc
- Install ‘socklog-run’ to replace sysklogd/syslog
- Remove the getty’s (as you only login over ssh anyway) from /var/service and /etc/sv, then reload runit.
This resulted in (on an otherwise idle and default debian-etch minimal install) in a memory-usage of 2564kb, with the following processes running:
root 1 0.0 0.0 104 20 ? Ss 10:38 0:00 runit
root 2930 0.0 0.7 2736 564 pts/0 Ss 10:48 0:00 dash
root 3429 0.0 0.0 132 32 ? Ss 10:57 0:00 runsvdir -P /var/service log:
root 3431 0.0 0.0 108 28 ? Ss 10:57 0:00 runsv socklog-unix
log 3432 0.0 0.0 160 76 ? S 10:57 0:00 svlogd main/main main/auth main/cron main/daemon main/debug main/ftp main
root 3433 0.0 0.0 108 32 ? Ss 10:57 0:00 runsv socklog-klog
log 3434 0.0 0.0 128 40 ? S 10:57 0:00 svlogd -tt main/main
nobody 3435 0.0 0.4 2528 332 ? S 10:57 0:00 socklog unix /dev/log
root 3436 0.0 0.3 2528 300 ? S 10:57 0:00 socklog ucspi
You still have all the features, and can still use bash for your interactive shells, but you can have the memory resources free when you need them, and also still have cron, syslog and sysv-rc functionality.
You can limit diskspace usage (not mentioned up to here) by using busybox and friends and uninstalling some packages busybox replaces. However, in my experience, diskspace is less an issue than memory.
Visiting Linux-Kongress.de
This week I’ll be at the Linux Kongress in Hamburg Germany. It’s a quite small congress, with 2 technical tracks which go quite in-depth into kernel stuff.
There doesn’t seem to be any official WiFi here that’s free to use, so I have been using Iodyne dns tunnels, and I’m not using an event accesspoint that’s put up by the GUUG guys.
My hotel only has paid wifi as well, but I couldn’t get Iodine working there. I did notice that ping traffic is allowed and let trough, so I’ve setup a ping tunnel now, using icmptx, which I’ll be testing tonight, when I’m back at the hotel.
Yesterday evening after I arrived in Hamburg I walked around town a bit, looking for a nice bar to have a drink… There aren’t too many near the reeperbahn (mostly just private clubs, sex joints and hookers…) but I finally found a nice Irish bar, with an unhealthy supply of Guinness and Murphy’s
Update: I was back at the hotel, and the pingtunnel (icmptx) works over wayport wifi
I also got the gifts I wanted to buy today
Proxytunnel over JoikuSpot
JoikuSpot Light is an application for Symbian S60 devices (like the Nokia E70) which will turn your gprs/umts mobile phone into a WiFi hotspot. The free ‘light’ version of Joikuspot only allows HTTP and HTTPS connections, by proxying them. I always like to possibility to use SSH, and other protocols, so I tried to use proxytunnel to connect with ssh. I couldn’t get a connection working, while regular HTTPS traffic from my browser to a banking-site worked perfectly.
After playing around a bit with Wireshark, netcat and proxytunnel I found out that the Joikuspot accesspoint will only proxy connections created with the HTTP/1.1 protocol, and not with the 1.0 protocol.
Proxytunnel only uses 1.0 connections, and netcat would also not work when using ‘-X connect’ proxy support. Proxytunnel was quickly fixed to use the 1.1 protocol, as I don’t think there are any proxies out there that do not support 1.1, I expect this won’t have any side-effects.
So, if you are a proxytunnel user, please test the current subversion snapshot (r248) and report any regressions/issues to the proxytunnel list. If you are a JoikuSpot user, please try out this new proxytunnel version, as it should now work with your mobile accesspoint.
Computer failure

How to turn on an ATX power supply (connect pin 13+14)
Last weekend the PC I use as mediacenter (xbmc/vlc) wouldn’t boot anymore. It would turn on, but then nothing would happen, just a black screen, no BIOS messages, no beep, no nothing.
Trying to debug the system I unplugged all non-essential hardware (disks, pci-cards, usb, video, etc) and re-seated the memory. The system still didn’t respond, so I carefully inspected the mainboard for busted capacitors or other possible failures, but I couldn’t find any obvious issues.
When I turned on the system the powersupply fan and cpu-fan would start turning, but nothing more. I expected the mainboard to be dead, or maybe the bios to be broken, both things I couldn’t really fix myself, so the system was a write-off and I was looking for a replacement.
I ordered a new Dell Studio system, as that seems to be a good replacement for mediacenter use. It’s small, looks nice and has enough power to play back HD media. Another nice feature of this system is that it had a HDMI interface to connect it to my HDTV.
I was still fiddling with the pc when I friend called and suggested that the power-supply might be faulty. I still had a brand new power-supply lying around which I got at eth-0, so I swapped it with the old and noisy powersupply and booted the system.
The fans started spinning and *BEEP*, there was the all to familiar on-boot beep telling me that the system seemed to be working again. I turned off the system again, reconnected the harddisks, plugged in the videocard and closed the case. I connected the system to the tv and could finally watch some movies and series again
While watching the remaining Firefly episodes I decided to test the old/failed powersupply, and looking on the web for the correct pin-out/voltages and the method to turn it on (connect pin 13+14 with a paperclip). My multimeter told me that all pins and voltages were correct and within specifications, so it seems that they might only be wrong when put under load. I have no idea how to test that, but i’m open to suggestions… otherwise I’ll just bin it, as it was a cheap supply anyway… but I should get a new spare… you never know when you need one.
I expect the Dell Studio to arrive in about 2 weeks… but I’m happy to have fixed my older system again, as it’s the only system I have which has halfway decent (nvidia 6600) graphics hardware (all other systems use in-chipset video (intel 945, sis, via) for playing games.
A review of the Studio will follow asap.
Froscon talk well received
The proxytunnel talk Dag and I did at Froscon 2008 was very well received by the froscon crowd. Not bad for my first conference-talk ![]()
I also really enjoyed myself at Froscon, and will most likely be back there next year, either as a speaker, or just as a visitor.
Doing a talk at OpenCommunityCamp.org
Tomorrow, wednesday August 13th, I’ll be giving a short talk about Proxytunnel at the OpenCommunityCamp. If you are interested, and have time, please drop by in Oegstgeest, as everyone is welcome and it is free (as in beer and speech).
Very pricey domain-name
I got this renewal letter for a domain I manage…
While domain-names come in various price ranges, 500 pounds was a bit steep for just the name. A short call to the registry later the bill was reduced to a reasonable 24 pounds
Creating LTO barcodes
At work we use LTO-2 and LTO-3 tape-robots, which use barcodes to identify tapes. However, these barcodes can be very expensive and hard to come by. This made me look for a method to create the barcodes myself.
I’ve put my web-based version on a new page: Barcode Generator
I found Terry Burton’s ‘postscriptbarcode‘. Which is capable of creating the required ‘Type 39′ barcodes.
After mucking about in postscript (which is not something I do with pleasure…) for a while I got a decent working layout/method to create my barcodes. It can be automated even more, but I only need 1 or 2 sheets of barcodes, so I’ll leave this as an exercise for the reader
.
- Download ‘postscriptbarcode‘, and extract barcode_with_sample.ps from it
- Remove the lines (near the end) between ‘Helvetica findfont’ and ‘showpage’
- Replace the lines with the output of genbarcodes.sh (included below)
- Preview the file in evince or a viewer of choice
- Print the postscript file, preferably on sticker-paper, cut and stick on tapes
The required barcode-lines can be generated with the following simple bash script:
#!/bin/bash
BASE=”100″;
NR=$BASE
for hor in 30 220 410
do
ver=740
while [ $ver -ge 40 ];
do
printf -v FNR “(%06dL3)” $NR
echo “$hor $ver moveto $FNR (includetext height=0.55) code39 barcode”
let ver=$ver-70
let NR=NR+1
done
done
Replace ‘BASE’ with the number where you want to start numbering, it is incremented by 1 for each barcode, and the barcodes are formatted with the number, filled to 6 digits, appended with ‘L3′. The coordinates are for A4 format paper.
The resulting pdf example of the above script.




