Stwoo Stwoo slideshow slideshow slideshow slideshow slideshow slideshow

You are not logged in.

Extra Swap space for nokia n9

Since nokia n9 comes with 1GB of ram and only 256MB of swap it is very nice to extend this.
Well, it will come with sideeffects...though

First, you will have to be root, second, you will have to create empty file on your mass memory, assuming double ram size (2GB):
dd if=/dev/zero of=/home/user/MyDocs/.swap0 bs=1024 count=2097152

mkswap /home/user/MyDocs/.swap0
*2097152 is 2GB; 1048576 is 1GB; 524288 is 512MB; (XMB *1024 = XB)

then, you will want to put further codes into /bin/ or some other place in PATH dirs of root...

#!/bin/sh
swapon /home/user/MyDocs/.swap0
setswap download


#!/bin/sh
swapoff /home/user/MyDocs/.swap0

rmswap download


or for example:

sudo su
echo #!/bin/sh\nswapon /home/user/MyDocs/.swap0\n>/usr/bin/setswap0
chmod +x /usr/bin/setswap0
echo #!/bin/sh\nswapoff /home/user/MyDocs/.swap0\n>/usr/bin/rmswap0
chmod +x /usr/bin/rmswap0

Now, you can add swap on need by simple typint "sudo setswap0" and remove it by "sudo rmswap0"
if you are more lazy, you also can add "autorun" script that will mount swap0 on boot like:

description "additional swap file for harmattan"
author "wook dot ba at gmail dot com"
stop on stopping xsession
console none
respawn
nice 2

env DISPLAY=:0.0

pre-start script
swapon /home/user/MyDocs/.swap0
end script
swap-add.conf download



regards,
wook



under construction
FreeBSD Apache Python dot TK Free DNS

under construction
In case you have problems with loading site try alternative version:
mobile version (under construction) | desktop version
Intel on Linux
17:30:36 up 1 day, 18:13, 1 user, load average: 0.01, 0.08, 0.09
News:
Title: test-will -reedit
just test thingy...
let's see how it will look in preview :D
Title: The Very First!
Hello WORLD!!! from my very first python-ba...
I've managed to set up web server with https://www...
Title: Project: Turbulences
The Turbulences
This is project that I am working on for last few ...
Gallery:
bee02.jpg
Copyright © wook, Stwoowerks 2012.
Sitemap | Top | AVG Report

Valid XHTML + RDFaValid CSS!