maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   more or less (https://talk.maemo.org/showthread.php?t=38217)

mirakels 2009-12-23 15:34

more or less
 
On all unix/linux systems I use less instead of more. I really get annoyed by the more command in the n900 Xterminal.

I tried to find 'less' for the n900 but I can't seem to find it.

Is there a less for n900, or an easy way to built it?

fatalsaint 2009-12-23 16:08

Re: more or less
 
Seriously.. this one can't be that hard to port. It's really disappointing busybox doesn't use less. I don't have the N900, unfortunately, so I would have no ability to test.

All someone needs to do is grab:
http://packages.debian.org/sid/armel/less/download

optify it, maybe change the control file a little bit and match dependency names with N900. Can someone verify that these are on the N900?

libc6 (>= 2.4), libgcc1 (>= 1:4.4.0), libncurses5 (>= 5.6+20071006-3), debianutils (>= 1.8)

I'm quite sure these were available to N810, although I'm not sure about versions. If the versions aren't right (N900 may have older libraries), then the less source just needs to be recompiled against the N900's packages.

Matan 2009-12-23 16:22

Re: more or less
 
It is available in the sdk repository: look here:

http://repository.maemo.org/pool/fremantle/free/

It is not advised to add this repository on the device, even if you know what you are doing, but you should have no problem downloading and installing specific packages, such as less.

fatalsaint 2009-12-23 16:25

Re: more or less
 
The SDK repo? Is that different than extras-testing and extras-devel?

How many "official" repo's are there?? Including ones that will kill my kittens and slaughter my first born? (I'll be adding all of them when I get an N900... bad repo's don't scare me ;)).

fatalsaint 2009-12-23 16:28

Re: more or less
 
http://repository.maemo.org/

Is that most of them? That and then Garage?

TA-t3 2009-12-23 16:29

Re: more or less
 
SDK: Software Developer Kit.
These are packages for the SDK cross-compilation setup on your PC, i.e. where you develop stuff that you can later install on the N900. As there are armel versions (which run in an emulator on the PC) of packages some of these will work on the actual N900 itself too. But you have to be careful.

So, it's not yet-another-repository for the N900: We're still at extras, extras-testing, extras-devel.

jsuggs 2009-12-23 16:32

Re: more or less
 
I know its not what you are really looking for but...

ln -s /bin/more /bin/less

At least until you get less actually ported you don't have to change your behavior.

fatalsaint 2009-12-23 16:33

Re: more or less
 
Well I understand SDK as Software Devel Kit... I have the N810 setup with scratchbox loaded at home. But why would there be apps in the SDK that you can install in your emulated environment that aren't out in one of the Maemo repo's?

What if I wrote a program that wrapped less with some other commands into a gui?? In the SDK evidently this would be fine as the package is there... but would never run on an "actual" N900 since there is no repository holding it. Or at least, that function would be missing.

This kind of disconnect I can see being a drawback in getting developers over to the Maemo platform.. if it's in the SDK, I would think it should at *least* be in the extras-devel..

fnordianslip 2009-12-23 17:11

Re: more or less
 
Ah, but it can't be in both repos, as developers would have both configured in their scratchbox. I use the SDK repo on my N900 to get tools such as less, but it is probably best to be careful with what you install from there as stuff in that repo isn't optified.

aspidites 2009-12-23 17:16

Re: more or less
 
Not to add to the confusion, but it may be safer to add the tools repo instead of the sdk one.

from the command line:
Code:

$ sudo gainroot
# echo "deb http://repository.maemo.org fremantle/tools free" >> /etc/apt/sources.list.d/hildon-application-manager.list
# apt-get update
exit
$

from App.manager (recommended)
http://img696.imageshack.us/img696/2...2310570.th.png:

Jebba's wiki page has this and more information on it.

notes
  • Modifying the hildon-application-manager.list file directly doesn't update "Application Catalogs", and pressing refresh doesn't correct this issue. Either its a bug, or I'm missing something very obvious. Then again, I seem to remember Synaptic Package Manager (Ubuntu) functioning similarly
  • to disable a repo from the text file, just prefix it with a "#"
  • Most everything in the tools repository is meant for people that are comfortable with the command line and miss something from their desktop *nix setup. It is not meant for normal users.


All times are GMT. The time now is 02:00.

vBulletin® Version 3.8.8