Reply
 
Thread Tools Display Modes
  #1  
Old 08-09-2011, 05:29 AM
malco_2001 malco_2001 is offline
Senior Member
 
Join Date: Aug 2010
Posts: 134
Thanks: 7
Thanked 34 Times in 26 Posts
Default Building & Installing Gnome 3
Here is what I have done to build Gnome 3 on PCBSD for anyone who might be interested in trying. I was able to get Gnome 3 working with the PCBSD Appcafe working. If there are any errors or suggestions let me know as I did all of this in a hurry.

My first thoughts for doing this was that it would be easiest to build gnome 3 into packages within a jail using portmaster. Since PCBSD has portsjail that made it really easy. I could then share the files from an http server to install from any machine on my network using pkg_add.

1.) First build portjail if it is not already set up by opening a terminal and typing:

su -
portjail init root

2.) Open portjail application and run the following commands:

su -

portsnap fetch

portsnap upgrade

3.) Download the marcuscom ports repository tar bz2 file and marcusmerge script from here

http://www.marcuscom.com:8080/cgi-bin/cvsweb.cgi/

4.) Extract the tar bz2 archive

5.) Edit the marcusmerge script (i chose to specify /temp/ports as the location of the marcuscom ports tree because this is where I moved the marcuscom ports tree within the jail)

4.) Create a temp directory and copy the tar bz2 file and the marcus merge script to a temp directory within the jail (note I had to do this for some reason because the symbolic links to my home dir were not working for me at the time of writing. To do so I opened a terminal and ran the following commands to create a temp directory:

su -
cd /usr/jail/portjail/
mkdir temp

5.) Move the marcuscom ports directory and marcusmerge script to to /usr/jails/portjail/temp/

6.) Make the script executable and run the script:
chmod +x marcusmerge
./marcusmerge

7.) edit the makefile for /usr/ports/x11/gnome3 and comment out libgnome-games3. It will not build due to dependencies that haven't been ported yet.

8.) install portmaster
cd /usr/ports/ports-mgmt/portmaster
make install clean

9.) run portmaster
portmaster --force-config -D -g /usr/ports/x11/xorg
portmaster --force-config -D -g /usr/ports/x11/gnome3 (on the very first configure screen check gnome-shell and uncheck evolution-mapi support because it would not build due to missing dependencies. All other config options leave default.

10.) transfer the /usr/jails/portjail/usr/ports/packages dir to an http server (beyond the scope of this guide)


To Install in FreeBSD 9.

1.) From a fresh install on freebsd you can type the following command as root to tell pkg_add to look at your http server

setenv PACKAGESITE http://xxx.xxx.xxx.xxx/Latest/ (where xxx.xxx.xxx.xxx is the ip of your http server and Latest is the directory pkg_add will look at for the gnome3 tarball)

2.) Run the following commands to install as root
pkg_add -r xorg
pkg_add -r gnome3

3.) add gnome_enable="YES" to /etc/rc.conf

The above should get you a workable gnome 3 in fallback mode if you have an NVIDIA card which I have. The kernel source won't be installed by default which is required for the nvidia driver to build.


To Install in PCBSD 9

1.) install PCBSD and select all drivers if you have an nvidia card.

2.) deselect all window managers except and select awesome under unsupported

3.) after install press control alt f1 to get to a terminal

4.) edit /etc/rc.conf and comment out enable gdm

5. ) ype the following command as root to tell pkg_add to look at your http server

setenv PACKAGESITE http://xxx.xxx.xxx.xxx/Latest/ (where xxx.xxx.xxx.xxx is the ip of your http server and Latest is the directory pkg_add will look at for the gnome3 tarball)

6.) Run the following commands to install as root
pkg_add -r xorg
pkg_add -r gnome3

7.) Attempt and fail to install xorg and take note of conflicting packages. Remove them with package deinstall. Then retry until all conflict packages are gone. Run the following commands as root

pkg_add -r xorg
use pkg_deinstall -r (name of broken dependency)
pkg_add -r xorg

8.) Attempt to install gnome3 and remove any conflicting packages the same way. Run the following commands as root.

pkg_add -r gnome3
pkg_deinstall -r (name of broken dependency)
pkg_add -r gnome3

9.) to make appcafe work launch install the following ports
/usr/ports/x11-toolkits/qt4-gui
/usr/ports/devel/qt4-qtsolutions-singleapplication-20110722
/usr/ports/graphics/qt4-svg/

