Linux Blog

Halloween Pumpkin

Filed under: General Linux — TheLinuxBlog.com at 12:15 am on Friday, October 30, 2009

For Halloween this year every department at work was asked to carve or decorate a pumpkin. Since I’m in IT I thought I’d take the task of decorating our pumpkin with something IT related that would scare the crap out of everyone. Most of our end users are actually Windows users, so this pumpkin should be especially scary to them.

I introduce the B.S.O.Dkin, yes it’s a B.S.O.D pumpkin

B.S.O.D Pumpkin.

B.S.O.D Pumpkin.

I’d like to say it looks better in person, but it really doesn’t. I don’t really have an artsy knack for carving or painting pumpkins or I could have done something a lot better.

I guess my “Halloween Costume” is a blue Mexican wrestlers mask, blue t-shirt, and jeans to complete the B.S.O.D theme. With as much hate as I’ve been giving Microsoft recently I’m going to have to keep my fingers crossed for no kernel panics. Karma might bite me.

Remotely Changing Windows Volume

Filed under: Shell Script Sundays — TheLinuxBlog.com at 2:41 pm on Sunday, October 18, 2009

This is not really “shell scripting” but the end result is some more bash scripts in my bin directory so what the hell? It’s going in the shell script section because its Sunday. So what?

I like to listen to music on my Windows box while I work on my Linux box. Online radio and other sounds, just get in the way too much. One of the things I wanted to do for a while was remotely control my volume so I didn’t have to use my KVM to switch over to change the volume when ever anyone came in my office.

Its actually pretty easy to control your windows volume from Linux.

At first I thought, I’d create a dummy audio device, and some how map it over. Then I figured that was overkill and I’d try something a bit easier. I have SSH via Cygwin, so all I needed was a way to control the volume locally, and I could execute the command with SSH. Having no volume utilities jump at me when I looked through the Cygwin repositories I went to look for something else.

NirCmd is an awesome utility, giving me and other Windows users the ability to do things that Linux users may take for granted, you can read about it here: http://www.nirsoft.net/utils/nircmd.html after installing it, and making sure that my corporate AV didn’t throw a hissy, it was just a matter of dumping some scripts in my bin directory and chmodding them so they would run.

Here is what they look like:

Volume Down Script: ssh windowsbox -l owen -C “nir changesysvolume -2000″

Volume Up Script: ssh windowsbox -l owen -C “nir changesysvolume 2000″

Mute: ssh windowsbox -l owen -C “nir mutesysvolume 1″

Unmute: ssh windowsbox -l owen -c “nir mutesysvolume 0″

Real simple, and the mute/unmute really comes in handy for when some one walks into my office.

Red5 On Fedora 11 Howto

Filed under: General Linux — TheLinuxBlog.com at 9:05 am on Tuesday, September 22, 2009

This is how I quickly set up the Red5 streaming server for testing and evaluation. It worked on Fedora 11 and older Fedoras, and it might work on other distributions, or it may not. Here’s how I did it.

Downloaded the latest Java JDK:

(Read on …)

Microsoft Jokes!

Filed under: The Linux Blog News — TheLinuxBlog.com at 3:07 pm on Tuesday, August 25, 2009

I’m not normally one to just flat out bash Microsoft or trash them for their flaws, but sometimes I do enjoy a good Microsoft Joke.

Here are I know off the top of my head:

Q: How many Microsoft Engineers does it take to change a lightbulb?
A: None its obviously a hardware problem

A helicopter was flying around above Seattle when an electrical malfunction disabled all of the aircraft’s electronic
navigation and communications equipment.


Due to the clouds and haze, the pilot could not determine the helicopter’s position. The pilot saw a tall building,
flew toward it, circled, and held up a handwritten sign that said “WHERE AM I?” in large letters.

People in the tall building quickly responded to the aircraft, drew a large sign, and held it in a building window.
Their sign said “YOU ARE IN A HELICOPTER.”

The pilot smiled, waved, looked at his map, determined the course to steer to SEATAC airport, and landed safely. After
they were on the ground, the copilot asked the pilot how he had done it.

“I knew it had to be the Microsoft Building, because they gave me a technically correct but completely useless answer!”

They’re terrible I know… Terribly *FUNNY*. Post your favorite Microsoft Jokes in the comments or tweet them to @LinuxBlog and I’ll include them here.

Searching for multiple strings with grep

Filed under: Shell Script Sundays — TheLinuxBlog.com at 9:36 pm on Sunday, August 23, 2009

Sometimes when using grep it’s nice to be able to search for more than one string in a file. It’s actually pretty easy to do, if you can remember the simple syntax. Basically, you pipe the terms together in double quotes and escape the pipe.

grep “gnome\|kde” install.log

The above example will search for gnome or KDE. It works for more more than one term, and also works with the invert match -v option, to exclude lines that include gnome or kde.

Todays article extra short, and late, but better late and short than none at all I guess.

Free issues of BSDmag / Linux+

Filed under: General Linux — TheLinuxBlog.com at 9:56 am on Friday, August 21, 2009

Thanks MG for giving the tip on some free issues of BSDmag / Linux+. When I went to check them out they were older articles (Fedora 6) on Linux but some interesting topics and still some relevant information. The BSD issues were newer. If your interested in the articles, you can read the comment on the Tether iPhone through the cable, on Linux post, or hit the jump. Here is a list of the free issues:
(Read on …)

