DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-06-23 21:43:10

vedeja
Member
Registered: 2008-02-21
Posts: 161

Colors in console are gone

When telnetting with Putty, the console is usually colored to distinguish between files, folder and their permissions etc. Not any more, it's all monochrome and uninformative. What did I do to deserve this?


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#2 2008-06-23 21:58:24

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Colors in console are gone

vedeja wrote:

What did I do to deserve this?

You installed coreutils, I suppose. coreutils comes with a different ls program.

Code:

ls --color=auto

will show colors. Of course, you don't like typing that. The usual approach is to alias ls in /ffp/etc/profile or ~/.profile:

Code:

alias ls='ls --color=auto'

Often, Linux distributions add more options to ls, e.g (taken from slackware):

Code:

alias ls='ls -F -b -T 0 --color=auto'

Another method, if you like busybox, is to remove coreutils ls and relink busybox:

Code:

rm /ffp/bin/ls
ln -s busybox /ffp/bin/ls

Offline

 

#3 2008-06-23 22:03:14

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: Colors in console are gone

I also lose colours if I put alias ls="al -al|more" in my ffp/etc/profile.  How can I get them back?  I have tried
alias ls='ls --color=auto -al', but what about the '|more'?
thanks
lu

Last edited by luusac (2008-06-23 22:13:28)

Offline

 

#4 2008-06-23 22:54:45

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Colors in console are gone

fonz wrote:

You installed coreutils, I suppose.

I sure did. Thanks fonz for sorting things out. I went with this:

fonz wrote:

rm /ffp/bin/ls
ln -s busybox /ffp/bin/ls


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB