Latest revision |
Your text |
Line 1: |
Line 1: |
- | The following is a compilation of modifications I applied to my personal installation of [[Easy Debian]] and which I suggest(ed) for inclusion in the next versions of debian-m5-XX.img.ext2 and the easy-deb-chroot package. | + | The following is a compilation of modifications I applied to my personal installation of Easy Debian and which I suggest for inclusion in the next versions of debian-m5-v3b.img.ext2 and the easy-deb-chroot package. |
| | | |
- | (This is essentially a writer's digest of my contributions to the thread [http://talk.maemo.org/showthread.php?t=34550 Easy Debian Fremantle Beta Testing] - discussions should continue in the above talk thread, not here, please.) | + | (This is essentially a writer's digest of my contributions to the thread [http://talk.maemo.org/showthread.php?t=34550 Easy Debian Fremantle Beta Testing] - @qole: feel free to add comments, mark as "Fixed in v3c", won't fix, or whatever, as you like; all others: discussions should continue in the above talk thread, not here, please.) |
| | | |
- | == My current Easy Debian Installation ==
| + | == Proposed changes to image debian-m5-v3b.img.ext2 == |
- | | + | |
- | After installing easy-deb-chroot 0.9.54-1fremantle1 from Extras and extraction of image debian-m5-v3e.img.ext2 I have applied the following fixes and additions:
| + | |
- | | + | |
- | (Filenames prefixed by $CHROOT refer to files in the image. Within the Debian chroot $CHROOT is to be omitted; in Maemo $CHROOT=/.debian - read [http://wiki.maemo.org/Easy_Debian the Easy Debian wiki] to educate yourself before proceeding blindly!)
| + | |
- | | + | |
- | === Keyboard focus fix ===
| + | |
- | | + | |
- | Some, but very few, applications have problems with keyboard focus when run under debbie (while running without problem in LXDE). This is solved by qole's new script [http://talk.maemo.org/showpost.php?p=818545&postcount=1769 /home/user/.kbdactive] in the new version of easy-deb-chroot (invoked by Fn+Return when "Set Deb HW Keys" is activated; if not, you have to update your /home/user/.xbindkeysrc file by merging in the new key binding from /home/user/.xbindkeysrc.dist).
| + | |
- | | + | |
- | === brighter theme ===
| + | |
- | | + | |
- | While the MurrinaNightOrange theme is really cool, I found it made some applications (in particular zim) almost unusable. To change the theme to something more standard, I produced the file
| + | |
- | | + | |
- | /home/user/.gtkrc-2.0.mine with content
| + | |
- | gtk-theme-name="Raleigh"
| + | |
- | | + | |
- | In both configuration files in /home/user/.config/lxpanel/LXDE/panels I changed
| + | |
- | transparent=1
| + | |
- | to have nicer looking panels after the change to brighter themes in the applications.
| + | |
- | | + | |
- | === fixing sound ===
| + | |
- | | + | |
- | (didn't need that any longer with new image v3e)
| + | |
- | | + | |
- | In one XTerminal:
| + | |
- | debbie
| + | |
- | xmms2d -o pulse
| + | |
- | Then in a second one:
| + | |
- | debbie lxmusic
| + | |
- | | + | |
- | === Key bindings ===
| + | |
- | | + | |
- | /home/user/.xbindkeysrc
| + | |
- | <pre>
| + | |
- | "xbindkeys_show"
| + | |
- | control+shift + q
| + | |
- | | + | |
- | # "wmctrl -r :ACTIVE: -b toggle,fullscreen"
| + | |
- | # m:0x4 + c:111
| + | |
- | # Control + Up
| + | |
- | | + | |
- | # "wmctrl -r :ACTIVE: -b toggle,fullscreen"
| + | |
- | # m:0x4 + c:65
| + | |
- | # Control + space
| + | |
- | "wmctrl -r :ACTIVE: -b toggle,fullscreen"
| + | |
- | Shift+Mod5 + space
| + | |
- | | + | |
- | "xvkbd -xsendevent -text '\t'"
| + | |
- | Control + KP_Enter
| + | |
- | | + | |
- | "xvkbd -xsendevent -text '\e'"
| + | |
- | Shift+BackSpace
| + | |
- | | + | |
- | # Shift+Tap=middle click; Fn+Tap=right click
| + | |
- | "xdotool click 2"
| + | |
- | m:0x1 + b:1 + release
| + | |
- | | + | |
- | "xdotool click 3"
| + | |
- | m:0x80 + b:1 + release
| + | |
- | </pre>
| + | |
- | So I changed the binding of full screen toggle to Shift+Fn+Space (which otherwise conflicts with [[N900 Shortcuts and Gestures|Maemo key bindings]]) and added additional ones for tab (\t) and escape (\e).
| + | |
- | | + | |
- | The last two entries require
| + | |
- | apt-get install xdotool
| + | |
- | They emulate middle and right mouse-clicks.
| + | |
- | | + | |
- | === Upgrades and additional installations ===
| + | |
- | | + | |
- | In the new image v3e, the squeeze repository is enabled by default. I prefer having only lenny by default, and squeeze only when I really want newer package versions.
| + | |
- | | + | |
- | ==== Lenny security updates ====
| + | |
- | | + | |
- | After adding security updates to $CHROOT/etc/apt/sources.list (enabled by default in v3e):
| + | |
- | deb http://security.eu.debian.org/ lenny/updates main contrib non-free
| + | |
- | and <em>disabling</em> squeeze and lenny-backports, I did a full upgrade by
| + | |
- | apt-get update
| + | |
- | apt-get upgrade
| + | |
- | apt-get clean
| + | |
- | (To also update libdns do dist-upgrade in place of upgrade, but not when squeeze is enabled!)
| + | |
- | | + | |
- | ==== Additional packages ====
| + | |
- | | + | |
- | In order to have more space in the 2GB image, and not to run out of space during more voluminous installs, I have moved $CHROOT/var/cache/apt/archives to /home/user and provided symlinks. From debian chroot:
| + | |
- | cd /var/cache/apt
| + | |
- | apt-get clean
| + | |
- | cp -a archives /home/user/.easydebarchives
| + | |
- | mv archives archives-
| + | |
- | ln -s /home/user/.easydebarchives archives
| + | |
- | To also get more space for installed software, the same can be done for example with $CHROOT/usr/share/doc :
| + | |
- | cd /usr/share
| + | |
- | cp -a doc /home/user/.easydebdoc
| + | |
- | rm -r doc
| + | |
- | ln -s /home/user/.easydebdoc doc
| + | |
- | | + | |
- | I personally found the following packages useful, which include a complete LATeX installation and the symbolic math program xmaxima, which both are fairly big.
| + | |
- | | + | |
- | (Don't forget to run "apt-get clean" regularly to free the space occupied by the downloaded Debian packages once they are installed.)
| + | |
- | | + | |
- | As a rule, I now install with
| + | |
- | apt-get install --no-install-recommends ...
| + | |
- | (with an eye on suggested and recommended packages which are not installed automatically). Always using "nice" in front of "apt-get" was suggested [http://talk.maemo.org/showpost.php?p=949363&postcount=2083 here] to avoid the sporadic phenomenon of reboots in the middle of the process, which always leaves the image file system corrupted. In this case one needs to start all over from a fresh image or from a <b>backup</b>(!)ed one. (Nicety can be increased to "nice -n 19" if needed.) I personally haven't suffered from this reboot problem after I just restricted the amount of packages installed in one go.
| + | |
- | | + | |
- | | + | |
- | From <u>lenny</u>:
| + | |
- | | + | |
- | *[http://packages.debian.org/lenny/encfs encfs] (see also [http://wiki.maemo.org/Easy_Debian#Other_useful_applications_to_install_in_addition wiki])
| + | |
- | *[http://packages.debian.org/lenny/mc mc]
| + | |
- | *[http://packages.debian.org/lenny/odt2txt odt2txt]
| + | |
- | *[http://packages.debian.org/lenny/openssh-client openssh-client] (see also [http://wiki.maemo.org/Easy_Debian#Other_useful_applications_to_install_in_addition wiki])
| + | |
- | : v3e: the full openssh suite is now already installed - IMHO the openssh-server can be de-installed
| + | |
- | *[http://packages.debian.org/lenny/pgpgpg pgpgpg]
| + | |
- | *[http://packages.debian.org/lenny/tree tree]
| + | |
- | *[http://packages.debian.org/lenny/vpnc vpnc] (see also [http://wiki.maemo.org/Easy_Debian#Other_useful_applications_to_install_in_addition wiki])
| + | |
- | *[http://packages.debian.org/lenny/wxmaxima wxmaxima] (through "apt-get -t lenny-backports install wxmaxima"; [http://talk.maemo.org/showpost.php?p=806683&postcount=1704 screenshots and instructions here])
| + | |
- | *[http://packages.debian.org/lenny/dvipng dvipng]
| + | |
- | *[http://packages.debian.org/lenny/graphviz graphviz]
| + | |
- | <!-- *[http://packages.debian.org/lenny/bzr bzr] -->
| + | |
- | *[http://packages.debian.org/lenny/texlive-latex-base texlive-latex-base]
| + | |
- | *[http://packages.debian.org/lenny/texlive-publishers texlive-publishers]
| + | |
- | *[http://packages.debian.org/lenny/prosper prosper]
| + | |
- | *[http://packages.debian.org/lenny/latex-beamer latex-beamer]
| + | |
- | *[http://packages.debian.org/lenny/grace grace]
| + | |
- | *[http://packages.debian.org/lenny/djview4 djview4]
| + | |
- | *[http://packages.debian.org/lenny/pdftk pdftk]
| + | |
- | *[http://packages.debian.org/lenny/flpsed flpsed]
| + | |
- | *[http://packages.debian.org/lenny/xpaint xpaint]
| + | |
- | | + | |
- | Then with <u>squeeze</u> activated: (generally using squeeze only when I really wanted newer versions)
| + | |
- | | + | |
- | *[http://packages.debian.org/squeeze/galculator galculator]
| + | |
- | *[http://packages.debian.org/squeeze/geeqie geeqie]
| + | |
- | *[http://packages.debian.org/squeeze/gramps gramps] (needs debbie-sue in lieu of debbie!)
| + | |
- | *[http://packages.debian.org/squeeze/pdfgrep pdfgrep]
| + | |
- | *[http://packages.debian.org/squeeze/sshfs sshfs]
| + | |
- | *[http://packages.debian.org/squeeze/xournal xournal]
| + | |
- | *[http://packages.debian.org/squeeze/zim zim] (see also [http://wiki.maemo.org/Easy_Debian#Other_useful_applications_to_install_in_addition wiki])
| + | |
- | *[http://packages.debian.org/squeeze/bzr bzr]
| + | |
- | *[http://packages.debian.org/squeeze/cadabra cadabra] (computer algebra system for field theorists - [http://talk.maemo.org/showpost.php?p=807853&postcount=1714 screenshot]);
| + | |
- | :pulls in new texlive installation (big!) and requires additionally texlive-latex3 - for gaining more space in the image moved also /usr/share/texmf-texlive (almost 300MB) to /home/user:
| + | |
- | cd /usr/share
| + | |
- | cp -a texmf-texlive /home/user/.easydebtexmf-texlive
| + | |
- | rm -r texmf-texlive
| + | |
- | ln -s /home/user/.easydebtexmf-texlive texmf-texlive
| + | |
- | | + | |
- | Prior to image v3e, upgrade of [http://packages.debian.org/squeeze/openoffice.org OpenOffice] to 3.2.1 (including also openoffice.org-math, but leaving out openoffice.org-base which does not work in armel) through:
| + | |
- | | + | |
- | apt-get install openoffice.org-core openoffice.org-draw openoffice.org-gtk openoffice.org-writer openoffice.org-impress openoffice.org-calc openoffice.org-math openoffice.org-style-crystal openoffice.org-style-galaxy openoffice.org-style-hicontrast openoffice.org-style-tango ttf-opensymbol
| + | |
- | apt-get clean
| + | |
- | | + | |
- | In v3e, OpenOffice 3.2.1-9 is already installed, but openoffice.org-math is left out. So I just did
| + | |
- | apt-get install openoffice.org-math
| + | |
- | By now, squeeze has further (security) updates of 3.2.1, which can be installed by the longer version above.
| + | |
- | | + | |
- | Then revert $CHROOT/etc/apt/sources.list back to lenny only. Besides being on the safe side for future installations, this also frees quite some memory in the image.
| + | |
- | | + | |
- | See [http://wiki.maemo.org/Easy_Debian#Installing_Applications the wiki] for more details on some of the above applications!
| + | |
- | | + | |
- | == Google Streetview App through Easy Debian ==
| + | |
- | | + | |
- | [http://talk.maemo.org/showpost.php?p=952914&postcount=45 UPDATE:] Debernardis's strade file now works in MicroB again, thanks to some changes in google maps.
| + | |
- | | + | |
- | Thanks to the ingenuity of [http://talk.maemo.org/showthread.php?p=731567#post731567 debernardis], Easy Debian can be made to come to the rescue after the flashplayer in Maemo was no longer good enough for google streetview within google maps:
| + | |
- | | + | |
- | In the Debian image, with squeeze repository enabled, install kazehakase browser through
| + | |
- | apt-get install --no-install-recommends kazehakase libgtk2-ruby libgtk2-ruby1.8 xulrunner-1.9.1
| + | |
- | | + | |
- | In Maemo, create /usr/share/applications/hildon/streetview.desktop with content
| + | |
- | <pre>
| + | |
- | [Desktop Entry]
| + | |
- | Encoding=UTF-8
| + | |
- | Name=Google Streetview
| + | |
- | Comment=Browse the World Wide Web
| + | |
- | GenericName=Web Browser
| + | |
- | #Exec=debbie "xbindkeys;iceweasel file:///home/user/strade3-3.html"
| + | |
- | Exec=debbie kazehakase -a "ToggleFullScreen" file:///home/user/strade.html
| + | |
- | Terminal=false
| + | |
- | X-MultipleArgs=false
| + | |
- | Type=Application
| + | |
- | Icon=streetview
| + | |
- | Categories=Network;WebBrowser;
| + | |
- | MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;
| + | |
- | StartupWMClass=Firefox-bin
| + | |
- | StartupNotify=true
| + | |
- | </pre>
| + | |
- | | + | |
- | Copy [http://talk.maemo.org/attachment.php?attachmentid=14987&d=1287942364 this file] into /home/user and unpack it by:
| + | |
- | gunzip strade.html.gz
| + | |
- | | + | |
- | Create icon by downloading e.g.
| + | |
- | [http://talk.maemo.org/attachment.php?attachmentid=14973&stc=1&d=1287918071 this icon image] into /opt/usr/share/icons/hicolor/scalable/hildon (for seeing the icon in the menu, a reboot may be necessary). Enjoy!
| + | |
- | | + | |
- | Usage is self-explanatory - except for how to exit: Ctrl+Q
| + | |
- | | + | |
- | == Other Debian applications I tested ==
| + | |
- | | + | |
- | ... but which are not in my final image, because of lack of space, lack of need, or other reasons:
| + | |
- | | + | |
- | === Fully working: ===
| + | |
- | | + | |
- | ; from lenny
| + | |
- | *[http://packages.debian.org/lenny/xmaxima xmaxima] ([http://talk.maemo.org/showpost.php?p=492696&postcount=51 screenshot here]), but I'm now only using wxmaxima
| + | |
- | *[http://packages.debian.org/lenny/gcalctool gcalctool]
| + | |
- | *[http://packages.debian.org/lenny/gftp gftp]
| + | |
- | *[http://packages.debian.org/lenny/gnumeric gnumeric]
| + | |
- | *[http://packages.debian.org/lenny/gqview gqview] (superseded by geeqie in squeeze)
| + | |
- | *[http://packages.debian.org/lenny/kile kile]
| + | |
- | *[http://packages.debian.org/lenny/sweep sweep] (powerful sound editor, which however sometimes fails to open audio device)
| + | |
- | | + | |
- | ; from squeeze
| + | |
- | *[http://packages.debian.org/squeeze/build-essential build-essential]
| + | |
- | *[http://packages.debian.org/squeeze/eric eric] (needs .kbdactive for keyboard focus under debbie)
| + | |
- | *[http://packages.debian.org/squeeze/pdfchain pdfchain]
| + | |
- | *[http://packages.debian.org/squeeze/qalculate qalculate]
| + | |
- | | + | |
- | === Unresolved problems: ===
| + | |
- | | + | |
- | *[http://packages.debian.org/squeeze/abiword abiword]
| + | |
- | : needs to be installed from squeeze, works, but because <b>gconf2</b> is upgraded interferes with configuration of other applications such as evince
| + | |
- | | + | |
- | *[http://packages.debian.org/squeeze/calibre calibre]
| + | |
- | :needed upgrade of libpulse0, which breaks sound
| + | |
- | :[http://talk.maemo.org/showpost.php?p=819930&postcount=1781 instructions and screenshots], after installation from squeeze [http://talk.maemo.org/showpost.php?p=820705&postcount=1795 updated to calibre version from sid]
| + | |
- | | + | |
- | ----
| + | |
- | The rest of this page refers to older versions of easy-deb-chroot and older images.
| + | |
- | ----
| + | |
- | | + | |
- | == Proposed changes to easy-deb-chroot 0.9.46-1fremantle1 ==
| + | |
- | | + | |
- | UPDATE: Almost all of it now in easy-deb-chroot 0.9.50-1fremantle1 in Extras-Testing. "su -" is not made the default behavior of debbie (yet), but there are two new scripts "debbie-sue" for running debbie with "su - user" implicit, and "debsu" corresponding to "debian su -".
| + | |
- | | + | |
- | === PR 1.2 ===
| + | |
- | | + | |
- | * [http://talk.maemo.org/showpost.php?p=687359&postcount=1334 PR 1.2 keyboard fix] (/usr/share/applications/hildon/lxdefocus.desktop)
| + | |
- | | + | |
- | === su - ===
| + | |
- | | + | |
- | (assumes that /etc/profile is amended as in images v3c and later)
| + | |
- | | + | |
- | /usr/bin/debbie: add hyphen in two lines:
| + | |
- | sudo /sbin/debian su - ...
| + | |
- | | + | |
- | Some applications do not work properly without that (zim), others fail in LXDE (gramps), and internationalization works better in debbie and /sbin/debian that way (the Maemo environment variable LANG does not include ".UTF-8").
| + | |
- | | + | |
- | It would however be necessary to communicate this change to users of images up to v3b, so that they insert the necessary environment variables for openoffice and GTK_MODULES into /etc/profile.
| + | |
- | | + | |
- | Also in debchroot.desktop change to:
| + | |
- | | + | |
- | Exec=osso-xterm "sudo debian su -"
| + | |
- | | + | |
- | I don't think it's necessary to introduce a script with a different name that just differs in the "-" option. The old behavior would still be accessible through "sudo debian su" and "sudo debian su -c" if ever needed, though so far I have not found a case were this was needed. For ordinary users (in particular non-English ones), I believe the "-" option should be the default.
| + | |
- | | + | |
- | === .xbindkeysrc ===
| + | |
- | | + | |
- | * delete spurious first lines
| + | |
- | * include "-xsendevent" in all "xvbkd -text" calls (in my experience needed to make F1-F12 work reliably)
| + | |
- | * add tab and escape, too:
| + | |
- | | + | |
- | "xvkbd -xsendevent -text '\t'"
| + | |
- | Control + KP_Enter
| + | |
- | | + | |
- | "xvkbd -xsendevent -text '\e'"
| + | |
- | Shift+BackSpace
| + | |
- | | + | |
- | For additional shortcuts: the Fn+Shift-combination (Shift+Mod5) is usually free. Perhaps this should be used also to replace Shift+Space and Shift+Up for full-screen toggle, since these two combinations are also already in use for [[N900 Shortcuts and Gestures]].
| + | |
- | | + | |
- | Another suggestion is to include the information about F1-F12 key bindings in the "Information" window of LXDE together with the instruction to first press Fn and then rock the thumb down to Shift (zenity line in /usr/bin/xephwm5that in the <u>image</u>).
| + | |
- | | + | |
- | == Proposed changes to image debian-m5-v3d.img.ext2 ==
| + | |
- | | + | |
- | === /usr/bin/xephfocus ===
| + | |
- | | + | |
- | UPDATE: xephfocus no longer needed by new Easy Debian package
| + | |
- | | + | |
- | Check for "N/A $WMNAME" instead of only $WMNAME. Otherwise browser windows with Easy Debian in the title might be picked.
| + | |
- | export PARWIN=`wmctrl -l | grep -i "N/A $WMNAME" | awk '{print $1}'`
| + | |
- | | + | |
- | Include title option to fix "Info bug":
| + | |
- | zenity --display=:0 --info --title="Information" --text="This window is needed to gain keyboard focus in LXDE. Click OK." &
| + | |
- | | + | |
- | === /usr/bin/xephwm5 ===
| + | |
- | | + | |
- | Change $CHROOT/usr/bin/xephwm5 so that the lines containing qobi-wmhint-fix and set-focus read:
| + | |
- | sudo /sbin/qobi-wmhint-fix $PARWIN
| + | |
- | #/usr/bin/set-focus $PARWIN
| + | |
- | | + | |
- | This resolves all issues with keyboard focus loss in LXDE for good. The new easy-deb-chroot version achieves the same through Maemo-side scripts, so this fix makes sure that one can also use the older method for starting LXDE.
| + | |
- | | + | |
- | == Proposed changes to image debian-m5-v3b.img.ext2 (old) == | + | |
- | | + | |
- | UPDATE: All the issues addressed below are fixed in the new image (v3d). If you don't want to re-install, you can find here what's required to fixing a v3b-installation yourself.
| + | |
| | | |
| === Better internationalizability === | | === Better internationalizability === |
Line 382: |
Line 91: |
| | | |
| * /etc/mtab fixed to make "df -h" work (thanks hstende) | | * /etc/mtab fixed to make "df -h" work (thanks hstende) |
| + | |
| + | == Proposed changes to easy-deb-chroot 0.9.46-1fremantle1 == |
| + | |
| + | (Can be done at a later stage; in fact assumes that /etc/profile in the image has been fixed as above.) |
| + | |
| + | * "su -" |
| + | |
| + | /usr/bin/debbie: add hyphen in two lines: |
| + | sudo /sbin/debian su - ... |
| + | |
| + | Some applications do not work properly without that (zim), others fail in LXDE (gramps), and internationalization works better in debbie and /sbin/debian that way (the Maemo environment variable LANG does not include ".UTF-8"). |
| + | |
| + | It would however be necessary to communicate this change to users of images up to v3b, so that they insert the necessary environment variables for openoffice and GTK_MODULES into /etc/profile. |
| + | |
| + | also in debchroot.desktop: |
| + | |
| + | Exec=osso-xterm "sudo debian su -" |
| + | |
| + | * .xbindkeysrc |
| + | : delete spurious first lines |
| + | : add tab and escape, too: |
| + | |
| + | "xvkbd -xsendevent -text '\t'" |
| + | Control + KP_Enter |
| + | |
| + | "xvkbd -xsendevent -text '\e'" |
| + | Shift + BackSpace |
| + | |
| + | The last one was suggested by debernadis; the tab is my suggestion. |