LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   SBing's Slackware FAQ (https://www.linuxquestions.org/questions/slackware-14/sbings-slackware-faq-230406/)

SBing 09-14-2004 04:31 AM

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

SBing 09-14-2004 04:45 AM

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


Cedrik 09-18-2004 10:28 AM

[sorry]

SBing 09-18-2004 04:59 PM

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

SBing 09-18-2004 05:01 PM

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

SBing 09-18-2004 05:15 PM

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


WilliamS 09-18-2004 07:52 PM

Sorry!

jeremy 09-20-2004 06:04 PM

Two things.

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

--jeremy

browser 04-18-2005 05:14 AM

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

XavierP 04-18-2005 05:54 AM

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.

ride153 05-10-2005 10:29 AM

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 ?

cathectic 06-03-2005 01:09 PM

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

http://wiki.linuxquestions.org/wiki/Slackware-FAQ

PXC 10-08-2005 08:26 PM

[ERASE ME, PLEASE]

stabu 10-30-2005 05:23 AM

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.

XavierP 10-30-2005 07:13 AM

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.


All times are GMT -5. The time now is 06:44 AM.