LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-23-2013, 05:57 PM   #1
l0rddarkf0rce
Member
 
Registered: Nov 2004
Posts: 83

Rep: Reputation: 18
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
 
Old 11-23-2013, 06:30 PM   #2
maciuszek
Member
 
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 79

Rep: Reputation: 25
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
 
Old 11-23-2013, 10:55 PM   #3
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 232

Rep: Reputation: 38
.config/xfce4/terminal/terminalrc

alternatively, just open a terminal and do: edit->preferences
 
Old 11-24-2013, 05:12 AM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,392

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
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.
 
Old 11-24-2013, 01:00 PM   #5
l0rddarkf0rce
Member
 
Registered: Nov 2004
Posts: 83

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by GazL View Post
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.
 
Old 11-24-2013, 02:44 PM   #6
GazL
Senior Member
 
Registered: May 2008
Posts: 3,392

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
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.
 
Old 11-24-2013, 04:50 PM   #7
chemfire
Member
 
Registered: Sep 2012
Posts: 69

Rep: Reputation: Disabled
Go to preferences in XFCE Terminal; Check "Run Command as Login Shell"
 
Old 11-25-2013, 05:07 AM   #8
GazL
Senior Member
 
Registered: May 2008
Posts: 3,392

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
... which is the quick and dirty, but wrong way to fix it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware/Xfce - the terminal colors are way too dark. joeBuffer Slackware 3 08-16-2009 10:55 PM
Terminal Colors carlosinfl Linux - General 1 02-25-2007 02:59 PM
colors in terminal cad Linux - General 1 01-03-2007 12:27 AM
Terminal Colors chakkerz Linux - General 2 11-22-2004 09:01 PM
Terminal Colors dhrivnak Slackware 2 10-26-2003 03:59 PM


All times are GMT -5. The time now is 10:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration