SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Finally go around to installing slackware on my laptop. been a red hat user for a couple of years now.
The problem? I'm having is this, When I add the battery meter to my panel it always reads as if the battery is dead. In RH it just "works", it there something special that needs to be configured in order to get the correct reading? I am using gnome 2.2 if helps in troubleshooting.
Also, when I startup a terminal session for within X my prompt says bash-2b or something and there are no colors for seperating directories from files. again rh jsut seems to "work" the way i want it to.
Any pointers on how to customize these options would be appreciated.
for starters I can't find a .bash_profile or .bashrc file on the system anywhere. as far as the color thing goes, in redhat when I type ls files, directories, links and so on appear in different colors, slackware does that from the main console, but after I start X everything from a terminal window is white.
If neither of these files exist you can create them with the following shell command:
$~ touch .bash_profile; .bashrc
Then use a text editor to enter any aliases you wish.
If the shell does not *look* the way you like please check out 'man xterm'. It will give you many options to have it look the way you wish. For example:
$~ xterm -ls -sb -rv
Will spawn an xterm with options:
-ls ( a login shell )
-sb ( draw scrollbar )
-rv ( reverse video ) i.e. Black backround and white text.
I believe you can use 'CTRL' and each of the three mouse buttons to bring up options in a current xterm.
If you are not following me on the aliases type this in shell:
$~ ls --color
and you should see color listings.
By putting:
alias ls='ls --color'
in your .bashrc and/or .bash_profile it tells bash that 'ls' means 'ls --color'
Regarding the battery, you need to enable the 'apm' module to use laptop battery power management features.
You'll find this in your '/etc/rc.d/rc.modules' file:
#### APM support ###
# APM is a BIOS specification for saving power using several different
# techniques. This is mostly useful for battery powered laptops.
/sbin/modprobe apm
Make sure that last line is uncommented as in the example above.
TSJ
Last edited by theSuperJason; 09-19-2003 at 10:48 PM.
I had .bash_profile, i created it previously, but not .bashrc, created it, added some of the initial amenities I was looking, and whoohoo! i cooking now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.