LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

MAC Mania

Posted 04-07-2011 at 02:01 PM by sag47
Tags syslog

Today I was having mac address problems. My corp network runs a mac filtered domain so in order to avoid the hassle of contacting IT (which are stupid) I simply copied the macs from other machines and issued them to my servers (I'm a technical head for my department). Well I didn't save the MAC address and the server was shutdown when we moved it which blew away the mac. What did I do? Search the logs for every MAC address ever.

Code:
find . -type f -print0 | xargs -0 grep -iH '\([0-9a-f]\{2\}[:-]\)\{5\}[0-9a-f]\{2\}\|[0-9a-f]\{12\}'
...
Senior Member
Posted in Uncategorized
Views 808 Comments 0 sag47 is offline
Old

Kernel Panic!

Posted 10-16-2010 at 05:30 PM by sag47
Updated 10-16-2010 at 05:31 PM by sag47
Tags syslog

Everybody dreads it. When you see it, it is difficult to know what to do. Luckily Unix provides utilities which allow us to traverse the filesystem and parse files quickly and effortlessly.

Here's a search command which will search all your log files for keywords such as shutdown, poweroff, and panic.

Code:
find /var/log/ -type f -print0 | xargs -0 grep -iH 'shutdown\|poweroff\|panic' | cut -d: -f1 | sort -u
This will allow you to narrow which log files you...
Senior Member
Posted in Uncategorized
Views 915 Comments 0 sag47 is offline
Old

openbox and repeating keys

Posted 10-11-2010 at 01:50 AM by sag47
Updated 10-11-2010 at 01:52 AM by sag47
Tags openbox

Recently I've been using openbox but it has been driving me crazy! Mainly because when you hold down a key it does not repeat like it does on all other WMs and OSs. After googling around forever I found I can enable my auto repeating keys in ~/.config/openbox/autostart.sh with the following code.
Code:
xset r on
Handy.
Senior Member
Posted in Uncategorized
Views 3027 Comments 1 sag47 is offline
Old

Batch convert images to PDF

Posted 10-10-2010 at 05:48 AM by sag47
Updated 08-11-2011 at 01:10 AM by sag47

Recently (within the past year) I have helped a user with a problem converting hundreds of images into individual PDF files. I was pleasantly surprised to find imagemagick to effortlessly do this.

Command line tool imagemagick does what you need if they're images.
Installation:
Code:
sudo apt-get install imagemagick
Usage: (coverts all images into one pdf)
Code:
convert *.jpg foo.pdf
Usage: (converts each image into an individual pdf)
...
Senior Member
Posted in Uncategorized
Views 2982 Comments 1 sag47 is offline
Old

3 easy ways to create ridiculous passwords

Posted 08-17-2010 at 08:12 PM by sag47
Updated 08-17-2010 at 10:40 PM by sag47
Tags security

A password can be easy to create if you use the right devices to remember it.

Method number 1: use a sentence
For example your password could be a sentence:
Code:
Ilovemydogfoofie
Dictionary attacks only work if your password is a single word. For that previous password a dictionary attack wouldn't work so a cracker would either have to resort to rainbow tables or brute force.

Method number 2: start and end all passwords with the same sequence....
Senior Member
Posted in Uncategorized
Views 820 Comments 0 sag47 is offline

  



All times are GMT -5. The time now is 09:41 PM.

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