Thursday 16 February 2012

Working with GIT

Here are the commands I went through in adding my public key to scotland using the git utility... Commands in red are command that I executed


yum install git
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Install Process
Package git-1.7.6.5-1.fc15.i686 already installed and latest version
Nothing to do

git clone ssh://sbr600@scotland.proximity.on.ca/~/certs
Cloning into certs...
The authenticity of host 'scotland.proximity.on.ca (142.204.133.151)' can't be established.
RSA key fingerprint is e8:3f:bc:f4:74:93:c0:79:9d:62:7c:7a:cd:39:24:db.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'scotland.proximity.on.ca,142.204.133.151' (RSA) to the list of known hosts.
sbr600@scotland.proximity.on.ca's password:
remote: Counting objects: 23, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 23 (delta 6), reused 0 (delta 0)
Receiving objects: 100% (23/23), done.
Resolving deltas: 100% (6/6), done.
[root@localhost ~]#  cd certs/
[root@localhost certs]# ll

[root@localhost certs]# ls
asalwi.pub  challahar.pub  ctyler.pub  readme.txt
[root@localhost certs]# ls -alh
total 28K
drwxr-xr-x.  3 root root 4.0K Feb 16 10:36 .
dr-xr-x---. 12 root root 4.0K Feb 16 10:36 ..
-rw-r--r--.  1 root root  395 Feb 16 10:36 asalwi.pub
-rw-r--r--.  1 root root  396 Feb 16 10:36 challahar.pub
-rw-r--r--.  1 root root  412 Feb 16 10:36 ctyler.pub
drwxr-xr-x.  8 root root 4.0K Feb 16 10:36 .git
-rw-r--r--.  1 root root  725 Feb 16 10:36 readme.txt

[root@localhost certs]# cp /home/craig/.ssh/id_rsa.pub ccain1.pub
 
[root@localhost certs]# ls -alh
total 32K
drwxr-xr-x.  3 root root 4.0K Feb 16 10:39 .
dr-xr-x---. 12 root root 4.0K Feb 16 10:36 ..
-rw-r--r--.  1 root root  395 Feb 16 10:36 asalwi.pub
-rw-r--r--.  1 root root  409 Feb 16 10:39 ccain1.pub
-rw-r--r--.  1 root root  396 Feb 16 10:36 challahar.pub
-rw-r--r--.  1 root root  412 Feb 16 10:36 ctyler.pub
drwxr-xr-x.  8 root root 4.0K Feb 16 10:36 .git
-rw-r--r--.  1 root root  725 Feb 16 10:36 readme.txt

[root@localhost certs]# git checkout -b craigcain
Switched to a new branch 'craigcain'

[root@localhost certs]# git branch
* craigcain
  master

[root@localhost certs]# git checkout master
Switched to branch 'master'

[root@localhost certs]# git branch
  craigcain
* master

[root@localhost certs]# ls -alh
total 32K
drwxr-xr-x.  3 root root 4.0K Feb 16 10:39 .
dr-xr-x---. 12 root root 4.0K Feb 16 10:36 ..
-rw-r--r--.  1 root root  395 Feb 16 10:36 asalwi.pub
-rw-r--r--.  1 root root  409 Feb 16 10:39 ccain1.pub
-rw-r--r--.  1 root root  396 Feb 16 10:36 challahar.pub
-rw-r--r--.  1 root root  412 Feb 16 10:36 ctyler.pub
drwxr-xr-x.  8 root root 4.0K Feb 16 10:40 .git
-rw-r--r--.  1 root root  725 Feb 16 10:36 readme.txt

[root@localhost certs]# git checkout c
ccain1.pub     challahar.pub  ctyler.pub    

[root@localhost certs]# git checkout craigcain
Switched to branch 'craigcain'
[root@localhost certs]# ll
total 20
-rw-r--r--. 1 root root 395 Feb 16 10:36 asalwi.pub
-rw-r--r--. 1 root root 409 Feb 16 10:39 ccain1.pub
-rw-r--r--. 1 root root 396 Feb 16 10:36 challahar.pub
-rw-r--r--. 1 root root 412 Feb 16 10:36 ctyler.pub
-rw-r--r--. 1 root root 725 Feb 16 10:36 readme.txt

