Skip to main content

z2buntu with X

Posted in

It's been a few weeks since I got X running on z2buntu. These are the steps I went thru to get it to a usable state. You can install any window manager/desktop you want, but I went with matchbox and lxpanel (not full lxde). I hope I haven't forgotten anything.

Run the following commands:

sudo su
apt-get install xserver-xorg lxpanel matchbox-window-manager matchbox-common op rxvt
cd /usr/local/sbin
wget http://www.mozzwald.com/zipit/z2mouse-option
chmod +x z2mouse-option

edit (or create) with sudo /etc/X11/xorg.conf and add

Section "Device"
Identifier "Card0"
Driver "fbdev"
Option "fbdev" "/dev/fb0"
VendorName "Unknown"
BoardName "Unknown"
Option "Rotate" "CCW"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
SubSection "Display"
Modes "240x320"
EndSubSection
EndSection

delete (or backup) then edit with sudo /etc/op/op.conf

PRIVILEGED=(user)

shell /bin/su -;
users=PRIVILEGED
password
environment

z2mouse /usr/local/sbin/z2mouse-option &;
users=PRIVILEGED

edit (or create) ~/.xinitrc and add

#!/bin/sh
export DISPLAY=:0
op z2mouse &
lxpanel &
exec matchbox-window-manager -use_titlebar no $@

That should be enough to get X running for you (type startx). I am using some other modifications to lxpanel that create working shutdown options. You can get the idea from http://www.mozzwald.com/node/28.

Do you think LxLauncher will

Do you think LxLauncher will run on the Z2?

Lxlauncher works quite well

I've been using lxlauncher since about May and it works very well. You can install it from the repos, but that version does not have keyboard support (you have to use the mouse to navigate). I compiled it with keyboard support which helps a lot for navigation. Check out a screenshot:
lxlauncherlxlauncher
You can install my compiled version of lxlauncher on z2buntu:

wget http://www.mozzwald.com/zipit/lxlauncher/libmenu-cache-dev_0.2.6-1_armel...
wget http://www.mozzwald.com/zipit/lxlauncher/libmenu-cache0_0.2.6-1_armel.deb
wget http://www.mozzwald.com/zipit/lxlauncher/lxlauncher_0.2.1-1_armel.deb
sudo dpkg -i libmenu-cache*.deb
sudo dpkg -i lxlauncher*.deb

i cant get the mouse working

i cant get the mouse working i downloaded it and did chmod but i still cant get it to work

new z2mouse

You can try my newest version of the mouse emulator:
http://www.mozzwald.com/zipit/z2mouse-2.6.35

CIFS mount on zipit

Will this userland allow me to mount cifs/samba shares? If not how can I do it?

RE: CIFS mount on zipit

I haven't tried, but I don't see why not. Check out the ubuntu wiki for more info:
https://help.ubuntu.com/community/MountWindowsSharesPermanently

And don't forget the command

And don't forget the command smbmount

Missing Package

To get the startx command you will also have to install the xinit package.

xinit needed

I needed to add xinit to the list of packages to install with apt-get, because this contains startx.
Also, po.conf seems to require some indentation here and there, or it will not work.

Thanks!

Great Job

Awesome work on this ubuntu userland. Running ubuntu on this device opens up a ton of possibilities. Plus it is helping me learn a lot about linux :)

Thanks

Thanks, very informative, do you have any hints about installing fluxbox