User:Mr pingu

(Setting up the device)
(Setting up the device)
 
(20 intermediate revisions not shown)
Line 4: Line 4:
== Repositories ==
== Repositories ==
 +
/etc/apt/sources.list.d/hildon-application-manager.list
-
have to come
+
<pre>
 +
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
 +
</pre>
Line 13: Line 26:
----
----
-
Setting up the most important
+
'''Setting up the most important applications'''
 +
 
<pre>apt-get update  
<pre>apt-get update  
-
apt-get install  kernel-power-flasher linux-backports-modules-power recovery-boot busybox-power powertop shortcutd tracker-cfg wpakey-editor powertop phone-control nano-opt gconf-editor procps swappolube</pre>
+
apt-get install  kernel-power-flasher backupmenu busybox-power powertop shortcutd tracker-cfg wpakey-editor powertop sudser phone-control nano-opt gconf-editor procps bash3 </pre>
Line 23: Line 37:
* Tracker-cfg tick lowmemorymode and set throttle to 10
* Tracker-cfg tick lowmemorymode and set throttle to 10
* Use proposed swappolube settings, except swappiness should be 50
* Use proposed swappolube settings, except swappiness should be 50
-
* Turn off swap on eMMC, enable on uSD
+
* 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.
-
Boot script placed in /etc/event.d/swapusd
 
<pre>
<pre>
-
need to be pasted
+
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 4096 > /sys/block/mmcblk0/queue/nr_requests
 +
echo 4096 > /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
</pre>
</pre>
Line 35: Line 82:
* '''Installing handy tools'''
* '''Installing handy tools'''
-
<pre>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</pre>
+
<pre>apt-get install conkylayoutswitcher flashlight-applet alarmed ssh-status clipman led-pattern-editor cl-launcher hostmode-gui extkbd extmou extended-contacts-search gconf-editor less simple-brightness-applet</pre>
* '''Installing some garbage I like to use'''
* '''Installing some garbage I like to use'''
-
<pre>apt-get install aircrack-ng stkeys brainparty cutetube-qml dosbox supertux-stable frogatto colorflood pierogi leafpad opera filebox </pre>
+
<pre>apt-get install aircrack-ng stkeys brainparty cutetube-qml dosbox supertux-stable frogatto colorflood pierogi telepathy-msn-pecan leafpad opera filebox irggu macchanger easy-deb-chroot</pre>
 +
 
 +
 
 +
* '''Pentesting'''
 +
<pre>
 +
aircrack-ng ettercap-gtk wireshark cleven reaver cowpatty mdk3 driftnet dsniff fping gnome-nettool iftop ipv6-support kismet macchanger qnetman stkeys tcptraceroute yamas wireshark wifi-pwner traceroute2 python-scapy ettercap-gtk john nmap bash3 status-area-applet-tor
 +
</pre>
-
----
 
-
'''Personalizing the device'''
 
* Install widgets and themes
* Install widgets and themes
<pre> apt-get install awoken-icon-theme black-plastic-theme plastic-addon-pack-1 cal-home-widget connectnow-home-widget queen-beecon quick-launch</pre>
<pre> apt-get install awoken-icon-theme black-plastic-theme plastic-addon-pack-1 cal-home-widget connectnow-home-widget queen-beecon quick-launch</pre>
-
 
-
* Make the FMTX applet always visible
 
-
gconftool-2 -s /apps/osso/maemo-statusmenu-fmtx/always_visible -t bool true
 
-
 
-
 
----
----
Line 62: Line 108:
update-sudoers</pre>
update-sudoers</pre>
-
My transitions.ini
+
'''Fix Wifite.py'''
-
<pre>Need to be pasted</pre>
+
-
'''Chroot'''
+
<pre> 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 </pre>
-
#Fix qchroot for maemopr1.3image so /home/* isn't mounted in chroot
+
 
-
<pre>/sbin/qchroot/</pre>
+
* Make the FMTX applet always visible
 +
gconftool-2 -s /apps/osso/maemo-statusmenu-fmtx/always_visible -t bool true
 +
 
 +
* Microphone -> FMTX
 +
arecord | aplay
 +
 
 +
Enable FM-transmitter to work
 +
 
 +
'''Record video with Gstreamers and take Screenshot'''
 +
 
 +
<pre> Enable SDK and tools repo
 +
apt-get install gst-tools gstreamer0.10-plugins-good-extra
 +
 
 +
http://forum.meego.com/showthread.php?t=4833
 +
 
 +
</pre>
 +
 
 +
Screenshot makes a screenshot every x times in the current directory named frame0000x.png
 +
 
 +
<pre> gst-launch-0.10 ximagesrc ! video/x-raw-rgb,framerate=1/10 ! ffmpegcolorspace ! pngenc snapshot=false ! multifilesink location="frame%05d.png"
 +
 
 +
</pre>

Latest revision as of 10:44, 12 August 2014

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


[edit] 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


[edit] Setting up the device


Setting up the most important applications

apt-get update 
apt-get install  kernel-power-flasher backupmenu busybox-power powertop shortcutd tracker-cfg wpakey-editor powertop sudser phone-control nano-opt gconf-editor procps bash3 


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 4096 > /sys/block/mmcblk0/queue/nr_requests
echo 4096 > /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 hostmode-gui extkbd extmou  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 macchanger easy-deb-chroot


  • Pentesting
aircrack-ng ettercap-gtk wireshark cleven reaver cowpatty mdk3 driftnet dsniff fping gnome-nettool iftop ipv6-support kismet macchanger qnetman stkeys tcptraceroute yamas wireshark wifi-pwner traceroute2 python-scapy ettercap-gtk john nmap bash3 status-area-applet-tor
  • 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

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

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 
  • Make the FMTX applet always visible
gconftool-2 -s /apps/osso/maemo-statusmenu-fmtx/always_visible -t bool true
  • Microphone -> FMTX

arecord | aplay

Enable FM-transmitter to work

Record video with Gstreamers and take Screenshot

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

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

Screenshot makes a screenshot every x times in the current directory named frame0000x.png

 gst-launch-0.10 ximagesrc ! video/x-raw-rgb,framerate=1/10 ! ffmpegcolorspace ! pngenc snapshot=false ! multifilesink location="frame%05d.png"