No, my example doesn't slurp up more than one line at a time. Tacking on your 0774 hack will work for that. I was just demonstrating my preferred method for doing one line, in-line search and replace stuff using xargs, to keep it nice and pipey.
!! is handy when you've left out part of the command, e.g. sudo !!, versus hitting up and then the home key to go to the start of your last command.I should internalize more of the wonderful powers of !, but for !! I just use up arrow.
Another of my (less used) favorites is ^
example:
$ ps -ef |grep apache
$ ^apache^foo
(reruns last command, replaces the word apache with foo)
Today's project: Installing Arch Linux ARM on a 2TB Seagate GoFlex Home.
I went shopping for some backup expansion space and found this thing, which is a 2TB SATA drive that plugs into a stand that's actually an ARM computer with the SATA on top and a Gigabit Ethernet port and USB port on the back. I was checking to make sure it didn't have some sort of proprietary system that made it unusable with Linux clients and found that you could go ahead and just run Linux on the thing. Well, technically it runs Linux to start with, but this will make it my Linux instead of Seagate's and allow me to do neat things like make it a media server and have it run transmission without having to leave a computer on all night.
Update: arghh. So after following these instructions:
http://archlinuxarm.org/platforms/ar...te-goflex-home
I reboot and it won't talk to me. I go look at the router to see if it's online and find that the little blurry character in the MAC address I decided must be a 6... was a 5. Should have looked at the router to begin with. Bummer. To the help forums to see how to un-brick it.
Update 2: It seems the teenager decided, somewhere in the middle of the install, to pick up the unmounted hard drive and insert tab a into slot b. He showed no signs before of being an ignoramus who should be kept away from sharp objects, but I'm beginning to wonder.
Last edited by Hayduke; 06-28-2011 at 05:44 PM.
sudo open the pod bay doors, HAL.
You might find this helpful if you haven't seen it already:
http://blog.philippklaus.de/2011/04/...e-goflex-home/
!
Had not seen that. The instructions look a bit more complete. Trying to figure out why the instructions would skip things like logging in as root and unmounting the drive. Not a problem once you figure out that's what you have to do, but why didn't they say so. When someone gives me line-by-line instructions like I'm looking to cut & paste.
Trying to figure out the difference between Plugbox and Arch Linux Arm. The Plugbox instructions are for putting the OS on the hard drive (which makes sense), but they tell you to mount the drive on another system to set it up (PITA). The Arch instructions recommend putting it on a USB flash drive (easier, semi-ugly).
Anyway, I don't know what the issue is, but I can't even get it to boot up on a rescue drive. I even tried the factory instructions for a return to factory settings (linked from your page), but the lights don't react the way they describe. Regardless of what I do, I get a continuous flashing green light. Think I'm going to have to opt for the "retail reboot" option I paid extra for by buying it local. Let Seagate figure it out.
sudo open the pod bay doors, HAL.
Hope you figure it out.
That Go Flex looks pretty nice assuming it works. If I got mine, I'd need it to work with both Ubuntu and Windows machines.
You said you got it local--do you mind if I ask how much you paid for the 2TB? Was it on sale somewhere? I'm in the market for this sort of thing.
!
Office Depot on Broadway is where I go to get stuff like this. Brad (the big guy) in the tech department there knows his stuff and, even better, doesn't make shit up when he gets out of his depth on a topic. A refreshing change from most computer retail.
Didn't get the best price. $189 for the 2TB (the 3TB is $229). I saw it online for as cheap as $159, but not sure what that would be with shipping. This worked out to be a better deal because instead of looking up return policies right now I'm unwrapping a fresh one.
sudo open the pod bay doors, HAL.
Please let me know how the setup goes on the new one. Wear your glasses when reading the mac address! Are you going to be using it with Windows AND linux machines, or would that get into a whole new mess?
!
It may actually work with Ubuntu right out of the box as a file server and backup. It comes with some crippleware for Mac & Windose for the backup, but a server is a server, so you ought to be able to set it up to do whatever you needed. There are Windows machines on the LAN, but I used the VirtualBox TinyXP to avoid mucking up anything with all the extra software.
One thing it's not is superfast backup. The USB port is not an appliance port, but a PC port for plugging in additional storage, etc. All the file transfer is over the network. Gigabit speeds if you happen to have such a router, but I don't. For making it a media server I'll hook up an external drive to it and copy stuff over that way, but for backing up the computers it may be an overnight kind of process.
The new one is up and running under factory settings. Just trying to get up the nerve to try it again. I'm reading the MAC straight from the router, so no issues there. I'll lock the kid in a closet and be ready to go. I need to get this going so I can do some backups, but I want to do some more research to make sure I'm using the best version and procedure.
sudo open the pod bay doors, HAL.