[root@localhost certs]# git add ccain1.pub

 [root@localhost certs]# git commit -m "Added my public key"
[craigcain b7f7ab9] Added my public key
 Committer: root <root@localhost.localdomain>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

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

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 ccain1.pub
[root@localhost certs]# git config --global user.name "Craig Cain"
[root@localhost certs]# git config --global user.email ccain1@learn.senecac.on.ca
[root@localhost certs]# git log
commit b7f7ab94215869ab5eedad3e0be86fc75bbc1a29
Author: root <root@localhost.localdomain>
Date:   Thu Feb 16 10:43:34 2012 -0500

    Added my public key

commit 3700cdca062f88dfc9a1e81ba780ad1fa8e21338
Merge: 076fe42 a4c5b6c
Author: Chris Tyler <chris@tylers.info>
Date:   Thu Feb 16 10:27:33 2012 -0500

    Merge branch 'celeste'

commit 076fe42622bdc30401cc2d52be23681e809ecbbd
Merge: dee8082 a974b38
Author: Chris Tyler <chris@tylers.info>
Date:   Thu Feb 16 10:20:17 2012 -0500

    Merge branch 'public_key'

commit a974b384316bd02e96d8b3e94b63020978f106a1
Author: Aries Alwi <asalwi@localhost.localdomain>
Date:   Thu Feb 16 10:16:54 2012 -0500

    Added a public key

commit dee80828c308906e65718932c5ea903bc5a8c696
Author: Chris Tyler <chris@muskoka.(none)>
Date:   Thu Feb 16 10:09:37 2012 -0500

    Edited readme.txt

commit 2bf1886ad480445e33bca5aff5251a2dc7ef986f
Author: Chris Tyler <chris@tylers.info>
Date:   Thu Feb 16 09:55:59 2012 -0500

    Edited readme.txt

commit f9dc5090b8cfa7e535473fec6d130137ef700c17
Author: Chris Tyler <chris@tylers.info>
Date:   Thu Feb 16 09:54:29 2012 -0500

    Added ctyler, edited readme

commit ed36b6aa4b27efa15e4897161f2046c6f42c41ec
Author: Chris Tyler <chris@tylers.info>
Date:   Thu Feb 16 09:48:07 2012 -0500

    Initial commit

commit a4c5b6c069b3bd31cb9a1daaeffc2dcbd16d15b1
Author: root <root@challahar.(none)>
Date:   Thu Feb 16 05:24:00 2012 -0500

    Added the file challahar.pub

[root@localhost certs]# git push origin craigcain:craigcain
sbr600@scotland.proximity.on.ca's password:
Counting objects: 15, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (13/13), 2.16 KiB, done.
Total 13 (delta 4), reused 9 (delta 3)
To ssh://sbr600@scotland.proximity.on.ca/~/certs
 * [new branch]      craigcain -> craigcain

[root@localhost certs]# git status
# On branch craigcain
nothing to commit (working directory clean)
[root@localhost certs]# clear

***************************
[craig@localhost ~]$ ssh ccain1@scotland.proximity.on.ca
Last login: Thu Feb 16 11:12:09 2012 from 142.204.141.105

***************************
 Tested here to make sure I could log on successfully without a password!!

Wednesday 8 February 2012

Building an RPM

Started building an RPM although should already be done... Will check back when it is finished and will go through steps of how I did it

Compiling from Source

This is the package that I installed on my Fedora 15 machine : http://www.gnu.org/software/anubis/

GNU Anubis is an SMTP message submission daemon.

Went to the GNU Project Archives and downloaded the source package:  anubis-4.1.1.tar.gz

Put in into a /tmp directory and continued to unpack the ball "tar xvzf anubis-4.1.1.tar.gz"

cd'd into the directory and ran command ./configure

make to compile and make install to install






Thursday 2 February 2012

Communication Lab

Hi all my name is Craig Cain, currently a student at Seneca@York.

I have a wiki page setup @ http://zenit.senecac.on.ca/wiki/index.php/User:Ccain1

My nick on irc is ccain1 im usualy on the #seneca channel

Seneca learn id (023657083)

The raspberry pie project seems pretty cool, I looked it up on eBay but no dice