Aug 20 2019

Error Installing CentOS 7

I received the error “This program has encountered an unknown error.” When installing CentOS. At the end of the report it had details about RAID and I remembered that the disk was part of a RAID.

To get rid of the RAID config:

  1. Restart the server.
  2. At the menu choose Troubleshooting Choose Rescue a CentOS system.
  3. You will be asked to make a selection, type in 1 and press enter. 
  4. You will see a prompt “Please press return to get a shell.
  5. Press the enter key Under “Rescue Mount” check which disk you need to configure i.e. sdb
  6. Now type: dmraid -E -r /dev/yourDisk i.e. (dmraid -E -r /dev/sda1)
  7. You will be asked if you want to erase “isw”. type y and press enter.
  8. Reboot your server and install CentOS 7

Here’s a video showing the screenshots I took:

 


Aug 20 2019

Moving my server from Windows to Linux

I have moved from Windows to Linux on my laptop and gaming PC (Elementary OS) to be more specific and have not looked back.

My home server was running Windows Home Server 2011 and it seemed like I lost one of my disks with my music on. Windows could not see the disk at all but I could see the disk in the BIOS. I then booted into Linux using a USB thumb drive and managed to access the disk and it’s data so proceded to backup the data.

I then decided to get rid of Windows on my server and move to CentOS 7. I chose CentOS 7 as I am currently studying for my RHCSA

Below is the first video of the series. I stumbled across a few issues which I will be sharing soon.

 


Jul 15 2019

How to install PyQt4 on Elementary OS (Linux)

In this video I show the steps on how to install PyQt 4 on Elementary OS which should work on all Ubuntu based Linux distributions.

I already had PyQt 5 installed but my study guide requires PyQt 4 so I decided to install and run both on my system.

Here’s the steps:

  • Open a terminal and run the below to install PyQt 4
  • sudo apt-get install python3-pyqt4
  • sudo apt-get install libqt4-dev
  • sudo apt-get install python-qt4 qt4-dev-tools python-qt4-dev pyqt4-dev-tools

Here’s a video if that’s more to your liking:


Apr 27 2019

How to make another version of Python the default version in Linux

In this post I show you how to make Python 3.7 the default version of Python on Linux. (This should work on all distributions of Linux).

My default version of Python was Python 2 and I needed to change it to version 3.7. 1.

Steps:

  1. Open your .bashrc file in your home directory using a text editor or the shell.
  2. Add alias python=’/usr/bin/pythonx.x’ to the file and save it. (x.x is your version that you want to be the default)
  3. Logout of your session or reboot your computer, then log back in.
  4. Open the terminal and then type in Python. It should now show you the version that you specified in the .bashrc file


Apr 25 2019

Install Python 3.7 on Elementary OS

In this article and the below video I show you how to install Python 3.7 the easy way on Elementary OS. This works on Pop_OS! and Ubuntu too.

1. Open a terminal
2. type and run: sudo apt update
3. type and run: sudo apt install software-properties-common
4. type and run: sudo add-apt-repository ppa:deadsnakes/ppa
5. Press Enter to add the above repository
6. type and run: sudo apt update
7. type and run: sudo apt install python3.7

You now have Python 3.7 installed


Nov 25 2015

How to install “Brackets” in Ubuntu 15.10 – Get around Dependency is not satisfiable: libgcrypt11 >=1.4.5 error

In this post I will show you how to install Brackets , an open source code editor from Adobe and how to get around the dependecy error (Dependency is not satisfiable: libgcrypt11 >=1.4.5) if it pops up when you try to install Brackets.

I’m using Brackets as part of a web development course and really like it.

Installing is quite easy as per below:

  1. Open your browser and go to the Brackets Website.
  2. Click on Download Brackets without Extract to download the deb package file.
  3. Browse to the downloaded deb package file and double click it. This action will open the Ubuntu Software Center.
  4. Brackets should install and you you will be able to use it after the installation finished. If you get the error below check the below Dependency installation section.

bracketsdependency

Installing the libgcrypt11 dependency:

  1. If you receive the above error clink on this link to download libgcrypt11
  2. Browse to the path where you downloaded the libgcrypt11 deb package and double click the deb package.
  3. This will open the Ubuntu Aoftware Center and install libgcrypt11
  4. Browse to the Brackets deb package and double click the deb package for Brackets.
  5. Brackets should now install without any errors.

For a visual guide please watch the below video I created to show how I installed Brackets on Ubuntu 15.10

 







Jul 22 2015

How to install HP printer/scanner in Ubuntu 15.04

I had to install my HP OfficeJet in Ubuntu 15.04. I need it to scan and print using the printer’s wireless function and to do that you need to install HPLIP as per my below video.

The articles I used are:

http://hplipopensource.com/hplip-web/install/manual/distros/ubuntu.html

and