That should get you a workable gnome3 where PCBSD control panel seems to launch and work. However after installing pbi's the newly installed pbi's won't show up under applications until a logout and login.

Last edited by malco_2001; 08-09-2011 at 05:48 AM.
Reply With Quote
  #2  
Old 09-07-2011, 10:28 AM
amber.long83 amber.long83 is offline
Junior Member
 
Join Date: Aug 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Thanks for information, i was looking for it.
Reply With Quote
  #3  
Old 01-15-2012, 02:26 PM
rockworldmi rockworldmi is offline
Junior Member
 
Join Date: Nov 2011
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Default
malco_2001 : can you look at Cinnamon "http://forums.linuxmint.com/viewtopic.php?f=42&t=90721" if you can get it work on PC-BSD !? Thanks in advance..
Reply With Quote
  #4  
Old 01-22-2012, 04:02 PM
malco_2001 malco_2001 is offline
Senior Member
 
Join Date: Aug 2010
Posts: 134
Thanks: 7
Thanked 34 Times in 26 Posts
Default
Actually I wasn't the one who ported Gnome 3 it was done over here http://www.marcuscom.com/ and from what I can tell it's taken them a few guys over 6 months just to get a usable Gnome 3 to build. I say they because it seems a couple of guys may have assisted him. If you look at the mailing list it will give you a better idea. I have a feeling that once Gnome 3 makes it into the ports tree they will do a good job of keeping it fairly up to date. http://www.freebsd.org/gnome/

I could be wrong but it seems that unlike the KDE project which ports native builds to FreeBSD http://freebsd.kde.org/ when they make new builds, Gnome builds only specifically for Linux. So it seems to be up to the community to make it happen. So because of that i think it will be very hard to get Unity or Cinnamon running on FreeBSD unless there is a lot of interest in the FreeBSD community due to the amount of time and work it takes to convert the Linux software to run properly. Especially when in the case of Gnome where features are built to rely on the Linux kernel it makes the work that much harder. A good example of that can be seen on this page http://www.freebsd.org/gnome/docs/volunteer.html

I just posted this guide to show how i took the already "ported to FreeBSD" source and compile it into packages that could be used to install on PCBSD. I'm not yet advanced enough to know how to port software to FreeBSD, yet. I imagine getting this interface to run on FreeBSD/PCBSD would be just a matter of porting some additional packages once the Gnome 3 stuff makes it to the ports tree. That is unless it also somewhere requires some Linux specific kernel function to build and run.

However I would say that not all hope is lost. I never thought Chromium would make it to the ports tree due to some ALSA http://www.alsa-project.org/main/index.php/Main_Page (Linux specific) dependencies but after several years of waiting someone made it happen and it's pretty consistently kept up to date. I have to recommend KDE for begginers to PC-BSD at this point as it is simply better supported and kept more currently up to date. Of course however if someone takes the time to port Cinnamon into a usable state I would take the time to tinker with it.

Last edited by malco_2001; 01-22-2012 at 04:55 PM. Reason: corrections
Reply With Quote
  #5  
Old 02-03-2012, 01:33 AM
malco_2001 malco_2001 is offline
Senior Member
 
Join Date: Aug 2010
Posts: 134
Thanks: 7
Thanked 34 Times in 26 Posts
Default
I just recompibled a fresh gnome 3 / xorg yesterday. This time I was able to compile after marcusmerge by just running portmaster --force-config -D -g /usr/ports/x11/gnome3 without having to modify any of the makefiles. The good news is it compiled without any errors and all of the included programs and control panel settings worked as far as I coud tell. The other good news is that it compiled gnome 3.2.1 which seems to be the most current out there as far as I can tell.

The bad news sadly it no longer works for me with the nvidia driver. I can only get it to work in failback mode. After doing some digging I found someone who also tried it using my instructions here in RC2 with the same results.
http://www.marcuscom.com/mailman/htd...er/001353.html

Not really sure what this means. May have to look for another nvidia card to test with.

Last edited by malco_2001; 02-03-2012 at 01:36 AM. Reason: correction
Reply With Quote
  #6  
Old 03-28-2012, 07:36 AM
lockdoc lockdoc is offline
Junior Member
 
Join Date: Jan 2012
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default
So anybody know, why it only uses the fallback mode?
Reply With Quote
  #7  
