LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 02-13-2003, 05:40 PM   #1
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Rep: Reputation: 30
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!
 
Old 02-13-2003, 05:46 PM   #2
Slack_Master
Member
 
Registered: Feb 2003
Location: NYS--Near Hunter Mountain
Distribution: Debian-Sarge/Gentoo/Slack 9.1/Ubuntu
Posts: 109

Rep: Reputation: 15
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.
 
Old 02-13-2003, 05:47 PM   #3
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
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
 
Old 02-13-2003, 05:50 PM   #4
Slack_Master
Member
 
Registered: Feb 2003
Location: NYS--Near Hunter Mountain
Distribution: Debian-Sarge/Gentoo/Slack 9.1/Ubuntu
Posts: 109

Rep: Reputation: 15
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.
 
Old 02-13-2003, 05:51 PM   #5
Fingel
Member
 
Registered: Feb 2003
Location: 127.0.0.1
Distribution: Latest Ubuntu
Posts: 161

Rep: Reputation: 30
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.
 
Old 02-13-2003, 06:21 PM   #6
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Original Poster
Rep: Reputation: 30
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.
 
Old 02-13-2003, 06:23 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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
 
Old 02-13-2003, 06:27 PM   #8
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Original Poster
Rep: Reputation: 30
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?
 
Old 02-13-2003, 06:41 PM   #9
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
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
 
Old 02-14-2003, 03:44 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 02-14-2003, 04:04 AM   #11
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
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
 
Old 02-14-2003, 04:18 AM   #12
Glock Shooter
Member
 
Registered: Jan 2002
Location: Riverside, CA
Distribution: Slackware Convert!!
Posts: 210

Rep: Reputation: 30
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.
 
Old 02-14-2003, 09:22 AM   #13
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Original Poster
Rep: Reputation: 30
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.
 
Old 02-14-2003, 12:54 PM   #14
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 02-14-2003, 01:00 PM   #15
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Original Poster
Rep: Reputation: 30
Sounds good to me
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
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 08:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration