My Journey w Steemit Commands/Scripting on Windows 10 Pro Part 2: Configure Ubuntu, IPv4 GAI.CONF fix and Upgrade Packages

in tutorial •  7 years ago  (edited)

Good day friends,

On this next episode in this journey, we will configure our guest operating system (Ubuntu 16.04.2 Desktop version) and install prerequisite packages for adding the Steem Python Library. I had encountered a few issues initially but, with the help of my Google-Fu, there were surmounted.

So, here is what must be done. First, connect and login to your VM which had created in previous post (references will be below). So, to make the way for the package installs, I wanted to make sure everything was up to date. To my dismay, the following commands appeared to have been stuck as message "Connecting to Sec"

sudo apt-get update && sudo apt-get -y upgrade

I found the following article describing the fix. Here are some steps to help out. Please, keep in mind this fix should only be necessary if your device used IPv4 as it has to do with failed IPv6 connections as I understood from the article.

https://askubuntu.com/questions/574569/apt-get-stuck-at-0-connecting-to-us-archive-ubuntu-com

  1. Open your terminal as previously described (Ok ok it's Ctrl+Alt+T but no more freebies!).
  2. Type "cd .." to go up a level in your folder structure twice. You should end up at the root.


    "No, not Groot! ROOT"

    Now, issue a "cd etc" command to change to the directory where the gai.conf file is located. Now, we will use Ubuntu's built in text editor to make the necessary modifications to said file. Issue a "sudo gedit gai.conf" command into the terminal. It will prompt you for your password.
    gaiconf.PNG

gaiconf2.PNG
Now, that you have the file open. Navigate down to line 54 which should read "#precedence ::ffff:0:0/96 100". Go ahead and remove the number or pound sign as this will uncomment the necessary line of code.

gaiconf3.PNG

Now, go ahead and click "Save" and then the 'X' to close the file.

You should now be able to issue the following commands to update your packages.

sudo apt-get update && sudo apt-get -y upgrade

ubuntu17.PNG

With this out of the way, we will be able to download a couple prerequisites before the Steem Library. Go ahead and issue the following command:

<sudo apt-get install python3-pip

ubuntu18.PNG

Now, the final preprequisite. You will need to install the openssl development libraries. Use the following command:

sudo apt-get install libssl-dev

Next time, we will go through installing the Steemit Python library. I've already ran through the process on my VM and have successfully leveraged the libraries so I want to tell you that we very close. See you next time!

Previous guides:

My Journey w Steemit Commands/Scripting on Windows 10 Pro Part 1: Install Hyper V / Build VM
https://steemit.com/steem-guides/@anthonyadavisii/my-journey-w-steemit-commands-scripting-on-windows-10-pro-part-1-install-hyper-v-build-vm

My Journey w Steemit Commands/Scripting on Windows 10 Pro Part 2: Configure Virtual Machine Networking
https://steemit.com/steemit/@anthonyadavisii/my-journey-w-steemit-commands-scripting-on-windows-10-pro-part-2-configure-virtual-machine-networking

If you liked my articles so far and would like to donate, here are my various cryptocurrency receive addresses. Any donations would be greatly appreciated.

LTC wallet: LfP1he2KyZzGJYXwbSNdfLZ6wUNL71nBvt
DOGE wallet: DNAQbrku7HmxDSX8RayHp6cv4mum5XGERe
BTC wallet: 1BKV8gfFbWgeVJVqedsDj9TX9TWGxpCSEh
DASH wallet: XbfzvP7Jt3LaMe2x1ho97uJp4TdfiZ9C1W

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!