Installation of Fedora 23 on HP EliteBook 840 G1

Before I start with the brief tutorial I want to just list the configuration, results may vary based on the specs of the machine.

  • 14″ inch 1920 x 1080 display
  • i5-4300U 1.9 Base clock 2 core 4 thread
  • 8gb DDR3 12800 ADATA RAM
  • 180GB 530 2.5′ Intel SSD

I decided to use the latest version of Fedora based on the good experience that I have had with my desktop. The latest version of Fedora runs a very clean, stable and beautiful version of GNOME.

First, I downloaded the .iso and burned it to a USB drive. Since, the laptop might either ship with Windows 7 or 8.1 the BIOS might be set to either UEFI or Legacy Boot. In order to check this power off the machine, at BOOT when at the HP logo screen select ESC.

BIOS1

Once you have selected ESC. You will see a list of options, you will select the option f10.

IMG_0072BIOS3

This will take you to the BIOS setup screen, go to the Advanced Tab at the top right corner.

BIOS4

Make sure that USB boot is selected.

BIOS5

Scroll down further to the Boot Mode and select Legacy Boot. Once you have set these settings make sure to save and exit. You should now be able to boot from your USB bootable drive.

Most of the devices worked out of the box, the only devices that did not were:

  • Sound
  • Fingerprint Reader
  • f8 Mic Disable hot-key (There were so few I had to list it.)

Before I got into resolving the issues with these devices I wanted to get all the updates:

sudo dnf update

After all the updates finished I went to install Google Chrome, Google has really made this easier than in past years.

https://www.google.com/chrome/browser/desktop/

It should open in Software Updater, then select install and enter root password.

There are a few guides to “Things to Install after Installing Fedora 23”

It will vary based on your usage what will want to install, however here is a link:

http://www.binarytides.com/better-fedora-23/

The issue with the sound driver was related to an incomaptibilty issue with PulseAudio. I was easily able to resolve this by simeple Terminal Command:

sudo dnf|yum remove alsa-plugins-pulseaudio

Once I rebooted the issue was immediately resolved. I have tried so far without success in the past few hours since I have had the machine to probe the FIngeprint driver to see what drivers might exist for it. I will update this blog if I do find a fix for this. Please let me know if you think there are any other important additions.

Advertisements
Installation of Fedora 23 on HP EliteBook 840 G1

How to access EC2 instances on OSX using Terminal

It took me a few minutes to find this information so I am documenting here how to accomplish this:

  1. Download the .pem file.
  2. Place it in a folder and note where you stored it.
  3. Open Terminal.
  4. using cd go to the folder where your .pem file is stored.  EX. cd /Home/User/Desktop
  5. Amazon requires that the private key privileges be set to 400.
  6. Using chmod set the privileges for 400. EX. chmod 400 test.pem
  7. To access using SSH type: ssh -i test.pem ubuntu@amazondnsnamecompute.amazonaws.com
  8. Type in: Yes
  9. That’s it!

Note: You can make simplify frequent connections by placing this in a .sh script.

  • Create a text file.
  • Paste your original command: ssh -i /Home/User/Desktop/test.pem username@amazondnsnamecompute.amazonaws.com
  • Save the text file with the extention .sh
  • Now you can go to the directory with .sh and type: bash filename.sh
How to access EC2 instances on OSX using Terminal

Structuring a script to return value based on options. (BASH)

Let’s say you want to write a script to return a value or statement based on user input. How would you accomplish this?

Write a scrip to pass a color, return a result based on the color.

My first attempt was through the use of users selection in a particular set of available options. For instance:

#!/bin/bash
OPTIONS=”Blue Green Red”
select opt in $OPTIONS; do
    if [ “$opt” = “Blue” ]; then
      echo The sky is blue.
      elif [ “$opt” = “Green” ]; then
       echo The grass is green.
      elif [ “$opt” = “Red” ]; then
echo Roses are red.
      else
       clear
       echo Not a valid option. Please choose the following above. 
      fi

   done

 

When run this will show:
1) Blue
2) Green
3) Red 
If you input 1 and press Enter it will output:
      The sky is blue.
If you input 2 and press Enter it will output:
      The grass is green.
If you input 3 and press Enter it will output:
      Roses are red.
This is an IF ELSE statement that determines the output against the input.
Structuring a script to return value based on options. (BASH)