Archive for the ‘Linux’ Category

What’s old is new again…

One more thing before I go tonight. I was alerted to the fact that the Jak Attack podcast is being produced and added to again. How exciting! Run on over and make sure to give a listen, They are already on episode 2 for this year! Tell my friends Jon and Kelly Penguin Girl that Linc says hi!

Listen to Jak Attack

Thursday, January 5th, 2017

New Laptop! Dell Inspiron 7000 13-7378

Amazing. Amazing on two fronts. First that I have actually gotten off my bum and decided to make another post, and secondly that I have finally decided to pull the trigger on getting a new laptop.

I am one of those guys who likes to talk himself out of making a purchase, even though I need it. I have been working with some pretty old equipment for a long while. Using two old Dell laptops, one of which has a bad (dimming) screen, and the other whos dvd drive and sound card have blown out. Of course the parts are not interchangeable between the two. Well, at Christmas time I finally decided (my Mom talked me into it) that maybe since I spend most of my life banging on my computers that I ought to just go out and get a decent one to use.

I actually decided on a 13 inch Macbook Air, which is really a pleasure to use, runs linux just fine (of course I would run linux on it) and is aesthetically pleasing, light and durable. Well, it just so happens that I had my wife shopping with me and she started looking at the Dell laptops and saw one that was similar in look and specs to the Apple and a couple hundred dollars cheaper (bingo!).

This Dell is a 13 inch 2 in 1 i7 laptop encased in aluminum with 12Gb ram, 256Gb ssd, backlit keyboard and a *gorgeous* high def display. It has all the usual ports and, like you would expect, everything works right out of the box with linux. I am running Mint 18.1 on it at the moment and couldn’t be happier. Now not only can I see what I am doing, but I can hear sound on the laptop too! Having good battery life is another bonus with a new laptop 😉

If you are looking for a really sweet deal on a darn good new linux laptop, definitely go give this one a look. I found it for $700 at BestBuy and it was the last one they had in stock. Plenty of the i5s and i3s still there though, of course 😉

Thursday, January 5th, 2017

Replace HD in Dell Inspiron N5110

I am no stranger to replacing bad equipment in servers, desktops and laptops, but some laptops don’t make it easy. This was one.

A couple years ago I swapped out an aging hdd in an older Dell Inspiron with a new ssd and, boy, the performance improved drastically. Lately, I have been using a new(er) Inspiron, an N5110 and have noticed that it sure took a while for things like bootup and Chrome to initially load. It was really starting to annoy me, so I looked up the specs on the original hdd and found that there was a squirrel in there pounding out the bits with a chisel, so I decided it was high time for a modern drive and splurged on a 240Gb ssd. I assumed that this was a simple pull the panel off the bottom and swap kind of procedure like the old Dell, so I pulled off the hdd sized panel and boom. The only thing under there was more plastic and a small memory slot???!!

Not to be outdone I turned to youtube, just like an self respecting techie would and was pleased to find some instruction there. You can find the video i used here if you are interested:

That is where is starts to get fun. Apparently you have to disassemble THE ENTIRE LAPTOP to get the hdd out. You have to pull out the battery, memory, all the screws on the bottom, the dvd drive, then flip the machine over and pull off the keyboard, unscrew and pull off the top plate and all the ribbon cables, then unscrew and remove the entire motherboard and one of the monitor mounts. The hdd is underneath the motherboard. Unreal.

Believe it or not, after all that I only had one extra screw(?) and the laptop booted up on the first try. Now came the good part. How to get my existing Linux Mint install onto the new ssd. Normally I would have just used a disk cloning program or dd to do it but the old hdd was 500Gb and this new ssd is only 240Gb. There are also some complicated tutorials on the web on how accomplish this task but let me share with you the easy way.

