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(ed) for inclusion in the next versions of debian-m5-XX.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] - discussions should continue in the above talk thread, not here, please.) |
Line 5: |
Line 5: |
| == My current Easy Debian Installation == | | == My current Easy Debian Installation == |
| | | |
- | 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: | + | After installing easy-deb-chroot 0.9.50-1fremantle1 from Extras and extraction of image debian-m5-v3d.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!) | + | (Filenames prefixed by $CHROOT refer to files in the image. Within the Debian chroot $CHROOT is to be omitted; in Maemo $CHROOT=/.debian) |
| | | |
| === Keyboard focus fix === | | === 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).
| + | 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 for good. (The newer easy-deb-chroot version in Extras-devel achieves this through Maemo-side scripts.) |
| + | |
| + | === debbie-sue === |
| + | |
| + | I prefer debbie-sue over debbie, so I changed /usr/bin/debwm: |
| + | fixkbdfocus "N/A Easy Debian" |
| + | if [ "$?" = 2 ] ; then |
| + | debbie-sue xephwm5 |
| + | fi |
| | | |
| === brighter theme === | | === brighter theme === |
Line 17: |
Line 29: |
| 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 | | 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 | + | /home/user/.gtkrc-2.0.mine |
| gtk-theme-name="Raleigh" | | gtk-theme-name="Raleigh" |
| | | |
Line 25: |
Line 37: |
| | | |
| === fixing sound === | | === fixing sound === |
- |
| |
- | (didn't need that any longer with new image v3e)
| |
| | | |
| In one XTerminal: | | In one XTerminal: |
Line 34: |
Line 44: |
| debbie lxmusic | | debbie lxmusic |
| | | |
- | === Key bindings === | + | === .xbindkeysrc === |
| | | |
- | /home/user/.xbindkeysrc
| |
| <pre> | | <pre> |
- | "xbindkeys_show"
| |
- | control+shift + q
| |
- |
| |
| # "wmctrl -r :ACTIVE: -b toggle,fullscreen" | | # "wmctrl -r :ACTIVE: -b toggle,fullscreen" |
| # m:0x4 + c:111 | | # m:0x4 + c:111 |
Line 48: |
Line 54: |
| # m:0x4 + c:65 | | # m:0x4 + c:65 |
| # Control + space | | # Control + space |
| + | "xbindkeys_show" |
| + | control+shift + q |
| + | |
| "wmctrl -r :ACTIVE: -b toggle,fullscreen" | | "wmctrl -r :ACTIVE: -b toggle,fullscreen" |
| Shift+Mod5 + space | | Shift+Mod5 + space |
Line 56: |
Line 65: |
| "xvkbd -xsendevent -text '\e'" | | "xvkbd -xsendevent -text '\e'" |
| Shift+BackSpace | | 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> | | </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). | + | So I changed the binding of full screen toggle (which otherwise conflicts with key bindings in microB) and added one for tab (\t) and escape (\e). |
| | | |
- | The last two entries require
| + | === Updates and additional installations === |
- | apt-get install xdotool
| + | |
- | They emulate middle and right mouse-clicks.
| + | |
| | | |
- | === Upgrades and additional installations === | + | ==== Security updates ==== |
| | | |
- | 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.
| + | After adding security updates to $CHROOT/etc/apt/sources.list: |
- | | + | |
- | ==== 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 | | 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 | + | and disabling lenny-backports, I did a security upgrade by |
| apt-get update | | apt-get update |
| apt-get upgrade | | apt-get upgrade |
| apt-get clean | | apt-get clean |
- | (To also update libdns do dist-upgrade in place of upgrade, but not when squeeze is enabled!)
| |
| | | |
| ==== Additional packages ==== | | ==== 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. | | I personally found the following packages useful, which include a complete LATeX installation and the symbolic math program xmaxima, which both are fairly big. |
| + | To find out what they actually are, look up for instance http://www.debian.org/distrib/packages |
| | | |
| (Don't forget to run "apt-get clean" regularly to free the space occupied by the downloaded Debian packages once they are installed.) | | (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>: | | 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]) | + | *mc |
- | *[http://packages.debian.org/lenny/mc mc] | + | *pgpgpg |
- | *[http://packages.debian.org/lenny/odt2txt odt2txt] | + | *tree |
- | *[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]) | + | *odt2txt |
- | : v3e: the full openssh suite is now already installed - IMHO the openssh-server can be de-installed
| + | *openssh-client |
- | *[http://packages.debian.org/lenny/pgpgpg pgpgpg] | + | *vpnc |
- | *[http://packages.debian.org/lenny/tree tree] | + | *encfs |
- | *[http://packages.debian.org/lenny/vpnc vpnc] (see also [http://wiki.maemo.org/Easy_Debian#Other_useful_applications_to_install_in_addition wiki]) | + | *xmaxima |
- | *[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]) | + | *dvipng |
- | *[http://packages.debian.org/lenny/dvipng dvipng]
| + | *graphviz |
- | *[http://packages.debian.org/lenny/graphviz graphviz] | + | *bzr |
- | <!-- *[http://packages.debian.org/lenny/bzr bzr] -->
| + | *texlive-publishers |
- | *[http://packages.debian.org/lenny/texlive-latex-base texlive-latex-base] | + | *grace |
- | *[http://packages.debian.org/lenny/texlive-publishers texlive-publishers]
| + | *djview |
- | *[http://packages.debian.org/lenny/prosper prosper]
| + | *pdftk |
- | *[http://packages.debian.org/lenny/latex-beamer latex-beamer]
| + | *flpsed |
- | *[http://packages.debian.org/lenny/grace grace] | + | *xpaint |
- | *[http://packages.debian.org/lenny/djview4 djview4] | + | *rsync |
- | *[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) | + | Then with <u>squeeze</u> activated: |
| | | |
- | *[http://packages.debian.org/squeeze/galculator galculator] | + | *galculator |
- | *[http://packages.debian.org/squeeze/geeqie geeqie] | + | *zim |
- | *[http://packages.debian.org/squeeze/gramps gramps] (needs debbie-sue in lieu of debbie!) | + | *gramps |
- | *[http://packages.debian.org/squeeze/pdfgrep pdfgrep] | + | *xournal |
- | *[http://packages.debian.org/squeeze/sshfs sshfs] | + | *sshfs |
- | *[http://packages.debian.org/squeeze/xournal xournal] | + | *pdfgrep |
- | *[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:
| + | Upgrade of OpenOffice to 3.2 |
- | | + | apt-get install 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 openoffice.org-emailmerge ttf-opensymbol python-uno |
- | 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 | | 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]
| |
| | | |
| ---- | | ---- |
Line 284: |
Line 178: |
| zenity --display=:0 --info --title="Information" --text="This window is needed to gain keyboard focus in LXDE. Click OK." & | | zenity --display=:0 --info --title="Information" --text="This window is needed to gain keyboard focus in LXDE. Click OK." & |
| | | |
- | === /usr/bin/xephwm5 === | + | === Openoffice 3.2.0 === |
| | | |
- | Change $CHROOT/usr/bin/xephwm5 so that the lines containing qobi-wmhint-fix and set-focus read:
| + | Currently the Openoffice version from Squeeze (1:3.2.0-9) has working armel. Before that changes again, it could be included in the Debian image. |
- | sudo /sbin/qobi-wmhint-fix $PARWIN
| + | |
- | #/usr/bin/set-focus $PARWIN
| + | apt-get install 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 openoffice.org-emailmerge |
| | | |
- | 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. | + | This includes also openoffice.org-math, but leaves out openoffice.org-base (which is big and untested on the N900 (?)). |
| | | |
| == Proposed changes to image debian-m5-v3b.img.ext2 (old) == | | == Proposed changes to image debian-m5-v3b.img.ext2 (old) == |