# basic isard vm's setup [TOC] ## server ``` sudo hostnamectl set-hostname server grep " server$" /etc/hosts || sudo sed -i -e '$a127.0.0.1 server' /etc/hosts sudo update-alternatives --set editor /usr/bin/vim.basic sudo sed -i '/^%sudo/ s/ALL$/NOPASSWD: ALL/' /etc/sudoers ``` ## client ``` IP_SERVER=10.23.100.254 #(no idempotent) sudo sed -i '/^%sudo/ s/ALL$/NOPASSWD: ALL/' /etc/sudoers sudo sed -i '/^%sudo/ c\%sudo ALL=(ALL:ALL) NOPASSWD: ALL' /etc/sudoers sudo update-alternatives --set editor /usr/bin/vim.basic sudo hostnamectl set-hostname desktop grep " desktop$" /etc/hosts || sudo sed -i -e '$a127.0.0.1 desktop' /etc/hosts alias ssh='ssh -o StrictHostKeyChecking=accept-new' ssh-keygen -t ed25519 -C "isard" -N "" -f ~/.ssh/isard ssh-copy-id -i ~/.ssh/isard $IP_SERVER ssh $IP_SERVER ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up