http://hplipopensource.com/hplip-web/install/manual/hp_setup.html ( I had to run sudo hp-install -i to setup the printer as I received GUI errors and was not in the mood to find out why)

 







May 26 2015

How to access a Bitlocker encrypted Windows disk using Ubuntu 15.04

Today has been one of those days where you think to yourself. “Self, you should have backed up your data more often!”

My work laptop running Windows 8.1 decided to commit suicide. The laptop froze up and when I rebooted I received an error stating that werkernel.sys is missing and it won’t boot in to Windows.
I took the laptop in and IT tried recovering Windows but could not get it repaired. The problem is that we use Bitlocker which meant it would be a challenge to just boot up with a Live Linux Distro and copy off my needed data.

After a few hours I managed to access my Bitlocker encrypted drive using Ubuntu Gnome 15.04. Below are the steps I followed from different articles. Please see the links to the articles below.

1. First you need to find your Bitlocker recovery keys. This is the most important part as without them, well I hope you have a recent backup 😉
2. Click Find your Bitlocker Keys to find out how to get your Bitlocker keys.
3. Download Ubuntu Gnome 15.04. I refer to it as that is the distro I used.
4. Install the image to a USB stick. (Don’t be lazy, search the internet on how to do this)
5. Boot your computer with the USB stick. When the menu appears choose the option to try Ubuntu, not install Ubuntu.
6. Once Ubuntu has loaded to the desktop, press ctrl+alt+t to open the terminal.
7. In the terminal type mkdir /media/windows and press enter.
8. In the terminal type mkdir /media/mount and press enter.
9. Open Firefox and download Download dislocker. You want to download the file named dislocker.tar.bz2
10. After the download browse to Downloads and right click on dislocker.tar.bz2. Choose extract file.
11. Go back to the terminal and type sudo apt-get install libpolarssl-dev libpolarssl-runtime libfuse-dev and press enter.
12. In the terminal type cd /Downloads/dislocker/src
13. In the terminal type sudo make and press enter.
14. In the terminal type sudo make install and press enter.
15. In the terminal type cd /usr/bin and press enter.
16. In the terminal type fdisk -l and press enter. Note which disk is the one that is encrypted. It should be something like sda1 or sda2 etc.
17. In the terminal type sudo dislocker -r -V /dev/sda1 -p315442-000000-000000-000000-000000-000000-000000-000000 — /media/windows and press enter.(note that the sda1 needs to correspond to the disk you noted down when running fdisk -l and the 0’s are where you enter your Bitlocker key. Also not the space before and after the — )
18. In the terminal type cd /media/windows and press enter. (if that does not work and you receive an error first type sudo -i and then cd /media/windows)
19. In the terminal type mount -o loop,ro dislocker-file /media/mount and press enter. (I needed to include ,ro as I could not grant myself full access and read only helped as I only needed to copy data to an external disk)
20. You should now see a pop-up asking if you’d like to open the drive/disk. Click on open and access you Bitlocker encrypted disk.

I used the below articles/Forum posts to get this working and would like to thank all the contributors on those pages.

superuser.com

Tux Diary

 







May 20 2015

How to install PyCharm on Ubuntu Gnome 15.04

A video showing you how to install PyCharm in Ubuntu 15.04.

1. First you need to install Java
2. Then download and run PyCharm as per below instructions

1. Open your Terminal and type: sudo apt-get purge openjdk* (This will get rid of older versions)
2. Add the repository. In terminal type: sudo add-apt-repository ppa:webup8team/java
3. Update cache by typing this in terminal: sudo -apt-get update
4. Install Java by running this in terminal: sudo apt-get install oracle-jave8-installer
5. Download PyCharm from http://www.jetbrains.com
6. Extract the downloaded file: tar -xf pycharm-community-versionnumber.tar.gz
7. cd to the folder name you extracted
8. cd to the PyCharm folder/bin
9. From within the BIN folder type ./pycharm.sh

All the steps above are done from the terminal







May 20 2015

How to install Skype in Ubuntu Gnome 15.04

Today I will show you how easy it is to install Skype 4.3 in Ubuntu Gnome 15.04. This should also work in Ubuntu 15.04.

All steps are below the video if you wish not to watch the video and just follow the step by step guide.

1. Open Software and Updates
2. Click on “Other Software
3. Check the check boxes next to Canonocal Partners and Canonocal Partners (Source Code). Enter your password when prompted
4. Click on Close to close the Software and Updates window
5. Open your Terminal (ctrl + alt + T is the short cut to open the terminal)
6. It’s good practice to run sudo apt-get update before installing an application to get the latest updates
7. Now type sudo apt-get install skype skype-bin in order to install Skype 4.3
8. Type y to continue
9. All the needed files will now be downloaded and Skype 4.3 will be installed.
10. Skype your mom and tell her how much you love her. (Optional of course 😉 )