maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Removing unnecessary files on N810 (https://talk.maemo.org/showthread.php?t=41878)

coosbaytv 2010-05-13 18:22

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by gerbick (Post 656304)
If I can help... sure. Let's start with what all do you have installed, what's active - in terms of your app catalogs - and what languages do you consider "near and dear" to you.

I see Oregon, but oddly enough until I wrote the prior guide, I kept German on my tablet too until I stopped traveling there, what not.

I'm sure we can help somewhat. 10mb is pretty darn tight. I'm feeling cramped under 110mb!

OK...

INSTALLED: k=keep ; d=delete

Fennec -k
RSS feed reader -k
Livecast -k
Xournal -k
Leafpad -k
Labrinth Mand mapping -k
Panucci -k
Personal Launcher -k
Eggtimer -k
FBReader -k
MPlayer -k
USB Control -d
Connection Handler -k
Garnet VM -possible delete
Camera -k
Evince -k
Seqretary Recorder -k
Rapier -k
Maemo Screengrabber -d
Ramzez -d
vpnc GUI -d
Configuration Editor -d
Opera -k
Telescope -k
Maemo 5 Theme -k

English only language...

App: Catalogues:

Nokia Catalog
Nokia Catalog (3rd party)
Nokia System updates
maemo Extras nchinook
Innogogies Package Repositories
Kawseq Consulting -Diablo Applications
Maemo Extras
Mitrandir's Maemo Repository
Mozilla
Mozilla Catalog
Mozilla trunk multi catalog
Opera Catalog
Qole's Repository
Tuomas Kulve - Maemo - Chinook
maemos Extra
maemo Extras (chinook)

This is what I know I have...

In terms of what I absolutely use for apps:
EVINCE
LEAFPAD
FENNEC
OPERA
FBREADER
MPLAYER
RSS reader
as well as the built in media player.

I do NOT use any of the games, built in or otherwise. I would like to remove some of the packaged crap as well. I have already uninstalled the GPS/mapping app which allowed me to do on it's own.

Anyway, here is a starting point. I assume that I must have a bunch of residual stuff from the past year of use but find very little of my own files installed.

thx for your willing ness to help!

silvermountain 2010-05-13 18:26

Re: Removing unnecessary files on N810
 
Do you guys also reformat the mmc2 when you reflash?
Been thinking about copying it down to my PC, reformat the internal mmc2 card and should I need any of the docs/images I can move them back to the mmc2 through ssh.

coosbaytv 2010-05-13 18:36

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by silvermountain (Post 657248)
Do you guys also reformat the mmc2 when you reflash?
Been thinking about copying it down to my PC, reformat the internal mmc2 card and should I need any of the docs/images I can move them back to the mmc2 through ssh.

probably wouldn't hurt!!!

sounds like everyone is Spring Cleaning...

especially those of us n810 users!

silvermountain 2010-05-13 18:40

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by coosbaytv (Post 657254)
probably wouldn't hurt!!!

sounds like everyone is Spring Cleaning...

especially those of us n810 users!

Lol, yeah so many new things for our N810's to play with these days.
Can't remember when I used mine as much as I have in the past week.

I WAS gonna wait until the weekend..but..nah...I might just reflash..AND reformat mmc2 today... :D

EDIT: Having said that I just started copying the entire flash (well, I copied all under /user and /usr ) - and mmc2 contents to my pc over ssh. Yes, I am that anal :)

gerbick 2010-05-13 19:05

Re: Removing unnecessary files on N810
 
Do you use a particular theme or switch a lot?

You have a lot of apps that I've never installed. But I'm sure a few things will help you out. I truly suggest that you go back to my prior list and install in this order:

libpcre3_6.7-1osso1_armel.deb
color_ls_1.0-1_armel.deb
pcregrep_6.7-1osso1_armel.deb
localepurge_0.5.8_all.modfied.modfied.deb

Login as root, then pull a localepurge && docpurge. Docpurge is built-in already.

Then go do the rest about the languages, et al. Now, from there, I'd clear the caches of Fennec and Opera - Opera is bad about putting it down on the main memory and my config changes don't seem to be helping (more on that later, I want the cache on one of the external cards).

I'm going to assume that you're keeping very little on the main memory and internal memory and keeping most of that on the external memory card.

Dropping the unused *.png's and themes can give you up to 12mb right there alone. Another 10-17mb for using the localepurge and docpurge. The rest is less than 2mb - such as the keyboards, et al.

