Active Topics

 


Reply
Thread Tools
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#1
I thought it would be nice if we could all share tips to save space. Especially as flash space on N800 is limited.

1. Use localepurge:
http://sparrsstuff.com/localepurge

I only speak English (and a bit of Urdu but thats another matter) so why would I need Spanish,French, Swedish, Finnish etc :P

I recovered 15MB of space with that.


--

2. Delete the built in content. Go into file manager and delete the videos, sounds etc.

I have a N800, not a N810 so I don't need that demo tour :P. I like RnB, Hip-Hop, Rap & Grime, I don't listen to Moby :P.

--

3. Remove the built in wayfinder map application (if you do not need it) and the tutorial-home-applet with application manager.

--

4. (I think the N800 does this on shutdown/startup but if you need space quickly):
apt-get clean ; docpurge ; localepurge ; rm -rf /var/tmp/* ; rm -rf /usr/share/mime/.Trash/*

An description of those commands:
-apt-get clean cleans the cached packages saved to the n800. Application manager is set to run this by default (can be changed in red pill mode)

- docpurge cleans man files that may be installed on the system. man doesn't exist for N800 and you can google man "echo"

- localepurge, if you have it installed from 1., will clean out files for languages and clean out man pages if you enabled the option. I find it runs automatically when I use apt-get from terminal but not from application manager

-rm -rf /var/tmp/* - deletes all files in /var/tmp. when you "open" a file from the browser, it gets saved here. I don't recommend running the command while using rtcomm though.

-rm -rf /usr/share/mime/.Trash/* - if you use emelFM2, this one is important. Once a 50MB file from my MMC found it's way here after "deleting" it in emelfm2

--

5. To those who use OMWeather:
The resource files use 4.68 MB of space, if you only want weather for one country, you don't need the others.
e.g the stations.txt file on it's own takes 3.11MB. the locations.list 744KB.

I installed another icon set (wazd's Contour) and set it to Contour and then as root, I did:
"rm -rf /usr/share/omweather/icons/Crystal/"

That brings back 828 KB and I didn't like Crystal icon set. (Sorry)

city_in_clock.txt is only 2.99 KB and not worth editing.
Same with countrys.list.

Now, with locations.list which is 744KB, I did this.

vi /usr/share/omweather/locations.list

Keep pressing dd UNTIL you see your City there (For me that was London;UKXX0085; , how did I know it was the right one? It says UK and is grouped with other UK cities) and then go under that line and press dd again. Press ":wq" when done.

EDIT: Do it on a computer and copy back. Over 9000+ lines...

regions.list is only 6Kb so I will leave it out of here.

stations.txt must be edited on computer - it is 3.11MB . Airports are classified by country. Happy deleting - meh, too much for me even to do :P

--

6. Grab emelfm2 (by pipeline titled as "File Manager" in apps section) and enable showing of hidden files. Now notice how many settings files in your home directory (/home/user) are left over for programs you uninstalled. Just go to them and delete them. If you don't want the program anymore, why need the setting files?
Then run rm -rf /usr/share/mime/.Trash/* as root.

Of course, the space recovered will not be huge, far from it but you will get a slightly cleaner system.

--

This is a very basic list, maybe we can make it grow!

Last edited by qwerty12; 2008-03-09 at 10:47.
 

The Following 12 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 393 | Thanked: 112 times | Joined on Jul 2007
#2
Thanks for the link to localepurge will use it later no doubt.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#3
Thanks both

Bump :P

I've added a few more, I'd be interested to hear some more.
 
Posts: 12 | Thanked: 10 times | Joined on Jan 2008 @ Patra, Greece
#4
The site containing installation instructions for localepurge is no longer available.

Due to a recent reflash of my N810 I would need to reacquire those instructions (and the .deb package of course)

Does anyone has them saved somewhere?

Thnx in advnc

spiros.-
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#5
I found the info on my tablet a while back with google cache but I can't seem to find a link now to paste :/
 
Posts: 100 | Thanked: 17 times | Joined on Mar 2008 @ Hillsboro, Nh.
#6
So, instead of installing localepurge, which takes time to install, and takes up space as an installed app, why not just run in X-term, maybe as root:
rm -r /usr/share/locale/am
rm -r /usr/share/locale/ang
rm -r /usr/share/locale/ar
rm -r /usr/share/locale/az
rm -r /usr/share/locale/be
rm -r /usr/share/locale/bg
rm -r /usr/share/locale/bn
rm -r /usr/share/locale/bs
rm -r /usr/share/locale/ca
rm -r /usr/share/locale/cs
rm -r /usr/share/locale/cy
rm -r /usr/share/locale/da
rm -r /usr/share/locale/da_DK
rm -r /usr/share/locale/de
rm -r /usr/share/locale/de_DE
rm -r /usr/share/locale/dz
rm -r /usr/share/locale/el
rm -r /usr/share/locale/eo
rm -r /usr/share/locale/es
rm -r /usr/share/locale/es_ES
rm -r /usr/share/locale/es_MX
rm -r /usr/share/locale/et
rm -r /usr/share/locale/eu
rm -r /usr/share/locale/eu_ES
rm -r /usr/share/locale/fa
rm -r /usr/share/locale/fi
rm -r /usr/share/locale/fi_FI
rm -r /usr/share/locale/fr
rm -r /usr/share/locale/fr_CA
rm -r /usr/share/locale/fr_FR
rm -r /usr/share/locale/ga
rm -r /usr/share/locale/gl
rm -r /usr/share/locale/gu
rm -r /usr/share/locale/he
rm -r /usr/share/locale/hi
rm -r /usr/share/locale/hr
rm -r /usr/share/locale/hu
rm -r /usr/share/locale/id
rm -r /usr/share/locale/is
rm -r /usr/share/locale/it
rm -r /usr/share/locale/it_IT
rm -r /usr/share/locale/ja
rm -r /usr/share/locale/ka
rm -r /usr/share/locale/kn
rm -r /usr/share/locale/ko
rm -r /usr/share/locale/ku
rm -r /usr/share/locale/ky
rm -r /usr/share/locale/li
rm -r /usr/share/locale/lt
rm -r /usr/share/locale/lv
rm -r /usr/share/locale/mi
rm -r /usr/share/locale/mk
rm -r /usr/share/locale/ml
rm -r /usr/share/locale/mn
rm -r /usr/share/locale/ms
rm -r /usr/share/locale/nb
rm -r /usr/share/locale/ne
rm -r /usr/share/locale/nl
rm -r /usr/share/locale/nl_NL
rm -r /usr/share/locale/nn
rm -r /usr/share/locale/no
rm -r /usr/share/locale/no_NO
rm -r /usr/share/locale/or
rm -r /usr/share/locale/pa
rm -r /usr/share/locale/pl
rm -r /usr/share/locale/pt
rm -r /usr/share/locale/pt_BR
rm -r /usr/share/locale/pt_PT
rm -r /usr/share/locale/ro
rm -r /usr/share/locale/ru
rm -r /usr/share/locale/ru_RU
rm -r /usr/share/locale/rw
rm -r /usr/share/locale/se
rm -r /usr/share/locale/sk
rm -r /usr/share/locale/sl
rm -r /usr/share/locale/sq
rm -r /usr/share/locale/sr
rm -r /usr/share/locale/sr@Latn
rm -r /usr/share/locale/sv
rm -r /usr/share/locale/sv_SE
rm -r /usr/share/locale/ta
rm -r /usr/share/locale/th
rm -r /usr/share/locale/tl
rm -r /usr/share/locale/tr
rm -r /usr/share/locale/ug
rm -r /usr/share/locale/uk
rm -r /usr/share/locale/vi
rm -r /usr/share/locale/wa
rm -r /usr/share/locale/xh
rm -r /usr/share/locale/zh
rm -r /usr/share/locale/zh_CN
rm -r /usr/share/locale/zh_CN.GB2312
rm -r /usr/share/locale/zh_HK
rm -r /usr/share/locale/zh_TW

This will leave the English locales on your tablet, so edit it as you see fit. Takes just a couple of seconds to do.
__________________
n810 and n800, flashed with Diablo.
Also own a Sharp Zaurus sl-c3100 and sl-c1000, flashed with Cacko "heavy"[SIGPIC][/SIGPIC]
Also a sl-5500, with the TKrom.
An iPod Touch 4th gen rides in my pocket too.
 

The Following User Says Thank You to deluxe For This Useful Post:
Posts: 637 | Thanked: 445 times | Joined on Dec 2009 @ Kaliningrad, Russia
#7
emmm... Not bad.

But I create another way for me.
All programs I once installed goes from /usr/share to /media/mmc2/usr/share and from /home/user to /media/mmc2/user. Than just make a link in the original dirrectory to new one with emelfm2 (actions - link).

Next one: I deleted .images, .sounds, etc. dirs from /home/MyDoc and linked my music, video, documents dirrectory on mmc2 to original place with emelfm2 (actions - link as). Now I can save music to music default dirrectory, and it will be saved to mmc2, not to /home...




PLEASE DO IT ONLY IF YOU KNOW WHAT GONNA HAPPEN!!!
I reflashed right after I moved fonts dir to mmc2 because of FAT on mmc2. osso-help and so must be stored where it stored. Move only extra application's files, or someday you will have to reflash your device.

Good news. If reflash happened you always have all application's settings on your mmc2. For example my Opera saved pages and settings, liqcalendar notes, and a lot of stuff.


Good luck and keep your tablet safe.
 

The Following User Says Thank You to Kroll For This Useful Post:
Posts: 42 | Thanked: 18 times | Joined on May 2009 @ Fairport, NY, USA
#8
The other gotcha you need to watch out for in moving things to /media/mmc* is when the card is mounted vs. when the OS wants things. I tried moving all of the python stuff over and quickly broke stuff as some of the python libs were wanted before the mmc cards were mounted.

Another good candidate to move is /usr/games. I also move /var/cache/apt.

BTW: It's best to make a backup of /usr/share/locale (tar -zcvf /media/mmc1/locale-backup.tar.gz /usr/share/locale) before you start deleting things. Strange stuff happens with displays when you accidentally delete too much.

- John

Last edited by jwernerny; 2010-08-26 at 15:19.
 

The Following User Says Thank You to jwernerny For This Useful Post:
Posts: 637 | Thanked: 445 times | Joined on Dec 2009 @ Kaliningrad, Russia
#9
Yep, but I umount mmc2 (built-in memory) very rare, so thats not a problem
 
Posts: 958 | Thanked: 483 times | Joined on May 2010
#10
Originally Posted by deluxe View Post
So, instead of installing localepurge, which takes time to install, and takes up space as an installed app, why not just run in X-term, maybe as root:
rm -r /usr/share/locale/am
rm -r /usr/share/locale/ang
rm -r /usr/share/locale/ar
.....
rm -r /usr/share/locale/zh_HK
rm -r /usr/share/locale/zh_TW

This will leave the English locales on your tablet, so edit it as you see fit. Takes just a couple of seconds to do.
how much space do you potentially save with this?
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:42.