Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
691 lines (354 sloc) 16.5 KB

Fail log for week 2 - Ending 16 July 2017.

EXERCISE 1: learning markdown syntax with dillinger.io

Here is the markdown cheat sheet: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet

Failure: I was not in a good mood to write. Moving on but will return.

I cam back to this on Saturday morning pretty fired up after thinking about it. Also talking about the issue I wanted to discuss (the decline in the number of women studying in Computer Science since 1984) with my wife and daughter gave me additional insight. I am glad I procrastinated.

I made the post for the exercise in Dillinger.io, downloaded it and put it in Github.

Failures:

  1. I see the footnotes in Markdown in my post don't render in the Gitbub .md editor.
  2. I asked Dillinger.io to export as a pdf. It's hung. I tried export as Markdown and also Styled HTML, that worked. I will try again later.

EXERCISE 2: Getting familiar with DHBox

Get on Carleton University VPN

From my home computer I launched application Cisco AnyConnect Secure Mobility Client

I logged in with my CU ID

Now I am on Carleton U VPN

Open DHBox

Go to http://134.117.26.132:5000

Click Log in. Use DHBox ID.

Once logged in, click on my name in the upper right of the screen, click Apps.

Went into Command Line. Logged in with DHBox ID

Performed wget https://github.com/jgm/pandoc/releases/download/1.19.2.1/pandoc-1.19.2.1-1-amd64.deb

Result: 2017-07-11 01:53:12 (14.9 MB/s) - ‘pandoc-1.19.2.1-1-amd64.deb’ saved [21832762/21832762]

Performed: $ sudo dpkg -i pandoc-1.19.2.1-1-amd64.deb

Used my password because it was sudo

Result: pandoc was set up: Setting up pandoc (1.19.2.1-1) ...

Performed: $ pandoc -v

Result: version displayed: pandoc 1.19.2.1

Performed: $ history

Result: the history of commands I typed. 1 sudo dpkg -i pandoc-1.19.2.1-1-amd64.deb 2 pandoc -v 3 history

Performed: $ history > dhbox-work-today.md

$ ls dhbox-work-today.md pandoc-1.19.2.1-1-amd64.deb

$ pwd

/home/jeffblackadar

Result: File dhbox-work-today.md is in home/jeffblackadar

Performed: $ nano dhbox-work-today.md

Result: -bash: nano: command not found

I need to install nano

Performed:

  1. $ sudo apt-get install nano
  2. $ nano dhbox-work-today.md

Result: nano opened with the contents of dhbox-work-today.md

Nano user guide: https://www.howtogeek.com/howto/42980/the-beginners-guide-to-nano-the-linux-command-line-text-editor/

I saved dhbox-work-today.md to local C:\a_orgs\carleton\hist3814

Performed: $ pandoc -o todayscommands.docx dhbox-work-today.md

Result: $ ls

dhbox-work-today.md pandoc-1.19.2.1-1-amd64.deb todayscommands.docx

Performed: $ pandoc -o todayscommands.html dhbox-work-today.md

Result: $ ls

dhbox-work-today.md pandoc-1.19.2.1-1-amd64.deb todayscommands.docx todayscommands.html

Command keyboard shortcuts https://help.ubuntu.com/community/AdvancedCommandlineHowto#Keyboard_shortcuts

Exercise 3.

I created a repository in Gitbub. Then I was asked to do a "Quick setup — if you’ve done this kind of thing before." Apparently I need to run some commands to set up necessary files like a readme.md. This is different than when I made my first repository. I am wondering if I am seeing this because I already made a repository and the first one gets set up with all of the necessary files (like readme.md) out of the box. I am not sure what to do, I expect I will learn about the commands Github expects me to run in exercise 4. I mention this because I can't really proceed to the next part of this exercise until I solve this.

Fail: I forgot to commit the solution to this problem I wrote as an annotation while at the coffee shop. Here it is below.

There was a message "We recommend every repository include a README, LICENSE, and .gitignore." Each of "README, LICENSE, and .gitignore." was linked. When I clicked on each link, Github opened an editor which allowed me to create and commit each of these files. This allowed me to use the repository without seeing the page indicating I needed to set these files up.

Excercise 3, Git init, continued

Performed:

$ mkdir first-repo

Results: Success: $ ls

dhbox-work-today.md first-repo

Performed:

Create the readme file with the $ nano readme.md.

Results: File created. Watch out for typing CTRL+Z instead of CTRL+X, I lost a bit of work.

Performed:

$ Git Init

Results: Initialized empty Git repository in /home/jeffblackadar/first-repo/.git/

:~/first-repo$ ls

readme.md

:~/first-repo$ cd .git

:~/first-repo/.git$ ls

branches config description HEAD hooks info objects refs

:~/first-repo/.git$

I see there is a "hidden" folder called .git with what looks like are folders to contain version tracking for git

I did a cd \ and ended up at the root directory (I think). I did a cd ~ and got back to where I needed to be.

Performed:

$ git status

Result:

On branch master

Initial commit

Untracked files:

(use "git add ..." to include in what will be committed)

readme.md

nothing added to commit but untracked files present (use "git add" to track)

Performed:

$ git commit -m "My first commit"

Result: (Fail)

:~/first-repo$ git commit -m "My first commit"

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"

git config --global user.name "Your Name"

to set your account's default identity.

Omit --global to set the identity only in this repository.

fatal: empty ident name (for <jeffblackadar@b7c243999794.(none)>) not allowed

Performed:

:~/first-repo$ git config --global user.email "jeffblackadar@gmail.com"

:~/first-repo$ git config --global user.name "Jeff Blackadar"

:~/first-repo$ git commit -m "My first commit"

Result: (Fail I think)

On branch master

Initial commit

Untracked files:

readme.md

nothing added to commit but untracked files present

Here is why that failed. I skipped $ git add -A. (Git switches as case sensitive.)

Performed:

:~/first-repo$ git add -A

:~/first-repo$ git status

Result:

On branch master

Initial commit

Changes to be committed:

(use "git rm --cached ..." to unstage)

new file: readme.md

Performed:

:~/first-repo$ git commit -m "My first commit"

Result:

[master (root-commit) 8054f79] My first commit

1 file changed, 2 insertions(+)

create mode 100644 readme.md

Performed:

nano readme.md

Performed:

:~/first-repo$ git commit

Result:

On branch master

Changes not staged for commit:

modified: readme.md

no changes added to commit

** Fail: ** Although I modified readme.md with nano, and git said the file was modified, it says it is not staged for commit. So I did a $git add readme.md. See below

:~/first-repo$ git status

On branch master

Changes not staged for commit:

(use "git add ..." to update what will be committed)

(use "git checkout -- ..." to discard changes in working directory)

modified: readme.md

no changes added to commit (use "git add" and/or "git commit -a")

:~/first-repo$ git add readme.md

:~/first-repo$ git status

On branch master

Changes to be committed:

(use "git reset HEAD ..." to unstage)

modified: readme.md

Performed:

:~/first-repo$ git commit

Result:

[master 70774ef] This commit represents a small edit to readme.md to test a commit using the command line.

1 file changed, 1 insertion(+)

Created 2 more files, added and committed them.

Performed:

:~/first-repo$ git log

Result:

commit 8085aa65f590f8f404c0cef169f2d6e4e5776891

Author: Jeff Blackadar jeffblackadar@gmail.com

Date: Sat Jul 15 21:10:51 2017 +0000

Adding 2 files: Presidents of the OHS and Railway stations of Western Nova Scotia.

commit 70774efb426fc3eddb9df4835926572ec108228c

Author: Jeff Blackadar jeffblackadar@gmail.com

Date: Sat Jul 15 21:01:11 2017 +0000

This commit represents a small edit to readme.md to test a commit using the command line.

commit 8054f79ab398dd1a871474458e8024458ad22dbf

Author: Jeff Blackadar jeffblackadar@gmail.com

Date: Sat Jul 15 20:53:00 2017 +0000

My first commit

Log times are GMT.

Performed a branch:

:~/first-repo$ git checkout -b railwaysInCapeBreton 70774efb426fc3eddb9df4835926572ec108228c

Switched to a new branch 'railwaysInCapeBreton'

:~/first-repo$ git status

On branch railwaysInCapeBreton

nothing to commit, working directory clean

Listed files:

:~/first-repo$ ls

readme.md

Success: I am back at the point in my project before I added files about railways in Southern Nova Scotia.

Module 1 Exercise 4.4

Created some additional files

:~/first-repo$ git log

commit 2ae9409b956824e440b084fdd9cde2fdaba3ee91