You might still have .navicore and other hidden files - I tend to pull a ls -a | more in /usr/share and drill down from there. There are installers still in /cd/etc that can be killed. To be honest, that's another 1.x or so megabyte more saved (it's not much).

I tend to kill the help files on the apps I download. And all README files, I kill. I'm going to assume that you've also killed the images, that Moby track, the other files that are on the main memory. If not, that's about another 9-17mb right there.

rm -rf /usr/share/mime/.Trash/*
rm -rf /var/tmp/*

Pull those two to kill apps that might have placed stuff down in places you've not intended for them to go.

Also, once you've uninstalled the -d apps you've listed above, cd /home/user/ and pull a ls -a

Any .<applicationName> that you've uninstalled, feel free to remove them. Do not remove .mozilla, .purple from that location.

If I can think of where else some other stuff might be hiding, I'll list it in this thread. And I'm sure some heavy-duty users, like Addison and the rest can help out where I might be a bit lacking. I don't mind admitting that I've cobbled this together over a few years, but it's not perfect.

And by searching through this site, I've learned and added more over the years.

Oh... and I do cheat a bit... I disable my application catalogs and weekly turn them on to check for updates. Extras-Devel can bloat up to like 10mb or so. Once I update, disable them, then apt-get autoclean && apt-get autoremove then I pull a reboot via the terminal.

silvermountain 2010-05-13 19:10

Re: Removing unnecessary files on N810
 
I'm starting to think that localpurge is what stopped Vietnamese characters to show for me in Vagalume. Will test today when reflashing/reformatting.

gerbick 2010-05-13 19:14

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by silvermountain (Post 657304)
I'm starting to think that localpurge is what stopped Vietnamese characters to show for me in Vagalume. Will test today when reflashing/reformatting.

Oh yes... that would have killed that. If you don't want to use localepurge, then use docpurge and manually rm -f the language packages you'll not use.

coosbaytv 2010-05-13 19:16

Re: Removing unnecessary files on N810
 
will only be using the Diablo 5 theme now...

as for the rest of the instructions, it is pretty much over my head...

As I said before, x-term is not my thing and I have no knowledge of linux at all. I am however, a pretty knowledgable PC user but am afraid of accessing and messing with this linux stuff is where I am lost. I am willing to learn but this will obviously be somewhat slow.

So, the first thing is to install the 4 apps you mention, correct? Doing this now...

coosbaytv 2010-05-13 19:18

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by gerbick (Post 657309)
Oh yes... that would have killed that. If you don't want to use localepurge, then use docpurge and manually rm -f the language packages you'll not use.

huh? sorry, is localpurge a command you type in x-term?

also, what is "login as root"?

coosbaytv 2010-05-13 19:27

Re: Removing unnecessary files on N810
 
ERROR with installation of libpcre3 6.7-1osso1...

"Incompatible application package"

danramos 2010-05-13 19:28

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by lma (Post 656426)
It was, both in the mailing list and MWKN.

Both of which, I've never heard of--nor any of the folks offline that I know own an N800 have ever mentioned to me. If it's not actually posted on maemo.org (which is SUPPOSEDLY a community site, right?) then how do you expect most device owners to be aware of this? I've seen the Community SSU only ever MENTIONED here and around, but never saw a way to get it or to be involved. Heck, I haunt this place more than the average person (maybe not as much as some of you, mind you).

Quote:

Originally Posted by lma (Post 656426)
No, this is non-official and Nokia is not responsible for anything we break.

I was referring to the non-Community OS. Does Nokia still support their N8x0 OS? We can actually DEMAND support? Really?

silvermountain 2010-05-13 19:33

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by gerbick (Post 657309)
Oh yes... that would have killed that. If you don't want to use localepurge, then use docpurge and manually rm -f the language packages you'll not use.

Thanks much, will do.
I like listening to a lot of international music so I might be stuck with keeping most language files if I want titles and names presented accurately.

gazza_d 2010-05-13 19:38

Re: Removing unnecessary files on N810
 
Noticed this thread and decided to have a bit of a clean. I now have 126mb free. yippee!

I didn't know about localepurge though, so that was very useful.

gerbick 2010-05-13 19:43

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by coosbaytv (Post 657312)
will only be using the Diablo 5 theme now...

I suggest keeping one of the other themes at least. Just in case an update to the Diablo5 theme goes wrong. I had to "reset" once.

Quote:

as for the rest of the instructions, it is pretty much over my head...
Oh. Oops. I assumed quite a bit there...

Quote:

As I said before, x-term is not my thing and I have no knowledge of linux at all. I am however, a pretty knowledgable PC user but am afraid of accessing and messing with this linux stuff is where I am lost. I am willing to learn but this will obviously be somewhat slow.
Yeah, for a lot of it, you will have to be in the x-term, or what I tend to refer to as "terminal". In doing this kind of stuff, it's almost a necessity.

Quote:

So, the first thing is to install the 4 apps you mention, correct? Doing this now...
Install via the terminal and not the Application Manager. Those aforesaid apps have to be installed via the terminal.

silvermountain 2010-05-13 19:44

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by danramos (Post 657338)
Both of which, I've never heard of--nor any of the folks offline that I know own an N800 have ever mentioned to me. If it's not actually posted on maemo.org (which is SUPPOSEDLY a community site, right?) then how do you expect most device owners to be aware of this? I've seen the Community SSU only ever MENTIONED here and around, but never saw a way to get it or to be involved. Heck, I haunt this place more than the average person (maybe not as much as some of you, mind you).


I created a new thread for this: http://talk.maemo.org/showthread.php...363#post657363

gerbick 2010-05-13 19:45

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by gazza_d (Post 657352)
Noticed this thread and decided to have a bit of a clean. I now have 126mb free. yippee!

I didn't know about localepurge though, so that was very useful.

gazza, I know you know more than I do about Linux; so I hope that you changed your localepurge to exclude en_GB and not en_US. As it stands, that's what the localepurge I posted will kill if run unchanged.

It shouldn't get rid of en_GB, but I thought I'd mention it just in case.

gerbick 2010-05-13 19:49

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by coosbaytv (Post 657334)
ERROR with installation of libpcre3 6.7-1osso1...

"Incompatible application package"

Quote:

Then I use localepurge & docpurge to get rid of some locales on programs and files that I'd never use. Install in this order:

note: Mine were on my external memory card in a folder named Downloads

cd /media/mmc1/Downloads
dpkg -i libpcre3_6.7-1osso1_armel.deb
dpkg -i color_ls_1.0-1_armel.deb
dpkg -i pcregrep_6.7-1osso1_armel.deb
dpkg -i localepurge_0.5.8_all.modfied.modfied.deb
You will have to be in the terminal to install those. And by "login as root", I'm assuming that you also have rootsh or easyroot installed. They take up like 20k of space, allow you to enter the terminal and type "root" and then from there allow you to do the things that I've stated above.

Amazingly enough, as an ex-MCSE (I've yet to have a client need to update) almost all of my prior commands were done all in the terminal.

gerbick 2010-05-13 20:00

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by coosbaytv (Post 657315)
huh? sorry, is localpurge a command you type in x-term?

Yes.

Quote:

also, what is "login as root"?
Install rootsh or easyroot and then pull up the terminal, type root. Now you're in as the root user.

I have zero experience with it, but you might want to use Emelfm2 since it'll allow you to do some of these removals in a visual method that you might like better. I just... can't say one way or the other for it. In fact, you're using leafpad... it might give you that ability somewhat.

I just don't have either installed.

coosbaytv 2010-05-13 20:01

Re: Removing unnecessary files on N810
 
if I type "root" in terminal and get "Nokia-N810-43-7:~#", does this mean I am at the root directory?

Also, what is "cd"?

will try to install the apps from root next...

making headway, one step at a time!

thx for your patience

gerbick 2010-05-13 20:06

Re: Removing unnecessary files on N810
 
cd = change directory
ls = list
root = command to enter as a root user/super user
ls -a = list all (including hidden)
cp = copy
rm = remove
mv = move

Where did you place the files from the earlier links? Like I said, I had mine on my external memory card. So to get to it... I would use:

cd /media/mm1 (hit enter)

Then I'd cd into my Downloads directory, then dpkg -i (dpkg install) the exact name of the deb (think exe) onto my machine.

coosbaytv 2010-05-13 20:18

Re: Removing unnecessary files on N810
 
ok, got the first app "dpkg -i libpcre3_6.7-1osso1_armel.deb"
installed from root...

now back to downloading and installing the rest...

I have to leave in just a bit so once I get the 4 apps installed, can I start to play with the List All function and maybe use them to find and remove files that I recognize and know I don't need?

If so, what is the syntax used for this? For example, I assume in Localpurge and Docpurge it has to have some direction to know what to "purge" once it finds what it was asked to? Make any sense?

I know you are busy so this is enough for now...again, thanks for thje help and detailed explanation!

coosbaytv 2010-05-13 20:34

Re: Removing unnecessary files on N810
 
all installed successfully in root...

gerbick 2010-05-13 21:23

Re: Removing unnecessary files on N810
 
Cool. Head back to my prior post and start cleaning via the terminal.

For docpurge && localepurge, that's entered once you're in as root.

The rest, I hope I was clear enough with the commands. If not, post your questions here.

gazza_d 2010-05-13 21:45

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by gerbick (Post 657366)
gazza, I know you know more than I do about Linux; so I hope that you changed your localepurge to exclude en_GB and not en_US. As it stands, that's what the localepurge I posted will kill if run unchanged.

It shouldn't get rid of en_GB, but I thought I'd mention it just in case.

Yea, well... just as well for me then that it did ignore en_GB!!!!:)

Ta for the heads up!!

silvermountain 2010-05-14 00:09

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by gerbick (Post 656085)
Also... to anybody that's used my method or have their own method, how much space do you have after you've installed everything?

(added) ScummVM, (added) DrNokNES, (added) Opera, (removed) Map (I'm pissed at you Navicore/Wayfinder), (added) AlmostTI85 graphing calculator, (added) Telescope... and still finding myself with around 120mb free. Might install Pidgin instead of RTComm Beta (problems with Yahoo are not easy to walk around and the purple lib update is somewhat bigger than Pidgin in total)...

Just tinkering. And curious...

I just reflashed...and without doing anything apart from checking memory I have 125.7MB free (123.8MB is in use). It will be very interesting to see what I can get to using some of your steps and installing the cough-66-cough apps that I need.

Also reformatted mmc2 and gor 1.87GB available on it now.

A very...weird feeling to have NO folders/files on it...

Updated as I go...:

a) Re-flashed,

b) Reformatted mmc2 through Filemanager.

1) Installed the repo's that I use:

Nokia Catalog
Nokia Catalog (3rd party software)
Nokia System Software Updates
maemo Extras
Browser Extras
Collabora Catalogue
Community SSU (Testing)
Extras-Devel
Fring
Kawseq Conslting
Mikie
Mitrandir's Maemo Repository
Qole
RTComm Beta
maemo Extras (chinook)

..and am at 115.2Mb free - with the repos active but no apps installed yet.

2) Starting to re-install the apps I "need": - in this order:
- rootsh
- emelFM2
- Advanced Backlight
- Advanced Power
- Advanced Powermonitor
- .....

.....

silvermountain 2010-05-14 02:30

Re: Removing unnecessary files on N810
 
Oh data cleanup gurus...
Is there anything I need in /media/mmc2/map/ if the only map-tool I use is Maemo Mapper? If not, is it safe to get rid of it and all its subfolders?

gerbick 2010-05-14 03:07

Re: Removing unnecessary files on N810
 
I hate to answer with hardly no Maemo Mapper experience - used it for a while, decided I didn't like it despite it being not bad at all; however I recall blowing that away without consequence.

silvermountain 2010-05-14 04:02

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by gerbick (Post 657809)
I hate to answer with hardly no Maemo Mapper experience - used it for a while, decided I didn't like it despite it being not bad at all; however I recall blowing that away without consequence.

Only one way to find out... :)

Maemo Mapper is the only app I've found that allows me to download VE maps, look up addresses, multiple zooms, GPS support etc so that one is a must for me to work :)

EDIT: Wiped out the /map directory and it does not seem to be relevant to Maemo Mapper at all.

coosbaytv 2010-05-14 04:24

Re: Removing unnecessary files on N810
 
gerbick: I ran localpurge and gained 13 mb...
now down to 227 mb used of internal storage.

not sure about the other stuff...

coosbaytv 2010-05-14 16:27

Re: Removing unnecessary files on N810
 
hey gerbick!

how about we take this in a little different direction?

You mentioned deleting themes; minus the new Diablo 5 Theme and one of the stock ones for backup...just in case.

So with that in mind, what would be the procedure?

Also, FYI, I got XMMS installed and it is great so I am well on my way to what I ultimately want in terms of n810 and it's capability :)

silvermountain 2010-05-14 17:01

Re: Removing unnecessary files on N810
 
I will let gerbick talk to any technical point on what files/folders to remove - BUT if you intend on doing a lot of cleaning and/or access the files on your tablet a lot I really recommend getting openssh and WINSCP setup. It makes the whole task soooo much easier (and the setup is about...5 mins).

coosbaytv 2010-05-14 17:15

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by silvermountain (Post 658620)
I will let gerbick talk to any technical point on what files/folders to remove - BUT if you intend on doing a lot of cleaning and/or access the files on your tablet a lot I really recommend getting openssh and WINSCP setup. It makes the whole task soooo much easier (and the setup is about...5 mins).

Cool, is this a matter of installing each of these from the App Mgr? If not, please provide some info :)

thx

gerbick 2010-05-14 17:18

Re: Removing unnecessary files on N810
 
You know... I've been thinking of just that silvermountain. I don't run my system like that; I might have to research, document and post that too.

Great idea.

Okay coos, pertaining the themes...

via the terminal: cd /usr/share/themes, then ls, rm -r <name> where "<name>" is the one you're deleting.

So for instance, it will be rm -r Glasser to delete Glasser. Repeat but take notice that I suggest that you do not remove Emacs, default and Default (redundant, I know).

I remove all but: echo, Emacs, default and Default here.

Mind you, I'm using a different image background already from the standard Echo theme (the only theme I keep, you *should* keep one standard one as well as Diablo5) so with that said...

cd /usr/share/backgrounds and from there I remove all *.desktop except the ones I'm keeping as well as default.desktop, you'd keep default.desktop, Diablo5 and whichever you decided to keep (I keep Echo) as well as (if it's not in use) all of the *.png files.

rm *.png will kill the pngs. You have to do the desktops one by one using the rm command. Do not use rm *.desktop or else they'll all be gone and your machine will not work right.

coosbaytv 2010-05-14 17:21

Re: Removing unnecessary files on N810
 
Cool, thanks...will work on this after bit!

silvermountain 2010-05-14 17:28

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by coosbaytv (Post 658637)
Cool, is this a matter of installing each of these from the App Mgr? If not, please provide some info :)

thx

Ah, this I can answer having done this install a number of times :)

This post is a great step-by-step install process. It really only takes 5-10 minutes and once you have used it once from your PC/Laptop you will never want to browse files on your tablet again :)

http://talk.maemo.org/showpost.php?p=228133&postcount=1

I use this to browse, delete, copy, rename, open, edit...you name it...files on my tablet.

Before I reflashed and reformatted I used this to simply drag and drop the folders I wanted to save to my PC to an N810-folder I keep there.

coosbaytv 2010-05-14 19:20

Re: Removing unnecessary files on N810
 
another question:

gerbick mentioned the repositories are guilty of taking up quite a bit of space internally.

Is there any documentation on the amount per each repository (even a proximity) ?

silvermountain 2010-05-14 19:59

Re: Removing unnecessary files on N810
 
Quote:

Originally Posted by coosbaytv (Post 658782)
another question:

gerbick mentioned the repositories are guilty of taking up quite a bit of space internally.

Is there any documentation on the amount per each repository (even a proximity) ?

Rough estimates, in descending order:

Maemo Extras-Devel: 6.9MB (should be kept disabled for more reasons than space),
Maemo Extras-Diablo: 3.4MB
Maemo Extras-Chinook: 2.2MB
RTComm Beta: 0.3MB
Nokia Catalog: 0.2 MB

(All other repo's that I have are 0.1MB or less:
Nokia Catalog (3rd party software)
Collabora Catalogue,
Fring,
Kawseq Consulting,
Mitrandir's,
Qole's Repo)

coosbaytv 2010-05-14 20:16

Re: Removing unnecessary files on N810
 
thanks silvermountain:

Also, do I assume correctly that even though you remove the repositories from the Application Manager that it WILL NOT give you back that storage space?

gerbick 2010-05-14 20:20

Re: Removing unnecessary files on N810
 
If you disable them; you will get your space back on reboot. On reboot, I believe it apt-get clean and apt-get remove as well as tries to clear out any tmp files.

If you remove them, on refresh/reboot... same thing.

coosbaytv 2010-05-14 20:31

Re: Removing unnecessary files on N810
 
COOL thanks!

FYI: started reading your blog, good stuff!


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

vBulletin® Version 3.8.8