solipsistnation: page of cups (Default)
[personal profile] solipsistnation
Okay, so the Aspire One linux setup is... strange. It's not only stripped-down and weirdly single-user (that is, you set a password when you turn it on for the first time but after that you only type the password for software updates and, well, sudo (except that sudo doesn't require a password for "user." More on this later.)-- also your username is "user" and you can't change it without lots of potential weirdness), but the whole boot process is gutted.

There are, in /etc/init.d (and /etc/rc?.d and so on), what look like the normal assortment of init scripts, if the system had been set up by somebody who didn't really care about logging or network services, which is fine for this kind of system. (Too much logging would decrease the life of the SSD drive, and you don't necessarily need network services on a glorified portable web browser.) They are, however, not used.

Instead, the system boots up through the normal inittab process, which points off to /etc/rc.S, which bounces you to rc.last, rc.last.ctrl. rc.S sets up a few things and starts X(!), but most of the important stuff is in rc.last, which encapsulates much of the normal init script process and installs a bunch of kernel modules. rc.last.ctrl finishes off by setting a bunch of kernel parameters and so on. At that point, X has started and the user is seeing stuff show up, like a window manager (xfce, which is pretty cute) and the desktop icons. Note, however, that among the things NOT started yet are:

- the network

That's right, the whole thing boots up and starts X WITHOUT starting the network or any of the network management stuff.

That stuff is all started using the xfce "Start programs on login" system, from /etc/init.d/slim/nowait.sh. It consistes of a lot of calls to /etc/init.d/whatever, using sudo. The fourth line is "/etc/init.d/network start". I'm not kidding.

So you get your windows, icons, and a Windows-like bar across the bottom, which then starts to fill up with little icons. It's very familiar-looking from a Windows standpoint, but very weird from a unixy point of view. This is the point where the lack of logging or useful errors becomes pretty obvious-- I managed to break my setup so it would come up and complain "Internal Error: Failed to Initialize HAL" and could never figure out what was doing that. Stuff seemed to still work, but it was strange.

From when I first got it, I spent a lot of time tweaking, installing stuff, removing stuff, messing with compilers and packages and so on. There are a bunch of specially-built libraries on this thing, not the least of which is the gsynaptics driver and config system for the touchpad. I managed to break that quite thoroughly somehow (probably by messing with the original gtk libraries) and that's why I ended up reimaging the thing and starting over. I'm on the second install, and I've managed to get it all working pretty much the way I like without causing anything to break. I've installed Firefox 3 and assorted plugins (oldbar, adblock plus, and a theme that uses up less vertical screen real estate), set up the icons the way I like (having a Terminal icon is MUCH more important than having a Hotmail icon), set up Compiz and fusion-icon and 4 virtual desktops so the tiny screen seems like less of a handicap, and so on. I even managed to boot it to a partedmagic desktop so I could remove the swap partition and resize the primary partition. 8 gig free, whoo!

Also, weirdly, /var/log is full of logs. They're mostly from April and May of 2009, from, I'm guessing, the people building the system. They could have saved a bunch of space by removing those and the things that never get used from /etc, but it would make it harder to work on...

Overall, it's a useful little system. It is definitely what it is, and won't be much more than that, but it's already been really useful when working on stuff in the data center here-- it saved me having to track down a cart with a monitor or terminal, and it's a good size for hauling around. Even my 15" G4 got heavy after a while, but I hardly notice this thing. Also, it has a fairly quiet keyboard for typing during meetings, but a very clicky mouse button. I'd switch it to use tapping, but tapping is annoying...

(no subject)

Date: 2008-12-15 06:37 pm (UTC)
ext_8707: Taken in front of Carnegie Hall (thugish-rugish)
From: [identity profile] ronebofh.livejournal.com
You know what a synonym for 'aspire' is? 'Suck'.

(no subject)

Date: 2008-12-15 06:39 pm (UTC)
From: [identity profile] solipsistnation.livejournal.com
Pssh. Well, yes, I know, but other than the weird hacked-up unix it's a pretty nice little lappy.

(no subject)

Date: 2008-12-15 06:40 pm (UTC)
From: [identity profile] z-gryphon.livejournal.com
"Failed to initialize HAL"? What kind of programmers are these? That one obviously should say "I'm sorry, Dave, I'm afraid I can't do that."

(no subject)

Date: 2008-12-15 06:45 pm (UTC)
From: [identity profile] z-gryphon.livejournal.com
also, /var/logs from the future!, etc.

(no subject)

Date: 2008-12-15 07:31 pm (UTC)
From: [identity profile] sweh.livejournal.com
The start of the boot sequence sounds very similar to the EEEpc boot up. I wondered why stuff wasn't starting, despite being in the rc*.d directories and when I traced the code I found out...oh... that stuff isn't actually used and a monolithic boot script is called instead. Once I got that (yes, start dbus and bluetooth, please!) then my bluetooth dongle worked properly :-)

(no subject)

Date: 2008-12-15 07:41 pm (UTC)
From: [identity profile] solipsistnation.livejournal.com
Yeah, pretty weird stuff. Does the EEE also start up X right away so you get some kind of display right off and then initialize everything else?

I briefly considered reworking all the init script stuff, but, um, naw.

(no subject)

Date: 2008-12-16 12:32 am (UTC)
From: [identity profile] sweh.livejournal.com
Sort of, yeah. The init process is actually /sbin/fastinit which has some hard coded stuff in there (no inittab!). This does some basic configuration, brings up the loopback interface (so there is some networking), then does "su - startx -l user & > /dev/null" and _then_ calls /usr/sbin/services.sh. This script sleeps a second (comment: "X takes 1 second to start on this machine") and then starts up almost everything else, so its' kinda running in parallel with the X startup. I don't _think_ anything system critical is run from the X window manager, so it can be replaced without harming system functionality.

Silly, you can go into grub and tell it to run /sbin/init rather than /sbin/fastinit, and this does the normal boot process. I've not tested this, but googling around says the system doesn't completely come up; I guess the traditional boot files weren't properly customised for the Eee :-)

(no subject)

Date: 2008-12-15 07:56 pm (UTC)
From: [identity profile] sharp-blue.livejournal.com
I got so annoyed with the weird installation on my Asus Eee that yesterday I installed Ubuntu EEE on it, and it's much nicer now. Today I installed and configured Netatalk and Avahi so I have it showing up complete with "Share Screen..." in the Finder sidebars of my various Macs. I've got it hooked up to my LCD tv as a living-room computer, and tomorrow I should be getting a diNovo Mini bluetooth keyboard to use with it while it's serving in that capacity.

(no subject)

Date: 2008-12-15 08:08 pm (UTC)
From: [identity profile] solipsistnation.livejournal.com
I thought about installing ubuntu, but the lack of solid drivers kind of puts me off, and for the aspire one there is some kind of dire "DO NOT SUSPEND THE SYSTEM WITH AN SD CARD INSTALLED!!!" warning and that seems kind of annoying... It works now, and does what I need, so I'll stick with this for a while...

(no subject)

Date: 2008-12-15 07:56 pm (UTC)
From: [identity profile] stophittinyrslf.livejournal.com
GIVE IN TO TAPPING

Profile

solipsistnation: page of cups (Default)
solipsistnation

October 2012

S M T W T F S
 123456
7 8910111213
14151617181920
21222324252627
28293031   

Style Credit

Expand Cut Tags

No cut tags