You are not logged in.

#1 2009-10-18 18:23:51

FireFox276
Member
Registered: 2009-10-18
Posts: 4

A few questions

Greetings everyone! I apologise if this is in the wrong place, but here are my questions:

1) Is it possible to have a custom logon screen? As in have your own text and/or reposition the username/password prompt.
2) I'm having issues changing the colour of the terminal text. I'd like it green on black but when I make the changes and logout/in, nothing happens. I followed the guides but still nothing.
3) How can I enable UK keyboard?
4) Sort of related to number 2, I'd like a coloured 'ls'. I added the line to .bashrc but nothing happened.

I thank you in advance smile

-FireFox276

Offline

#2 2009-10-18 18:28:35

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: A few questions

1. /etc/motd stores the "message of the day", which will be displayed before the last login details.
2. If you are using an X terminal emulator, you would put the background/foreground definitions in .Xresources.
3. In /etc/rc.conf you can change your keymap.
4. You need the program dircolors installed, and you need a file .dircolors that lists the coloring definitions for filetypes.

Offline

#3 2009-10-18 18:40:48

FireFox276
Member
Registered: 2009-10-18
Posts: 4

Re: A few questions

1) Thanks smile
2) Sorry, I forgot to mention I'm not using X
3) Thanks again!
4) Is this available from Pacman?

Offline

#4 2009-10-18 18:43:23

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: A few questions

1. of course! but it depends on how you login.
     * If you use GDM look here
     * If you use KDM look here
     * If you use Entrance look here
     * If you use SLiM look here
     * If you use Qingy look here
     * If you login from the terminal, egan's motd tip is your best bet.
     * I don't know any resources for WDM or XDM, anyone else know any?

2. If you want to change the terminal/prompt text color, a good reference is here. If you want to change the actual terminal color, it depends on the terminal.

3. egan's rc.conf tip is right on

4. I believe dircolors is part of the base install, so just add "alias ls='ls --color=auto'" to your ~/.bashrc


.:[My Blog] || [My GitHub]:.

Offline

#5 2009-10-19 21:05:28

FireFox276
Member
Registered: 2009-10-18
Posts: 4

Re: A few questions

Thank you both, this really helped smile
One other thing, is it possible to add colour to the /etc/motd file? I tried using the same procedure from .bashrc but motd is actually printing the escape characters. Am I just doing it wrong or does motd use a different method for colours?

Offline

#6 2009-10-19 21:13:17

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: A few questions

\033[1;34m

\033 is octal for the escape character (the character you get when you press the escape key). You'd have to enter the character itself. What text editor are you using?


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#7 2009-10-19 21:20:40

FireFox276
Member
Registered: 2009-10-18
Posts: 4

Re: A few questions

fsckd wrote:
\033[1;34m

\033 is octal for the escape character (the character you get when you press the escape key). You'd have to enter the character itself. What text editor are you using?

I'm using Nano. I don't have X installed, I prefer the terminal based way of things!

Offline

#8 2009-10-19 21:36:34

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: A few questions

FireFox276 wrote:
fsckd wrote:
\033[1;34m

\033 is octal for the escape character (the character you get when you press the escape key). You'd have to enter the character itself. What text editor are you using?

I'm using Nano. I don't have X installed, I prefer the terminal based way of things!

Excellent choice. big_smile In place of the \033 you need to enter the escape character. To do this in nano, first press M-v (where M is the meta key, alt on my system). It should say "verbatim input" or something similar at the bottom. Then press the escape key. You should see '^]' at the point of insertion. Move the cursor over it, it should behave like one character. Repeat this for each \033 string you find and you're all set to go.

Edit:
You can test your motd by cat /path/to/motd/file and check the output.

Edit2:
There's also search and replace. Start it with M-r (meta-r). The string being searched to replace is \033 and the string replaced with is the escape character. Use the procedure above to enter the escape character (M-v Esc).

Last edited by fsckd (2009-10-19 21:45:21)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#9 2009-10-19 22:23:24

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: A few questions

Here are all the values you can use:

http://wiki.archlinux.org/index.php/Col … t_and_bash


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

Board footer

Powered by FluxBB