Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Several different questions...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Botsvein
n00b
n00b


Joined: 13 Jul 2002
Posts: 12
Location: Russia

PostPosted: Sat Jul 13, 2002 3:06 pm    Post subject: Several different questions... Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sat Jul 13, 2002 5:14 pm    Post subject: Reply with quote

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. :D
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Botsvein
n00b
n00b


Joined: 13 Jul 2002
Posts: 12
Location: Russia

PostPosted: Sat Jul 13, 2002 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sat Jul 13, 2002 7:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Botsvein
n00b
n00b


Joined: 13 Jul 2002
Posts: 12
Location: Russia

PostPosted: Sat Jul 13, 2002 9:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum