LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-08-2004, 03:12 PM   #1
marsques
Member
 
Registered: Jan 2004
Location: Manchester
Distribution: slackware...
Posts: 344

Rep: Reputation: 32
xserver need help...


has anyone got a guide to building X (xorg) from source for slackware?
a step by step guilde would be nice...

thanks in advance...
 
Old 08-08-2004, 03:23 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
you can pick-up the source here:

ftp://ftp.slackware.com/pub/slackwar.../source/x/x11/


and then use the provided build script:

ftp://ftp.slackware.com/pub/slackwar...x11.SlackBuild
 
Old 08-08-2004, 03:35 PM   #3
marsques
Member
 
Registered: Jan 2004
Location: Manchester
Distribution: slackware...
Posts: 344

Original Poster
Rep: Reputation: 32
cheers!

just a quick one...

so if i do create a shadow directory and place the x11.SlackBuild file in eg .../xcbuild (which is the shadow directory) , then

bash-2.05$ ./x11.SlackBuild (inside the shadow directory)

it should create the *.tgz files

am i right?

thank in advance...
 
Old 08-08-2004, 03:47 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
yeah, as long as all the source files are in the same directory as the build script, everything will be fine...

the *.tgz will be placed in the /tmp directory by default...
 
Old 08-08-2004, 03:48 PM   #5
marsques
Member
 
Registered: Jan 2004
Location: Manchester
Distribution: slackware...
Posts: 344

Original Poster
Rep: Reputation: 32
thanks...
 
Old 08-09-2004, 03:02 PM   #6
marsques
Member
 
Registered: Jan 2004
Location: Manchester
Distribution: slackware...
Posts: 344

Original Poster
Rep: Reputation: 32
yeah it built it and installed x11-6.7.0-i486-4.tgz which has been optimized for athlon-xp... but just have a query...

x11-fonts-100dpi-6.7.0-noarch-4.tgz and the other x11-fonts-...tgz are empty, i mean no fonts...

any ideas?
 
Old 08-12-2004, 11:29 AM   #7
kevmccor
Member
 
Registered: Aug 2004
Location: Texas
Distribution: slackware
Posts: 158

Rep: Reputation: 44
I also need some help. Maybe I should start a new thread, but this one looks like a specialized topic. I am trying to get the via unichrome drivers working. According to:
http://sourceforge.net/docman/displa...roup_id=102048
I need "a build tree of XFree 4.4 or later, which has been built once"
Then:
cd <build>/xc/programs/Xserver/hw/xfree86/drivers
cvs -z3 -dserver:anonymous@cvs.sourceforge.net:/cvsroot/unichrome co xfree86
rm -rf via
ln -s xfree86 via
make Makefiles
cd via
make
make install
cp via_drv.o /usr/X11R6/lib/modules/drivers (if necessary)
Restart the X server, Check in the X server log: (II) VIA(0): [XvMC] Initialized XvMC extension.

I've copied the xorg source to ~/slack-pkg/source/x/x11/ and I'm looking at x11.Slackbuild now. Some questions:
1. What is a shadow directory and howto?
2. Are Slackware 10 xorg-X11R6.7.0 sources equivalent to XFree 4.4 or later?
3. My package install seems to be ok, so how do I just build without installing?
(it looks like only packages are made in /tmp/x11-build/package-x11, but I really want a build tree, and also it looks like some stuff in /usr tree gets changed )
4. Can I change GLIDE=$1 to GLIDE=NO ?
5. Do I need to compile fonts, and if not, how to avoid?
(looks to be handled: # If we have the precompiled fonts, use those)
6. Since I also downloaded XFree86-4.4-to-unichrome23-patch.bz2, can I use that by adding "bzip2 -cd <path to patch> | patch -p1 --backup --verbose --suffix=.orig -E" to the patching part of x11Slackbuild (and skip the cvs stuff above)? (If I do that, I'll probably need to install the new packages "upgradepkg"?)

I'm still learning Slackware, after using mandrake and then trying and giving up on gentoo.
 
Old 08-13-2004, 07:04 PM   #8
kevmccor
Member
 
Registered: Aug 2004
Location: Texas
Distribution: slackware
Posts: 158

Rep: Reputation: 44
This is a follow-up on my previous post, reporting progress so far. I'm trying to get the updated via unichrome drivers installed and working. BTW, I'm using a 2.6.7 kernel patched with the epia patch from http://epia.kalf.org/epia_kernel/.

The problems are no agp and poor 3d, but I just want all the features eventually.
With via driver that ships with xorg X11R6.7.0, Xorg.0.log reports:
***
(EE) VIA(0): [drm] drmAgpAcquire failed 1023
(II) VIA(0): [dri] use pci.
***
My method, using Slackware 10.0

1. download unichrome-X-R23.tar.gz from http://unichrome.sourceforge.net following the xfree86 link
2. copy xorg sources from cdrom to ~/downloads/slack-pkg/sources/x/x11/
3. cd to that directory and su root [password]
4. run x11.Slackbuild script (chmod 755 first). This builds and installs xorg.
5. cd /tmp/x11-build/xc/programs/Xserver/hw/xfree86/drivers/
6. pwd (to be sure)
7 tar xvzf <path to unichrome-X-R23.tar.gz>
8. rm -rf via
9 mv unichrome-X-R23 via
10 chown -R root:root via (again, to be sure)
11. make Makefiles
12. cd via
13. make
14. make install

Result: there is a new via_drv.o file in /usr/X11R6/lib/modules/drivers/

Perhaps there are more results, such as updated man pages or other files being installed, but I couldn't tell. Notably, there is no via_dri.o in the /usr/X11R6/lib/modules/dri directory. The video screen seems a bit better.
Xorg.0.log now reports:
***
(II) VIA(0): [drm] drmAgpEnabled succeeded
(II) VIA(0): [drm] agpAddr = 0xe0000000
(II) VIA(0): [drm] agpBase = (nil)
(II) VIA(0): [drm] agpAddr = 0xe0000000
(II) VIA(0): [drm] agpSize = 0x02000000
(II) VIA(0): [drm] agp physical addr = 0x00000000
(II) VIA(0): [dri] use agp.
***
Also, I discovered that the modprobe.conf file had to be edited so the agp modules loaded before the vis_v4l_drv was loaded.
# /etc/modprobe.conf
#
# === video
install via /sbin/modprobe via_agp; /sbin/modprobe --ignore-install via; /bin/true

Perhaps this was all I needed from the beginning, but I thnk the updated unichrome driver is better.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can you tell what xserver you are using? tomj88 Debian 2 09-10-2005 07:14 PM
xserver-xorg config warning: migrating xserver-xfree86 templates doctorwebbox Debian 9 07-27-2005 07:24 PM
my xserver is down emrec4d Mandriva 7 04-05-2004 01:33 AM
Does anyone use XServer? Zerodark Linux - Software 0 01-04-2004 11:32 AM
XServer? pmcquain Slackware 2 02-14-2003 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration