So I had the unfortunate task of installing a new kernel module that required the kernel source to build (insert sarcastic cheer here lol). When I went to run "./configure" the module kept barking about needing the kernel source. "No problem" I thought, "I'll just head over to the RHEL download site and download the kernel RPM file, rpm -ivh the file and Bob's your uncle right!!!"... wrong, very wrong. After a bunch of fiddling around I found the solution (assuming your local satellite server/repo still has it).
yum -y --disableexcludes=all install "kernel-devel-$(uname -r)"
[Note: you may not need the --disableexecludes=all, but if your system blacklists such things, then there ya go!]
~Enjoy!
Showing posts with label Linux Tricks. Show all posts
Showing posts with label Linux Tricks. Show all posts
Monday, July 28, 2014
Wednesday, July 9, 2008
How to check what is running on your system
Ok if you have ever looked over the shoulder of a linux person goign to town you may have seen something like
so here is what is really going on in that command
The ps command tells you what processes are actually running. In the manual it actual says that it gives you a snapshop of what is running on the system.
says print all processes owned by a user named "x" this could be changed to specify a specific user
The "|" or pipe symbol says to this command and this other command together
"grep" is a filter. If you were to simply type "ps" you woudl get a screen full of processes running for your user. By adding the "|" along with "grep" you can filter those processes down to what you need. In this case we looked for "cron" jobs (scheduled tasks). That can of course be changed to anything else you may need to check on.
So to say it all together the command
Hope that helps!!
ps -aux | grep cron
so here is what is really going on in that command
ps
The ps command tells you what processes are actually running. In the manual it actual says that it gives you a snapshop of what is running on the system.
-aux
says print all processes owned by a user named "x" this could be changed to specify a specific user
|
The "|" or pipe symbol says to this command and this other command together
grep
"grep" is a filter. If you were to simply type "ps" you woudl get a screen full of processes running for your user. By adding the "|" along with "grep" you can filter those processes down to what you need. In this case we looked for "cron" jobs (scheduled tasks). That can of course be changed to anything else you may need to check on.
So to say it all together the command
ps -aux | grep cronis actually telling the computer to show all processes under any user that specifically deals with cron.
Hope that helps!!
Thursday, July 3, 2008
Geeky way to send a terminal message to a user
How to send someone a message over linux or unix
Step 1: Type who to find out what port they are on (the pts with the number is the port)
Step 2: cat >/dev/ptx/y
Step 3: type message
Step 4: press: "Ctrl + d" to end
***could also use the "write username [then optionally pts/terminal#]
Step 1: Type who to find out what port they are on (the pts with the number is the port)
Step 2: cat >/dev/ptx/y
Step 3: type message
Step 4: press: "Ctrl + d" to end
***could also use the "write username [then optionally pts/terminal#]
Subscribe to:
Posts (Atom)
