Posts

SSH Auto Login Using Putty

SSH Auto Login Using Putty

I once had a person tell me that the most successful individuals in IT are lazy.  Years after hearing that, the notion has stuck with me and translates into much of how I attach problems.

If you’re like me, you use putty to connect to servers via SSH frequently. Now, I know that you can use key based authentication using puttygen, but in the scenario that you don’t want to go that route, you can use the method below to create windows shortcuts to automatically log into a host using putty.

Continue reading “SSH Auto Login Using Putty”

Change the Author of Multiple WordPress Posts

Change the Author of Multiple WordPress Posts

Disclaimer: This idea requires access to the shell on your webserver.

This is the SQL query you’ll use:

I had posts that were assigned to Admin (which by default is user ID 1), and I wanted to assign them all to my user (which in this case is user ID 2).

My query looked like this:

That will go through the posts database and update the author for all of them.


Jon

Back Again

Back Again

Sometimes I wonder how the content for this blog still exists…  I started this blog more than 3 years ago using Drupal, and since then I’ve converted the SQL to be used with wordpress, and had numerous problems that could have caused me to lose everything.  Somehow I still have it, and I’m happy that I do.

I have to say that this version of wordpress is so much better than the version I was using before (which was 2.1)

Anyways, look back for some new posts coming.

SSH Local Port Forwarding Made Easy

SSH Local Port Forwarding Made Easy

I’ve been using this for a while now, and have found it a great little trick for accessing services that are blocked due to a firewall.

It’s pretty simple, you just have a few parts to the command string.  The first command argument tells ssh to forward a local port (LP) to a remote machine Remote) on a remote port (RP).  The second part is something you’re probably familiar with, the destination that you’re connecting to (Destination).

An example with the abbreviations above would be:

Say for example, you ran the command “ssh -L 1234:myInternalServer.com:80 myExternalServer”.  In order to access port 80 on myInternalServer.com you’d open up your web browser and point it to http://localhost:1234.  It’s as easy as that!

Problems with AllPeers in Firefox

Problems with AllPeers in Firefox

I found out recently, like a lot of people, that the AllPeers Firefox extension went Open Source. So naturally, I realized the hype it created and installed it.

Unfortunately, I never tested it, because none of my friends wanted to install it, so there it sat right there in my Firefox installation, dormant. It wasn’t until today that I had problems with it.

I restarted my computer today, and tried to start up Firefox, and it did nothing… So I started up the console, and started Firefox. It started starting up fine, with loading of AllPeers, then had a segmentation fault error…

I ended up having to remove the extension finally. To do this use the following steps:

  1. Open up your terminal emulator
  2. Navigate to ~/.mozilla/firefox
  3. There should be a directory there that has a bunch of seemingly random characters. Mine’s tr1d6tmr.default. Navigate to that directory.
  4. Navigate to the extensions directory.
  5. Execute ‘find ./ | grep peers’ and delete the directory things were found in.

Now if you were having the same problems as me, you should be able to start Firefox again!

Jon Howe

Howto: Convert NRG Files to ISO Files

Howto: Convert NRG Files to ISO Files

I recently got a couple fo CD images from a friend in the NRG format, and wanted to burn them to a couple of CD-R’s. Here’s the process I used to do this:

Then just use k3b, gnomebaker, or your favorite CD Burning software to burn the ISO.

Jon

HowTo:  Use Find on Linux to Execute Commands Recursively

HowTo: Use Find on Linux to Execute Commands Recursively

I just used the best music player on the planet to organize my music really nicely. It organized them by filetype, first letter of artist, artist, and album. The problem was, it left some dangling folders that I wanted to delete so my library looked clean on the filesystem. So I decided to use a little bit of linux command line fun to get the folders removed.

Continue reading “HowTo: Use Find on Linux to Execute Commands Recursively”

Copyright VirtJunkie.com © 2024