Saving Server Configurations Under Git

Written by  on January 16, 2014

At my current work we create a git repository per server and check in the relevant configuration files order to keep track of work done on individual servers.

  • for each server you have to make a repo on git.
    git:/home/pdxadmin $ cd serverconfigs
    git:/home/pdxadmin/serverconfigs $ mkdir smtp-etc.git
    git:/home/pdxadmin/serverconfigs $ cd smtp-etc.git
    git:/home/pdxadmin/serverconfigs/smtp-etc.git $ git init --bare
    Initialized empty Git repository in /home/pdxadmin/serverconfigs/smtp-etc.git/
    git:/home/pdxadmin/serverconfigs/smtp-etc.git $ git update-server-info
    git:/home/pdxadmin/serverconfigs/smtp-etc.git $ echo "postfix">description
    git:/home/pdxadmin/serverconfigs $ cd ..
  • create a dsa key and send it to git.
    smtp:/etc # ssh-keygen -t dsa
    Generating public/private dsa key pair.
    Enter file in which to save the key (/root/.ssh/id_dsa): 
    Enter passphrase (empty for no passphrase): 
    Enter same passphrase again: 
    Your identification has been saved in /root/.ssh/id_dsa.
    Your public key has been saved in /root/.ssh/id_dsa.pub.
    The key fingerprint is:
    4d:bd:a0:0c:1a:e8:46:64:6a:47:fc:cd:ed:f4:5e:fe root@smtp.NGI-dev
    The key's randomart image is:
    +--[ DSA 1024]----+
    |  +.             |
    | +.o       .     |
    |..o.o + . o .    |
    |.o.  + = * . .   |
    |  o .   S o .    |
    | .       . . .   |
    |          . o    |
    |           . .   |
    |              .E |
    +-----------------+
    smtp:/etc # scp ~/.ssh/id_dsa.pub pdxadmin@git:/tmp/
    The authenticity of host 'git (192.168.0.103)' can't be established.
    ECDSA key fingerprint is 50:0c:88:f3:8f:13:e0:7c:79:0a:b9:f8:d5:90:dc:5b.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'git,192.168.0.103' (ECDSA) to the list of known hosts.
    Password: 
    id_dsa.pub                                                                                                         100%  607     0.6KB/s   00:00    
    smtp:/etc # git:/home/pdxadmin/serverconfigs $
  • add it to authorized keys
    git:/home/pdxadmin $ cat /tmp/id_dsa.pub >>~/.ssh/authorized_keys
  • create local repo and push it to git.
    smtp:/etc # zypper install git-core
    smtp:/etc # git init
    Initialized empty Git repository in /etc/.git/
    smtp:/etc # git add postfix
    smtp:/etc # git commit -m "initial commit / postfix directory"
    [master (root-commit) 6f827ba] initial commit / postfix directory
     Committer: root <root@smtp.NGI-dev>
    ...
     create mode 100644 postfix/virtual.db
    smtp:/etc # git remote add origin pdxadmin@git:serverconfigs/smtp-etc.git
    smtp:/etc # git push -u origin master
    Counting objects: 62, done.
    Compressing objects: 100% (60/60), done.
    Writing objects: 100% (62/62), 68.57 KiB, done.
    Total 62 (delta 27), reused 0 (delta 0)
    To pdxadmin@git:serverconfigs/smtp-etc.git
     * [new branch]      master -> master
    Branch master set up to track remote branch master from origin.
    smtp:/etc #

The Closing of the Scientific Mind

Written by  on January 8, 2014

The Closing of the Scientific Mind

I find a lot to like about this article. But there are 2 irritants:

  1. sore misrepresentation of computationalism, and
  2. implicit accusation of false analogy surrounded by prose rife with false analogy.

(1) Computationalism does not blindly assert that a phone app could be conscious. Acceptance of the Church-Turing thesis is common. But there are plenty of scientists (even computer science people if you’re one to call them “scientists”) recognize that the structure of the machine matters not only to what type of programs will run (at all, or well) on that machine, but also to whether any given software and program state can be moved from one to another.

Anyone who believes in the caricature of computationalism as Gelernter describes it cannot actually work with computers, especially not embedded computers.

(2) “Man is only a computer if you ignore everything that distinguishes him from a computer.” Followed immediately by: “science today is the Catholic Church around the start of the 16th century”. I realize I’m committing tu quoque … but sheesh.