Category: Linux Xubuntu 14.04 LTS (Page 3 of 4)

Updating to Windows 8.1 from the store (Dual Boot Saga)

Those were really busy days. But this step comes as the final step. Finally I can upgrade to Windows 8.1 from the store to get this over with. I’ll have the latest update in both Linux and Windows. If you followed the saga you would know that none of this came easily!!

 For those who just joined us. I decided to install Windows 8 pro on my computer side by side with Xubuntu 14.04.

I installed Windows 8 and activated it. Then repaired the boot issue where Xubuntu was overlooked in favor of Windows 8 pro, then it was a true odyssey trying to transfer the license to my computer.
Now we come to the finally step, installing 8.1

 

Downloading Windows 8.1

Microsoft provided the 8.1 upgrade for 8.0 users via the Windows store. You can upgrade your system for free (not sure if there is a time constrain).

I decided to make use of that offer that our ISP provided (free download from 2 AM till 10 AM for a few months) to download Windows 8.1 and install it.

t took me two days to download 3GB from the Windows store! (The download was resume-able). And after the download was complete the installation began!

Important note:  You need to update Windows 8 before installing Windows 8.1 The update size is over 1.2 GB, and that includes optional updates as well!!

Installing Windows 8.1

It was really easy and didn’t take much time either! In a few moments I had the system up and running with no problem at all! You can see the tutorial Microsoft provided from here and for the more visual oriented readers here is a video:

 

What happens to Windows 8 after the update?

Some of the files remain in a Windows.old folder, it will be deleted within 28 days or you can delete it through disk clean up (I just clicked it and pressed Shift + Delete!!)

feel free to read more about Windows.old from here

This concludes the Dual Boot Saga. Please note that every computer is different and that you need to backup either way! Consult your local IT personnel or your OEM provider, this might void warranty so be careful!

Restoring Linux boot (Dual Boot Saga)

After I installed Windows. I have lost Linux in the boot menu, in fact there wasn’t a boot menu at all!
As soon I boot the computer Windows would come up and take the boot from there?!

I wanted to have Windows, not for Windows to be all I have!!
I had to restore booting to Linux, not only I liked it so much, my data and programs were there (Windows can’t “see” the Linux partition).
At first I tried installing BCD Boot to create a boot menu, it failed on a daily biases for me!
I had to try a better solution, and what better solution that the Linux terminal? <3
I booted to Linux from a live disk (you can create one by following the steps in here).
After it boots go into the terminal and enter the following command:

 

sudo fdisk -l

This command will show you all the partitions on your HDD, you have to know which partition your Linux distro is installed on (Gparted can be a great help in that).

Use gparted to see where is Linux installed

and enter this command:

 

sudo mount /dev/sda1 /mnt

then this command:

 

sudo mount --bind /dev /mnt/dev

then this command

 

sudo chroot /mnt

then this command

 

 grub-install /dev/sda 

 

then this command

update-grub 

If the computer boots directly into Ubuntu (or whatever Linux distro you have)
go to the terminal and enter:

 

sudo update-grub

Finally reboot and you will have the grub menu with Both Linux and Windows!

If you have an issue mounting you should use this command

Sudo touch /cow

The purpose of these commands is to install Grub (The boot manager) so you can dual boot easily from the menu.
If you want to customize grub for example the names of the systems and the list order you need to download Grub Customizer. I think I’ll post about it sometime later 🙂

Batch install downloaded DEB packages on Ubuntu

Today’s post is a re-write of “How to add downloaded packages to Synaptic Package Manager in Ubuntu 13.04” because I had to install packages Offline when I was fixing my brother’s computer. And something wasn’t right!

In that particular case I installed Ubuntu 14.04 twice in the same week so using the same packages to update was probably the right thing to do to save time and data plan.

Anyway based on my recent experience it will be much more clear. And I added pictures too! Synaptic is a GTK+-based graphical user interface for Advanced Packaging Tool (APT)—the Package management system used by Debian and its derivatives. Synaptic is usually used on systems based on deb packages but can also be used on systems based on RPM packages. (Source)

We are using it today to batch install software on Ubuntu, and you must take note that it’s a powerful tool and can potentially harm your system. So take care. You are going to need admin permission to access Synaptic.

Also don’t install anything you don’t trust! Be careful because now the program has admin permission to change your system!

 

After we took a look at the warnings, let’s take a look at the scenarios:
You are an Ubuntu admin and you have 10+ computers. And you need to install the same software on all 10 computers. So instead of Connecting them all to the Internet and downloading the same software. Connect one of them and download the required software. Then install it on the rest.

You just installed Ubuntu on a machine and begun to download software. But the Internet is really slow! (Third world problems) so you take the programs on a USB from another computer and get to work!
You have a limited data plan and you are trying to save!

No matter what was the situation. It’s a handy trick and you will comeback to this tutorial over and over to read it!

First of all. Let’s prepare the software.

You can either use the software center cache. Or any random .deb packages you have. (Or both)

If you want to copy the software center cache then go to the directory:

“Computer/var/cache/apt/archives” where “computer” is your system partition.

This is a system folder so you can’t cut or delete any of these packages. And if you copy the .lock file or the partial it will result in copy error.

Remember where you put the packages and the folder name as we are going to need that later.

Open Synaptic and enter your password. If you don’t have Synaptic you have to install it. Say from the Ubuntu Software Center.

 

 

Once you opened it you have to confirm that you are online. I can’t stress this enough. And it won’t work if you aren’t connected to the Internet.

You can confirm that by reloading package information. If it downloads package information without problem. Then you are good to go!

 

Paste all the packages in that directory, in this tutorial it’s called “New Packages”.

Click file Add downloaded packages.

 

You will see a browse dialog., use it to navigate to your folder.

once there click open.

 

Wait a moment for the packages to add. It can take several minutes when adding a lot of packages.

Click Apply and Synaptic will tell you how much packages will be installed. The size of install and how much it will download.

Wait for the progress bar to end.

 

Then click close to finish installing the software.

This way we installed a batch of software as we would install a single one. Without re-downloading them again!

Pretty handy isn’t it?

« Older posts Newer posts »