LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Terminal font and color (http://www.linuxquestions.org/questions/linux-newbie-8/terminal-font-and-color-232604/)

berkay 09-19-2004 02:57 PM

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...

Tinkster 09-19-2004 03:24 PM

Have a look at

xfontsel


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



Guelle guelle,
Tink

berkay 09-20-2004 02:51 PM

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!

Tinkster 09-20-2004 02:58 PM

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

berkay 09-20-2004 04:23 PM

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 :)

Tinkster 09-20-2004 05:44 PM

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

berkay 09-21-2004 01:09 PM

Hi Tinkster,

Editing /etc/sudoers helped a lot... Now it works... Thanks again for your help :)

Tinkster 09-21-2004 02:17 PM

Bir, sey degil

alasmaladik :}


Spelling? :)


Cheers,
Tink

berkay 09-22-2004 04:36 AM

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

Cheers...

Tinkster 09-22-2004 02:02 PM

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

berkay 09-23-2004 02:19 AM

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:jawa: y


All times are GMT -5. The time now is 01:51 PM.