User:TimoJyrinki

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(finish "my Debian")
Line 5: Line 5:
 
= My Debian =
 
= My Debian =
  
When setting up my second FreeRunner to use Debian, I took care to document how I had ended up with the Debian system I've been using. At the same time, I made some of my ugly hacks a bit less ugly. I have been also working on packaging the software I use in Debian, if they are not available there (like literki, woosh). This series of commands is aimed for people who wish to have similar setup, or simply learn potentially very useful things if the default Debian setup is too dull. The image shows a running setup with the exception that openmoko-panel-plugin is not running, since I offer using it instead of my modified, but alas [http://www.freeyourphone.de/portal_v1/viewtopic.php?f=21&t=295&p=17308#p17308 non-free(ish)] mokoservices.py I am myself still using, heavily modified. One day I'll just write a simple button application to my own liking from scratch.
+
When setting up my second FreeRunner to use [[Debian]], I took care to document how I had ended up with the Debian system I've been using. At the same time, I made some of my ugly hacks a bit less ugly. I have been also working on packaging the software I use in Debian, if they are not available there (like literki, woosh). This series of commands is aimed for people who wish to have similar setup, or simply learn potentially very useful things if the default Debian setup is too dull. The image shows a running setup with the exception that openmoko-panel-plugin is not running, since I offer using it instead of my modified, but alas [http://www.freeyourphone.de/portal_v1/viewtopic.php?f=21&t=295&p=17308#p17308 non-free(ish)] mokoservices.py I am myself still using, heavily modified. One day I'll just write a simple button application to my own liking from scratch.
  
 
The instructions are divided in three sections, the two first (Nice and Ugly) you are probably quite interested in. The Bad thing is needed as well by the other configuration but you may choose to compile the software yourself.
 
The instructions are divided in three sections, the two first (Nice and Ugly) you are probably quite interested in. The Bad thing is needed as well by the other configuration but you may choose to compile the software yourself.
Line 69: Line 69:
 
tar -C / -z -x -v -f custom_config.tar.gz
 
tar -C / -z -x -v -f custom_config.tar.gz
 
</pre>
 
</pre>
 +
 +
Files explained:
 +
* /etc/literki: my literki configuration which diminishes the active area to not overlap with Zhone's bottom right buttons, adds ä,ö,å letters and adds another "X" behind Fn which closes current window
 +
* /root/.fbpanel/default: my fbpanel configuration, cat for details. Note that Debian logo menu's active area is four times the width of the actual (visible) icon.
 +
* /root/helpers: quite a stub directory, but in reality I have loads of stuff here and have added it to path
 +
* /root/.gtkrc-2.0: setting Darklooks theme into use
 +
* /root/.keylaunchrc: my personal keylock application to AUX and suspend helper to Power button
 +
* /root/.panel-pluginrc: openmoko-panel-plugin customization and disabling of the problematic buttons plugin
 +
* /root/.xsession: this is the big one importance-wise, crude hacks to have fbpanel and literki nicely behaving among else
 +
* /root/debian-swirl.png: Debian logo
 +
* /usr/local/bin: fbpanel, literki and lockscreen helpers
 +
* /usr/share/themes/NeoSpecial: my matchbox theme
  
 
'''The Bad Part'''
 
'''The Bad Part'''

Revision as of 19:47, 24 March 2010

Debian5.png

My Debian

When setting up my second FreeRunner to use Debian, I took care to document how I had ended up with the Debian system I've been using. At the same time, I made some of my ugly hacks a bit less ugly. I have been also working on packaging the software I use in Debian, if they are not available there (like literki, woosh). This series of commands is aimed for people who wish to have similar setup, or simply learn potentially very useful things if the default Debian setup is too dull. The image shows a running setup with the exception that openmoko-panel-plugin is not running, since I offer using it instead of my modified, but alas non-free(ish) mokoservices.py I am myself still using, heavily modified. One day I'll just write a simple button application to my own liking from scratch.

The instructions are divided in three sections, the two first (Nice and Ugly) you are probably quite interested in. The Bad thing is needed as well by the other configuration but you may choose to compile the software yourself.

The Nice Part

Install Debian: http://wiki.debian.org/DebianOnFreeRunner

Boot Neo, bring up the keyboard with AUX and then:

# ctrl-alt-x to bring up terminal
passwd
# select your root password

Now you can connect to Neo from your desktop as root.

# Now attach the USB cable and check that connection between your desktop and Neo works.

ssh root@192.168.0.202
# Fix PATH
echo export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin >> /root/.bashrc
exit
ssh root@192.168.0.202

# If you installed with TASKS="ALL", the following should already be
# installed:
# wicd, navit, tangogps, midori, pidgin, mokomaze
apt-get install wicd navit tangogps midori pidgin mokomaze
# intone as E17 dependent only in sid
# gnome-bluetooth did not install from testing as well at the moment
apt-get install intone gnome-bluetooth

# Settle down for more stable stuff
sed -i '/experimental/d' /etc/apt/sources.list
sed -i 's/sid/testing/' /etc/apt/sources.list
apt-get update

# More of my setup
apt-get install fbpanel literki woosh mtpaint neon leafpad abiword gnumeric \
xserver-xorg-video-glamo synaptic gnome-games lxterminal libgtkstylus \
gnome-themes-extras keylaunch omhacks

# Take glamo into use
sed -i 's/fbdev/glamo/' /etc/X11/xorg.conf

exit

The Ugly Part

http://users.tkk.fi/~tajyrink/moko/mydebian/

