Notices


Reply
Thread Tools
Posts: 135 | Thanked: 158 times | Joined on Sep 2009 @ Germany
#1
You must be root !!

Code:
apt-get install bash3
go to /etc/passwd and replace "/bin/sh" with "/bin/bash" for users 'user' and 'root'


Save this as .profile in /root and /home/user

Code:
# ~/.profile: executed by Bourne-compatible login shells.

if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
export PATH

mesg n

and this as .bashrc in /home/user

Code:
# ~/.bashrc: executed by bash(1) for non-login shells.

export PS1='\A \u@MaemoBox:\w\$ '
umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval "`dircolors`"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'

and this as .bashrc in /root

Code:
# ~/.bashrc: executed by bash(1) for non-login shells.

export PS1='\A \[\033[0;31m\]\u@MaemoBox\[\033[0;30m\]:\w\$ '
umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval "`dircolors`"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'

User has a black prompt

Code:
19:54 user@MaemoBox:~$
Root has a red prompt

Code:
19:54 root@MaemoBox:~#

Sorry for my English.
 

The Following 3 Users Say Thank You to superjunior For This Useful Post:
Posts: 306 | Thanked: 106 times | Joined on Feb 2010
#2
I lost the ability to go through command history using PgUp or PgDn. How do you get that working?

PgUp now prints ~ symbol.
__________________
------------------------------------------------------------------
Voice choppy on sip calls
Please vote for bug number 10388
 
Reply

Thread Tools

 
Forum Jump


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