View previous topic :: View next topic |
Author |
Message |
Botsvein n00b
Joined: 13 Jul 2002 Posts: 12 Location: Russia
|
Posted: Sat Jul 13, 2002 3:06 pm Post subject: Several different questions... |
|
|
Hello everyone here! [This's my first post :))]
I've got several quite different questions:
1. What is a Gentoo way of setting LOCALE?
I did it this way:
made /etc/locale.env with all needed variables listed.
added "source /etc/locale.env" to /etc/profile.
Am I right? Or there's more "gentoo" way?
2. This question arose when I was solving the first problem :))
How is /etc/env.d organised? I have found neither docs nor any post in a forum... As far as I can see, files there contain different shell variables for installed apps, but numbers in front of them make me stuck :(( Any commnets from developers?
3. Playing with rivafb, I compiled it into kernel and then decided to add fbset script to boot run-level to switch to the preferred mode at start-up. But fbset changes resolution only on the current console, and I haven't found way to make it affect all consoles. Any ideas? Currenly I've just hacked the kernel sources to boot directly into my favourite mode, but that's not the way I like....
Cheers! Oleg
PS Please excuse my english... :)) |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sat Jul 13, 2002 5:14 pm Post subject: |
|
|
1. Yes, but /etc/profile should start out with:
Code: | if [ -e "/etc/profile.env" ]
then
source /etc/profile.env
fi |
So your addition is unnecessary. (Actually, it has the possibility of breaking things, so leave it alone. )
2. The numbers determine the order in which they get added to the environment.
3. I don't know, I don't use rivafb. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Botsvein n00b
Joined: 13 Jul 2002 Posts: 12 Location: Russia
|
Posted: Sat Jul 13, 2002 7:16 pm Post subject: |
|
|
2 Delata407:
I'm not quite sure about locale...
You recommend me to make something like 15locale with all neccessary stuff in, put it to /etc/env.d and then run env-update, aren't you?
And what about having 2 files in env.d like this (my system :)) 10xfree and 10mozilla. Isn't it a bug, or just rAnDom feature?
Anyway, Thanks :)) |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sat Jul 13, 2002 7:24 pm Post subject: |
|
|
Again, the numbers simply control the order in which the environment variables are merged. Anyway, I would suggest putting your additions in profile.env, as it won't be overwritten by new baselayouts or anything. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Botsvein n00b
Joined: 13 Jul 2002 Posts: 12 Location: Russia
|
Posted: Sat Jul 13, 2002 9:28 pm Post subject: |
|
|
Well, finally I've just made /etc/env.d/03locale with all neccessary vars and retired :))
BTW, there's a bug in /etc/init.d/consolefont script. New kbd support is still in baby stage I suppose. The thing is that it loads everything allright, but doesn't reset consoles, sending a magic symbol "\033)K" to each. And original comments are buggy:))... Anyway, I gotta go to bugs.gentoo.org with this stuff... |
|
Back to top |
|
|
|