Hello everyone! We got our first request submitted via the article-request button that I placed on the front page. I was beginning to think that it was too inconspicuous!
This request comes from “Mr. Mugatu” who wanted to know an easy way to get his Ubuntu 12.04 Precise Pangolin machine to be updated to the new Ubuntu 12.10 Quantal Quetzal that just came out a few days ago.
I am going to keep this as easy as possible, and use mostly pictures so that everybody is on the same page.
Let’s get started with our un-updated, un-upgraded machine. It doesn’t matter if it is 32 or 64 bit, the tutorial is the same. In the launcher, go ahead and start the update manager like so. ^^
The settings menu will allow you to tell your Ubuntu 12.04 install to change your notifications settings and to look for a version upgrade.
After you click that upgrade button, you will be asked if you are really sure a few times, and that there is no turning back, end of the world, yada-yada, just click through the wizard until your system starts downloading updates.
There is literally nothing you can do at this point to mess this up. If you pick the wrong option somewhere along the way, the update just stops. If your update made it all the way, then you did everything correctly. There really is no way to mess this up.
Congrats! You have now updated and upgraded your system from Ubuntu 12.04 Precise Pangolin to Ubuntu 12.10 Quantal Quetzal super easy!
If this helped you out, tell a friend! Subscribe, or use the share buttons below, and thanks for reading! I love you guys!
I was most of the way through my day today before I realized I hadn’t posted anything for you guys today. How rude, right?
I don’t know what to write about, but I have a full cup of coffee, and the urge to brush up on my Django skills. To do this, first I will need a custom linux box for the task, and for that, I decided to do a segment entitled “Ubuntu From Scratch”.
In this segment, I will take Ubuntu Precise 12.04 LTS and assemble a system, ‘from scratch’. I am sure you are wondering why I use the term ‘from scratch’ from inside the quotes.. Some of you may know about this already, but for those of you who weren’t into Linux in the 90′s, there was this cool book/site called “Linux From Scratch” where you built your own Linux system from a barebones system install.
The first time I went through LFS, I used Debian, but for ease of use in following this Django tutorial I am trying to follow, I will be using the Ubuntu Precise 12.04 Alternate Install disc.
When you first boot up, be sure to press F4 at the menu asking you to install or boot. From the menu that pops up, you will need to select “Command Line Install”.
Once you have done this, go ahead and install the image with all of the usual settings, user config, etc.
I’m going to get some more coffee and meet you back here for the next part!
I’m back! The system is done installing, and now it is time to boot into our system for the first time. One thing you shout note is that if you are using Ubuntu, you will not be able to login directly to root, but instead you should use the user account you created in the beginning. In this case, it is the account named ‘User’ with the really lame password that I chose (I plan on trashing this system when I am done with this Django project)
Once you log in, we will work on optimizing our “Sources.list” to choose the best servers to pull packages from.
Once we have logged in, you should log into the ‘root’ account by typing “sudo su” and then typing your password.
Once you have become root, type in the following command to modify your ‘sources.list’ file so that we can beef up our repositories.
This is the ‘sources.list’ file. As you can probably guess, this is where Ubuntu looks every time you type ‘apt-get update’ to compile a list of the available packages on the repositories so that when you tell apt-get to install something, it knows which computer to contact to pull the package from.
The stock Ubuntu ‘sources.list’ is okay, but only that. Let’s beef it up to pull from the entire repository, and tell it to gauge which server is closest when performing the ‘apt-get update’ so that we get the fastest connection while upgrading.
Use CTRL+K to erase the entire file, line by line until you have a ‘sources.list’ that is completely blank.
Paste these lines into your blank ‘sources.list’ and then use CTRL+X to exit. (remember to press Y and then ENTER after you hit CTRL+X to save the file over the old one when you exit)
deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse
Once you have these pasted in, and have exited nano, then you should immediately do this next command to refresh your repository indexes. ‘apt-get update’
After this, if you like, you can start with installing your gui of choice, if you require one. I will make a short list of what you should type, should you want different GUI’s.
apt-get install kde-base
apt-get install xmonad
apt-get install xfce4
apt-get install lxde
apt-get install unity (hah just kidding, don't install unity)
Today, I will be using something that isn’t in the list I just mentioned, I will be installed what is called RazorQT by the creators, but to most of us, it is known as KDE Lite. Haha, not really, I think I am the only person that calls it that, but that is seriously what it feels like. If you prefer the QT interface, but still want to keep the bare minimum resource usage, then this is for you.
sudo add-apt-repository ppa:razor-qt
sudo apt-get update
sudo apt-get install razorqt -y
Before this sequence of commands would work for me, I had to install ‘python-software-properties’ which I did with a simple, ‘apt-get install python-software-properties’.
After this, I was able to add the repository. A quick ‘apt-get update’ and I am ready to ‘apt-get install razorqt’
While I was typing up the command to get RazorQT installed, I went ahead and installed xserver-xorg and xinit for good measure. xinit is what enables you to type ‘startx’ to get started.
The first thing I noticed after this, is that when I typed ‘startx’ is that it brought me to an OpenBox environment, which is good, but it isn’t what we installed RazorQT for. The solution, I suspect is to install a display-manager. First I considered installing LightDM, but when I apt-get install checked it, it said it needed to pull in about 200 megs worth of packages, and I just wasn’t okay with that, so I tried ‘apt-get install lxdm’ to use the lxde display manager, and it only wanted to download about 20 megabytes, which was fine by me.
apt-get install lxdm -y
Next up, we let lxdm download, and then try our new configuration by typing ‘shutdown now -r’ to restart immediately.
Shortly after, I realized that I cannot log into any session other than LXDE at this point. WTF? I don’t want LXDE, I want to use RazorQT now that I have already sold you guys on the QT goodness.
Let me log into LXDE briefly and then uninstall LXDM and then install SLiM since it seems to be a bit more transparent in it’s configuration, and does not have a preference for environment. LXDM seems a bit biased on this one as it lists about 8 different environments to boot into, but only allows me a successful boot into one specific environment, LXDE, which is the environment that came with LXDM.
I don’t have anything against LXDE, and I’ll still use it as a fallback, but for this purpose, I’d like to use RazorQT, otherwise I could have just installed Lubuntu and uninstalled a bunch of junk that came with it. Feel me?
Now we install SLiM – ’apt-get install slim -y’ and then I’ve done ‘nano /etc/slim.conf’ and changed the line that starts with login_cmd to execute the command ‘exec razor-session’ so that when we log in, it goes directly to RazorQT with OpenBox as the Window Manager.
Cross your fingers and reboot.
Now, OpenBox is great, but let’s take it up another notch. As you will notice, if you click the menu in the lower-left, there is next to nothing installed on our system. Let’s fix that. Everything after this is completely up to you, and for all purposes, you now have am Ubuntu Linux system ‘from scratch’ without all of the pre-bundled bullshit to cloud up your experience.
From this point forward, we will focus on customizing our custom system here.
Using the terminal in the little start menu in the corner, I again become root by typing ‘sudo su’. Once this is done, I can start installing my custom packages. Let’s start with the basics:
apt-get install dolphin leafpad firefox kubuntu-restricted-extras -y
This covers the pack of core applications that we will be using. I have chosen Dolphin as my file-manager because it fits the overall QT scheme we have going, as well as a lightweight notepad app called Leafpad. These apps aren’t what you have to pick, you can choose alternate apps for these such as openbox instead of dolphin, or gedit instead of leafpad.
You might notice I chose Firefox. I dislike Firefox, but I must admit it works better on Ubuntu than Chrome, which is my go-to browser. Kubuntu-restricted-extras is to be sure we have the non-free plugins for our future installs. This contains things like an MP3 decoder.
At this point, this is where you and I go our separate ways. I will be showing you how to install the Ubuntu Software Center, and from there, you can choose all of the different free applications you would like to install. I will be installing all of the relevant packages for my project which is mostly Python and Django libs and tools.
apt-get install software-center -y
I wish you the best, and I hope this basic guide has helped you out!
I fell asleep yesterday pretty early, and ended up awake at 3AM, groggily checking Reddit and the status of the video I posted there yesterday. I ran across a link for ChunkHost Free VPS Hosting.
Lately I have been on MediaTemple (and couldn’t be happier) and though I can SSH into my server, I do not get root with my current setup. A VPS is a good way to get the type of functionality that I am after (dns tunneling), and you cannot beat the price for free.
Before we go any further, here is the VPS definition from WikiPedia:
Virtual private server (VPS) is a term used by Internet hosting services to refer to a virtual machine. The term is used for emphasizing that the virtual machine, although running in software on the same physical computer as other customers’ virtual machines, is in many respects functionally equivalent to a separate physical computer, is dedicated to the individual customer’s needs, has the privacy of a separate physical computer, and can be configured to run server software.
Right away, I rushed on over to the ChunkHost web site to sign up. I noticed that they only used Facebook for authentication, and though the guys on Reddit put up a fight about this, I on the other hand could care less, because a well-managed Facebook account is more or less as safe as an email address, so I said why not and clicked ahead.
I was briefed on the details of my chunk, and was allowed to choose between several versions of Debian, CentOS and Ubuntu. I chose Ubuntu Precise Pangolin because I am familiar with the way it should act in this setting and the results were not at all what I expected.
Upon logging in, things were much different than my Media Temple service. Right off the bat I found myself waiting a few seconds for authentication, and then waiting a few seconds for my first command to process, ‘whoami’. This sluggishness had me feeling a bit uneasy.
I was able to determine that I was, in fact, the root account, so I went ahead and issued “apt-get update” which took about 3 minutes to complete. I felt that this was a bit long, and maybe I should optimize the sources.list to choose the closest server. I went ahead and updated my sources, and issued the same command. A bit quicker this time, but nothing to be proud of.
There were one or two updates, so I went ahead and gave it the command “apt-get dist-upgrade” which should have upgraded everything, but instead took about 5 minutes of my sweet putty-minutes and then segfaulted rather unceremoniously. This was about all I could take, so I shut my laptop, got some coffee and a bite before I sat down to get back on this sinking ship for the sake of the article, at this point.
I logged back in, and started to think of a good benchmark of the service. It had to be something I am familiar with, and use regularly so that nothing could be blamed on this or that. I chose “Owncloud” which you may or may not remember, we did a video about.
I started installing the libs manually, php5dev, php5-json, apache2, etc. before I remembered, or rather assumed that by now there would be something in the repos, given the steam that owncloud has gained as of late.
apt-get install owncloud ## SUCCESSFUL
Right as things were moving along swimmingly, I was prompted to change the MySQL password, which I went ahead and did, and the setup resumed, slowly, ready to lose the connection at any moment.. As the install was about to complete, it threw an error that the password could not be changed and that the root account was not priv’d to change MySQL settings.. Lame.
I started to investigate further when this infernal machine segfaulted yet again. Ctrl+C, break connection, delete account. Maybe next time.. It is a shame too, because this was quite promising, but when you look at the long and short of it, what you are paying for, and what you are getting in this situation, are two very different things. The processors are emaciated, and the bandwidth is lacking. The only thing going for this service is the business model; the hardware is abysmal from the perspective of the user.
I’m hoping this is just the Reddit effect, but the slowness and segfaults were just something I could not get past. 2/5 stars.