Linux barebones quickstart: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
Line 3: Line 3:




=== Set up ssh + scripts + config ===
=== Set up ssh ===
* '''SSH'''
  # openssh-server defaults are ok but see /etc/ssh/sshd_config for details
  # openssh-server defaults are ok but see /etc/ssh/sshd_config for details
  cd ~/.ssh
  cd ~/.ssh
Line 12: Line 11:
  ln -s id_rsa_3072_nopswd id_rsa
  ln -s id_rsa_3072_nopswd id_rsa
  # also add any other private keys and run [chmod 400] on them
  # also add any other private keys and run [chmod 400] on them
* '''SCRIPTS'''
 
=== Set up scripts ===
  cd && mkdir development && cd development
  cd && mkdir development && cd development
  git clone bitpost.com:development/scripts.git  
  git clone bitpost.com:development/scripts.git  
Line 19: Line 19:
  emacs -nw .bashrc  
  emacs -nw .bashrc  
  # export PATH=$HOME/scripts/[distro]/[machine]:$HOME/development/scripts/[distro]/i3:$HOME/development/scripts/[distro]:$PATH
  # export PATH=$HOME/scripts/[distro]/[machine]:$HOME/development/scripts/[distro]/i3:$HOME/development/scripts/[distro]:$PATH
* '''CONFIG'''
 
=== Set up config ===
  cd ~/development
  cd ~/development
  git clone bitpost.com:development/config.git  
  git clone bitpost.com:development/config.git  

Revision as of 12:29, 20 September 2017

Install the distro

Set up Ubuntu or Centos or some small embedded whateverism...


Set up ssh

# openssh-server defaults are ok but see /etc/ssh/sshd_config for details
cd ~/.ssh
scp [another-working-setup]:.ssh/authorized_keys .
scp [another-working-setup]:.ssh/id_rsa_3072_nopswd .
scp [another-working-setup]:.ssh/config .
ln -s id_rsa_3072_nopswd id_rsa
# also add any other private keys and run [chmod 400] on them

Set up scripts

cd && mkdir development && cd development
git clone bitpost.com:development/scripts.git 
cd && ln -s development/scripts scripts
mkdir scripts/[distro]/[new machine]
emacs -nw .bashrc 
# export PATH=$HOME/scripts/[distro]/[machine]:$HOME/development/scripts/[distro]/i3:$HOME/development/scripts/[distro]:$PATH

Set up config

cd ~/development
git clone bitpost.com:development/config.git 
cd config
mkdir [new machine]
mkdir [new machine]/[distro]
cd && ln -s /home/m/development/config/  optional:[gig]/  [new machine]/[distro] config

TODO start to revamp config from [machine]/[distro] to [distro]/[machine] to match scripts That will require a fix to each machine's ~/config symlink (but that should be all). And we should be able to do each machine separately from others. Get on it!