Created
March 15, 2014 21:10
-
-
Save skhavari/9573956 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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