maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   ls color (https://talk.maemo.org/showthread.php?t=15364)

ag2 2008-01-19 10:18

ls color
 
I've built a package that adds color to ls output.

http://olya.com/maemo/lscolor.gif

Hope someone else will find this useful.

http://nitapps.com

linux_author 2008-01-19 11:24

Re: ls color
 
very nice! tks!

(i also like several of your utils from your site)

i really wish we had an n800 util on the order of xmessage - this would be useful to host a stdout stream or other output... in conjunction with a ported watch command, we'd have the ability to easily craft a number of handy tools 'on-the-fly'!

(off to look for the source to watch)

free 2008-01-20 17:25

Re: ls color
 
Great, I needed colours! Something I won't have to port.

xmessage is ported, it's part of xbase-client :
http://debfarm.free.fr/pool/?M=D

Watch is part of procps which conflicts with busybox, I've extracted it here:
http://debfarm.free.fr/nondeb/


ag2, is this the coreutils' ls ? Maybe a short sentence on where the binary comes from would be interesting? At least I am :)

Does it install? As it overwrites busybox ls, I wonder?

linux_author 2008-01-20 18:10

Re: ls color
 
Quote:

Originally Posted by free (Post 130991)
xmessage is ported, it's part of xbase-client :
http://debfarm.free.fr/pool/?M=D

Watch is part of procps which conflicts with busybox, I've extracted it here:
http://debfarm.free.fr/nondeb/

- *awesome*! tks!

:-)

ag2 2008-01-21 05:38

Re: ls color
 
Quote:

Originally Posted by free (Post 130991)

ag2, is this the coreutils' ls ? Maybe a short sentence on where the binary comes from would be interesting? At least I am :)

Does it install? As it overwrites busybox ls, I wonder?

Comes from coreutils and is hacked so that the --color=auto option is on by default.

It installs alongside busybox, by removing the ls symlink. The symlink is restored on uninstallation.

free 2008-01-21 07:47

Re: ls color
 
Ok thanks. I thought there was a also a conflict between busybox and coreutils but it doesn't look like. So it's just a matter of not overwritting /bin/ls.

combatdoc 2008-05-27 18:18

Re: ls color
 
Just a question.
Anybody seen the never-ending reboot with color-ls?

I installed it yesterday and my machine went into endless reboots requiring a reflash. The only other thing I did yesterday was change maemomapper to use BT to find the internal GPS.

I love color-ls and almost require it..lol Just not the reboots of death.

Benson 2008-05-27 18:29

Re: ls color
 
I didn't get a reboot loop, back when I tried it, but there was some wierd behavior, so I quit it...

You know, the busybox in the initfs (where space is tight) has colorized ls. The one on the rootfs doesn't. Nokia, Nokia, Nokia...

(Oh, and for the record, since xmessage was discussed; we've got gxmessage now, too. It's compatible, but with extensions and gtk+.)

combatdoc 2008-05-28 02:33

Re: ls color
 
how would you access the initfs? I have only had my n810 about a week and am not quite ready to hack it up yet.

Benson 2008-05-28 02:37

Re: ls color
 
Well, it's typically read-only (not enough room), so to actually change anything, you need Fanoush's initfs_flasher.

But it's mounted on /mnt/initfs; if you want to try running things on it, be root, and chroot /mnt/initfs/. There's actually some interesting utilities on there; you can use dsmetest to set the backlight brightness (and much else), and you can use text2screen to dump text.

combatdoc 2008-05-28 03:33

Re: ls color
 
Hmm, I went and looked around a bit. Do you think something as simple a cp /mnt/initfs/busybox ..... would work to get the right shell with the colorized ls available in my standard shell?

Benson 2008-05-28 03:39

Re: ls color
 
busybox can have different functionality compiled in, so while that would get you color ls, it might break something else (that's not compiled into the initfs version)... Worst case, reboot loop requiring reflash, if you aren't multibooting.


All times are GMT. The time now is 09:11.

vBulletin® Version 3.8.8