Tether iPhone through the cable, on Linux

Filed under: General Linux — TheLinuxBlog.com at 10:02 am on Thursday, August 20, 2009

So you got an iPhone huh? perhaps you’ve got an SSH client and maybe you jailbroke your iPhone and have done some iPhone wifi tethering (That’s not the best way, and not free), but have you been able to use SSH through the cable? Me neither until a little while ago.

The benefits of connecting by the cable are slightly obvious to anyone who wants to do it:

BATTERY!
With your phone plugged in, you’ll get better battery life, or perhaps just prevent the battery from getting discharged any further.

No Wifi Setup
This was really the biggest problem for me, having to reconfigure wifi on my laptop then getting the laptop and phone to talk. Some times wireless connections mysteriously dropped or just acted plain funky. Any one who’s ever typed in a WEP key on the iPhone also knows what a pain it is, so not having to use Wifi is a plus.

Privacy
Since the cable is used, there should be no wireless network for others to fool around with.

Data Transfer Rates
I have not yet confirmed this, mostly because I’m lazy, partly because I don’t have the time to produce any stats but, 480Mbps with USB2.0 Vs. a theoretical 54Mbps on 802.11G

Enough already, how do I do it?
Thanks to Jing Su there is a LGPL’d piece of software called itunnel that can be found here. Installing itunnel will vary by distribution. It’s fairly straight forward on Fedora, provided you have the library libiphone installed you should be able to download, untar, make, and run.

Once you’ve installed itunnel, you run it by using:

sudo itunnel <port>

If you don’t specify a port it listens on port 3023.

Connect to localhost using your normal SSH Socks proxy method -D <port> and your username, default being mobile with your new port.

 ssh -D <yourport> -p 3023 mobile@localhost

Type “Yes” to accept the fingerprint (you may need to eventually change your fingerprint when you upgrade your phone) and then type in your password which should NOT be “alpine”, because you did change it right?

Once you’re SSH’d in, you can set up your browser to use the socks proxy as you would with Wifi tether version on the port you specified with -D.

There you have it, a way to Tether your iPhone through the cable on Linux! Rumor, (well not really a rumor, since I’ve used itunnel.exe) has it that this also works with a Windows box, just try to find a non-virus infected version of the iTunnel suite.

Happy Hacking!

CPU Flags and Meanings

Filed under: General Linux — TheLinuxBlog.com at 11:38 pm on Tuesday, August 11, 2009

Having a brain that is somewhat comparable to a sift for remembering acronym’s, I’m always asking a friend which (I, probably incorrectly call) CPU extension is for virtualization. So I figured I’d blog about this topic. This page CPU feature flags and their meanings clearly explains each of the flags that may be on your machine, which you can check what your CPU supports by typing:

cat /proc/cpuinfo | grep flags

Secure Virtual Machine. (AMD’s virtualization extensions to the 64-bit x86 architecture, equivalent to Intel’s VMX, both are also known as HVM in the Xen hypervisor.)

So to answer my own question SVM and VMX are what to look for when considering a CPU for virtualization. My laptop supports VMX, but my desktop doesn’t. Considering I’d rather do my virtualization on my desktop, I’ll have to upgrade my CPU. Now all I need to do is find out where to find this information for AMD processors and hope I can get a CPU for my outdated socket type. I don’t even think that it is AM2 :(

It’s August Already?

Filed under: The Linux Blog News — TheLinuxBlog.com at 11:16 am on Friday, August 7, 2009

What’s up folks? I can’t believe that it’s already August. It seems like forever since I’ve updated the site, although in reality it has only been two weeks. I do have a bunch of content to write up, and some new features to implement to the site. As always if any one has any news, ideas for articles, wants to write some articles get in contact with me.

Some one told me that people like free stuff (who doesn’t?), so I’ve lined up some giveaways that some of you might be interested in. Atleast I hope so.

Tune in next week for more information!

Fedora Classroom – Go Learn something!

Filed under: General Linux — TheLinuxBlog.com at 11:46 am on Tuesday, July 21, 2009

Want to learn about Linux for free? Well, Fedora has a thing called the Fedora classroom which holds classes that teach a group about related technologies. As a casual Fedora user, I find the classes useful but I’m a little bummed that I’ve missed a couple of lessons that I’ve wanted to take in the past.

However tonight, at 9:00 EST (1:00 UTC) Kevin Fenzi is going to be hosting a class on PreUpgrade which is a pretty neat project. I might try to jump on if I get the time, if not it will be reading the chat logs and documentation for me.

For more information on any upcoming classes, or archives of old classes visit https://fedoraproject.org/wiki/Classroom and be sure to bookmark it for future reference.

I’d love to see video or slides along with the classes. Has anyone taken any of these classes or have any thoughts on them?

Sequences with seq

Filed under: Quick Linux Tutorials, Shell Script Sundays — TheLinuxBlog.com at 9:28 pm on Sunday, July 19, 2009

I’m going to keep this one short since time I’ve had a serious lack of time recently. If you need to free up some time by putting repetitive commands into loops, you can use the command seq.

Basically, you can use any generic loop such as the while or for loop. Here are two examples:

for i in `seq 1 10`; do echo $i; done;

seq 1 10 | while read i; do echo $i; done;

These both count and echo from 1 to ten. Replace the echo $i; with whatever it is you want to do. You can use sleep, to sleep for a number of seconds, and any other logic you wish here.

« Previous PageNext Page »