Do a clean install of your OS. Really. With Linux it takes 15 minutes tops. Don’t bother with any of your configs or personalization. It’s a dummy install to not only get the partitioning correct on your ssd but generate the correct /etc/fstab file (or get the new uuids and make the correct partitions bootable.

Once you are done, boot into your install media again (I used USB because it was faster) and mount your new installation AND your old hdd (I used an external usb drive case for this). I made the directories I needed by doing (as root) “mkdir -p /mnt/newdisk ; mkdir -p /mnt/olddisk” and then putting things in place with “mount /dev/sda1 /mnt/newdisk ; mount /dev/sdc1 /mnt/olddisk”. I should mention here that my partitions were the default Mint layout with a big Linux partition first, then an extended partition, then swap, on both drives.

Once mounted I made a backup copy of the /etc/fstab on my olddisk (the hdd) and then I copied the /etc/fstab from the newdisk to the /etc/fstab on the olddisk. Now the fun part. Go to (cd) the /mnt/newdisk directory. MAKE SURE IT’S THE NEWDISK DIRECTORY, and “rm -rf *”. That is going to delete all the files you just installed. It’ll only take a second.

Next is the long part. I used rsync to copy all my old files over. If you aren’t a hoarder like me with six linux dvd isos in your download directory and 50Gb of music files, it’ll go a lot faster, but all the same, it’s pretty cool to watch. I did a “rsync -rvlpogdstHEAX /mnt/olddisk/ /mnt/newdisk”. Make note of those /’ in there or you’ll end up having to move stuff around afterwards. In retrospect, I think you could use just rsync -av, but ymmv. What you will see is every file on your old drive being copied to the new one. Like I mentioned, this takes a few minutes, just sit back or grab a coffee. Once it’s done you are *almost* ready.

The very last thing you’ll need to fix is your grub.cfg file. These days everyone wants to use uuid to assign devices and your boot file is still looking for your old hdd. Open up a couple terminals. In one, vi /mnt/newdisk/boot/grub/grub.cfg and in the other vi /mnt/newdisk/etc/fstab. In the fstab file you will see the uuid for your new ssd drive. It’s the first uuid mentioned and mounted at /. Io You need to replace the old one in there with the new one from your fstab. It’s easier than you think in vi. Just do a “:g/olduuidstring/s//newuuidstring/g” and hit enter where olduuidstring is your old uuid and newuuidstring is your new uuid from the fstab file. Once it is finished replacing you probably need to save it with a “:wq!” because your system will undoubtedly say it’s a read only file. The reboot! You should be greeted shortly with a much faster but very familiar linux install, complete with all your goodies.

One last note. You may want to increase the life of your ssd ehink in vi. Just do a “:g/olduuidstring/s//newuuidstring/g” and hit enter where olduuidstring is your old uuid and newuuidstring is your new uuid from the fstab file. Once it is finished replacing you probably need to save it with a “:wq!” because your system will undoubtedly say it’s a read only file. The reboot! You should be greeted shortly with a much faster but very familiar linux install, complete with all your by adding a couple options to your /etc/fstab file. Those options are discard and noatime. These options deal with extra disk writes that you really don’t need on ssd. Your / line options in the fstab should look something like “ext4 discard,noatime,errors=remount-ro 0 1”.


Wednesday, March 16th, 2016

Retro Tablet?

I was on a trip to visit my uncle recently and while there and talking shop (he’s a techie kinda fellow) he started telling me about this old tablet he had that I could have if I could get it fixed. It seems he purchased a tablet years ago, didn’t like it, then the os became corrupt and he just sort of shelved it, probably some 5 or 6 years ago and got himself an iPad instead.

He dug this thing out and it happened to be an Asus Eee Pad Transformer TF101, a tablet that I actually had long ago myself. This one was dirty and no charge and badly in need of a fresh reimage of the OS but after that, it’s a perfectly functioning, practically brand new (hardly been used) TF101, now updated to the latest OTA update available for it, 4.0.3 (Ice Cream Sandwich).

So now I have this new old stock tablet and I have decided to get some use out of it (came from my uncle so it holds some sentimental value) and I actually kind of dig it. Of course it is no rocket ship compared to modern android devices but it does chug along and the 4.0.3 OS is still viable in the android store so some apps are still current. I can get my mail and social media and watch videos, listen to music and the like just fine (even netflix). What I like most about it right now is using it as a portable terminal (juice ssh). The included keyboard dock makes that particularly nice.

I have been wondering, though, what else I can do with such a device and am seeking opinions and experiences. I know there are several server suites available for android. I could use it hooked to an external USB drive for a file server or web server, etc.. Perhaps I could somehow shoehorn an actual Linux as a native OS on this thing. Then, there is the possibility of putting custom Android ROMs on it – I think there is one called KATKIT that people are having great success with. Never having installed a custom ROM before on android I am a little hesitant and don’t want to brick the machine. So, what do you think? What should I try first?

Friday, March 11th, 2016

It’s NOT Telecommuting!

OK, so it is telecommuting – but hear me out for just a second..

I have been involved in a job search as a Linux admin for a few months now and one of the barriers I keep running in to is (get this) physical location, or company location. WHY? Business owners, let me reason with you for a moment here.

Your servers are “in the cloud”:
There are a LOT of companies these days who are using cloud servers and services. Buzz words like Paas, Saas and Iaas are all the rage now, along with their providers AWS, Rackspace, Azure, Google and the like. These services that you use locally for your business are not actually located at your business. Likely, they are not even in the same time zone, and, in some cases, country. Every time one of your server administrators or users access those services and systems, they are doing so remotely, even if they are sitting at a desk next to you in your corporate headquarters.

You have “datacenters”:
For those of you who have your own datacenters for your machines, you have the same issue. Most companies have at least two such facilities for redundancy and either one or both of them are typically located away from your corporate campus. This, again, means that when you are working on them in any capacity, you are doing so remotely, or “telecommuting”, whether it be from your corporate campus, from, home or across the world.

So you see, in almost every scenario in these modern times, you are already telecommuting to use your own resources. I am here to implore you to consider expanding your employment pool by letting computer workers do their jobs remotely. Save yourself some real estate space. Use conference calls, instant messaging, emails and video chats (free) for your office communications. Dramatically lower your corporate utility bills and *paper costs*. And give someone like myself a shot. You’ll be happy you did!

Tuesday, March 1st, 2016

Poof! It’s a Chromebook!

Neverware CloudReady ChromiumBook

Neverware CloudReady ChromiumBook

And that’s just about how hard it was…

A couple days ago as I was browsing my google+ feeds I noticed an article about Neverware’s CloudReady solution for turning aging computing resources into more useful devices. They have put together a good Chromium OS install aimed at older hardware, which for schools and businesses, can be hooked to google management services, which makes it sound pretty attractive to any IT department with a budget. As it happens, my buddy Joel must have been reading about it too, because I saw him post something about being in the middle of creating the boot media. That got me wondering, and with an old laptop to play with, I decided to do it myself.

Many years ago I got a cool new Dell Latitude D630 and I likes it so much that a few years later I picked up a used one. It’s one of my test boxes – 2.mumble ghz and 2gb ram – a perfect candidate for a chrome(ium)book test. I also have the perfect thing to compare it to – a genuine chromebook I bought last year for my wife – who I refer to as the destroyer of laptops.

Anyhow, first I downloaded the software from their site, which is free to use if for home and experimental use. The image is a zipped binary image about 5.5gb uncompressed. Big file so it’ll tale a while to get it. Be patient. There are what look to be pretty good installation instructions on the site itself for Windows and MacOS users, however I am neither so I had to improvise a bit.

On Linux, once you have the file downloaded and uncompressed (again big file and takes a few mins), you need to write it to a usb stick for installation. For explanation purposes say my usb device ended up being /dev/sdb. I used the dd utility to get the image onto the drive but because the file is so large I wanted a progress indicator for the process so I installed “pv”. Do this – trust me, you’ll want it.

The command line (as superuser) to install the binary installer image to the usb stick is “dd if=/path/to/installerimg.bin | pv | dd of=/dev/sdb bs=4M” and make sure that’s a capital M at the end for a 4 Meg blocksize. Like the download and decompression of the file, this take a LONG time, which is why you will be happy that progress indicator is in there.

In essence, that is all the hard and interesting stuff. The rest of the installation instructions are quick and simple – boot off the usb stick, log in, click on the time bar in the lower right, select install. A few minutes later (minus a couple no-brainer questions) you have, for all practical purposes, a chromebook!

I’ll be darned! I tried a ChromiumOS install several months ago on some even older hardware and wasn’t really impressed. I thought it was a bit laggy and buggy, but this time it works a treat! Multiple accounts work well. All my google settings were imported correctly. The chromebook shortcuts work. It works so well I am typing this review on it right now. I even handed it off to the destroyer of laptops and she was able to successfully install her profile and use it just like her chromebook. Outstanding Neverware, and a lot of fun too!

Although the other articles I read on this glowed and gushed about how well it worked, I have to say I was skeptical until I tried it myself, due to my previous experience. I am happy to find I was wrong. I can really see something like this being able to not only stretch that IT budget a little, but responsibly so, making good use of still functional hardware and keeping the end user experience consistent and manageable at the same time.

Sunday, February 21st, 2016

“Fixing” an old laptop

Dell Inspiron 1545

Dell Inspiron 1545

A few years ago when I was in the market for a new laptop I picked up one of the then wildly popular and cheap Dell Inspiron 1545. There are gobs of these running around now and you can find them cheap if you look (click the pic for links to Amazon). I used this for for, it seems, forever. I only ever had one problem with it – a small plastic chip in one of the corners that I repaired with superglue (you would never notice). Lately, though, it has been running noticeably slow. I don’t know if it’s because it’s actually getting slower, the software is just getting fatter, my work computer is blazing fast in comparison, or a combination of any/all of those. Either way, it’s really been bugging me so much lately that I had considered just getting a new lappy. Before I did, I decided to look over the specs to see what I actually had here. Mine is a core duo 2.2Ghz with 4Gb ram and a 320gb HDD. Running Linux this thing *should* run like it was on fire. So why so freaking slow? A quick look at “top” revealed what had to be the problem. I was at almost 0% CPU and only 1.5Gb ram. It HAD to be the slow as pencil and paper hard drive writes and reads. A quick search says that somewhere in between now and the last time I came up from air at work SSD drive prices dramatically reduced, so I stopped by a bigbox store and picked up a 240Gb SSD for <$100 and screwed it in and WHAMO! It's like I have a brand new laptop! Seriously! Not only is the difference noticeable, it's amazing, so much so that I needed to break my blogging silence to tell you about it. If any of you have an aging laptop like me that runs but is "meh", it's totally worth it to spend the 15 minutes it takes to do this upgrade. It certainly just saved me $500 and I am now, once again, perfectly happy with my trusty old (but well kept) Dell Inspiron 1545.

Sunday, April 26th, 2015

CentOS System Administration Essentials

CentOS System Administration Essentials

CentOS System Administration Essentials

The description of this book is “Become an efficient CentOS administrator by acquiring real-world knowledge of system setup and configuration” and the author, Andrew Mallett, has put together quite a collection of information in there to help you do just that.

Probably worth mentioning here is that this book is obviously designed for someone not only familiar with Linux in general, but also comfortable eough with CentOS to dispatch with the usual obligatory chapters dealing with installation, etc.. Yes, this information is surely aimed for someone who is. or has designs for being a Systems Administrator. As it happens, I am “one of those guys” so I’ll give you my thoughts on how well he did.

One of the interesting things about Linux is there are so many ways to do things and so many areas of focus. This means that this area of information that a system Administrator should know is pretty expansive and what *I* think a System Administrator should be an expert in is not necessarily what someone else may think. Well, up to a point. There are some real basics in there as well. One of those is using vi or vim and noodling around on the command line, and this is right where Mallett heads for in the beginning of the book and rightly so.

After running through some great tips you start to dive into some deep subject matter on Grub, filesystems, processes (all really important stuff). Yum (package management) and managing users are also important standards that are covered well, and then you start diverging a bit from what I would consider “must know” information into, really, the more interesting stuff of the book. You walk through LDAP auth, Nginx web servers and puppet configuration management. While those may not be essentials for your systems, it sure is nice to at least have a basic understanding, and the information here on them can get you up and running. And then lastly we go back into the last topic, security, which is also a “must know”.

I quite liked this book, especially the portion on Nginx, which I had not played with before. It was good information, easy to read and use and the examples worked. I also noted that much unlike some other similar books I have reviewed, this book is not so voluminous as to make it impractical to read through in an afternoon or so and you can do so and come away immediately with some practical and usable information. Again, the book “CentOS System Administration Essentials” by Andrew Mallett, is available from Packt Publishing for under $25 and is well worth it for all you budding (and maybe not so budding) System Administrators out there.

Sunday, February 1st, 2015

Aw crap.

Sometimes crap happens and it just so happened that today when I was doing an unattended update to wordpress and feedwordpress for LinuxPlanet Oggs and Casts something twigged and deleted all the feeds. If you have a feed in one of those places getting syndicated, well, now you don’t. It looks to me like there was a category shift and I do see what I assume to be all the former syndicated participants listed in the blogroll. I am going to attempt to go through there and re-add everyone, however, if you do NOT see your feed show back up within a couple days, or something seems wrong with your content, etc., then please shoot me an email and we’ll get things straightened back out.


Thursday, January 8th, 2015

Mastering Proxmox by Wasim Ahmed / Packt Publishing

Mastering Proxmox

Mastering Proxmox

Where do I even begin here.. Well, at the beginning. This book is really aimed at people who are both somewhat familiar with Linux and, at least conceptually with virtualization. In a nutshell, this book will take you through a soup-to-nuts clustered Proxmox install.

For a 300 page book, there is a pretty good amount of information to cover here and you start right out with an overview of then menu system – what to find on what tab and that sort of thing. This is followed very closely by actually setting up a basic cluster, the part of the first chapter that I spent the most time in. Once you have worked your way through that far, you are really already successfully running your own cluster and the rest of the book is your reference materials and in depth learning. You go through a lot of information on configuration files and shared storage solutions (which you really need for a clustered installation), networking, advanced configs for your virtual machines, high availability, troubleshooting issues, etc..

What I liked? Well, I think the book is layed out well, except for maybe placing the menu section before the install section of the first chapter. The book follows a sensical path throughout. The examples are great and clear as well as the diagrams. The book is not at all hard or too technical to follow for the subject matter. The troubleshooting section was a big help for me and I think a boon for the book. I really liked it and ended up with a working cluster at the end (actually somewhere in the middle).

Definitely another keeper. Mastering Proxmox is something you really should look into if you are at all interested in doing any computer virtualization. There is plenty in there to learn and for around $20 I don’t think you can beat the price!

Tuesday, September 9th, 2014