Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-23-2013, 05:57 PM
|
#1
|
Member
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149
Rep:
|
xfce terminal colors
New to xfce and have a quick question... When I open a Terminal window the terminal is in black and white, but if I su to root all of the files and directories display in the proper colors. Which file controls which colors are used in the xfce terminal? TIA
|
|
|
11-23-2013, 06:30 PM
|
#2
|
Member
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165
Rep:
|
Have your desired shells init script run the profile.d/* scripts. look how /etc/profile does it
Last edited by maciuszek; 11-23-2013 at 06:33 PM.
Reason: typo
|
|
|
11-23-2013, 10:55 PM
|
#3
|
Member
Registered: May 2008
Location: Republic of Texas
Posts: 393
Rep:
|
.config/xfce4/terminal/terminalrc
alternatively, just open a terminal and do: edit->preferences
|
|
|
11-24-2013, 05:12 AM
|
#4
|
LQ Veteran
Registered: May 2008
Posts: 7,137
|
Add an alias to your ~/.bashrc
I use this:
alias ls='ls --color=auto --group-directories-first'
The ansi colour codes used for each type of file are set by the LS_COLORS environment variable (read up on 'dircolors' for details).
What those colours actually look like on screen will be down to whatever palette is set in the settings of your terminal program.
Last edited by GazL; 11-24-2013 at 05:24 AM.
|
|
|
11-24-2013, 01:00 PM
|
#5
|
Member
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149
Original Poster
Rep:
|
Quote:
Originally Posted by GazL
Add an alias to your ~/.bashrc
I use this:
alias ls='ls --color=auto --group-directories-first'
The ansi colour codes used for each type of file are set by the LS_COLORS environment variable (read up on 'dircolors' for details).
What those colours actually look like on screen will be down to whatever palette is set in the settings of your terminal program.
|
Thanks GazL this is what I actually did. What is strange is that ls works just fine if I am not running X or if I am using KDE, this only happens when I run xfce, also if I su to root after I start terminal ls works just fine as root. In any case this seems to had work so I will be happy.
|
|
|
11-24-2013, 02:44 PM
|
#6
|
LQ Veteran
Registered: May 2008
Posts: 7,137
|
Yes, that's normal. Depending on what starts it bash will start as either a normal shell or a "login shell". Only the login shell runs /etc/profile. There have been a number of threads about this in the past so I won't go over old ground again here, but if you want to search the forum for them you'll find several discussions about it.
|
|
|
11-24-2013, 04:50 PM
|
#7
|
Member
Registered: Sep 2012
Posts: 459
Rep: 
|
Go to preferences in XFCE Terminal; Check "Run Command as Login Shell"
|
|
|
11-25-2013, 05:07 AM
|
#8
|
LQ Veteran
Registered: May 2008
Posts: 7,137
|
... which is the quick and dirty, but wrong way to fix it.
|
|
|
All times are GMT -5. The time now is 10:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|