Showing posts with label How-To: Linux. Show all posts
Showing posts with label How-To: Linux. Show all posts

Saturday, November 21, 2009

Moving from headless to modded-NAS

So, in an attempt to de-clutter my office area with my webserver, I did some digging.

Seems like most of the older Western Digital MyBook World Editions come preloaded within linux, and have a pretty hefty following for modding the flash to support various features.

I dig it.

And by the way, did I mention that it comes with a gig-ethernet port, and USB port? We'll get to why both are handy in a sec...

So, I purchased a 500GB one, pretty cheap actually. Just do some checking around on Google -- the one I found was refurbished, and ran about 80$.

A good go-to guide.

Looks like it could solve my issue of having a stranded USB printer in my closet upstairs. Assuming this doesn't put out too much heat, I can put it up in my pretty-airy closet upstairs next to the printer, and then use a modded WRT54G to connect it down to my wireless router downstairs.

Spiffy!

Tuesday, May 5, 2009

This one's for the Kids!

Got any old PCs lying around, and maybe some children too?

Here's a harmless OS for kids that lets them play without messing anything up! Best of all, it only requires a 400MHz processor with 256MB of RAM and no harddrive space if you want to run it from the CD!

Let me know if you give it a go!

Run Linux Inside of Windows

Here's how you run Ubuntu inside of Windows:

Please let me know if you try it, I haven't yet, but it looks AWESOME!

Monday, April 13, 2009

Disabling the FreeBSD "beep"!

After about a day worth of searching and modifications that did nothing, I finally found a way to disable the beep in FreeBSD:

`set nobell`

I have verified that this works for csh (barf!) and I put it in my .cshrc file so I never get that stupid beep again!

Thursday, February 12, 2009

Bluetooth Rocks!

So I have been meaning to read up on this article I came across with Bloglines about 3 and 1/2 months ago (yeah, it's been a little while!)

It's a way for me to control my PC via my N810. I can control my mouse, keyboard, presentations, even media.

Here's the link to the site/article.

Saturday, February 7, 2009

Dust off that ol' jukebox!

Got an old computer?
Want a music server?

VortexBox is here to save the day!

It's a great app that you can use to turn an old machine into a music server. Once this is installed, just pop your CD in the drive, and it rips it automatically!

Wednesday, January 14, 2009

Live CD Booting

I've been trying to come up with a solution to the failing hard drive problem that haunts the every-day computer user.

The first solution was a bootable USB flash drive. Pretty nice, especially if persistent data storage can be achieved.

I ran into a problem with this solution when I attempted it on an old machine that could not boot USB flash drives. This lead me to the "persistent storage" feature of Knoppix, which allowed me to boot the OS from the CD and then load the data from a flash drive. This worked well, but either I did it wrong, or I misunderstood it, because I can't get the persistent data to persist.

My next adventure led me here where I found that you could make a bootable CD which allowed you to boot from the flash drive.

That is where I am now, hopefully we can see some positive results from this one...

Thursday, December 11, 2008

UNetbootin

I need to setup a couple of DNS servers. Because they are DNS servers, performance isn't critical, so I would like to employ some older machines (does that count as green?)

These servers will be headless and since one of the easiest pieces to fail (because it's one of the few components that have mechanical parts) is the hard drive, I would like to eliminate it altogether.

I've booted diskless clients before, and it wasn't as easy as I'd like it to be. Also, that just moves the onus of the hard disk failure to another machine, it does not eliminate it.

The solution I've come up with is to boot from a USB flash drive. The biggest issue with this is persistence of my settings, but they've pretty much taken care of that recently.

I'm going to use UNetbootin to accomplish the installation of the OS to the USB drive.

I also think I'm going to use DSL for the OS, as it seems to be recommended by this post.

Sunday, December 7, 2008

7 Deady Linux Commands

If you haven't already, you might want to make yourself aware of these 7 Deadly Linux Commands.

These range from wiping out your home directory to "total loss of data".

I had no idea that `:(){:|:&};:` could be so bad. :-/

Saturday, December 6, 2008

Darik's Boot and Nuke

Waiting for that special moment where you need to wipe everything off your hard drive?
Yeah, me too.

Not wanting to spend the money for the Fujitsu 500GB drive that can erase itself entirely in under a second!

Here's an easy way to do it.

Be careful, this isn't a toy. If you do boot this CD, it will nuke your machine.

Friday, December 5, 2008

Backup Directory to CD or DVD

Here's a quick way to backup a folder or directory to an ISO:

mkisofs -V LABEL -r directory | gzip > cdrom.iso.gz

Friday, August 15, 2008

How do I change a MAC address?

Change those MAC addresses so you can do some real network manipulation!

How do I change a MAC address?

Thursday, March 6, 2008

Linux keyboard shortcuts

Check it out:
You're in the linux terminal doing whatever and decide you want to undo whatever you just did. So you hit CTRL+z -- WAIT! This isn't Windows, so now you have:

[1]+ Stopped vim crazyFile
>

Now what?
I'll tell you what -- try `fg`.
Viola!

Find more at Linux keyboard shortcuts

Wednesday, October 24, 2007

Bash Shell Scripting

Good ol' bash shell scripting reference.

kd7yhr.org:bash

Hardening Linux

Most of this stuff is probably fairly straightforward (i.e. disable unused services, close unused ports, etc.). But it never hurts to make sure you're checking all the basics.

iTWire - Hardening Linux

Switching your Linux systems to the new DST

Think the timezone problem we had at the beginning of the year was bad? Well, it's not over...we have to get off of it now!

Switching your Linux systems to the new DST

Graphically analyze your boot sequence

Speed up the boot process, or at least find out why it's so slow!

Linux Tip: Graphically analyze your boot sequence

Gently Restart a Frozen System

Don't go pushing that power button too quickly...

Linux Tip: Gently Restart a Frozen System

Setting Up A Central Syslog Server

Syslog is pretty cool.

Setting Up A Central Syslog Server - Make sure you have traceable evidence if anything goes wrong. - Softpedia

Network interface configuration commands

Configuring network interfaces can be confusing on different OS'es:

For IPv4 addresses:

Linux
ifconfig interface address netmask netmask

Linux iproute2
ip addr add address/prefixlength dev interface

FreeBSD
ifconfig interface address netmask netmask

OpenBSD
ifconfig interface address netmask netmask

NetBSD
ifconfig interface address netmask netmask

Solaris
ifconfig interface address netmask netmask

Darwin (MacOS/X)
ifconfig interface address netmask netmask

Windows
netsh interface ip set address interface static address netmask


For IPv6 addresses:


Linux
ifconfig interface add address/prefixlength

FreeBSD
ifconfig interface inet6 address prefixlen prefixlength

OpenBSD
ifconfig interface inet6 address prefixlen prefixlength

NetBSD
ifconfig interface inet6 address prefixlen prefixlength

Solaris
ifconfig interface inet6 plumb up
ifconfig interface inet6 addif address address


Darwin (MacOS/X)
ifconfig interface inet6 address prefixlen prefixlength

Windows
netsh interface ipv6 add address interface static address/prefixlength

tinc Manual: 7. Platform specific information