User:Joerg rw/tools: Difference between revisions
From Maemo Wiki
Jump to navigationJump to search
imported>joerg_rw No edit summary |
imported>joerg_rw No edit summary |
||
| Line 20: | Line 20: | ||
</pre> | </pre> | ||
bash and tools | |||
<pre> | |||
apt-get install bash | |||
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' | |||
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 | |||
/usr/bin/apt-get install coreutils-gnu | |||
/usr/bin/apt-get install less | |||
/usr/bin/apt-get install findutils | |||
/usr/bin/apt-get install man-db-n900 | |||
</pre> | |||
random stuff to config / fix 'things' (c&p to shell) | random stuff to config / fix 'things' (c&p to shell) | ||
| Line 26: | Line 59: | ||
# goes along with 'undocumented' command /notify_mode -vl - thanks cehteh :-/ | # goes along with 'undocumented' command /notify_mode -vl - thanks cehteh :-/ | ||
mv /usr/lib/xchat/plugins /usr/lib/xchat/plugins_disabled | mv /usr/lib/xchat/plugins /usr/lib/xchat/plugins_disabled | ||
# master device name | # master device name | ||
echo IroN900 >/etc/hostname | echo IroN900 >/etc/hostname | ||
# kill that cherry PITA, before it sends SIM | |||
# see http://wiki.maemo.org/PR1.2_compulsory_My_Nokia_subscription | |||
touch /home/user/.cherry_state | |||
</pre> | </pre> | ||
Revision as of 14:26, 31 August 2010
the text below is intended to c&p to 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 bash 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' 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 /usr/bin/apt-get install coreutils-gnu /usr/bin/apt-get install less /usr/bin/apt-get install findutils /usr/bin/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 SIM # see http://wiki.maemo.org/PR1.2_compulsory_My_Nokia_subscription touch /home/user/.cherry_state