LinuxQuestions.org
Visit Jeremy's Blog.
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
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Rep: Reputation: 33
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: 165

Rep: Reputation: 40
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: 393

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

alternatively, just open a terminal and do: edit->preferences
 
Old 11-24-2013, 05:12 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 7,137

Rep: Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286
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
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Original Poster
Rep: Reputation: 33
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
LQ Veteran
 
Registered: May 2008
Posts: 7,137

Rep: Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286
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: 459

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

Rep: Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286Reputation: 5286
... 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:20 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration