Skip to content

Instantly share code, notes, and snippets.

@skhavari
Created March 15, 2014 21:10
Show Gist options
  • Save skhavari/9573956 to your computer and use it in GitHub Desktop.
Save skhavari/9573956 to your computer and use it in GitHub Desktop.
// change root password
$ passwd
// set timezone
$ ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
// set hostname
$ echo rasp > /etc/hostname
$ hostname rasp
// add user
$ useradd -m -g users -s /bin/bash sam
$ passwd sam
// install sudo
$ pacman -S sudo
$ visudo
$ groupadd sudo
$ usermod -a -G sudo sam
// setup ssh to pub key auth
skav:~ skhavari$ ssh sam@rasp mkdir -p .ssh
sam@rasp's password: *********************
skav:~ skhavari$ cat .ssh/id_rsa
skav:~ skhavari$ cat .ssh/id_rsa.pub | ssh sam@rasp 'cat >> .ssh/authorized_keys'
sam@rasp's password: *********************
skav:~ skhavari$ ssh sam@rasp
Last login: Fri Aug 9 15:55:31 2013 from 192.168.1.107
[sam@rasp ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment