matthewkeogh50
Posts: 2
Joined: Sat May 06, 2017 3:17 pm

Setting default shell colours for a new user

Sat May 06, 2017 4:19 pm

Hi all,

I've just picked up my first raspberry pi for use as a home media server. I am running raspbian jessie lite (https://www.raspberrypi.org/downloads/raspbian/) I've enabled shh and created a new user for myself... but when logging in via kitty the original pi user has nicely formatted colours for the directories and files etc, where as the user I created, everything is black

pi user
pi_user.PNG
pi_user.PNG (4.79 KiB) Viewed 945 times
matthew user (which was created using "useradd matthew")
matthew_user.PNG
matthew_user.PNG (9.77 KiB) Viewed 945 times
Could anyone please advise how I get the "matthew" account to be like the "pi" account in terms of colours.

Thanks.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Setting default shell colours for a new user

Sun May 07, 2017 8:45 am

I think you'll find everything you need in /home/pi/.bashrc (Yes, there is a leading dot in the file name)
You could simply copy that to /home/mattew and change the owner or create a new /home/matthew/.bashrc with just the bits you want.
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

matthewkeogh50
Posts: 2
Joined: Sat May 06, 2017 3:17 pm

Re: Setting default shell colours for a new user

Sun May 07, 2017 10:30 am

Thanks MaxK1

It needed both .bashrc and .profile

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Setting default shell colours for a new user

Sun May 07, 2017 12:21 pm

Good catch.
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

Return to “Beginners”