

How many Ubuntu flavors can I run at once?
This is Virtualbox-OSE running on top of Ubuntu Intrepid x64. Guest OSes are OpenGEU (a flavor of Ubuntu that uses the Enlightenment DR 17 window manager), eeebuntu (a flavor of ubuntu aimed at ASUS eee pc's), and Ubuntu Hardy Heron i386.
Next up: I need to find a legitimate Windows XP license to run XP in virtualbox's "seamless" mode.
Performance isn't too bad, actually.

Terms of use are no less a part of "the product" than are the size of the database and the speed with which the software compiles listings. Competition among vendors, not judicial revision of a package's contents, is how consumers are protected in a market economy
There are a number of clear ramifications here. The first is that the code can be used by outsiders to better understand how the Facebook application works, for the purposes of finding further security holes or bugs that could be exploited. Since Facebook is a closed source application, without access to the code security holes are usually found through a process of black-box testing, whereby an external party will probe the application in an attempt to work out how the application behaves and to try and find potential race conditions. In closed source applications it is common that developers rely on the closed nature of the application to obfuscate poor design elements and the structure of the application. An attacker getting access to the source code more often than not leads to further security holes being discovered. It is for these reasons that it is often claimed that open source software is more secure than closed source software, since there are many more eyes auditing the code and obfuscation can’t be used as a security measure.
The second implication with this leak is that the source code reveals a lot about the structure of the application, and the practices that Facebook developers follow. From just this single page of source code a lot can be said and extrapolated about the rest of the Facebook application and platform. For instance, the structure doesn’t follow any object oriented development practices, and it seems that the application is one large PHP file with a large number of custom functions living in the same namespace (they also seem to be using the Smarty templating engine).
;; God is the REPL
(defparameter *heaven* (make-instance 'heaven)) ; 1:1
(defparameter *earth* (make-instance 'earth ; 1:1
:form nil ; 1:2
:void nil ; 1:2
:water-face nil)) ; 1:2
(push *heaven* *CREATION*) ; 1:1
(push *earth* *CREATION*) ; 1:1
(defparameter *light* t) ; Needed later for 1:3
(defun dark-p (x) (not (eq *light* x))) ; Needed for 1:2
(assert (dark-p (slot-value *earth* 'water-face))) ; 1:2
(assert *light*) ; 1:3
(defun good-p (x) (eq x *light*)) ; Used in 1:4
(assert (good-p *light*)) ; 1:4
(defparameter *Night* (remove-if-not #'dark-p *CREATION*)) ; 1:4-5
(defparameter *Day* (remove-if #'dark-p *CREATION*)) ; 1:4-5
(let* ((first-day (car *Day*))
(evening (car first-day))
(morning (cdr first-day)))
...)
This is the first extensive post I will make from my old IBM Thinkpad
570e. New hostname: hooptie.
I have decided, George Foreman-like, that I am not gonna spend
a lot on a laptop, and to that end, I bought this lappy cheap. This is
the first time in my life that I was able to get actual IBM hardware, so
I was pretty excited. Having been a little kid back in the day when
personal computers were still advertised as "IBM-compatible," IBM always
stood for hardware that was almost impossibly out of reach. Heavy-duty
clicky keyboards, thick steel cases with mottled battleship gray paint,
glowing phosphorous monochrome CRTs.
Getting hooptie up and running properly has been a bit of a
struggle.
This is a rather unconventional installation report; if
you want hard technical information, you might be disappointed. But if
you're at all interested in how Linux runs on a Thinkpad 570e in the era
after Debian Potato, well, read on, brave reader, read on.
The main goal for this project is a lightweight notebook. By
"lightweight," I mean both in terms of actual physical
mass--hooptie tips the scales at just under 2 kg when detached
from its docking station--and in terms of software setup.
This computer can and does (occasionally) run X, but I envision it as
mainly a text-mode computer. I'm reasonably comfortable operating in
the console, and with no fancy X server gobbling up system resources, I
figure I might be able to squeeze a few more seconds or minutes out of
my battery life. Moreover, I'm hoping that keeping my ugly 80-column
terminal look will deter any campus thieves.
From a purely aesthetic standpoint, running a minimal install is a
rebuke to the bling-is-king aesthetic that projects like beryl have brought to the desktop Linux
world lately. I am going against that. This laptop is about
keepin' it real.
For hooptie to be a useful portable, it was going to need some
sort of power management. I already knew that this series of laptops
handled power-management using APM, and that hibernation (i.e.,
suspend-to-disk), was going to require a special hibernation partition.
While there is a Free Software hibernation-partition creation utility
(tphdisk, written by the redoubtable Andrew "Tridge" Tridgell),
I hadn't had much luck with it. Instead, I wimped out and went for the
disk
image provided by IBM, which worked very well for me, as we'll see
later. This created a suitable hibernation partition at /dev/hda1.
Of course, there were a few quirks. . .
I've been an enthusiastic Ubuntu
user since the Warty Warthog release back in 2004. The current version
of Ubuntu, in the standard year-month version number scheme, is 6.10,
"The Edgy Eft," while the current super-stable, long-term release
version is 6.06.1, "The Dapper Drake."
Any of these will work with the Thinkpad, but because my only network
connection for this computer is a Linksys WPC-11 v.3 PCMCIA wireless LAN
adaptor, I have a bit of a problem. See, the adaptor uses the
orinoco driver, which up until recently, was probably the
best-supported wireless device driver in all of Linux. Totally Free
Software, no pesky FCC-mandated closed-source firmware, plug-and-play in
the kernel. Enough to make Stallman absolutely ecstatic, right? Except
that as far as I was able to make out, orinoco seems to be
broken in all kernel versions greater tha 2.6.12; either it doesn't
work at all (wrong modules are loaded) or it loads the right modules but
works badly (DHCLIENT fails).
Consequently, I was forced to go to the Ubuntu release based on a
2.6.12 kernel-- version 5.10, "The Breezy Badger," released (as you
might have guessed from the name) in October 2005.
Naturally, since I wanted the barest minimum install, I went with the
'server' install option. Once it was all over, I was left with a
gloriously bare Linux install with a perfectly running 2.6.12 kernel.
I also wanted slightly more current applications than were available
for Breezy, though. So I executed an apt-get dist-upgrade to
the Dapper, while apt-pinning the kernel. Now I had Dapper's userland
on Breezy's kernel, making my own freakish Ubuntu, "The Dapper
Badger."
I wasn't done with kernel shenanigans, yet. I wanted APM, but
Debian (thus, Ubuntu) kernels tend not to enable APM by default. So to
the default kernel options in /boot/grub/menu.lst I had to
append acpi=off apm=on.
Time to aptitude install me some software. In keeping with
my goals for this project, installed a number of command-line programs:
irssi for IRC, mutt for mail, slrn for
usenet. . . as well as an X server and my favorite lightweight window
manager--fluxbox. All set, right?
Not quite yet. There is the matter of getting my power management up
and running. The crucial packages to get here are laptop-mode
and apmd. apmd allows me to interact with the apm
system to learn important things like how much time I have left on my
battery. laptop-mode is a series of scripts that allow me to
spin down my hard drive and system fan in an effort to reduce power
drain. In order to take advantage of both, I had to write a little
script:
#!/bin/bash
# A spindown script. Run this as root, foo!
hdparm -S 4 /dev/hda
laptop-mode start
I know. I said at the beginning that this whole project was supposed
to be an antidote to the pimp-my-desktop beryl ricer aesthetic. But
there were a few things I needed to get to first.
I have lately become a fan of the terminus font family for console
work, so I installed the relevant terminus font packages from the
repositories with aptitude. Now the problem was, how to set it?
Debian (and thus Ubuntu) keep their default console settings in
/etc/console-tools. /etc/console-tools/config deals
with global console configuration issues. The last line sets the
default console font. All I had to do was edit it and replace it with
the appropriate font name from /usr/share/consolefonts.
Easy!
So much for prettification. Now on to actual useful stuff.
I'm a vim user. I'm writing this on vim right now,
as it happens. And, while the 570e has an otherwise awesome keyboard
for a laptop, its Escape key is tiny and hard to reach. I needed
something different.
To remap keys on your keyboard in Ubuntu, you have to edit
/etc/console-tools/remap
which is nothing more than a script that runs sed on the output of
dumpkeys. The example script turns the capslock key into a control
key, which doubtless will bring great joy to all you dumb terminal guys
and emacs zealots out there. *I*, however, modified it
suitably to give me the escape key that I wanted there.
The config files in /etc/console-tools are called by the
init script at /etc/init.d/console-screen.sh, so to reflect any changes, we have to
sudo /etc/init.d/console-screen.sh restart
Ubuntu Dapper, for some reason, does not run
/etc/init.d/console-screen.sh at startup. So, we have to make it do so.
I ended up adding a line to /etc/rc.local to make it load on
startup.
In X, we have to run xmodmap at start. First, we create
~/.Xmodmap, filling it with the following:
! Esc on caps lock
remove Lock = Caps_Lock
keysym Caps_Lock = Escape
Now all we have to do is run xmodmap at aI'm quite pleased at how this has all turned out. The laptop is lean
and mean. Battery life (even with 'new' batteries) is a bit
underwhelming, but then the original battery benchmarks didn't take into
account the (likely considerable) current draw of a PCMCIA device with a
radio transmitter. I'm sure I could lock this down and squeeze more
milliamperes out of it (especially for train commutes) but at the
moment, things are pretty much as I want them to be.
The next step will be for me to learn how to use LaTeX more
effectively, so I can take my notes in vim and use LaTeX to produce
beautiful study guides.
This is clearly an upstream bug in the hostap kernel module. So please make sure you have got a prism based card with this ID and send the pccardctl ident output to the linux-pcmcia list so the appropriate string based matches get extended.
I guess it's not that easy to make a generic fix for this as one has to determine if the card is hermes/prism based while probing.![]() | You are viewing Log in Create a LiveJournal Account Learn more | Explore LJ: Life Entertainment Music Culture News & Politics Technology |