Author: Jeff Blackadar jeffblackadar@gmail.com

Date: Sat Jul 15 21:35:22 2017 +0000

Added Glace Bay Station

commit 324a1cddf4569ca6bae543d20cfaf31c9a2d3cef

Author: Jeff Blackadar jeffblackadar@gmail.com

Date: Sat Jul 15 21:33:41 2017 +0000

Information about railway stations in western Cape Breton

commit 70774efb426fc3eddb9df4835926572ec108228c

Author: Jeff Blackadar jeffblackadar@gmail.com

Date: Sat Jul 15 21:01:11 2017 +0000

This commit represents a small edit to readme.md to test a commit using the command line.

commit 8054f79ab398dd1a871474458e8024458ad22dbf

Author: Jeff Blackadar jeffblackadar@gmail.com

Date: Sat Jul 15 20:53:00 2017 +0000

My first commit

Performed:

:~/first-repo$ git checkout master

Switched to branch 'master'

Performing merge:

:~/first-repo$ git branch -va

  • master 8085aa6 Adding 2 files: Presidents of the OHS and Railway stations of Western Nova Scotia.

railwaysInCapeBreton 2ae9409 Added Glace Bay Station

:~/first-repo$ git merge railwaysInCapeBreton

Merge made by the 'recursive' strategy.

GlaceBayStation.md | 2 ++

JudiqueStation.md | 1 +

MeatCoveStation.md | 1 +

PortHoodStation.md | 1 +

4 files changed, 5 insertions(+)

create mode 100644 GlaceBayStation.md

create mode 100644 JudiqueStation.md

create mode 100644 MeatCoveStation.md

create mode 100644 PortHoodStation.md

4.5 Push to Github

:~/first-repo$ git remote add origin https://github.com/jeffblackadar/module1_exercise4.git

:~/first-repo$ git push -u origin master

Username for 'https://github.com': jeffblackadar

Password for 'https://jeffblackadar@github.com':

Counting objects: 20, done.

Delta compression using up to 20 threads.

Compressing objects: 100% (14/14), done.

Writing objects: 100% (20/20), 2.15 KiB | 0 bytes/s, done.

Total 20 (delta 4), reused 0 (delta 0)

remote: Resolving deltas: 100% (4/4), done.

To https://github.com/jeffblackadar/module1_exercise4.git

  • [new branch] master -> master

Branch master set up to track remote branch master from origin.

** Result: I see all my files on Git Hub! **

Adding a new file, pushing it up

:~/first-repo$ nano MyraBridge.md

:~/first-repo$ git add -A

:~/first-repo$ git commit

[master 7131c5b] Adding file for railway station at Myra Bridge

1 file changed, 1 insertion(+)

create mode 100644 MyraBridge.md

jeffblackadar@b7c243999794:~/first-repo$ git push -u origin master

Username for 'https://github.com': jeffblackadar

Password for 'https://jeffblackadar@github.com':

remote: Invalid username or password.

fatal: Authentication failed for 'https://github.com/jeffblackadar/module1_exercise4.git/'

** I mistyped my password **

:~/first-repo$ git push -u origin master

Username for 'https://github.com': jeffblackadar

Password for 'https://jeffblackadar@github.com':

Counting objects: 4, done.

Delta compression using up to 20 threads.

Compressing objects: 100% (2/2), done.

Writing objects: 100% (3/3), 333 bytes | 0 bytes/s, done.

Total 3 (delta 1), reused 0 (delta 0)

remote: Resolving deltas: 100% (1/1), completed with 1 local object.

To https://github.com/jeffblackadar/module1_exercise4.git 451e294..7131c5b master -> master

Branch master set up to track remote branch master from origin.

Result: I see MyraBridge.md on GitHub

4.6 Git Clone

Went to https://github.com/octocat/Spoon-Knife.

Clicked the 'fork' button at top-right.

Success: I see a Spoon-Knife repository in my GitHub

:~$ git clone https://github.com/YOUR-USERNAME/Spoon-Knife

Cloning into 'Spoon-Knife'...

Username for 'https://github.com': jeffblackadar

Password for 'https://jeffblackadar@github.com':

remote: Repository not found.

fatal: repository 'https://github.com/YOUR-USERNAME/Spoon-Knife/' not found

** Fail ** I should not have copied YOUR-USERNAME