# Transfer the stuff needed in Ugly and Bad parts to Neo and SSH in:
scp custom_config.tar.gz custom_binaries.tar.gz fbpanel_5.6-1_armel.deb root@192.168.0.202:

ssh root@192.168.0.202
mv /root/.xsession /root/.xsession.debianoriginal

# "Ok" changes, readable scripts and two pics. My copyrighted under either 
# original license (if modified from upstream) or BSD.
tar -C / -z -x -v -f custom_config.tar.gz

Files explained:

  • /etc/literki: my literki configuration which diminishes the active area to not overlap with Zhone's bottom right buttons, adds ä,ö,å letters and adds another "X" behind Fn which closes current window
  • /root/.fbpanel/default: my fbpanel configuration, cat for details. Note that Debian logo menu's active area is four times the width of the actual (visible) icon.
  • /root/helpers: quite a stub directory, but in reality I have loads of stuff here and have added it to path
  • /root/.gtkrc-2.0: setting Darklooks theme into use
  • /root/.keylaunchrc: my personal keylock application to AUX and suspend helper to Power button
  • /root/.panel-pluginrc: openmoko-panel-plugin customization and disabling of the problematic buttons plugin
  • /root/.xsession: this is the big one importance-wise, crude hacks to have fbpanel and literki nicely behaving among else
  • /root/debian-swirl.png: Debian logo
  • /usr/local/bin: fbpanel, literki and lockscreen helpers
  • /usr/share/themes/NeoSpecial: my matchbox theme

The Bad Part

This is the really bad stuff, binaries from random source (me)! Luckily you can compile these three pieces of software easily yourself as well, although that means you need to install development environment on the Neo as well.

# Bad changes:
# - literki compiled with 02_optional_reduce_to_plain_keyboard.patch that 
#   I've included in the Debian literki packaging sources: apt-get source literki
# - neolockscreen, sources at 
#   http://users.tkk.fi/~tajyrink/moko/neolockscreen.tar.gz
tar -C / -z -x -v -f custom_binaries.tar.gz

# From upstream tarball, http://fbpanel.sourceforge.net/, with checkinstall
dpkg -i fbpanel_5.6-1_armel.deb

poweroff

# Boot!
Personal tools
Debian5.png

My Debian

When setting up my second FreeRunner to use Debian, I took care to document how I had ended up with the Debian system I've been using. At the same time, I made some of my ugly hacks a bit less ugly. I have been also working on packaging the software I use in Debian, if they are not available there (like literki, woosh). This series of commands is aimed for people who wish to have similar setup, or simply learn potentially very useful things if the default Debian setup is too dull. The image shows a running setup with the exception that openmoko-panel-plugin is not running, since I offer using it instead of my modified, but alas non-free(ish) mokoservices.py I am myself still using, heavily modified. One day I'll just write a simple button application to my own liking from scratch.

The instructions are divided in three sections, the two first (Nice and Ugly) you are probably quite interested in. The Bad thing is needed as well by the other configuration but you may choose to compile the software yourself.

The Nice Part

Install Debian: http://wiki.debian.org/DebianOnFreeRunner

Boot Neo, bring up the keyboard with AUX and then:

# ctrl-alt-x to bring up terminal
passwd
# select your root password

Now you can connect to Neo from your desktop as root.

# Now attach the USB cable and check that connection between your desktop and Neo works.

ssh root@192.168.0.202
# Fix PATH
echo export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin >> /root/.bashrc
exit
ssh root@192.168.0.202

# If you installed with TASKS="ALL", the following should already be
# installed:
# wicd, navit, tangogps, midori, pidgin, mokomaze
apt-get install wicd navit tangogps midori pidgin mokomaze
# intone as E17 dependent only in sid
# gnome-bluetooth did not install from testing as well at the moment
apt-get install intone gnome-bluetooth

# Settle down for more stable stuff
sed -i '/experimental/d' /etc/apt/sources.list
sed -i 's/sid/testing/' /etc/apt/sources.list
apt-get update

# More of my setup
apt-get install fbpanel literki woosh mtpaint neon leafpad abiword gnumeric \
xserver-xorg-video-glamo synaptic gnome-games lxterminal libgtkstylus \
gnome-themes-extras keylaunch omhacks

# Take glamo into use
sed -i 's/fbdev/glamo/' /etc/X11/xorg.conf

exit

The Ugly Part

http://users.tkk.fi/~tajyrink/moko/mydebian/

# Transfer the stuff needed in Ugly and Bad parts to Neo and SSH in:
scp custom_config.tar.gz custom_binaries.tar.gz fbpanel_5.6-1_armel.deb root@192.168.0.202:

ssh root@192.168.0.202
mv /root/.xsession /root/.xsession.debianoriginal

# "Ok" changes, readable scripts and two pics. My copyrighted under either 
# original license (if modified from upstream) or BSD.
tar -C / -z -x -v -f custom_config.tar.gz

The Bad Part

This is the really bad stuff, binaries from random source (me)! Luckily you can compile these three pieces of software easily yourself as well, although that means you need to install development environment on the Neo as well.

# Bad changes:
# - literki compiled with 02_optional_reduce_to_plain_keyboard.patch that 
#   I've included in the Debian literki packaging sources: apt-get source literki
# - neolockscreen, sources at 
#   http://users.tkk.fi/~tajyrink/moko/neolockscreen.tar.gz
tar -C / -z -x -v -f custom_binaries.tar.gz

# From upstream tarball, http://fbpanel.sourceforge.net/, with checkinstall
dpkg -i fbpanel_5.6-1_armel.deb

poweroff

# Boot!