FreeBSD 6.2-STABLE / Gnome / Beryl (recipe)
Eduardo Viruena Silva
mrspock at esfm.ipn.mx
Sat Jun 23 00:12:55 UTC 2007
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.
More information about the freebsd-questions
mailing list