Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-13-2003, 05:40 PM
|
#1
|
|
Member
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215
Rep:
|
Insert tip here <---
Going off of another thread elsewhere I'd like to propose a thread of interesting linux tips, commands, and scripts which would constitute as a tip for the community.
I'll start with an easy one:
If the startup screen goes to fast for you and you would like to see just what it was that flew by you can use the command dmesg to display the messages from the most recent boot.
Tag, your it! 
|
|
|
|
02-13-2003, 05:46 PM
|
#2
|
|
Member
Registered: Feb 2003
Location: NYS--Near Hunter Mountain
Distribution: Debian-Sarge/Gentoo/Slack 9.1/Ubuntu
Posts: 109
Rep:
|
To run xscreensaver daemon automatically when you start up your user acct edit you .xinitrc or .xsession file like this.....
xscreensaver-command -exit
xscreensaver &
Make sure you put these lines before the lines that execute your window managers.
|
|
|
|
02-13-2003, 05:47 PM
|
#3
|
|
Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
If you haven't got a soundcard, network card, blah blah blah chicken-on-a-stick, as long as its a PCI card, ignore the label on the box and try /sbin/lspci, then feed that info into www.google.com/linux to figure out what module to probe. Doing that is usually step one of 1/3 of the posts I reply to.
Cheers,
Finegan
|
|
|
|
02-13-2003, 05:50 PM
|
#4
|
|
Member
Registered: Feb 2003
Location: NYS--Near Hunter Mountain
Distribution: Debian-Sarge/Gentoo/Slack 9.1/Ubuntu
Posts: 109
Rep:
|
To get your scroll wheel to work with an Intellimouse Optical, edit your XF86Config file like this:
(go to the mouse section where you see this--)
Identifier "Mouse1"
Driver "mouse"
Add these lines after Option "Device" /dev/mouse (or whatever)
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
And your mouse wheel will work.
The other buttons (the side ones) can work too, but that will involve remapping.
|
|
|
|
02-13-2003, 05:51 PM
|
#5
|
|
Member
Registered: Feb 2003
Location: 127.0.0.1
Distribution: Latest Ubuntu
Posts: 161
Rep:
|
Hmm I seem to have remembered this thread from another forum...
Get books. Whether you but them or check them out from your local library Linux books are almost as important as forums like these. It so much easier to follow directions when thier printed on paper in fron of you. And, as some of us know, when troublshooting with linux you may not always have access to the internet, then a book becomes more than neccessary.
|
|
|
|
02-13-2003, 06:21 PM
|
#6
|
|
Member
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215
Original Poster
Rep:
|
Here is another easy one
setuid/setgid files allow normal users to run programs as root and can be a security issue.
Find all the setuid/setgid files on your computer like so:
find / -perm +6000 -type f -exec ls -ld {}\; > setuid.txt &
This creates a setuid.txt file for you to peruse at your convenience.
You can change the suid/sgid status for at and crontab in two commands like so:
chmod a-s /usr/bin/at
chmod a-s /usr/bin/crontab
or in one command like so(I like curly braces):
chmod a-s /usr/bin/{at, crontab}
This can be read like so, change mode attribute sticky bit for the at and crontab command.
|
|
|
|
02-13-2003, 06:23 PM
|
#7
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,824
|
Quote:
|
Hmm I seem to have remembered this thread from another forum...
|
I seem to remember this thread HERE a hundred times already. there is a vastly vastly vast amount of information on this site already
|
|
|
|
02-13-2003, 06:27 PM
|
#8
|
|
Member
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215
Original Poster
Rep:
|
Quote:
Originally posted by acid_kewpie
I seem to remember this thread HERE a hundred times already. there is a vastly vastly vast amount of information on this site already
|
Should I stop then?
|
|
|
|
02-13-2003, 06:41 PM
|
#9
|
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Rep:
|
Well, if we're in the habit of repeating ourselves, I'll post one of my favourite tips for keeping libraries up to date:
find /usr -name lib > /etc/ld.so.conf && ldconfig
Another one (although this one's less handy) - need to see the middle 3 lines of a 100 line poem?
head -n 51 < clouds.txt | tail -n 3 > clouds2.txt
That's all I can think of for now.
Bert
|
|
|
|
02-14-2003, 03:44 AM
|
#10
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,824
|
Quote:
Originally posted by ferreter
Should I stop then?
|
no no, just remember that this site has existed long before all this justlinux stuff came along.
|
|
|
|
02-14-2003, 04:04 AM
|
#11
|
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Rep:
|
Quote:
Originally posted by acid_kewpie
no no, just remember that this site has existed long before all this justlinux stuff came along.
|
Come on Acid! Stop that!
I'm sure they've noticed and used the graphical search button facility located in the top right hand corner of the page, second row.
Bert
|
|
|
|
02-14-2003, 04:18 AM
|
#12
|
|
Member
Registered: Jan 2002
Location: Riverside, CA
Distribution: Slackware Convert!!
Posts: 210
Rep:
|
I can honestly say that the search button on this site has been my most useful resource. The need to post is really not necessary (hence my low post count) if you know what to search for.
|
|
|
|
02-14-2003, 09:22 AM
|
#13
|
|
Member
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215
Original Poster
Rep:
|
My natural order of searching has always been my books, google.com/linux, and the nice search button at the top of good boards like these. I just thought it would be nice to have a thread to put interesting hacks. Certainly not looking to redefine the wheel by any means.
|
|
|
|
02-14-2003, 12:54 PM
|
#14
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
Rep:
|
Yeah, actually I'd think most of us would be better off posting all of our suggestion into this thread:
http://www.linuxquestions.org/questi...threadid=27957
It's a thread dedicated to this, and is already much larger (and maybe a better) resource already
Just a suggestion
Cool
|
|
|
|
02-14-2003, 01:00 PM
|
#15
|
|
Member
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215
Original Poster
Rep:
|
Sounds good to me 
|
|
|
|
| Thread Tools |
Search this 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
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Tip: Choose less
|
azucaro |
Linux - Newbie |
6 |
04-24-2005 03:41 PM |
|
Qwik tip
|
hirts123 |
Linux - Newbie |
5 |
02-01-2005 01:53 AM |
|
Just a tip!
|
boza |
LinuxQuestions.org Member Intro |
1 |
07-20-2004 08:30 AM |
|
Quick Tip
|
Looking_Lost |
LQ Suggestions & Feedback |
2 |
02-20-2004 05:12 PM |
|
Digicam tip
|
saavik |
Linux - Hardware |
2 |
06-29-2003 04:09 AM |
All times are GMT -5. The time now is 01:56 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|