Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: clean install of X.org and XFree ban
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Wile E. Coyote
n00b
n00b


Joined: 30 Jun 2004
Posts: 5
Location: South of France

PostPosted: Wed Jun 30, 2004 11:24 pm    Post subject: HOWTO: clean install of X.org and XFree ban Reply with quote

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

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)
Code:
x11-base/xfree


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
Code:
emerge xorg-x11
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 8)

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 :wink:
[/b]
_________________
#emerge -pv roadrunner-trap
Wile E. Coyote
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Wed Jun 30, 2004 11:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
JOS654
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2003
Posts: 101
Location: Spain - Malaga

PostPosted: Thu Jul 01, 2004 1:26 am    Post subject: Reply with quote

you missed
virtual/xft x11-base/xorg-x11
;)
Back to top
View user's profile Send private message
Wile E. Coyote
n00b
n00b


Joined: 30 Jun 2004
Posts: 5
Location: South of France

PostPosted: Thu Jul 01, 2004 4:58 am    Post subject: Reply with quote

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
:wink:
_________________
#emerge -pv roadrunner-trap
Wile E. Coyote
Back to top
View user's profile Send private message
mikl
n00b
n00b


Joined: 27 Jun 2004
Posts: 51
Location: Gentofte, Denmark

PostPosted: Thu Jul 01, 2004 4:21 pm    Post subject: Reply with quote

Ah, that was helpful! Thanks a billion
_________________
An admin might not always be right, but he's always an admin...
Back to top
View user's profile Send private message
Jamon
Apprentice
Apprentice


Joined: 03 May 2002
Posts: 173

PostPosted: Thu Jul 01, 2004 5:13 pm    Post subject: Reply with quote

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


Joined: 03 May 2003
Posts: 177

PostPosted: Sat Jul 10, 2004 6:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Wile E. Coyote
n00b
n00b


Joined: 30 Jun 2004
Posts: 5
Location: South of France

PostPosted: Sun Jul 11, 2004 10:30 pm    Post subject: Reply with quote

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


Joined: 11 Jul 2004
Posts: 3
Location: Chicago

PostPosted: Sun Jul 11, 2004 10:46 pm    Post subject: File locations seem to be incorrent Reply with quote

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
Code:
x11-base/xfree

to this file and performed the other outlined procedures and that seemed to take care of things.
Back to top
View user's profile Send private message
Malakai
Apprentice
Apprentice


Joined: 24 Dec 2002
Posts: 299

PostPosted: Tue Jul 13, 2004 2:47 pm    Post subject: Re: File locations seem to be incorrent Reply with quote

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
Code:
x11-base/xfree

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


Joined: 14 Sep 2002
Posts: 376

PostPosted: Wed Jul 14, 2004 6:53 pm    Post subject: Reply with quote

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


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Thu Jul 15, 2004 11:46 am    Post subject: Reply with quote

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


Joined: 20 Jun 2003
Posts: 173
Location: Flower Mound, Texas

PostPosted: Thu Jul 15, 2004 2:03 pm    Post subject: Reply with quote

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


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Thu Jul 15, 2004 3:07 pm    Post subject: Reply with quote

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:

Code:
gdm-stop


:)
_________________
If you can't dazzle them with brilliance, baffle them with bullshit.
Back to top
View user's profile Send private message
Mongrol
Guru
Guru


Joined: 14 Sep 2002
Posts: 376

PostPosted: Thu Jul 15, 2004 7:18 pm    Post subject: Reply with quote

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


Joined: 14 Sep 2002
Posts: 376

PostPosted: Thu Jul 15, 2004 7:36 pm    Post subject: Reply with quote

aha, it works. I learn something new!
Back to top
View user's profile Send private message
Jacobs
Apprentice
Apprentice


Joined: 29 Apr 2003
Posts: 174
Location: Czech republic

PostPosted: Thu Jul 15, 2004 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
The_Fang
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2003
Posts: 75

PostPosted: Mon Jul 19, 2004 1:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
The_Fang
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2003
Posts: 75

PostPosted: Mon Jul 19, 2004 1:54 pm    Post subject: Reply with quote

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


Joined: 24 Jan 2004
Posts: 173

PostPosted: Tue Jul 20, 2004 1:07 am    Post subject: Reply with quote

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


Joined: 09 Jul 2004
Posts: 25

PostPosted: Tue Jul 20, 2004 6:57 am    Post subject: Reply with quote

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


Joined: 09 May 2003
Posts: 503
Location: Jerusalem, Israel

PostPosted: Tue Jul 20, 2004 7:21 am    Post subject: Reply with quote

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
View user's profile Send private message
The_Fang
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2003
Posts: 75

PostPosted: Tue Jul 20, 2004 2:51 pm    Post subject: Reply with quote

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


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Tue Jul 20, 2004 3:13 pm    Post subject: Reply with quote

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


Joined: 22 Apr 2004
Posts: 6
Location: Estonia

PostPosted: Thu Jul 22, 2004 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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