LinuxQuestions.org
Review your favorite Linux distribution.
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


Closed Thread
  Search this Thread
Old 09-14-2004, 04:31 AM   #1
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
SBing's Slackware FAQ


Right, after discussion with Jeremy, it seems we are going to put stuff in the Wiki, however - we will have a thread with links to articles of relevance in the Wiki

So I guess that's what this thread becomes - could you please submit stuff to the Wiki and e-mail me a link?

Cheers

Steve

01 Oct 2004

--------------


Please do not reply to this thread
Please do not reply to this thread
Please do not reply to this thread
Please do not reply to this thread
Please do not reply to this thread
If you wish to correct or add something, please reply in the FAQ donation thread

If you're having a problem, create a new thread and explain exactly what you've done.

Cheers!

Steve
------------------------
18 / 09 / 04 - kinda busy atm, am working on it - please submit stuff! Thanks for all contributions!

I'm away THIS WEEK (starting Monday 20/09/04) - please don't be disheartened if you don't see your post straight up here, I will read it - just please submit in the correct thread - thanks for supporting your community

Warning - while this information is being posted by me, very little was actually written by me - it has been submitted for inclusion in the FAQ by various members of the Slackware LQ.org community and is probably entirely under GPL license. Whatever its license, I, nor LQ.org or anyone else is responsible for any damage through the usage of any information listed below.
------------------------------------------------------------------------------------------------------------------
Table of Contents:

Video / 3D card related problems:

FAQ: How can I enable 3D acceleration?

Misc. problems:

FAQ: How can I shutdown as a normal user?





-----------------

LQ.org's Slackware FAQ is a collaborated effort by many members of the LQ community who've donated their knowledge

----------------

To be done - tidy this up a bit - insert some nice contents / page and do some more stuff


Add tw001_tw's post on securing Slack / closing ports etc
Add TheBman's post on dialup
Add tw001_tw's post on dual screen

Last edited by SBing; 10-01-2004 at 05:09 AM.
 
Old 09-14-2004, 04:45 AM   #2
SBing
Member
 
Registered: Mar 2004
Posts: 519

Original Poster
Rep: Reputation: 35
FAQ: How can I enable 3D acceleration?

Most modern machines come with a video card which is able to accelerate the rendering of 3D graphics - the most common manufacturers of GPUs (Graphics Processing Unit) are ATi and NVidia.

Both of these companies provide proprietry drivers that enable acceleration for cards that user their GPUs - please not that these drivers are not open source and so, by installing them, will 'taint' your kernel. This change does not affect the running of your machine in any way, but is due to the licensing nature of both the kernel and the proprietry drivers.

ATi:

Instructions for Slackware 10:

1) Download the latest ATi driver for XFree86 4.3: fglrx-4.3.0-3.12.0.i386.rpm from ATi's linux drivers page

Note: It is probably best if you return to the CLI (command line interface) by exiting X now

2) Convert this rpm to a Slackware package, by running:

$ rpm2tgz fglrx-4.3.0-3.12.0.i386.rpm

3) Install this newly created Slackware package, by running:

$ su -
<enter your root password as prompted>
# installpkg fglrx-4.3.0-3.12.0.i386.rpm

4) Build the ATi driver, by running:

# cd /lib/modules/fglrx/build_mod
# chmod +x make.sh
# sh make.sh

5) Install the ATi drivers, by running:

# cd /lib/modules/fglrx
# chmod +x make_install.sh
# sh make_install.sh

6) Create a new X.org config file that contains the information for 3D acceleration:

# fglrxconfig
Enter the information as prompted, allow the file to be saved at /etc/X11/XFree86-4
# mv /etc/X11/xorg.conf /etc/X11/xorg.bak
# mv /etc/X11/XFree86-4 /etc/X11/xorg.conf

7) Start X as a normal user:

# exit
$ startx

8) You can check if you are using the fglrx accelerated module by running:

$ fglrxinfo

OpenGL vendor string: ATI Technologies Inc.

Instead of, 'Mesa'

NVidia:

1. Download NVIDIA driver from : http://www.nvidia.com/object/linux.html (choose IA32 for Intel/AMD 32 bits processors, IA64 for Intel 64 bits, AMD64 for AMD 64 bits)

2. Install driver with :
exit X session if it is running
sh NVIDIA-Linux-x86.xxx.pkgx.run
And follow the instruction

If install complains about kernel, indicate your kernel version to the installer (example for 2.6.7) :
sh NVIDIA-Linux-x86.xxx.pkgx.run -k 2.6.7

3. Edit /etc/X11/xorg.conf or /etc/X11/XF86Config :

