Archive

Archive for the ‘Linux’ Category

Growing an LVM + EXT3 Partition

November 5th, 2008 Mike No comments

I do this often enough, so I might as well make my life easier and document it! The following example grows a partition by 500MB:

lvextend -L +500M /dev/mapper/VolGroup00-LogVol0
resize2fs /dev/VolGroup00/LogVol03
Categories: Linux Tags:

Automatic Reboot after Kernel Panic (Ubuntu)

June 17th, 2008 Mike 2 comments

I don’t know why Ubuntu server doesn’t have this enabled by default, but you should add the following to /etc/sysctrl.conf:

kernel.panic=60

This will automatically reboot your server 60 seconds after a kernel panic.

Categories: Linux Tags:

fish:// and SSHFS

September 23rd, 2006 Mike 1 comment

I’m probably the last KDE user to find out about this, but if you have access to an SSH server somewhere, open up Konqueror and type this in the address bar:

fish://your-server.com

It’s just like managing files on a remote Samba share, only it’s done completely over SSH!

Unfortunately, fish:// only works from within KDE applications, but that’s where SSHFS (Secure SHell FileSystem) comes in. With this tool, you can easily mount any remote filesystem over SSH for access by all of your applications. Goodbye FTP!

Some people may be interested in WinSCP, which provides similar functionality on Windows.

Categories: Linux Tags:

Appending command output to a timestamped logfile (Linux vs Windows)

April 28th, 2006 Mike 1 comment

In Linux, it’s easy to log the output of a command to a timestamped log file:

echo this is easy >> $(date +%s).log

Here’s what I had to do to accomplish the same thing in Windows:

for /f "tokens=1,2,3,4 delims=/- " %%a in ("%date%") do set ts=%%d%%b%%c
echo this sucks >> %ts%.log
Categories: Linux, Rants, Windows Tags:

LinuxWorld

April 6th, 2006 Mike 4 comments

I just got back from LinuxWorld in Boston, and I have to say that it wasn’t nearly as geeky as I expected it to be. Judging from pictures I’ve seen from previous LinuxWorlds, I expected it to be like a circus, but I think I saw more business guys in suits than overweight guys with beards. I guess it’s a testament to how mainstream Linux has become over the last few years.

Observations:

  • Too many companies staff their booths with hot girls in attempt to get people to notice their products (eg: VMWare). These were the booths I tried to ignore, just to teach them a lesson!
  • Slashdot was there, but they didn’t have a booth (that I could see); just a bunch of couches and a projector which they were using to play video games on. What was the point? I have no idea.
  • I think the Gentoo booth was staffed with some of the most stereotypical geeks I’ve ever seen in my life. Whenever I’m feeling uncool, I’ll just think back to what I saw at the Gentoo booth. ;-) Sorry Gentoo guys! I still love your distro!
Categories: Linux Tags: