From owner-freebsd-questions@FreeBSD.ORG Sat Jun 23 00:12:55 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3160616A400 for ; Sat, 23 Jun 2007 00:12:55 +0000 (UTC) (envelope-from mrspock@esfm.ipn.mx) Received: from mail.esfm.ipn.mx (esfm.ipn.mx [148.204.102.61]) by mx1.freebsd.org (Postfix) with ESMTP id A224913C43E for ; Sat, 23 Jun 2007 00:12:54 +0000 (UTC) (envelope-from mrspock@esfm.ipn.mx) Received: from localhost (localhost.esfm.ipn.mx [127.0.0.1]) by mail.esfm.ipn.mx (Postfix) with ESMTP id 69307450F9 for ; Fri, 22 Jun 2007 19:05:32 -0500 (CDT) X-Virus-Scanned: amavisd-new at esfm.ipn.mx Received: from mail.esfm.ipn.mx ([127.0.0.1]) by localhost (mail.esfm.ipn.mx [127.0.0.1]) (amavisd-new, port 10024) with LMTP id A1povA1Oml4t for ; Fri, 22 Jun 2007 19:05:28 -0500 (CDT) Received: by mail.esfm.ipn.mx (Postfix, from userid 1000) id 9C1F9450C6; Fri, 22 Jun 2007 19:05:28 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by mail.esfm.ipn.mx (Postfix) with ESMTP id 99E55450BE for ; Fri, 22 Jun 2007 19:05:28 -0500 (CDT) Date: Fri, 22 Jun 2007 19:05:28 -0500 (CDT) From: Eduardo Viruena Silva To: freebsd-questions@freebsd.org Message-ID: <20070622184114.Y35146@Gina.esfm.ipn.mx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; format=flowed Content-ID: <20070622184920.G35452@Gina.esfm.ipn.mx> Subject: FreeBSD 6.2-STABLE / Gnome / Beryl (recipe) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 00:12:55 -0000 Hello Guys, After several hours of compilation, I have got my FreeBSD/Gnome/Beryl working properly. It took almost 2 days of compiling processes. To those who are interested, here is a log of what I did: Installed the minimal installation of FreeBSD 6.2-RELEASE. When my computer woke up, I configure its mouse (a PS/2 microsoft optical mouse) by adding the next lines to /etc/rc.conf: moused_enable="YES" moused_flags="-z 4" moused_port="/dev/psm0" moused_type="auto" michelle# /etc/rc.d/moused start Once it was working, I installed cvsup-without-gui: michelle# pkg_add -r cvsup-without-gui michelle# rehash Configured my /etc/cvsupfile as shown: ---------/etc/cvsupfile------------------ *default host=cvsup.FreeBSD.org *default base=/usr *default prefix=/usr *default release=cvs *default tag=RELENG_6 *default delete use-rel-suffix src-all *default tag=. ports-all doc-all -------- end of /etc/cvsupfile --------- Updated my system to 6.2-STABLE: michelle# cvsup /etc/cvsupfile (several hours later... ) Prepared my system to build the world. michelle# cd /etc/src michelle# make buildworld (several hours later...) michelle# make installworld michelle# mergemaster This last step makes a lot of questions. I aswered "i" (install) to all of them. Configured my kernel: michelle# cd /usr/src/sys/i386/conf michelle# cp GENERIC eviruena Added my particular necessities: ... michelle# vi eviruena options SMP device atapicam device drm device i915drm device sound ... michelle# config eviruena michelle# cd ../compile/eviruena michelle# make cleandepend michelle# make depend michelle# make michelle# make install michelle# reboot In this point you have to check that you have the device file: /dev/agpgart, if you don't, perhaps your graphic card is not properly handled by FreeBSD. I installed Xorg 7.2. It can be obtained from FreeBSD packages: michelle# pkg_add -r xorg it can take a lot of time, depending on your ISP. Some others (fearless men) prefer to compile it from the ports, check the file /usr/ports/UPGRADING before doing anything. Now, the problem is to get "gnome" installed. I did not find it in the packages of 6-STABLE, so I compiled it: michelle# setenv BATCH yes michelle# cd /usr/ports/x11/gnome2 michelle# make clean install clean as you can see, I am working with tcsh, if you prefered bourne shell, you have to type: export BATCH=yes instead of: setenv BATCH yes (one day later...) [Michelle (my computer) had some problems to find "opal-2.2.8.tar.gz"; I found it by google-ing it, loaded it in /usr/ports/distfiles and continued Gnome compilation]. Finally, gnome was compiled and installed. Then, I needed to compile beryl: michelle# cd /usr/ports/x11-wm/beryl michelle# make clean install clean Next, I had to configure X. It is quite simple, but it is a little tricky: michelle# X -configure I had to make some changes to the configuration obtained above, basicly I needed to include some options that are not loaded by default. I have to say that I own an intel motherboard and I am using its graphic card (it is an i950GM). The X configuration requires to include: (in section "ServerLayout") Option "AIGLX" "true" (in secion "Device") Option "XAANoOffscreenPixmaps" "true" Option "DRI" "true" (in section "Screen") DefaultDepth 24 Option "AddARGBGLXVisuals" "True" and, finally, I needed to add another two sections: Section "Extensions" Option "Composite" "Enable" EndSection Section "dri" Mode 0666 EndSection You must be warned that ATI and Nvidia Cards may requiere some other options, please take a look at: http://wiki.beryl-project.org/index.php/Install/FreeBSD Of course, you can add any other options in your X configuration, v. gr., your keyboard layout or your mouse extensions, in Mexico, for instance, we use Latinamerican keyboard, so I included: (in section "InputDevice" [keyboard]) Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "latam" Now, I had an account and in this account I configured gnome to start with my X session: michelle> echo "exec gnome-start" > .xinitrc michelle> chmod a+x .xinitrc and tested X & gnome: michelle> startx everything worked ok. Now, I opened a system terminal and I typed: michelle> beryl-manager as a consequence of this, a ruby was displayed in my launch bar. I had wobbly windows, cubic desktops, etc. ---------------- I have to thank to Reid Linnemann from the freebsd-questions list, for suggesting me compile 6.2-STABLE, and to Jose Luis Enriquez, for helping me to configure X. ---------------- Hope it helps. Cheers, Eduardo.