Reply
Thread Tools
Andy1210's Avatar
Posts: 233 | Thanked: 220 times | Joined on Jan 2010 @ Hungary
#1
Just run this files with "sh symlink.sh" and "sh symlink_themes.sh" commands!

My space on rootfs after run scripts:
Code:
[1|root@Andy1210-N900|~]df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.9M    139.5M     84.2M  62% /

symlink.sh:
Code:
#!/bin/bash

if [ "$(id -u)" != "0" ]; then
   echo "Run as root!"
   echo "Use \"sudo gainroot\" command!"
   exit 1
fi

mkdir -p /home/root/usr/share
cd /usr/

for FILE in games include local src var
do
    mv $FILE /home/root/usr/
    ln -s /home/root/usr/$FILE /usr/
done

mkdir -p /home/root/var/cache
cd /var/cache/

for FILE in apt
do
    mv $FILE /home/root/var/cache/
    ln -s /home/root/var/cache/$FILE /var/cache/
done

cd /usr/share/

for FILE in fonts icons locale mime nokia-maps pixmaps sounds tutorial-applet zoneinfo
do
    mv $FILE /home/root/usr/share/
    ln -s /home/root/usr/share/$FILE /usr/share/
done

mkdir /home/root/usr/share/games
ln -s /home/root/usr/share/games
symlink_themes.sh
Code:
#!/bin/bash
# Created by Andy1210 - 2010. 04. 23.

if [ "$(id -u)" != "0" ]; then
   echo "Run as root!"
   echo "Use \"sudo gainroot\" command!"
   exit 1
fi

mkdir -p /home/root/usr/share
cd /usr/share/themes
ls -1 | sed 's/default//' | sed -e '/^ *$/d' > /root/themelist.txt
for THEMES in `cat /root/themelist.txt`; do
    if [ -f /usr/share/themes/$THEMES/index.theme ]; then
        echo "" > /root/themelist2.txt
        echo $THEMES >> /root/themelist2.txt
    fi
done
[ ! -d /home/root/usr/share/themes ] && mv /usr/share/themes /home/root/usr/share/themes
[ ! -d /usr/share/themes ] && ln -s /home/root/usr/share/themes /usr/share/themes
echo "Chose Default theme from this list!"
cat /root/themelist2.txt
echo
echo "* alpha = Nokia Nseries (blue)"
echo "* beta = Digital Nature (orange)"
echo
rm /root/themelist.txt
rm /root/themelist2.txt
echo -n " Chose: "
read SELECTED
if [ -d /usr/share/themes/$SELECTED ];then
    rm /usr/share/themes/default
    sleep 1
    ln -s /usr/share/themes/$SELECTED /usr/share/themes/default
    echo "New Default theme is: $SELECTED"
else
    echo "Selected theme is not found, please chose from the list!"
fi
With symlink_themes.sh you can chose "your Default" theme, otherwise your N900 selects original default theme after every boot!
Attached Files
File Type: zip symlink.zip (1.0 KB, 90 views)
__________________
Nokia N950 - PR1.3
OpenSUSE 12.2 / Windows 8

Last edited by Andy1210; 2010-04-23 at 14:02.
 

The Following User Says Thank You to Andy1210 For This Useful Post:
vitaminj's Avatar
Posts: 405 | Thanked: 960 times | Joined on Dec 2009 @ London, UK
#2
Oh good, now everything will be slower, as you've moved a significant percentage of all the system files onto the slow flash from the fast flash. Great.
But at least now I've got room to install badly-packaged software! Hurrah!
I think I'll pass.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#3
Originally Posted by vitaminj View Post
Oh good, now everything will be slower, as you've moved a significant percentage of all the system files onto the slow flash from the fast flash. Great.
But at least now I've got room to install badly-packaged software! Hurrah!
I think I'll pass.
Some people could find this useful and can decide for themselves if they notice a speed difference and if it's worth it for them.

No reason to be a jerk about it.. if you don't like it don't run it.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#4
I would like to hear what people actually experience with this fix. It does seem to have its limitations, but there's nothing like actual testing to see if one's ideas are correct.
 

The Following User Says Thank You to geneven For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#5
There's already a script in the wiki.

Not sure about this one, but moving the themes caused my personalisation_app to segfault.

Originally Posted by vitaminj View Post
Oh good, now everything will be slower, as you've moved a significant percentage of all the system files onto the slow flash from the fast flash. Great.
But at least now I've got room to install badly-packaged software! Hurrah!
I think I'll pass.
Not really, he can still move /var/lib/dpkg and /var/lib/apt
as well as /var/cache/apt/archives (edit: oh this was moved already).

Moving Nokia Maps and the microb-engine is also possible, haven't noticed any (significant) slowdown here.

Last edited by MohammadAG; 2010-04-23 at 15:14.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:59.