One of the very annoying things about having multiple Linux systems (or virtual machines) in the house is that you constantly need to keep them patched and updated. Sure, they are not as vulnerable as some Windows systems but it is still good practice to keep your systems nicely patched. So instead of doing sudo apt-get upgrade every time (or worse , getting a popup from the update manager while you are just in the middle of watching your favorite Youtube video about bunnies ) .. lets schedule this.
Scheduling things is not bad , but you have to be careful just WHAT you want those systems to do. You don’t want to wake up one morning and see that your LTS (long term support) workstation has just done a make-over and rolled onto the cutting edge version of the new release of your operating system. So kernel and distro upgrades should not be a part of your schedule.
The command we choose to use is Aptitude. With the following string you can do an update and upgrade on the same line.
/usr/bin/aptitude -y update && /usr/bin/aptitude -y safe-upgrade
So what does it do ?
“-y” makes sure that you don’t have to type YES at the end of the command.
” safe-upgrade” means that kernell or distro upgrades are a “nono”
“&&” links the commands together.
How to schedule it.
Simple. Log in as a user with root access and type “crontab -e”
next ad the following line to your cron
0 1 * * * /usr/bin/aptitude -y update && /usr/bin/aptitude -y safe-upgrade
Thats it. Now the the upgrade is executed every single night at 1 am.
source. Kevin van Zonnevelds blog.
It was a first timer for me : an “in place” upgrade. I had made it ‘a thing’ to install every Ubuntu version fresh, and do it fast. Creating a list of installed applications, exporting the software sources I collected and then let it install everything automatically after a fresh instal of the OS. This made it possible to do a totally clean install and be up and running within 90 minutes. But yesterday I got tempted by a tweet from @omgubuntu, explaining how to do an easy inplace upgrade. How? just run “update-manager -d” from the terminal. And i was curious, updating anything on Linux has become a breeze, so how would an entire Operating System upgrade turn out.
So i started a terminal, and pasted the “update-manager -d” and pressed enter. At that point I was given the option within the update-manager to do a distro upgrade, which I chose and I let it run. And thats all there to say, it went smoothly, fast and since we had friends over, almost enirely “unattended”. (So its ‘Social Life – Friendly’ technology.
Well, let’s cut to the chase, what is it like that “Ubuntu 12.10″. It looks more mature so to say, the transitions between applications, the hiding of apps within the unity interface just feel more.. more.. reliable, stable, … no, consistent. Yeah, all over my first conclusion was that it’s more consistent and more professional then 12.04. There, i said it, it’s a professional desktop. That might be why they have built up the guts to ask a contribution when you go to the download page.
I’ve found some nice touches. For example a dual monitor setup now results in two monitors with their own dash and an automatic focus when starting applications on either monitor.
The dash has the new feauture of “The Right Click”, where right clicking on an item gives you for a music file the ability to play it directly, for pictures the ability to mail them to someone and so forth.
One other thing i found while frantically clicking away at my new setup, some heavier 3D applications run faster. As an benchmark i always test with UrbanTerror to see what framerate i get. On this laptop using gnome 2 it has always been around 54 FPS, with SolusOs it was the same and with Unity i never got above the 24 FPS. And now it does, a nice 50 FPS was in my top right corner.
Another nice surprise is the wifi connection, after a nap or a well deserved deep rest it reconnects in about half the time it used to, a mere 4 seconds.
Any hickups? Well, i have found one, Thunderbird doesn’t show up in the notification centre. But that seems to be a problem with my own settings. Moving the .thunderbird in /home/mcvries to a different location and starting ‘Fresh’ makes it show up again. So there’s a small job left for me.
I am far from ready exploring and tweaking but for now I am quite impressed. Not in the least from the in place upgrade which plain simple was elegant and easy. Installing a new version of an OS was never this easy for me before.
Not an Ubuntu User yet? Head over to Ubuntu.com and find out!
A post by Guestblogger McVries http://www.mcvries.nl A blog about my experiences using an opensource OS while working as a Windows sysadmin, and being the techno advocate for the organization i work for. @McVries_ Skeptic IT Manager with a liking for open Source.
Its tinker time again as we swap out a spinning 4200 RPM harddrive from my 2.1 Macbook air and swap it out with a 60 gigabyte SSD Drive from Macsales.com. A good howto, some smart tips, a cameo from scotty and a speedrace. All of that and more in this weeks KWTV.
Co-worker Joost pointed me to this video of a product he had recently ordered for his Samsung NX10 Netbook : A touchscreen “upgrade” you can install by yourself. I haven’t played with it yet and he still needs to receive and install the touchscreen kit, but I did want to share this cool demo video of the product with you guys…. * Geek-Sigh : Imagine running Unity on this ! * Looks like you can order the kit HERE.
When a new linux distribution hits the scene its always a little bit like Christmas. As the beta releases taunt you like packages beneath the tree, tempting you to try them out .. The hard part is sitting on your hands untill the website screams FINAL and the fun can begin. Thus here is my little christmas carol about how I updated my good old Ubuntu Linux 6.06 version to the latest in 6.10.
No beta's please.
Every new release of a linux distribution (in this case the new Ubuntu) puts the blender in the rumor pot. What is new , what is going to change, this and that cool stuff is going to be new, are they gonna drop this and that. The only way to divide fact from fiction is downloading and installing the public beta versions that are released. Now I have never been one for beta's. And that is for two reasons. First of all because a beta never gives you a clear picture of what is going to be the final product. Sure, you might get a glimpse in the general direction, but the difference between the beta and the final release may be as dramatic as the difference between cookie dough and the finished brownie. Secondly : Beta's are mostly far from stable. Unless you are a developer or some genius programmer who can find and fix bugs in this PRE-released version of a final distro, its not gonna do you much good. Forget using a public beta as a stable system. You are riding an unfinished car to the finish line. If you are masochistic and love to hog unpredictable kernels I would suggest turning to any version of Windows before its service pack one.
Thus I bide my time till the final comes. And when my curiosity gets the best of my I'll just download the fucker and run it in a virtual machine.
Why should we care to upgrade ?
Erm.. Good question. In the case of Ubuntu 6.06 it was out of sheer curiosity.
I (finally) got my current version to play nice with my home network, had it all eye-candied out so it looked smooth and more importantly, gotten used to the look-feel and possibilities of this worthy windows-replacing operating system. Since it was a "decimal" upgrade (from 6.06 to 6.1) there was no rush. (When however they moved from 5. to 6. I was all over the place with joy). The other thing is, Linux distributions evolve differently from windows distributions. In mickey-software they whack in all the cool toys and worry about security POST RELEASE. In Ubuntu they make sure the system is steam liner-stable and "Fort Knox secure" before they release it. All the "fancy smancies" are developed later by the community. So a Ubuntu distro can be considered "ripe for use" about two weeks after release when the command-line-geeks have had enough of caffeine driven all nighters and coded the crap out of themselves to prep the add-ons.
But upgrade we shall ! (reinstall / upgrade)
Now, If I had absolutely nothing to do with my life, and installed/reinstalled my system every time there was a kernel fart, a re-installation was something to consider. Wiping ones hard drive clean and installing an OS from scratch is like wearing clean underwear or sleeping in fresh sheets. But since I had my 6.06 running so smoothly the thought of upgrading crossed my mind. With windows I would never EVER Consider this , and even on my mac i like it better when i can erase/reinstall rather then upgrade. But I decided it was time to test the agility and maturity of Linux by going for the upgrade.. (and just maybe I'm a lazy fuck who did not want to wipe his porn ?) If you have the time go for a clean reinstall , If you don't want to wipe a working system, try the upgrade. You can always reinstall when it goes wrong.
Upgrading a working system.
I could tattoo the following advice into peoples forehead yet they would not listen to me until one day .. they loose everything. " BACKUP BACKUP BACKUP" what ever you do to a working system, make sure you backup everything before you begin. Don''t even try to come over and wine about all the crap you lost. I'll laugh in your face , step on your toe and write "I TOLD YOU SO' on your belly with pink lipstick. Afterwards you can run around naked in shame for all I care. I have no compassion for persistent stupidity. Next up : Be prepared for failure. Don't try elaborate shit like this if you need to get a paper out by next morning. Be prepared for total system fucky-uppie and start working on emergency response scenario's should your "kernel based acrobatics" fail.
The magic command line code
So lets get started. We have " one cup of Ubuntu 6.06, with the important data and settings skimmed' Next up I found this great website that teaches you how to upgrade using just one line of code. Just pop open your command line window and type :
gksu "update-manager -c"
Next up enter your administrator password. The message will come up a new update is available and you need to click the 'update" button to do so. So what should you do ? … Hit it you twit !. The upgrade process will take quite some time so be prepared to actually spend time with your family and do what "normal' people do. Don't bite your nails awaiting the completion of this process.. Why ? cause its not nice !
After about an hour the whole thing will be done, Reboot your system and say a prayer to "Sint Rita" who is the holy chaperone for lost causes. If Rita can't help you .. you are officially screwed.
The magic word : Automatix !
If all went well you'll have a completely upgraded system. Otherwise enjoy your horrible " KERNEL PANIC" message heralding the end of your operating system as you have know it thus far. But you backed up all important data anyway .. didn't you .. So now the trick is to make this fancy new version of Ubuntu into a working operating system. This means, being able to play *wmv files, play dvd's, be able to run Google earth and what have you . In short : All the good stuff. To do this there is the magical script of AUTOMATIX that will help you accomplish what takes geeks months, in mere minutes.
If you had automatix installed on your old 6.06 system , lets remove it first shall we ? : Open a command line an type :
sudo apt-get remove automatix
enter your admin password and be gone with the old automatix.
Then we prepare to install AUTOMATIX2. So in our command line window we type : sudo gedit /etc/apt/sources.list
this will let you add the following line to the end your sources list ( where your linux gets his good stuff)
deb http://www.getautomatix.com/apt edgy main If you see any simular lines with a # in front of them, remove the # and save the file.
Now we enter some geeky lines in order to make automatix work. (hit ENTER after every line)
gpg –import key.gpg.asc
gpg –export –armor 521A9C7C | sudo apt-key add -
sudo apt-get update
sudo apt-get install automatix2
If all went well you will now have a little AUTOMATIX icon in your
gnome menu ( APPLICATIONS / SYSTEM TOOLS / AUTOMATIX
And then some.
Now the good stuff can start. As you see , in automatix you can choose what good stuff to install , if I where you I would check every little tickbox and then get some more quality time with the family. The installation of programs like , skype , google earth , picasa and more might take some time. But when you are done all the stuff works fine and you are the proud owner of a fully working Ubuntu 6.10. Have fun.