Skip to content

tlipoca9/dotfiles

Repository files navigation

dotfiles

init

https

sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/.local/bin init --apply https://github.com/tlipoca9/dotfiles.git

ssh

sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/.local/bin init --apply [email protected]:tlipoca9/dotfiles.git

init with new user (linux)

configure proxy

export PROXY_ADDRESS="http://<proxy_address>:<proxy_port>"
export HTTP_PROXY=$PROXY_ADDRESS
export HTTPS_PROXY=$PROXY_ADDRESS

echo "export PROXY_ADDRESS=$PROXY_ADDRESS" >> /etc/bashrc
echo "export HTTP_PROXY=$PROXY_ADDRESS" >> /etc/bashrc
echo "export HTTPS_PROXY=$PROXY_ADDRESS" >> /etc/bashrc

echo "export PROXY_ADDRESS=$PROXY_ADDRESS" >> /etc/zshrc
echo "export HTTP_PROXY=$PROXY_ADDRESS" >> /etc/zshrc
echo "export HTTPS_PROXY=$PROXY_ADDRESS" >> /etc/zshrc

create new sudoers without password

./.scripts/sudoeradd.sh

change login shell

sudo su <new_user>
sudo cat /etc/shells | grep -E "^$(command -v zsh)" || (sudo echo "$(command -v zsh)" | sudo tee -a /etc/shells)
chsh -s "$(command -v zsh)"

copy ssh authorized_keys (optional)

sudo su <new_user>
mkdir -p ~/.ssh
sudo cp /root/.ssh/authorized_keys ~/.ssh/
sudo chmod 644 ~/.ssh/authorized_keys

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published