I don’t know why this hasn’t already been posted all over the interwebs, so I thought I’d post it here. It’s amazing how some of the simplest answers never seem to make it into prominence in the Google search rankings.
Anyway, after cloning a VM today in Xen, I tried to start the DomU, and got [...]
First, a little background…
The classic procedure for installing drivers to a printer shared via CUPS with a raw Samba frontend, usually is roughly something like this:
Create printer in CUPS
Open shared printer properties in Windows
Install drivers via Advanced tab
For me, this worked great, most of the time, assuming that the driver was either PS or PCL5(e). [...]
Say you have an internet radio stream that you like to listen to. You like to actually get up from your computer once in a while and go outside, so you want to play it on your iPhone/Blackberry/G1/Treo/Centro/Pre/Whatever as you’re out and about. But wait! Due to poor decision making by your beloved stream provider, [...]
First, use conntrack to correctly identify your entries:
conntrack -L -s 172.16.1.45 -d 123.123.123.123
This should display any connections that came from the internal IP of 172.16.1.45 destined to 123.123.123.123
Once you have confirmed the connections shown are the ones you with to delete/reset, paste the following after the command from above:
conntrack -L -s 172.16.1.45 -d [...]
It’s infrequent enough that I have to do this that I forget how. So to help me remember, I’m posting it here:
To make your permissions changes to devices in /dev/ survive reboots and become permanent, you need to alter the device permissions in
/etc/security/console.perms.d/50-default.perms
So for example, say I have a created a group that holds [...]
If you’ve ever tried to parse the output of "uptime", you know it can be complicated. There’s a simpler solution: Use the raw numbers from /proc/uptime. Here’s a simple script that spits out the days and remaining time in digital clock format:
cat /proc/uptime | awk ‘{printf "%d%s%.2d%s%.2d%s%.2d%s" , $1/86400 , " days, " , [...]
If you’ve got a crashed disk, dd_rhelp is a very
useful tool for quickly recovering a large amount of data from just
about any failed disk. I used it earlier this week to help recover a
160GB linux LVM group member drive. Unfortunately, after a while of
running, it hit this error:
dd_rhelp: error: add_chunk : invalid argument ‘0-(info)’ [...]
The default setup for Hylafax is to drop faxes into an email and send them off to the "FaxMaster". This weekend I needed to stop hylafax from doing that, and instead just drop it into a folder. Best I can tell after a few hours of searching Google and perusing code, hylafax on it’s own [...]
When setting up PHPNuke, you really have to remember to turn on captcha checking for registrations first thing in config.php (gfx_chk). If you don’t, you’ll get pummeled with comment spam in a matter of hours.
If, like me, you messed up and forgot to, you’ll have to delete those bogus accounts, and delete the comments. [...]
I just got Tiny MCE updated on MuchTall and I just thought I’d pass the update instructions on
1) Download and unpack Tiny MCE from http://tinymce.moxiecode.com/download.php2) Move the folder /includes/tiny_mce to /includes/tiny_mce.orig3) Copy the new tinymce/jscripts/tiny_mce folder to /includes/tiny_mce4) Download this javascript.php.patch patch into /includes/5) Run "patch -p0 < javascript.php.patch" from within /includes/6) Open your PHPNuke [...]
A buddy of mine was recently setting up bind on his linux box and had an issue. His zone files wouldn’t load without spewing out errors:
Jun 8 10:33:05 server named: hisdomain.com:18: unknown RR type ‘host1′Jun 8 10:33:05 server named: hisdomain.com:19: unknown RR type ‘host2′Jun 8 10:33:05 server named: hisdomain.com:20: unknown RR type [...]
I recently had to re-install my PC and I decided to take the opportunity to freshen up my Firefox profile by abandoning my prefs.js file and only migrating settings and extensions as needed.
As part of this, I ran into an issue I dealt with a while back and had to look up once more.http://ffextensionguru.wordpress.com/2006/10/22/firefox-20-close-tab-buttons/
I don’t [...]
Disclaimer: Nevermind. Turns out that this only disables lookups on remote syslog entries (from another syslog host). Still looking for a solution on this one. Feel free to read on if you wish.
So this weekend, someone (as happens quite frequently) attempted to gain access to my server via the FTP daemon. No big surprise there. [...]
Some dumbass has been pummeling my ftp server with brute-force FTP attempts. So I’ve written a script that you can add to your cron tab to help you auto-ban them via hosts.deny. Pay attention to the variables as this was written on a RedHat 9 box and may not be entirely applicable to other platforms [...]
Just recently I got OpenVPN set up on my WRT54G (w/DD-WRT) to connect to the network at my workplace. However, I noticed that although the vpn tunnel was up, packets weren’t traversing it. For a while I thought it was some odd routing issue, but then I realized that the issue was with the firewall [...]
I recently updated Muchtall.com to serve RSS and Atom newsfeeds for the site. For more info on how to do this to your own PHP-Nuke site, click here:
RSS and Atom for PHP-Nuke
It’s not a linux tip, but it’s still a tip…
If you’re looking for an easy way to keep Spybot S&D updated and your system immunized, try this registry file which launches Spyboy S&D, updates, and immunizes in the background on logon.
Spybot AutoUpdate and AutoImmunize On Logon.reg
A few weeks ago at my job, we started up a new mini-branch in an existing office that was internet ready. We have many of our micro branches connect via VPN back to our main office. This worked find in all of our offices, except the new one. It turned out that something odd was [...]
Even though I use all Linux tools to make my ringers, with the exception of pvconv.exe (Wine handles that), this isn’t really a Linux tip, but I’ll put it here anyhow.
I’ve noticed when I create looping ringers for my Samsung N400 phone, I get a small gap in the sound between loops. Up until now, [...]
I got to thinking this last weekend that I need to build a better techie toolkit compilation CDs and CD sets. Basically get together all the software and updates that a dial-up user would spend days getting if I didn’t bring it to them. Here’s some ideas:
CD1: Utilities
AVG Anti-Virus Free (w/ updates)
AdAware (w/ updates)
SpyBot S&D [...]
|
|