User:Joerg rw/tools
Line 64: | Line 64: | ||
random stuff to config / fix 'things' (c&p to shell) | random stuff to config / fix 'things' (c&p to shell) | ||
<pre> | <pre> | ||
+ | |||
+ | ########################################### | ||
# disable annoying xchat notifications introduced with some more recent update | # disable annoying xchat notifications introduced with some more recent update | ||
# goes along with 'undocumented' command /notify_mode -vl - thanks cehteh :-/ | # goes along with 'undocumented' command /notify_mode -vl - thanks cehteh :-/ | ||
Line 69: | Line 71: | ||
+ | ########################################### | ||
# master device name | # master device name | ||
echo IroN900 >/etc/hostname | echo IroN900 >/etc/hostname | ||
+ | |||
+ | ############################################ | ||
# kill that cherry PITA, before it sends SMS | # kill that cherry PITA, before it sends SMS | ||
# see http://wiki.maemo.org/PR1.2_compulsory_My_Nokia_subscription | # see http://wiki.maemo.org/PR1.2_compulsory_My_Nokia_subscription | ||
touch /home/user/.cherry_state | touch /home/user/.cherry_state | ||
+ | |||
+ | ########################################### | ||
# fix annoying hildon-desktop cpu hog bug | # fix annoying hildon-desktop cpu hog bug | ||
+ | ## new: with ctrl-BS for nice taskswitching, see | ||
+ | ## http://my.arava.co.il/~matan/repo/Modified_Hildon_Desktop.html | ||
+ | |||
cd ~user/MyDocs/tmp/ | cd ~user/MyDocs/tmp/ | ||
- | wget http://mohammadag.xceleo.org/repo/pool/\ | + | |
- | free/h/hildon-desktop/hildon-desktop_2.2.142-1_armel.deb | + | ##wget http://mohammadag.xceleo.org/repo/pool/\ |
- | dpkg -i hildon-desktop_2.2.142-1_armel.deb | + | ##free/h/hildon-desktop/hildon-desktop_2.2.142-1_armel.deb |
+ | wget http://my.svgalib.org/770/n900/hd-2.2.141/\ | ||
+ | modified-hildon-desktop_3.1_armel.deb | ||
+ | |||
+ | ##dpkg -i hildon-desktop_2.2.142-1_armel.deb | ||
+ | dpkg -i modified-hildon-desktop_3.1_armel.deb | ||
+ | |||
killall hildon-desktop | killall hildon-desktop | ||
+ | |||
+ | # set ctl-BS to my preferred operation mode | ||
+ | gconftool-2 -s \ | ||
+ | /apps/osso/hildon-desktop/key-actions/ctrl_backspace_in_tasknav -t int 5 | ||
+ | |||
#... and restore apt-get install (it's a metapkg, | #... and restore apt-get install (it's a metapkg, | ||
# so nothing bad seems to happen) | # so nothing bad seems to happen) | ||
Line 87: | Line 108: | ||
apt-get remove mp-fremantle-generic-pr | apt-get remove mp-fremantle-generic-pr | ||
+ | |||
+ | |||
+ | ########################################### | ||
# fix NOPASSWD for root / sudo gainroot | # fix NOPASSWD for root / sudo gainroot | ||
# MAKE SURE YOU'VE SET PROPER ROOT PASSWORD PRIOR TO THIS! | # MAKE SURE YOU'VE SET PROPER ROOT PASSWORD PRIOR TO THIS! | ||
Line 95: | Line 119: | ||
update-sudoers | update-sudoers | ||
+ | ########################################### | ||
# nice trackerd, doesn't exactly make it bearable, but somewhat less sucking | # nice trackerd, doesn't exactly make it bearable, but somewhat less sucking | ||
sed -i -e "s/Throttle=0/Throttle=10/" /home/user/.config/tracker/tracker.cfg | sed -i -e "s/Throttle=0/Throttle=10/" /home/user/.config/tracker/tracker.cfg | ||
Line 102: | Line 127: | ||
gconftool-2 -s /apps/osso/inputmethod/ext_kb_repeat_enabled --type boolean true | gconftool-2 -s /apps/osso/inputmethod/ext_kb_repeat_enabled --type boolean true | ||
+ | |||
+ | ########################################### | ||
# NK-Enter bug, putting less /, htop "search", and many other back to proper | # NK-Enter bug, putting less /, htop "search", and many other back to proper | ||
# https://bugs.maemo.org/show_bug.cgi?id=6009 | # https://bugs.maemo.org/show_bug.cgi?id=6009 |
Revision as of 20:56, 3 October 2010
patch eMMC aka *VANILLA* image file for larger /home partition (much easier than repartitioning the N900 *after* flashing. So if that's not obvious, this part is meant to be done on your linux desktop, prior to fresh full flash):
NEW-HOME-SIZE=4096 sed -e "s/2048/$NEW-HOME-SIZE/" path/to/*VANILLA*.bin >patched-VANILLA.bin
the text below is intended to c&p to N900 xterm
root cat >/usr/local/bin/apt-get <<"wikiETX" #! /bin/sh ## file /usr/local/bin/apt-get ## due to $PATH will override original apt-get cmd and create ## a file installed-aps.sh in ~root/ which can be sourced to redo ## all the apps installed via `apt-get install <app>` ag=/usr/bin/apt-get if [ "$1" = "install" ]; then echo '############ logged install ###########' $ag $@ && echo result: $? && echo $ag "$@" >>$HOME/installed-aps.sh else $ag $@ fi wikiETX chmod a+x /usr/local/bin/apt-get
bash and tools
apt-get install bash3 cat <<"wikietx" >/home/user/.bashrc # ~/.bashrc: executed by bash(1) for non-login shells. PATH=/usr/bin/gnu:$PATH export PS1='\h:\w\$ ' umask 022 # You may uncomment the following lines if you want `ls' to be colorized: export LS_OPTIONS='--color=auto' #### for unclear reasons messybox feels obliged to source .bashrc >:-( #### so this will break the messy ls, and you'll need to use bash eval "`dircolors`" alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l' alias l='ls $LS_OPTIONS -lA' # # Some more alias to avoid making mistakes: alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' wikietx cp /home/user/.bashrc /root/ chown user /home/user/.bashrc apt-get install coreutils-gnu apt-get install less apt-get install findutils apt-get install man-db-n900
random stuff to config / fix 'things' (c&p to shell)
########################################### # disable annoying xchat notifications introduced with some more recent update # goes along with 'undocumented' command /notify_mode -vl - thanks cehteh :-/ mv /usr/lib/xchat/plugins /usr/lib/xchat/plugins_disabled ########################################### # master device name echo IroN900 >/etc/hostname ############################################ # kill that cherry PITA, before it sends SMS # see http://wiki.maemo.org/PR1.2_compulsory_My_Nokia_subscription touch /home/user/.cherry_state ########################################### # fix annoying hildon-desktop cpu hog bug ## new: with ctrl-BS for nice taskswitching, see ## http://my.arava.co.il/~matan/repo/Modified_Hildon_Desktop.html cd ~user/MyDocs/tmp/ ##wget http://mohammadag.xceleo.org/repo/pool/\ ##free/h/hildon-desktop/hildon-desktop_2.2.142-1_armel.deb wget http://my.svgalib.org/770/n900/hd-2.2.141/\ modified-hildon-desktop_3.1_armel.deb ##dpkg -i hildon-desktop_2.2.142-1_armel.deb dpkg -i modified-hildon-desktop_3.1_armel.deb killall hildon-desktop # set ctl-BS to my preferred operation mode gconftool-2 -s \ /apps/osso/hildon-desktop/key-actions/ctrl_backspace_in_tasknav -t int 5 #... and restore apt-get install (it's a metapkg, # so nothing bad seems to happen) # might want to apt-get install it prior to next SSU to PR1.3 apt-get remove mp-fremantle-generic-pr ########################################### # fix NOPASSWD for root / sudo gainroot # MAKE SURE YOU'VE SET PROPER ROOT PASSWORD PRIOR TO THIS! sed -e "s/Defaults env_reset/Defaults env_reset\nDefaults targetpw/;\ s+user ALL = NOPASSWD: /usr/sbin/gainroot+user ALL =\ PASSWD: /usr/sbin/gainroot+" \ -i /etc/sudoers.d/01sudo update-sudoers ########################################### # nice trackerd, doesn't exactly make it bearable, but somewhat less sucking sed -i -e "s/Throttle=0/Throttle=10/" /home/user/.config/tracker/tracker.cfg # "fix" the hold-key=sym nonsense # http://wiki.maemo.org/Customizing_Maemo#Keyboard_Sym_on_auto_hold gconftool-2 -s /apps/osso/inputmethod/ext_kb_repeat_enabled --type boolean true ########################################### # NK-Enter bug, putting less /, htop "search", and many other back to proper # https://bugs.maemo.org/show_bug.cgi?id=6009 cd ~user/MyDocs/tmp/ wget --no-check-certificate \ https://bugs.maemo.org/attachment.cgi?id=2705 \ -O libvte4_0.16.14-0mh9.m5_armel.deb dpkg -i libvte4_0.16.14-0mh9.m5_armel.deb
/etc/X11/Xsession.d/10hildon_welcome = shaking-hands-video