- At Module section, make sure this option is enabled :
Load "glx"

And comment or remove Load "dri" and Load "GLcore" if present.

- Scroll down until Device section for video card
.required setting :
Driver "nvidia"

.optional settings :
read APPENDIX D: X CONFIG OPTIONS of /usr/doc/NVIDIA_GLX-1.0/README

Save your x config...

4. Make sure nvidia module is loaded :
lsmod | grep nvidia

if not, load it : /sbin/modprobe nvidia

5. startx

6. For VIA agp chipset owners only :

You can add performances by tweaking nvidia driver before install it :

- extract driver package :
sh NVIDIA-Linux-x86-xxx-pkgx.run -x

cd NVIDIA-Linux-x86-xxx-pkgx

from this directory, edit :
usr/src/nv/os-registry.c

And set values :
* static int NVreg_EnableVia4x = 1;
* static int NVreg_EnableAGPSBA = 1;
* static int NVreg_EnableAGPFW = 1;

Save the file and install driver from NVIDIA-Linux-x86-xxx-pkgx directory :
./nvidia-installer


Last edited by SBing; 09-14-2004 at 06:00 AM.
 
Old 09-18-2004, 10:28 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
[sorry]
 
Old 09-18-2004, 04:59 PM   #4
SBing
Member
 
Registered: Mar 2004
Posts: 519

Original Poster
Rep: Reputation: 35
FAQ: How can I shutdown as a normal user?

By default, a Slackware machine can only be shutdown by the root user - this may sound slightly useless at first - do remember that linux was generally used on servers before desktop - would like any remote user to your server being able to shutdown your machine?

How can I shutdown/reboot as a normal user and from GNOME

Ensure you have the package, 'sudo' installed - check:

# pkgtool

to see the list of installed packages.

visudo /etc/sudoers (really, any text editor should work)

yourusername yourhostname = NOPASSWD: /sbin/reboot, /sbin/halt -h now, /sbin/halt

This user can now shutdown via sudo without a password.

To enable shutdown/reboot from within gnome (ala the way DL GNOME sets it up):

mkdir /var/run/console
touch /var/run/console/yourusername
chmod +s /sbin/reboot
chmod +s /sbin/halt

Last edited by SBing; 09-18-2004 at 05:06 PM.
 
Old 09-18-2004, 05:01 PM   #5
SBing
Member
 
Registered: Mar 2004
Posts: 519

Original Poster
Rep: Reputation: 35
FAQ: Why doesn't my sound work?

Sound cards can normally be used through ALSA - use

# alsaconf

To set up your soundcard

Why don't I have any sound after running 'alsaconf'?

First, try unmuting Master and PCM in 'aslamixer'. Save these settings with 'alsactl store'.

Kmix in KDE might also work for this.

If that doesn't work, maybe there are some debugging steps like seeing if modules are running ...

Why doesn't my sound work after a kernel (re)compile?

The ALSA modules were lost, reinstall the alsa-drivers package - if for a 2.6 kernel, download
and recompile alsa-drivers

Last edited by SBing; 09-18-2004 at 05:03 PM.
 
Old 09-18-2004, 05:15 PM   #6
SBing
Member
 
Registered: Mar 2004
Posts: 519

Original Poster
Rep: Reputation: 35
FAQ: How can I boot up into a GUI instead of the CLI (command line interface)?

By default Slackware boots up to a login at console - this can easily be changed:

Edit the file /etc/inittab

Change:
Code:
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
to
Code:
# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:
So that you have tty2 - tty4, while in /etc/inittab:

Change:
Code:
# These are the standard console login getties in multiuser mode:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
to
Code:
# These are the standard console login getties in multiuser mode:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
Save and exit /etc/inittab
Then open the file /etc/rc.d/rc.4
Here is where you select your login manager.

By default, you have 3 options, GDM, KDM, and XDM. To make your
selection, simply put the one you want first in the list.

(What it looks like by default)
Code:
# Try to use GNOME's gdm session manager:
if [ -x /usr/bin/gdm ]; then
  exec /usr/bin/gdm -nodaemon
fi

# Not there?  OK, try to use KDE's kdm session manager:
if [ -x /opt/kde/bin/kdm ]; then
  exec /opt/kde/bin/kdm -nodaemon
fi

# If all you have is XDM, I guess it will have to do:
if [ -x /usr/X11R6/bin/xdm ]; then
  exec /usr/X11R6/bin/xdm -nodaemon
fi
If you want KDM, instead of GDM, copy and past the KDE section above
the GDM section, so it looks like this:
Code:
# KDE first:
if [ -x /opt/kde/bin/kdm ]; then
  exec /opt/kde/bin/kdm -nodaemon
