Reply
Thread Tools
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#1
PS: see the 2nd post which points to a link with instructions to install bash with colorful ls.

Hi,

Nokia N9/N950 comes with BusyBox, which uses the 'ash' shell. The BusyBox version on MeeGo Harmattan PR1.1 version is 1.19-8+0m6.

But there is no '--color' option to 'ls', so '$ ls -l --color' does not work, giving "ls: unrecognized option '--color'" error.

Does anyone know how to obtain colored ls ?

By the way, my '.profile' has the additional lines, feel free to share .profile personalizations here :

Code:
# for setting history length
export HISTSIZE=1000
export HISTFILESIZE=2000

# Set colors for prompt
#
col_bold="\033[1m"
col_red="\033[1;31m"
col_green="\033[1;32m"
col_yellow="\033[1;33m"
col_blue="\033[1;34m"
col_purple="\033[1;35m"
col_cyan="\033[1;36m"
col_normal="\033[0;39m"

# Prompt Settings
# PS1
PS1="\[${col_cyan}\]\u@\h:\[${col_blue}\]\w\[${col_normal}\]\$ "
export PS1

# ls aliases 
alias ll='ls -l'
alias lla='ls -al'
alias la='ls -A'
alias l='ls -C'

# This sets nano as the default editor
export EDITOR="/usr/bin/nano -w -c"
# Prevent nano from wrapping long lines
alias nano='/usr/bin/nano -w -c'

# devel-su alias
alias ds='devel-su'
I have tried to install and run 'bash' shell on my Nokia N9, but the end result was terrible :
- it was working until I need to reboot N9, when MeeGo Harmattan was not starting anymore;
- so I had to reflash N9 !
Has anyone succeeded to run 'bash' shell ? It is available in Harmattan SDK repository :
http://harmattan-dev.nokia.com/pool/...3/free/b/bash/
but maybe to be only used in the Harmattan SDK itself.
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.

Last edited by rcolistete; 2012-01-20 at 22:12. Reason: bash solution to get colored ls
 

The Following User Says Thank You to rcolistete For This Useful Post:
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#2
The following MeeGo forum thread :

http://forum.meego.com/showthread.php?t=5604

answered the above questions. So 'bash' can not be the default shell, but can be used, including colorful ls.

Now I have bash configured for user and root, but it is need to maintain the 'ash' (BusyBox) shell as default and run '$ bash' in Terminal.
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.

Last edited by rcolistete; 2012-01-20 at 22:07.
 

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


 
Forum Jump


All times are GMT. The time now is 14:45.