Editing User:Tanner
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 26: | Line 26: | ||
To replace several tools in scratchbox you can also use the following line as a template | To replace several tools in scratchbox you can also use the following line as a template | ||
SBOX_REDIRECT_IGNORE:=$(shell echo /usr/bin/{perl,dh_*} | sed "s/ /:/g") | SBOX_REDIRECT_IGNORE:=$(shell echo /usr/bin/{perl,dh_*} | sed "s/ /:/g") | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
== [http://maemo.org/packages/view/texlive-latex-base/ TeXLive 2009] == | == [http://maemo.org/packages/view/texlive-latex-base/ TeXLive 2009] == | ||
Line 81: | Line 48: | ||
== [http://maemo.org/packages/view/tcl8.5/ tcl8.5] [http://maemo.org/packages/view/tk8.5/ tk8.5] [http://maemo.org/packages/view/python-tk/ python-tk] == | == [http://maemo.org/packages/view/tcl8.5/ tcl8.5] [http://maemo.org/packages/view/tk8.5/ tk8.5] [http://maemo.org/packages/view/python-tk/ python-tk] == | ||
- | == [http://maemo.org/packages/view/lzma/ lzma | + | == [http://maemo.org/packages/view/lzma/ lzma] == |
an extremely efficient compressor. it is much faster than bzip2 for decompression and yields about 30% smaller files. | an extremely efficient compressor. it is much faster than bzip2 for decompression and yields about 30% smaller files. | ||
Line 94: | Line 61: | ||
some experimental ports which I have not yet uploaded to extras-devel can be found in my repository | some experimental ports which I have not yet uploaded to extras-devel can be found in my repository | ||
- | deb http:// | + | deb http://www.maemory.com/N900/ fremantle free incompatible |
- | currently: python2.6, perl5 | + | currently: python2.6, perl5.10 |
---- | ---- | ||
- | |||
= Ideas/plans: = | = Ideas/plans: = | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
== alternative USB host solution == | == alternative USB host solution == | ||
Line 130: | Line 83: | ||
and the search paths of Maemo need to be adjusted in /etc/profile and /etc/osso-af-init/af-defines.sh: | and the search paths of Maemo need to be adjusted in /etc/profile and /etc/osso-af-init/af-defines.sh: | ||
- | * PATH=$PATH:/opt/maemo/bin (and sbin for root) | + | * PATH=$PATH:/opt/maemo/usr/bin (and sbin for root) |
- | * ld.so.conf: add /opt/maemo/lib | + | * ld.so.conf: add /opt/maemo/usr/lib |
- | * locales: [https://bugs.maemo.org/show_bug.cgi?id=8363 LOCPATH]=LOCPATH=/usr/share/locale:/opt/maemo/share/locale | + | * locales: [https://bugs.maemo.org/show_bug.cgi?id=8363 LOCPATH]=LOCPATH=/usr/share/locale:/opt/maemo/usr/share/locale |
- | * MANPATH=/opt/maemo/share/man | + | * MANPATH=/opt/maemo/usr/share/man |
- | * pkgconfig: /usr/share/pkgconfig:/opt/maemo/share/pkgconfig | + | * pkgconfig: /usr/share/pkgconfig:/opt/maemo/usr/share/pkgconfig |
- | * info in info?: /usr/share/info:/opt/maemo/share/info | + | * info in info?: /usr/share/info:/opt/maemo/usr/share/info |
- | * apps in hildon: | + | * apps in hildon ?: /usr/share/applications:/opt/maemo/usr/share/applications |
- | * icons in hildon ?: /usr/share/icons:/opt/maemo/share/icons | + | * icons in hildon ?: /usr/share/icons:/opt/maemo/usr/share/icons |
this list may be incomplete - please help to complete it | this list may be incomplete - please help to complete it | ||
Line 146: | Line 99: | ||
TMPDIR=/var/tmp should be moved to /opt/tmp | TMPDIR=/var/tmp should be moved to /opt/tmp | ||
or /var/opt should symlink to /opt/var and contain a larger tmp directory. | or /var/opt should symlink to /opt/var and contain a larger tmp directory. | ||
- | |||
- | |||
- | |||
- | |||
- | |||
---- | ---- | ||
Line 159: | Line 107: | ||
[http://maemo.org/packages/repository/latest/fremantle_extras-devel_free_armel/all/ latest packages] | [http://maemo.org/packages/repository/latest/fremantle_extras-devel_free_armel/all/ latest packages] | ||
- | + | == Repartitioning == | |
- | + | [https://maemo.org/community/brainstorm/view/more_efficient_and_flexible_use_of_internal_flash brainstorm] | |
+ | [http://talk.maemo.org/showthread.php?t=37869 brainstorm discussion] | ||
+ | [http://talk.maemo.org/showthread.php?t=35122 repartitioning thread] | ||
[http://talk.maemo.org/showpost.php?p=424811&postcount=66 how to swap FAT and ext3 parition] | [http://talk.maemo.org/showpost.php?p=424811&postcount=66 how to swap FAT and ext3 parition] | ||
[http://talk.maemo.org/showpost.php?p=425359&postcount=68 how to implement USB mass storage with a loopback file] | [http://talk.maemo.org/showpost.php?p=425359&postcount=68 how to implement USB mass storage with a loopback file] | ||
- | == Setting up a repository mirror | + | == Setting up a repository mirror == |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | [http://www.maemory.com/mirror/repro-maemo.tgz reprepro configuration] | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
== Reflashing & Restore == | == Reflashing & Restore == | ||
Line 212: | Line 127: | ||
# store all settings with Backup on my SD card | # store all settings with Backup on my SD card | ||
# reflash with standard http://wiki.maemo.org/Updating_the_firmware, i.e. | # reflash with standard http://wiki.maemo.org/Updating_the_firmware, i.e. | ||
- | sudo flasher-3.5 -F | + | sudo flasher-3.5 -F RX-51_2009SE_2.2009.51-1_PR_COMBINED_MR0_ARM.bin -f -R |
# restore old backup except programs | # restore old backup except programs | ||
- | # install | + | # install gainroot |
# in Terminal: | # in Terminal: | ||
- | sudo | + | sudo su - |
- | with | + | /home/backup/restore |
+ | with following script in /home/backup (feedback and patches are welcome). | ||
It expects that you made a backup of /root and your selected modified files (e.g. /etc/ssh) in /home/backup. | It expects that you made a backup of /root and your selected modified files (e.g. /etc/ssh) in /home/backup. | ||
The file "pkgs" should contain a list (line by line) of the package names you want to install. | The file "pkgs" should contain a list (line by line) of the package names you want to install. | ||
+ | |||
+ | #!/bin/sh | ||
+ | # N900 restore script | ||
+ | # © 2010 by Thomas Tanner <tanner@maemory.com> | ||
+ | # licensed under GPLv3 | ||
+ | |||
+ | set -x | ||
+ | # script and data must be in /home/backup | ||
+ | cd /home/backup | ||
+ | # remove old opt | ||
+ | rm -rf /home/opt | ||
+ | mkdir /home/opt | ||
+ | # copy /root backup | ||
+ | rm -rf /root | ||
+ | cp -a root / | ||
+ | # copy modifed files for /etc | ||
+ | cp -a etc/* /etc | ||
+ | |||
+ | # enable user ssh login with ~/.ssh/authorized_keys | ||
+ | sed 's/^user:!/user:\*/' /etc/passwd > /etc/passwd.tmp | ||
+ | cp /etc/passwd.tmp /etc/passwd # mv | ||
+ | |||
+ | # move root stuff to /home | ||
+ | dirs="usr/share/icons usr/share/nokia-maps usr/share/themes usr/share/fonts usr/share/locale usr/lib/locale var/lib/apt" | ||
+ | #optional: var/lib/dpkg | ||
+ | if test -d /home/var/cache/apt; then | ||
+ | # keep existing apt cache | ||
+ | rm -rf /var/cache/apt | ||
+ | ln -s /home/var/cache/apt /var/cache/apt | ||
+ | else | ||
+ | dirs="$dirs var/cache/apt" | ||
+ | fi | ||
+ | (cd / && du -sc $dirs) | ||
+ | for d in $dirs; do | ||
+ | test -L /$d && continue | ||
+ | echo moving /$d | ||
+ | rm -rf /home/$d | ||
+ | mkdir -p /home/$d | ||
+ | cp -a /$d /home/$d/.. | ||
+ | rm -rf /$d | ||
+ | ln -s /home/$d /$d | ||
+ | done | ||
+ | |||
+ | mount /home/user/MyDocs # non-standard partition layout | ||
+ | apt-get update | ||
+ | apt-get -y install mc python-support openssh-server | ||
+ | |||
+ | # install my standard set of packages | ||
+ | apt-get -y install `cat pkgs` |
Learn more about Contributing to the wiki.