There’s currently a lot of very pretty snow around here.
I especially like the funny shapes the wind has created at one corner of the house.
My place to post silly pictures and rants, even though I’m no longer a PhD-student.
There’s currently a lot of very pretty snow around here.
I especially like the funny shapes the wind has created at one corner of the house.
Today I read on tmbinc’s blog about how he modified a cheap Ethernet-switch to be VLAN capable.
With VLANs you can fan out the single built-in Ethernet-interface of your computer to several isolated networks. These cheap switches (you can get them with 8 ports for about 10€) have this functionality because they use the same chips as common plastic routers that separate their three different types of network ports with the same technique and usually connect with a ninth MII-port that’s not being used in a common desktop-switch.
I had tried to do the same in the past, but initially failed as I blew the serial i2c-eeprom during my attempts of programming it, but today I didn’t make any mistakes that destroyed the little thing. As my configuration is different from tmbinc’s, I’ll make it also available in the archive linked to below.
The Process to make your switch (that has to use a RTL8309SB IC) VLAN capable.
The configuration in the .zip-file provides you with 6 untagged ports and 2 tagged ports according to the table below:
| Label on Switch | RTL8309SB Port Number | VLANs |
|---|---|---|
| 8,7 | 0,1 | 1, untagged |
| 6,5 | 2,3 | 2, untagged |
| 4,3 | 4,5 | 3, untagged |
| 2,1 | 6,7 | 1…9, tagged |
| - | MII | Unused |
Download Configuration:
20100106_switch_eeprom_vlan.zip (798k)
I tested the switch with a Linux machine that has a NVIDIA nForce Gigabit Controller and my OpenSolaris NAS that uses a RTL8111/8168B PCI Express Gigabit Ethernet controller.
Update 2011-02-18: zip-file available again on new server
I installed the new and shiny Ubuntu Karmic on my computer today. Now there’s a speciality: I run the same installation (on a 2nd harddrive) both natively on the computer, but also in a VirtualBox VM.
That’s actually not complicated to setup, and most of the things work out fine, but there’s a remaining wart, which is the X-server needs additional and different configs for native-mode and running under the VM.
In former times, I just set the X-server being run by gdm (in /etc/gdm.conf) to /usr/local/sbin/Xserver.sh and used that shell-script to launch the correct server (with a different config, or even the same config but different “layouts”).
Now the wise men of gnome (gdm programmers) and Ubuntu decided to hardcode the paths of every component involved… And I only found out after learning…
So, again, in the sake of… “simplification”, or should I say dumbing-down, of their core programs, they made deviating from their “single user on a dedicated machine with internet dial-up” standard scenario even more painful. I might just use MS Windows then, because it basically adheres to the same “do what we have forseen and don’t deviate” belief.
Immediate update: One can adjust the symlink /etc/X11/X! Which isn’t documented (as far as I see) and also not as flexible as the original gdm.conf solution, but should suffice.
Opera just announced the existence of a upgrade to it. I told it to proceed, shorty after I noticed my (usually silent) PC to spin its fans vigorously…
This repeats whenever Opera is restarted, so I had to delete the offending file somwhere in %TEMP%. Great engineering, guys!
Update: Looks very shitty, but it works. I’ll replace those with real 6.2V Zeners the next time I order some electronics stuff.
Success! Even though I’m still scratching my head about the funny memory layout in graphics mode when using a 6x8 font. Time to read the datasheet (again).
New project: Using a Atmel ATmega168 to control a graphical Everbouquet LCD that itself uses a T6963C Controller. Right now it seems that I can read the status-register and data successfully. The integrated DC/DC controller (for the negative LCD driving voltage) powers up and delivers –9V.
I started playing around with a breadboard. Until now, I never had done this, but I have to say, it’s kind of convenient. The only downside: I don’t have pre-cut cables, so I used the one from a big spool I found, but they are kind of pink-ish ;-).
It hums. And I’m annoyed.
What did I do on Saturday? Well, via the wonder of the web, I watched my friend burn both himself and his baby daughter with his home-made amplifier, then rail against excel and python in an attempt to print out some gradesheets. He eventually got so angry he threw himself out the window. He was in the basement, but you have to appreciate the attempt.
Update: I modified the last stage to have less gain (4 instead of 20), so it better matches my source, furthermore I added a 5k resistor at the input to have less input impedance. That helped a lot.
Our junta of incompetent politicians have passed the law that will now introduce censorship in Germany. Ignorant assholes.