LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-19-2004, 03:57 PM   #1
berkay
Member
 
Registered: Mar 2004
Location: TR
Distribution: Gentoo 2004.2
Posts: 100

Rep: Reputation: 15
Terminal font and color


Hi all, I have two questions...
First how can I give different colors to my terminal fonts? For instance, directories must differ in color so that I can recognize them...
Secondly, how can I change fonts in my terminal? I am using aterm, here is the font line in my .Xdefaults file
Code:
 aterm.font: -bitstream-bitstream vera sans mono-medium-r-normal--0-0-0-0-m-0-microsoft-ansi
I really do not understand this font thing, what do those numbers 0-0-0 mean and how can I find other fonts to use in my terminal...

Thanks for any help...
 
Old 09-19-2004, 04:24 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Have a look at

xfontsel


That should give you a fair idea off all those things.



Guelle guelle,
Tink
 
Old 09-20-2004, 03:51 PM   #3
berkay
Member
 
Registered: Mar 2004
Location: TR
Distribution: Gentoo 2004.2
Posts: 100

Original Poster
Rep: Reputation: 15
Thanks Tinkster, I emerged xfontsel and understood what they mean... However my main problem is console font colors... By saying font colors, I want directories to be in a different color than files... How can I do this?

Thanks again!
 
Old 09-20-2004, 03:58 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
That's a matter of
ls --color=always
which many a distro will have aliased
for ls ...

To change the actual colours edit
/etc/DIR_COLORS


Cheers,
Tink
 
Old 09-20-2004, 05:23 PM   #5
berkay
Member
 
Registered: Mar 2004
Location: TR
Distribution: Gentoo 2004.2
Posts: 100

Original Poster
Rep: Reputation: 15
I wanted to make my directories in another color, so adding

alias dir = 'dir --color'
alias ls='ls --color'

solved what I asked... From what I understood, I can define several functions to some aliases like dir, ls... So how can I shutdown -h now with simply shut (without loggin' as root)?

Thanks again & again
 
Old 09-20-2004, 06:44 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
That's a bit harder than that :)

What I've done is to edit /etc/sudoers
Code:
# Cmnd alias specification
Cmnd_Alias HALT = /sbin/halt
Cmnd_Alias REBOOT = /sbin/reboot
Cmnd_Alias CHKIN = /usr/sbin/checkinstall

# User privilege specification
root    ALL=(ALL) ALL
tink  diggn = NOPASSWD: CHKIN , REBOOT, HALT, /usr/bin/sudo, /usr/sbin/adduser
, /sbin/ifconfig
and then created an alias for that ...

alias halt='sudo /sbin/halt'


Cheers,
Tink
 
Old 09-21-2004, 02:09 PM   #7
berkay
Member
 
Registered: Mar 2004
Location: TR
Distribution: Gentoo 2004.2
Posts: 100

Original Poster
Rep: Reputation: 15
Hi Tinkster,

Editing /etc/sudoers helped a lot... Now it works... Thanks again for your help
 
Old 09-21-2004, 03:17 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Bir, sey degil

alasmaladik :}


Spelling? :)


Cheers,
Tink
 
Old 09-22-2004, 05:36 AM   #9
berkay
Member
 
Registered: Mar 2004
Location: TR
Distribution: Gentoo 2004.2
Posts: 100

Original Poster
Rep: Reputation: 15
Birsey degil is right... alasmaladik is how we pronounce it... By the way, where are your from and how do you now Turkish?

Cheers...
 
Old 09-22-2004, 03:02 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Quote:
Originally posted by berkay
Birsey degil is right... alasmaladik is how
we pronounce it... By the way, where are
your from and how do you now Turkish?

Cheers...
Living in NZ, German citizen, learnt some words
in Turkish working with Turkish people in Germany :)


Cheers,
Tink
 
Old 09-23-2004, 03:19 AM   #11
berkay
Member
 
Registered: Mar 2004
Location: TR
Distribution: Gentoo 2004.2
Posts: 100

Original Poster
Rep: Reputation: 15
Yeah, there are lots of people living in Germany, but I don't know why Germany? (maybe she is a cheap country compared to Turkey

Cheers..

berk y
 
  


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
change the font color Drunkalot Linux - General 2 08-09-2005 11:37 PM
System terminal font...which font is it? Dabria Linux - Software 1 06-30-2004 12:20 PM
Changing Terminal background colour and font color dpbatagoda Linux - Newbie 0 12-05-2003 01:38 AM
font color Joey.Dale Linux - General 1 06-19-2003 01:52 PM
Changing font color uglyvorys Linux - General 2 02-02-2003 01:39 PM


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

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