View previous topic :: View next topic |
Author |
Message |
Wile E. Coyote n00b
Joined: 30 Jun 2004 Posts: 5 Location: South of France
|
Posted: Wed Jun 30, 2004 11:24 pm Post subject: HOWTO: clean install of X.org and XFree ban |
|
|
forget everything you read about "emerge -i xfree..." or stupid things like this. I switched from XFree to XOrg quite well some month ago but I had a problem when I wanted to "emerge -u --deep world"
Portage wanted to emerge xfree back. To avoid dependencies involving xfree emerging, just follow these instruction :
1) in /etc/portage/package.keywords add
Code: | x11-base/xorg-x11 ~x86
x11-terms/xterm ~x86
x11-base/opengl-update ~x86
|
2) Kill the XFree server and go to pure console mode
You can close your X session and usr [Ctrl+Alt+F1] to go to the console and then you can kill gdm/xdm. My method isn't maybe the cleaner way to do it, but it works.
Code: | ps -aux | grep gdm
kill <gdm's pid>
|
3) Uninstall Xfree
Code: | emerge unmerge xfree
|
4) in /etc/portage/package.mask add this line
(to mask xfree in the portage tree)
5) emerge X.Org
Go on this pages to find more information about X.Org and its installation/configuration
http://www.gentoo.org/doc/en/xorg-config.xml
https://forums.gentoo.org/viewtopic.php?t=187389&highlight=xorg+howto
You'll need do to some changes to your configuration files
6) in /etc/make.profile/virtuals replace xfree by xorg-x11
(these lines are very important: the dependencies need to be corrected so that X.Org is the X11 server)
Code: | virtual/xfree x11-base/xorg-x11
virtual/x11 x11-base/xorg-x11
virtual/opengl x11-base/xorg-x11
virtual/glu x11-base/xorg-x11
|
7) enjoy
With these instruction when you try to update deeply the world (!) you won't have xfree dependencies anymore
Most of ebuilds are using virtual/x11 as dependency. So if you have still one ebuild that requires xfree, just correct it
[/b] _________________ #emerge -pv roadrunner-trap
Wile E. Coyote |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Wed Jun 30, 2004 11:37 pm Post subject: |
|
|
If an ebuild still uses x11-base/xfree rather than virtual/x11, it should be noted as a bug, not "just [corrected]". _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
|
JOS654 Tux's lil' helper
Joined: 15 Nov 2003 Posts: 101 Location: Spain - Malaga
|
Posted: Thu Jul 01, 2004 1:26 am Post subject: |
|
|
you missed
virtual/xft x11-base/xorg-x11
|
|
Back to top |
|
|
Wile E. Coyote n00b
Joined: 30 Jun 2004 Posts: 5 Location: South of France
|
Posted: Thu Jul 01, 2004 4:58 am Post subject: |
|
|
yeah and... to stop the graphic login the simple way is to use
Code: | /etc/init.d/xdm stop
|
I hope this mini tutorial would avoid pain and hours for everybody who want to switch to X.Org
_________________ #emerge -pv roadrunner-trap
Wile E. Coyote |
|
Back to top |
|
|
mikl n00b
Joined: 27 Jun 2004 Posts: 51 Location: Gentofte, Denmark
|
Posted: Thu Jul 01, 2004 4:21 pm Post subject: |
|
|
Ah, that was helpful! Thanks a billion _________________ An admin might not always be right, but he's always an admin... |
|
Back to top |
|
|
Jamon Apprentice
Joined: 03 May 2002 Posts: 173
|
Posted: Thu Jul 01, 2004 5:13 pm Post subject: |
|
|
You should put/move this to Documentation, Tips & Tricks. It looks nice though, especially for those who don't already use ~x86.
Jamon _________________ Looking for a Linux PC? Check us out at
http://www.progresssystemsinc.com! |
|
Back to top |
|
|
soda_popstar Apprentice
Joined: 03 May 2003 Posts: 177
|
Posted: Sat Jul 10, 2004 6:46 am Post subject: |
|
|
Sounds good... but it seems that /etc/make.profiles/virtuals gets overwritten every once in a while... I'm not sure if it's on every reboot or just when I emerge sync. Are there any ways of getting around this? |
|
Back to top |
|
|
Wile E. Coyote n00b
Joined: 30 Jun 2004 Posts: 5 Location: South of France
|
Posted: Sun Jul 11, 2004 10:30 pm Post subject: |
|
|
Yes... each emerge sync seems to overwrite /etc/make.profile/virtuals
I think there is a way to define our own virtuals packets, but I still don't know why.... /var/cache/ebd/virtuals contains also virtual definitions... whe should maybe have a look at it. _________________ #emerge -pv roadrunner-trap
Wile E. Coyote |
|
Back to top |
|
|
cowm00n n00b
Joined: 11 Jul 2004 Posts: 3 Location: Chicago
|
Posted: Sun Jul 11, 2004 10:46 pm Post subject: File locations seem to be incorrent |
|
|
In the current Gentoo tree, the package mask file doesn't seem to be in /etc/portage. Instead:
Code: | $ locate package.mask
/usr/portage/profiles/package.mask
|
I added
to this file and performed the other outlined procedures and that seemed to take care of things. |
|
Back to top |
|
|
Malakai Apprentice
Joined: 24 Dec 2002 Posts: 299
|
Posted: Tue Jul 13, 2004 2:47 pm Post subject: Re: File locations seem to be incorrent |
|
|
cowm00n wrote: | In the current Gentoo tree, the package mask file doesn't seem to be in /etc/portage. Instead:
Code: | $ locate package.mask
/usr/portage/profiles/package.mask
|
I added
to this file and performed the other outlined procedures and that seemed to take care of things. |
This is correct, however you should never modify those files.
To unmask something, create a file in /etc/portage/ called package.unmask (filename may be incorrect) with the app-arch/prog_name-version_number setup.
To make programs ~x86 by default, don't mess with any /usr/portage/ stuff either, create /etc/portage/package.keywords and do it from there. |
|
Back to top |
|
|
Mongrol Guru
Joined: 14 Sep 2002 Posts: 376
|
Posted: Wed Jul 14, 2004 6:53 pm Post subject: |
|
|
Any remedy to the virtuals file getting overwritten on each rsync? Its really starting to piss me off now. I'd rather go back to xfree than suffer this. |
|
Back to top |
|
|
gnuageux Veteran
Joined: 17 Apr 2004 Posts: 1201
|
Posted: Thu Jul 15, 2004 11:46 am Post subject: |
|
|
Quote: | ps -aux | grep gdm
kill <gdm's pid> |
ps -aux | grep gmd | xargs kill -9 ?? All in one line ! _________________ The realOTW: http://forums.realotw.org/index.php
Registered Linux user#364538 |
|
Back to top |
|
|
cerebus_k Apprentice
Joined: 20 Jun 2003 Posts: 173 Location: Flower Mound, Texas
|
Posted: Thu Jul 15, 2004 2:03 pm Post subject: |
|
|
Mongrol wrote: | Any remedy to the virtuals file getting overwritten on each rsync? Its really starting to piss me off now. I'd rather go back to xfree than suffer this. |
Try pointing /etc/make.profile to /usr/portage/profiles/default-x86-2004.2 which contains a virtuals file that has the xorg-x11 (and not xfree). |
|
Back to top |
|
|
Rainmaker Veteran
Joined: 12 Feb 2004 Posts: 1650 Location: /home/NL/ehv/
|
Posted: Thu Jul 15, 2004 3:07 pm Post subject: |
|
|
gnuageux wrote: | Quote: | ps -aux | grep gdm
kill <gdm's pid> |
ps -aux | grep gmd | xargs kill -9 ?? All in one line ! |
Also one line:
_________________ If you can't dazzle them with brilliance, baffle them with bullshit. |
|
Back to top |
|
|
Mongrol Guru
Joined: 14 Sep 2002 Posts: 376
|
Posted: Thu Jul 15, 2004 7:18 pm Post subject: |
|
|
cerebus_k wrote: | Mongrol wrote: | Any remedy to the virtuals file getting overwritten on each rsync? Its really starting to piss me off now. I'd rather go back to xfree than suffer this. |
Try pointing /etc/make.profile to /usr/portage/profiles/default-x86-2004.2 which contains a virtuals file that has the xorg-x11 (and not xfree). |
Has this been tested? If the virtuals gets overwritten every rsync, whats to stop it doing it to the linked files as well? |
|
Back to top |
|
|
Mongrol Guru
Joined: 14 Sep 2002 Posts: 376
|
Posted: Thu Jul 15, 2004 7:36 pm Post subject: |
|
|
aha, it works. I learn something new! |
|
Back to top |
|
|
Jacobs Apprentice
Joined: 29 Apr 2003 Posts: 174 Location: Czech republic
|
Posted: Thu Jul 15, 2004 7:37 pm Post subject: |
|
|
I don't think the /etc/make.profile symlink gets overwritten during each rsync (correct me if I'm wrong, but it wouldn't make much sense). In this case only the location where it points to is, which doesn't matter much cuz the 2004.2 virtuals don't use xfree by default. |
|
Back to top |
|
|
The_Fang Tux's lil' helper
Joined: 25 Dec 2003 Posts: 75
|
Posted: Mon Jul 19, 2004 1:25 pm Post subject: |
|
|
How do I point /etc/make.profiles to /usr/portage/profiles/default-x86-2004.2? _________________ Any society that would give up a little liberty to gain a little security will deserve neither and lose both. |
|
Back to top |
|
|
The_Fang Tux's lil' helper
Joined: 25 Dec 2003 Posts: 75
|
Posted: Mon Jul 19, 2004 1:54 pm Post subject: |
|
|
How do I point /etc/make.profiles to /usr/portage/profiles/default-x86-2004.2? _________________ Any society that would give up a little liberty to gain a little security will deserve neither and lose both. |
|
Back to top |
|
|
bungernut Apprentice
Joined: 24 Jan 2004 Posts: 173
|
Posted: Tue Jul 20, 2004 1:07 am Post subject: |
|
|
Quote: | The_Fang
Posted: Mon Jul 19, 2004 6:54 am Post subject:
How do I point /etc/make.profiles to /usr/portage/profiles/default-x86-2004.2? |
ln -sf /usr/portage/profiles/default-x86-2004.2 /etc/make.profiles
man 'ln' to double check.. (thats LN in small letters)
QUESTION:
Do you have to all or any of the above (in the How-To) when you change to xorg if you change your make.profile?? _________________ Two idiots make a wrong |
|
Back to top |
|
|
jbmagic n00b
Joined: 09 Jul 2004 Posts: 25
|
Posted: Tue Jul 20, 2004 6:57 am Post subject: |
|
|
ln -sf /usr/portage/profiles/default-x86-2004.2 /etc/make.profiles
it should be profile not profiles at end
correct way is
ln -s /usr/portage/profiles/default-x86-2004.2 /etc/make.profile |
|
Back to top |
|
|
BennyP Guru
Joined: 09 May 2003 Posts: 503 Location: Jerusalem, Israel
|
Posted: Tue Jul 20, 2004 7:21 am Post subject: |
|
|
this is a bit OT but i didnt want to make a new thread.
when xorg finished emerging, there was all sorts ofy useful text displayed on the console (green gentoo text) that told me about how to set up glide, cursors, etc. but the emerge continued and i couldn't read it all. How can I call up that text again? _________________ Could it be? |
|
Back to top |
|
|
The_Fang Tux's lil' helper
Joined: 25 Dec 2003 Posts: 75
|
Posted: Tue Jul 20, 2004 2:51 pm Post subject: |
|
|
thanks for the help.
I am sorry for the double post. _________________ Any society that would give up a little liberty to gain a little security will deserve neither and lose both. |
|
Back to top |
|
|
Rainmaker Veteran
Joined: 12 Feb 2004 Posts: 1650 Location: /home/NL/ehv/
|
Posted: Tue Jul 20, 2004 3:13 pm Post subject: |
|
|
Mongrol wrote: | cerebus_k wrote: | Mongrol wrote: | Any remedy to the virtuals file getting overwritten on each rsync? Its really starting to piss me off now. I'd rather go back to xfree than suffer this. |
Try pointing /etc/make.profile to /usr/portage/profiles/default-x86-2004.2 which contains a virtuals file that has the xorg-x11 (and not xfree). |
Has this been tested? If the virtuals gets overwritten every rsync, whats to stop it doing it to the linked files as well? |
read this post if you REALLY want to do this... But read the posts of the devs to! _________________ If you can't dazzle them with brilliance, baffle them with bullshit. |
|
Back to top |
|
|
alar_k n00b
Joined: 22 Apr 2004 Posts: 6 Location: Estonia
|
Posted: Thu Jul 22, 2004 6:38 am Post subject: |
|
|
BennyP wrote: | this is a bit OT but i didnt want to make a new thread.
when xorg finished emerging, there was all sorts ofy useful text displayed on the console (green gentoo text) that told me about how to set up glide, cursors, etc. but the emerge continued and i couldn't read it all. How can I call up that text again? |
Read the file /usr/portage/x11-base/xorg-x11/xorg-x11-6.7.0-r1.ebuild. There is a section named print_info at the end of the file. |
|
Back to top |
|
|
|