fi

# GDM if we have too:
if [ -x /usr/bin/gdm ]; then
  exec /usr/bin/gdm -nodaemon
fi


# XDM will be our last resort:
if [ -x /usr/X11R6/bin/xdm ]; then
  exec /usr/X11R6/bin/xdm -nodaemon
fi
 
Old 09-18-2004, 07:52 PM   #7
WilliamS
Member
 
Registered: Nov 2003
Location: 46N 76W
Distribution: Slackware 14.1
Posts: 380

Rep: Reputation: 31
Thumbs up

Sorry!

Last edited by WilliamS; 09-18-2004 at 07:54 PM.
 
Old 09-20-2004, 06:04 PM   #8
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
Two things.

- I updated the title to "SBing's Slackware FAQ"
- This would be some great content for the LQ Wiki

--jeremy
 
Old 04-18-2005, 05:14 AM   #9
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Rep: Reputation: 30
Hi there ,I seem to have a problem ,first I downloaded the nvidia driver as explained and when I went to install it it said it needed to precompile my kernel which I let it do and it installed it , but I get no nvidia logo on boot or login so I went into my x11 xorg.conf file and found I dont have hardly any of the options or sections you mentioned 4 me to alter or add ,this is preety much all I have "Section "Module"

# This loads the DBE extension module.

Load "dbe" # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection

# This loads the font modules
Load "type1"
Load "freetype"
Load "speedo"

# This loads the GLX module
Load "glx"

EndSection
AnyWay what do you recommend I can do or add to get my Nvidia card to work with Slackware10 & why is mine so different to what you explained ,I am using the default kernel that came with slack the 2.4 kernel
 
Old 04-18-2005, 05:54 AM   #10
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Re: SBing's Slackware FAQ

Quote:
Originally posted by SBing
Please do not reply to this thread
Please do not reply to this thread
Please do not reply to this thread
Please do not reply to this thread
Please do not reply to this thread
If you wish to correct or add something, please reply in the FAQ donation thread
Browser - as per the first post, please don't post problems in this thread. You would be better served by checking the Wiki, our Tutorial section, Searching the board and, finally, creating a new thread to ask your question.
 
Old 05-10-2005, 10:29 AM   #11
ride153
Member
 
Registered: Apr 2005
Location: Northeast USA
Distribution: current is PCLOS (server) and Suse (desktop)
Posts: 102

Rep: Reputation: 15
SBing Im confused why do i download XFree86 4.3: fglrx-4.3.0-3.12.0.i386.rpm if slackware 10.1 is xorg 6.8. im a noob so correct me if im wrong

the reason i think this is because when i run Check.sh it says Xorg 6.8 ?
 
Old 06-03-2005, 01:09 PM   #12
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
There is now a Slackware FAQ page in the LinuxQuestions.org Wiki:

http://wiki.linuxquestions.org/wiki/Slackware-FAQ
 
Old 10-08-2005, 08:26 PM   #13
PXC
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Rep: Reputation: 0
[ERASE ME, PLEASE]
 
Old 10-30-2005, 05:23 AM   #14
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
Isn't this an error:
Quote:
2) Convert this rpm to a Slackware package, by running:

$ rpm2tgz fglrx-4.3.0-3.12.0.i386.rpm

3) Install this newly created Slackware package, by running:

$ su -
<enter your root password as prompted>
# installpkg fglrx-4.3.0-3.12.0.i386.rpm
The rpm2tgz op should have also changed the name of the rpm file, or else it will have overwritten the original rpm. It should say

# installpkg fglrx-4.3.0-3.12.0.i386.tgz

SOme people follow these instructions letter by letter.
 
Old 10-30-2005, 07:13 AM   #15
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Quote:
Originally posted by cathectic
There is now a Slackware FAQ page in the LinuxQuestions.org Wiki:

http://wiki.linuxquestions.org/wiki/Slackware-FAQ
Since this hasn't been updated since June and since there is a wiki entry on this, I am closing this thread.
 
  


Closed Thread



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
Debian FAQ Artik Debian 13 06-30-2005 11:28 AM
The forming of a LQ.org Slackware FAQ - donations of knowledge required! SBing Slackware 47 05-23-2005 04:44 AM
LFS FAQ not there? j.jensen@auckland.ac.nz Linux From Scratch 2 01-20-2004 06:08 PM
FAQ for Slackware? Danielallan Slackware 7 11-27-2003 11:09 PM
seeking www.linuxquestions.org/slackware FAQ slackfan Slackware 6 02-16-2003 03:14 AM

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

All times are GMT -5. The time now is 11:37 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