User:Mr pingu

In this page I post all my snippets of tweak and mods, I made this for the reference of all tweaks I did and might need after a reflash


Repositories

/etc/apt/sources.list.d/hildon-application-manager.list

deb https://downloads.maemo.nokia.com/fremantle/ssu/apps/ ./ 
deb https://downloads.maemo.nokia.com/fremantle/ssu/mr0 ./ 
deb https://downloads.maemo.nokia.com/fremantle1.2/ovi/ ./ 
deb http://repository.maemo.org/extras/ fremantle-1.3 free non-free
deb http://repository.maemo.org/community-testing/ fremantle free non-free
deb http://repository.maemo.org/extras-devel/ fremantle free non-free
deb http://my-maemo.com/repository/ fremantle user
deb http://repository.maemo.org/ fremantle/sdk free
deb http://repository.maemo.org/ fremantle/tools free
deb http://repository.maemo.org/extras-testing/ fremantle free non-free
deb http://qole.org/repository/ maemo fremantle


Setting up the device


Setting up the most important applications

apt-get update 
apt-get install  kernel-power-flasher linux-backports-modules-power recovery-boot busybox-power powertop shortcutd tracker-cfg wpakey-editor powertop sudser phone-control nano-opt gconf-editor procps bash3 swappolube


improve performance

  • Tracker-cfg tick lowmemorymode and set throttle to 10
  • Use proposed swappolube settings, except swappiness should be 50
  • Turn off swap on eMMC, enable on uSD (use ereswap)

Boot script placed in /etc/event.d/iosettings

These settings are mixed swapolube and freemangordons settings.

start on started hildon-desktop
stop on starting shutdown
console none
service

script


echo 50 > /proc/sys/vm/swappiness        
echo 0 > /proc/sys/vm/page-cluster        
echo 1 > /proc/sys/vm/laptop_mode        
echo 1 > /proc/sys/vm/oom_kill_allocating_task        
echo 0 > /proc/sys/vm/dirty_expire_centisecs        
echo 0 > /proc/sys/vm/dirty_writeback_centisecs       
echo 60 > /proc/sys/vm/dirty_background_ratio        
echo 95 > /proc/sys/vm/dirty_ratio        
echo 0 > /proc/sys/net/ipv4/tcp_timestamps        
echo 1 > /proc/sys/net/ipv4/tcp_no_metrics_save
echo 512 > /sys/block/mmcblk0/queue/nr_requests
echo 512 > /sys/block/mmcblk1/queue/nr_requests
echo 0 > /sys/block/mmcblk0/queue/iosched/slice_idle
echo 0 > /sys/block/mmcblk1/queue/iosched/slice_idle
echo 32 > /sys/block/mmcblk0/queue/iosched/quantum
echo 32 > /sys/block/mmcblk1/queue/iosched/quantum
echo 80 > /sys/block/mmcblk0/queue/iosched/fifo_expire_sync
echo 80 > /sys/block/mmcblk1/queue/iosched/fifo_expire_sync
echo 180 > /sys/block/mmcblk0/queue/iosched/fifo_expire_async
echo 180 > /sys/block/mmcblk1/queue/iosched/fifo_expire_async


end script



  • Installing handy tools
apt-get install conkylayoutswitcher flashlight-applet alarmed ssh-status clipman led-pattern-editor cl-launcher macchanger hostmode-gui extkbd extmou easy-deb-chroot extended-contacts-search gconf-editor less simple-brightness-applet
  • Installing some garbage I like to use
apt-get install aircrack-ng stkeys brainparty cutetube-qml dosbox supertux-stable frogatto colorflood pierogi telepathy-msn-pecan leafpad opera filebox irggu

Personalizing the device

  • Install widgets and themes
 apt-get install awoken-icon-theme black-plastic-theme plastic-addon-pack-1 cal-home-widget connectnow-home-widget queen-beecon quick-launch
  • Make the FMTX applet always visible
gconftool-2 -s /apps/osso/maemo-statusmenu-fmtx/always_visible -t bool true



Tweaks

  • Use sudo while already root. Sometimes when I am root I still type sudo in-front of a command and it spits out the help of sudo. This will add root to sudoers and solve that. Not very useful but it's a small and convenient tweak
sudo gainroot
echo "user ALL=(ALL) NOPASSWD: ALL" >> everybody.sudoers
echo "root ALL=(ALL) NOPASSWD: ALL" >> everybody.sudoers
mv everybody.sudoers /etc/sudoers.d
update-sudoers

Chroot

  • When using a Maemo 5 PR1.3 qchroot /home/opt/ from the real maemo installation is mounted which results in a big mess. So we need to edit the qchroot to only mount MyDocs and not the whole /home/ folder
#/sbin/qchroot/
Comment out line 82

81 # Do it the Fremantle way.
82 # mount /dev/mmcblk0p2 "$CHROOT/home"


  • pymaemo-optify works not as expected while it's one file system instead of 3 partitions.
To fix this install pymaemo-optify first
Then 

mv /etc/event.d/pymaemo-optify /etc/eventd.d/pymaemo-optify.bak
mv /etc/init.d/pymaemo-optify /etc/init.d/pymaemo-optify.bak

Fix Wifite.py

 sudo sed -i "s/(prefix='wifite')/(prefix='wifite',dir='\/opt\/tmp')/g" /home/user/MyDocs/MyScripts/wifite.py; sudo if [ ! -d "/opt/tmp" ]; then mkdir /opt/tmp; fi 

Record video with Gstreamers

 Enable SDK and tools repo
apt-get install gst-tools gstreamer0.10-plugins-good-extra

http://forum.meego.com/showthread.php?t=4833