Reply
Thread Tools
Posts: 12 | Thanked: 1 time | Joined on Jul 2010
#1
Is there any way to get colors on x-term just like on an Ubuntu desktop? i like how Ubuntu changes the color of folders against files. Its much easier (and faster) to navigate.
 
Posts: 118 | Thanked: 202 times | Joined on Aug 2010
#2
Yea, check my latest post here: http://talk.maemo.org/showthread.php?t=60791&page=3
 
Posts: 12 | Thanked: 1 time | Joined on Jul 2010
#3
nephridium, if i understand correctly, and given my VERY limitted knowledge of linux, this method requires an installation of bash (which was probably installed on your device through a package. mine does not come with it). Isnt there any native solution?

I tried to mess around with ~/.bashrc but that did not work.
 
Posts: 118 | Thanked: 202 times | Joined on Aug 2010
#4
The original xterm shell used in the N900 is called "busybox". Afaik the ls command that comes with it was not compiled with color support. The ls.color command that you can get here: http://talk.maemo.org/showthread.php?t=40418 can run on busybox though (as well as bash).
 
Posts: 81 | Thanked: 45 times | Joined on Dec 2009
#5
Please don't mix up the program xterm with the shell applications that run within it. xterm of n900 does indeed support color as can be seen e.g. by running vim . But it is correct that the default shell is busybox which supplies simplified versions of lots of core utilies, which includes ls . To get the "real" ls you need to install coreutils-gnu. See for example:

http://metalab.at/wiki/Hack-A-N900/First_Steps
 
Posts: 540 | Thanked: 387 times | Joined on May 2009
#6
the OP asked for ls --color which is a feature of GNU ls.

busybox is a set of cut-down tools with less functionality than their GNU coreutils equivalents.

busybox uses Korn Shell (ksh) instead of Bourne Again Shell (BASH).

xterm is one of many Terminal Emulators. ROXterm should be in the repo.

The OP will need to install the coreutil version of ls and (if the package doesn't) add
Code:
alias ls=`ls --color=auto`
to their ~/.profile (this should be done for both user and root's config files).

For the N8X0: color-ls (this was compiled with color hard-coded to the ls command)
For the N900: coreutils-gnu
 

The Following User Says Thank You to linuxeventually For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 10:31.