Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 622 Bytes

remote-servers.md

File metadata and controls

32 lines (24 loc) · 622 Bytes

For remote servers

.bashrc

if tmux ls; then
  tmux a
else
  tmux
fi
function t() {
    session_name=$(tmux ls | fzf | awk -F: '{print $1}')
    tmux a -t $session_name
}

APT mirror changes

sudo sed -i.bak -e "s%http://jp.archive.ubuntu.com/ubuntu/%http://ftp.jaist.ac.jp/pub/Linux/ubuntu/%g" /etc/apt/sources.list

apt-getの利用リポジトリを日本サーバーに変更する #Ubuntu - Qiita

sudo password less

sudo sed -e 's/%sudo\sALL=(ALL:ALL) /&NOPASSWD:/' /etc/sudoers | sudo EDITOR=tee visudo >/dev/null