:~$ git clone https://github.com/jeffblackadar/Spoon-Knife

Cloning into 'Spoon-Knife'...

remote: Counting objects: 16, done.

remote: Total 16 (delta 0), reused 0 (delta 0), pack-reused 16

Unpacking objects: 100% (16/16), done.

Checking connectivity... done.

4.7

Made a new file

$ nano spork.md

Before $ git push -u origin master would do anything I needed to...

$ git add -A

$ git commit

THEN

$ git push -u origin master

Result: spork.md was on GitHub

$ git checkout -b fife 92b04c03ae8e8cfe208f3aebf3852c3bca0d5784

Switched to a new branch 'fife'

:~/Spoon-Knife$ nano fife.md

:~/Spoon-Knife$ git remote add upstream https://github.com/octocat/Spoon-Knife.git

:~/Spoon-Knife$ git fetch upstream

From https://github.com/octocat/Spoon-Knife

  • [new branch] change-the-title -> upstream/change-the-title

  • [new branch] master -> upstream/master

  • [new branch] test-branch -> upstream/test-branch

For this part:

Now let's make a pull request (you might want to bookmark this help document). Go to your copy of your classmate's repository at your Github account. Make sure you've selected the correct branch you pushed your changes to, by selecting it from the Branches menu drop down list.

Before I could see the fife branch I had made I had to push it up:

:~/Spoon-Knife$ git push -u origin fife

To https://github.com/jeffblackadar/Spoon-Knife

  • [new branch] fife -> fife

Branch fife set up to track remote branch fife from origin.

** added and committed fife.md to fife branch **

:~/Spoon-Knife$ git add -A

:~/Spoon-Knife$ git commit

[fife 01867a3] Adding fife.md

1 file changed, 1 insertion(+)

create mode 100644 fife.md

:~/Spoon-Knife$ git push -u origin fife

Total 3 (delta 1), reused 0 (delta 0)

remote: Resolving deltas: 100% (1/1), completed with 1 local object.

To https://github.com/jeffblackadar/Spoon-Knife

92b04c0..01867a3 fife -> fife

Branch fife set up to track remote branch fife from origin.

** Pull request **

Result: Success Branch fife set up to track remote branch fife from origin.

jeffblackadar added some commits 33 minutes ago @jeffblackadar Adding Spork.md 92b04c0 @jeffblackadar Adding fife.md 01867a3

4.8 Merge

I set up another account called pstyle, forked my Spoon-Fork project from Jeff Blackadar, cloned it to the local machine on DHBox, added a file called Spife.md, made a pull request.
I signed into the jeffblackadar GitHub and saw the pull request and activated it. I merged the new file (great work pstyle!) into the project. This makes sense to me now and I now get how people on opensource projects are able to contribute. I deleted account pstyle on GitHib so that I don't clog it up with temporary accounts.

Raspberry Pi - Using it for VPN and other course work.

Github on Raspberry Pi

I started making notes in my fail log and did not read that Github does not support the version of Safari or Chromium that are on the Pi (updates were run)

A user could see some things.

Slack on Raspberry Pi

Slack does not support the version of Safari or Chromium that are on the Pi (updates were run)

A user could see some things too.

Hypothes.is on Raspberry Pi

Hypothesis does not work for annotations on versions of Safari or Chromium that are on the Pi (updates were run)

I could see the annotations I had made after logging in.

VPN Connect on Pi

Open Connect

I followed these instructions

pi@raspberrypi ~ $ sudo apt-get update

-result: Reading package lists... Done

pi@raspberrypi ~ $ sudo apt-get install openconnect vpnc-scripts -y

-result: Setting up openconnect (3.20-4) ...

pi@raspberrypi ~ $ opkg update

-result: fail. bash: opkg: command not found

pi@raspberrypi ~ $ opkg install openconnect vpnc-scripts

-result: fail. bash: opkg: command not found

--- I stopped here.

Carleton AnyConnect VPN

I followed these instructions:

https://carleton.ca/its/help-centre/remote-access/cisco-anyconnect-secure-mobility-client-for-linux/

At first I was using the Chromium Web Browser on the Pi - that failed.

I then used the Safari web browser on the Pi

I was able to log in

The AnyConnect software launched - but it downloaded the Windows version.

--- I stopped here. I will ask for help. It is not time senstitive