Old 04-07-2012, 05:02 AM
phackwer phackwer is offline
Junior Member
 
Join Date: Apr 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default I found the answer
It runs on fallback mode because of X configuration.

I had to load GLcore module to have it working. Doing this makes even gdm behave as 3.2

Check my config

Section "Module"
Load "extmod"
Load "record"
Load "dbe"
Load "glx"
Load "dri"
Load "dri2"
Load "drm"
Load "GLcore"
Load "freetype"
EndSection

Section "Device"
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
Screen 0
BoardName "Mobile 4 Series Chipset Integrated Graphics Controller"
BusID "PCI:0:2:0"

Option "AccelDFS" "true"
Option "NoAccel" "false"
Option "AccelMethod" "EXA"
Option "ExaNoComposite" "false"
Option "ForceEnablePipeA" "true"
Option "XAANoOffscreenPixmaps" "true"
Option "EXANoUploadToScreen" "true"
Option "Tiling" "off"
Option "AllowGLXWithComposite" "true"
Option "RenderAccel" "True"
Option "AddARGBGLXVisuals" "True"
Option "EnablePageFlip" "true"
Option "EnableDepthMoves" "true"
EndSection

Section "DRI"
Group "video"
Mode 0666
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "Keyboard"
Option "XkbModel" "abnt2"
Option "XkbLayout" "br"
Option "XkbVariant" ""
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
Option "AddARGBVisuals" "True"
Option "NoLogo" "True"
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
EndSection

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/lib/X11/fonts/misc/"
FontPath "/usr/local/lib/X11/fonts/TTF/"
FontPath "/usr/local/lib/X11/fonts/OTF"
FontPath "/usr/local/lib/X11/fonts/Type1/"
FontPath "/usr/local/lib/X11/fonts/100dpi/"
FontPath "/usr/local/lib/X11/fonts/75dpi/"
FontPath "/usr/local/lib/X11/fonts/dejavu/"
EndSection
Reply With Quote
  #8  
Old 04-10-2012, 10:02 PM
ZaRiuS ZaRiuS is offline
Junior Member
 
Join Date: Apr 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Hi!

Sorry for be ignorant about it but
Where can i find a packagesite with Gnome3

I follow the steps, but after i use the marcus script, it say i have to update system with portupgrade -a and always it find a lot of fails with fresh and most possible small install.
If i skip it, the portmaster always find a update needed for a lot of packages and i have to restart all the time the process and it is streesing

Any solutions? I love gnome3 when i use it on Arch Linux, but see much more stable and fast pcbsd... if can i have both, it will be a dream
Reply With Quote
  #9  
Old 04-28-2012, 04:06 PM
malco_2001 malco_2001 is offline
Senior Member
 
Join Date: Aug 2010
Posts: 134
Thanks: 7
Thanked 34 Times in 26 Posts
Default
ZaRiuS,
unfortunatley having a packagesite for Gnome3 wouldn't fix the problems with the fails you are having. You pretty much have to uninstall all of the conflicting packages each step of the way. It's definitley easier to install on a clean installation of FreeBSD with no packages. All that's really required for a Gnome3 package site to my knowledge is someone to build the packages and host them on an http server somewhere. Again that wouldn't really fix the conflict problem but it would at least save a lot of people the compile time including me which would be very nice. I have been testing off and on with the latest snapshots for PCBSD 9.1 to see if I can make this process any easier. I haven't gotten there yet but if I do I will definitley post. Thanks for the gl tip phackwer I will defintiely have to give that a shot on my nvidia card.

Right now I have been testing everything in virtualbox. My biggest hangup is getting gnome-shell to launch with the vboxvideo driver. I've read it should just work in fedora. I was thinking if I can get that to work in PCBSD I could just distrubute a Virtualbox image for people to try.
Reply With Quote
  #10  
Old 07-29-2012, 05:41 PM
malco_2001 malco_2001 is offline
Senior Member
 
Join Date: Aug 2010
Posts: 134
Thanks: 7
Thanked 34 Times in 26 Posts
Default
It looks like this will be pointless for a while. Things are horribly broken and there is only 1 developer working on this. The other developer is working on mate now which is almost done and can be tested through the marcuscom ports tree. If things change and I am able to build a functional version of the packages. I will host them somewhere before they are broken again as well as a new guide on how to make things work. It was my intention to do that over the weekend. However that has became impossible until things get fixed with the ports.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:19 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.