Created
September 2, 2021 20:31
-
-
Save ehrktia/c93a98d42cb885cc219b7a60c35582a7 to your computer and use it in GitHub Desktop.
dev setup in debian
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
#! /usr/bin/bash | |
-e TERM=xterm | |
clear | |
working_dir=`pwd` | |
os_name=`uname` | |
tools_list_file='list' | |
git_folder='github-repos' | |
git_username='ehrktia' | |
declare -a tools_list | |
echo "current working dir is: ${working_dir}" | |
pushd ${working_dir} || exit 1 | |
echo "operating system: ${os_name}" | |
#create dir for all source code from github | |
mkdir -p $git_folder > /dev/null 2>&1 || exit 1 | |
# clone dot files repo. | |
git clone https://github.com/$git_username/dotfiles.git $git_folder/dotfiles || exit 1 | |
# rust installation and setup using curl | |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh | |
wait | |
if [[ $? > 0 ]]; then | |
echo "error installing rust" | |
exit 1 | |
fi | |
# update rust after installation | |
rustup update stable | |
# alacritty install and setup | |
git clone https://github.com/alacritty/alacritty.git $git_folder/alacritty || exit 1 | |
pushd $git_folder/alacritty | |
sudo apt-get install cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3 | |
wait | |
if [[ $? >0 ]]; then | |
echo"error installing alacritty dependencies" | |
exit 1 | |
fi | |
cargo build --release | |
if [[ $? > 0 ]];then | |
echo "error building alacritty" | |
exit 1 | |
fi | |
# install additional alacritty components. | |
sudo tic -xe alacritty,alacritty-direct extra/alacritty.info | |
sudo cp target/release/alacritty /usr/bin/alacritty | |
# install golang#Download Latest Go | |
wget -v https://dl.google.com/go/go1.17.linux-amd64.tar.gz | |
sudo rm -rf /usr/local/go || exit 1 | |
sudo tar -C /usr/local -xzf go1.17.linux-amd64.tar.gz || exit 1 | |
export PATH=$PATH:/usr/local/go/bin | |
# install docker | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get update -y | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release -y | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
sudo apt-get update -y | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
# install ruby | |
sudo apt-get install ruby-full -y | |
# install neovim | |
sudo apt-get install neovim -y | |
sudo apt-get install python3-neovim -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to setup debian based distro with dev tools