Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown    



SLACKWARE TIPS ( 1 )
( not really for beginners )


Wheelmouse in Slackware

( This works also on other distro´s, but the location of your xorg.conf file might be different ! Do a ¨locate xorg¨ to find out where to find it. )

Do not start X stay in text mode.

Login as root ( not typing ¨su¨, but ¨root¨ )

First back up the old xorg.conf file for as things go really wrong:

( NOTE: In Slackware versions before 10 the file is /etc/X11/XF86Config !! )

CODE
# cd  /etc/X11/
# cp  xorg.conf  xorg.conf-OLD


Then:

CODE
# vim  xorg.conf


Find the mouse pointer section, and change/add :

QUOTE
Option "Protocol" "IMPS/2" ( add IM )
Option "Device" "/dev/psaux" (  # /dev/mouse, uncomment /dev/psaux )
Option "Resolution" "300" ( add full line )
Option "ZAxisMapping" "4 5" ( add full line )
Option "Buttons" "3" (add full line )


Note: Space between the "4" and the "5" !

Save the file: ¨Esc¨ and ¨ZZ¨

exit ( to logout as root )

Login as normal user

CODE
$ startx


Now your mouse scroll wheel should be functional !




GUI login in Slackware

As root:

CODE
# vim /etc/inittab


Change the default runlevel in /etc/inittab from 3 to runlevel 4

CODE
id:4:initdefault


NOTE: other disto´s runlevel 5 !




Shutdown / power off in Slack

On some hardware: Slackware does not power off by default as you give the command ¨shutdown -h now¨.
To address that problem:

CODE
# vim /etc/rc.d/rc.modules


Look for the APM section and

uncomment the line ¨# /sbin/modprobe apm¨ ( delete the # )

Save the file ( give the command /sbin/modprobe apm if you don´t want to reboot ) and next time you do ¨shutdown -h now¨ as root your computer will power off as usual.




Slocate in Slackware

SonicDragon did send us the following addition:

QUOTE
  I just noticed that for "locate" to work in slackware it won't let you do "su" and "updatedb". You will have to do "su" and "slocate -u" first.

After running "slocate -u" first, the "updatedb" command should work normally.

That might be helpful to have added to the Slackware and Searching tips, (if this is happening to other users and not just me).



Happy Slacking !


Bruno


-- Jun 1 2003 ( Revised Dec 12 2008 ) --


Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown