여러 프로그램으로 Ubuntu 21.10 설치

안녕하세요. 잘 지내고 있나요?

이 게시물에서는 가장 최근에 Ubuntu 21.10을 설치하는 동안 적어 두었던 스크립트를 다른 컴퓨터에서 다시 사용할 수 있도록 공유하겠습니다.

다음 섹션으로 나뉩니다.
  • Initial tasks
  • Install essential software
  • Tasks to do after install
  • Development
  • Browsers
  • Other softwares

  • Note: This script is constantly changing. Follow the Ubuntu 21.10 Installation gist for the most current version, in case the text below is out of date.



    초기 작업



    비밀번호 없이 sudo 사용




    # TODO: Check if entry already exists in sudoers file
    



    # It'll ask for password only once
    echo "${USER} ALL=(ALL:ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers
    


    설치된 프로그램 업데이트




    sudo apt update
    sudo apt upgrade -yV
    sudo apt autoremove -yV
    sudo apt autoclean
    


    Ubuntu가 하드웨어 시계에 현지 시간을 사용하도록 설정



    이중 부팅 설정에서 Windows 시계와의 충돌을 방지합니다.

    timedatectl set-local-rtc 1
    



    필수 소프트웨어 설치




    sudo apt install -y \
      apt-transport-https \
      bash \
      bat \
      chrome-gnome-shell \
      clang \
      cmake \
      curl \
      dconf-editor \
      dosfstools \
      findutils \
      gawk \
      git \
      gnome-shell-extension-prefs \
      gnome-tweaks \
      gpick \
      grep \
      grub-common \
      grub-pc-bin \
      htop \
      jq \
      libcurl4-openssl-dev \
      libffi-dev \
      libpython3-dev \
      libreadline-dev \
      libssl-dev \
      libtool-bin \
      libwim15 \
      libwxbase3.0-0v5 \
      libwxgtk3.0-gtk3-0v5 \
      libxslt1-dev \
      libxt-dev \
      libyaml-dev \
      make \
      ntfs-3g \
      p7zip \
      p7zip-full \
      parted \
      python3-wxgtk4.0 \
      qt5ct \
      samba \
      tmux \
      ubuntu-restricted-extras \
      unrar \
      util-linux \
      vim \
      wget \
      wimtools \
      xclip \
      zlib1g-dev \
      zsh
    



    설치 후 수행할 작업



    zsh 기본 쉘을 사용자 및 루트로 설정




    sudo chsh -s $(which zsh) ${USER}
    sudo chsh -s $(which zsh) root
    


    삼바 사용자 추가




    sudo smbpasswd -a ${USER}
    



    개발



    PHP



    PHP 7.4




    sudo add-apt-repository -y ppa:ondrej/php
    sudo sed -i 's/impish/focal/' /etc/apt/sources.list.d/ondrej-ubuntu-php-impish.list
    sudo apt update
    sudo apt install -y php7.4-{cli,curl,fpm,mcrypt,xdebug,xml,zip}
    


    작곡가




    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    php composer-setup.php
    php -r "unlink('composer-setup.php');"
    sudo mv composer.phar /usr/local/bin/composer                            
    


    PHP 코드스니퍼(PHPCS)




    composer global require squizlabs/php_codesniffer=3.6.0
    



    파이썬



    파이썬 3




    sudo apt install -y python-is-python3 python3-pip
    



    루비



    루비 2.7.1




    sudo apt install -y rbenv ruby-build
    echo 'eval "$(rbenv init -)"' >> ~/.zshrc
    source ~/.zshrc
    rbenv install 2.7.1
    rbenv global 2.7.1
    


    골룸(Gitlab 위키)




    gem install gollum
    



    IDE



    숭고한 텍스트




    wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
    echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
    sudo apt update
    sudo apt install -y sublime-text
    


    VS 코드




    sudo apt install wget gpg
    wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
    sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
    sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
    rm -f packages.microsoft.gpg
    sudo apt update
    sudo apt install -y code
    



    DBMS



    디비버




    sudo add-apt-repository -y ppa:serge-rider/dbeaver-ce
    sudo apt install -y dbeaver-ce
    


    MySQL 워크벤치




    sudo apt install -y mysql-workbench
    



    DevOps 도구



    도커




    curl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh get-docker.sh
    rm -f get-docker.sh
    


    도커 작성



    I'm still using v1.29.2 because of incompatibilities with BuildKit in some projects I work.



    sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    


    앤서블




    sudo apt install -y ansible
    


    테라포밍




    sudo apt install -y terraform
    





    curl -fsSL https://kool.dev/install | BIN_PATH=~/.local/bin/kool bash
    


    헤로쿠




    curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
    


    미니큐브




    curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
    sudo install minikube-linux-amd64 /usr/local/bin/minikube
    



    RestAPI



    우편 집배원




    curl -Lo postman-linux-x64.tar.gz https://dl.pstmn.io/download/latest/linux64
    tar zxvf postman-linux-x64.tar.gz
    rm -f postman-linux-x64.tar.gz
    sudo mv Postman /opt
    sudo ln -sf /opt/Postman/Postman /usr/local/bin/postman
    sudo ln -sf /opt/Postman/Postman /usr/bin/postman
    



    브라우저



    용감한




    sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave.list
    sudo apt update
    sudo apt install -y brave-browser
    


    크롬




    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    sudo apt install -y ./google-chrome-stable_current_amd64.deb
    rm -f google-chrome-stable_current_amd64.deb
    


    파이어폭스




    sudo snap remove firefox --purge
    sudo apt install -y firefox
    


    마이크로소프트 엣지 개발




    curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
    sudo install -o root -g root -m 644 microsoft.gpg /usr/share/keyrings/
    sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list'
    sudo rm -f microsoft.gpg
    sudo apt update
    sudo apt install -y microsoft-edge-dev
    



    기타 소프트웨어



    발레나 에처




    curl -1sLf 'https://dl.cloudsmith.io/public/balena/etcher/setup.deb.sh' | sudo -E bash
    sudo apt update
    sudo apt install -y balena-etcher-electron
    


    클레멘타인




    sudo apt install -y clementine
    


    플랫팩




    sudo apt install -y \
      gnome-software \
      gnome-software-plugin-flatpak \
      flatpak
    


    갈라진




    sudo apt install -y gparted
    


    그럽 커스터마이저




    sudo apt install -y grub-customizer
    


    니모




    sudo apt install -y nemo
    


    Numlockx




    sudo apt install -y numlockx
    


    몰래 엿보다




    sudo add-apt-repository -y ppa:peek-developers/stable
    sudo apt install -y peek
    


    qBitTorrent




    sudo add-apt-repository -y ppa:qbittorrent-team/qbittorrent-stable
    sudo apt install -y qbittorrent
    


    레미나




    sudo apt-add-repository -y ppa:remmina-ppa-team/remmina-next
    sudo apt install -y remmina remmina-plugin-rdp remmina-plugin-secret
    


    스마트깃




    # TODO: It is incomplete. Sorry :)
    tar xzf <smartgit*.tar.gz>
    bin/add-menuitem.sh
    


    스포티 파이




    curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | sudo apt-key add - 
    echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
    sudo apt update && sudo apt install -y spotify-client
    


    증기




    curl -0L https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb -o ~/Downloads/steam.deb
    sudo dpkg -i ~/Downloads/steam.deb
    rm -f ~/Downloads/steam.deb
    


    터미네이터




    sudo apt install -y terminator
    


    테스트 디스크




    sudo apt install -y testdisk
    


    턱시도 기타




    sudo apt install -y tuxguitar \
      tuxguitar-jsa \
      fluid-soundfont-gm \
      fluid-soundfont-gs \
      fluidsynth \
      timidity
    


    타이포라




    wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
    sudo add-apt-repository -y 'deb https://typora.io/linux ./'
    sudo apt install -y typora
    


    WoeUSB




    sudo add-apt-repository -y ppa:tomtomtom/woeusb
    sudo apt install -y woeusb-frontend-wxgtk
    





    wget https://zoom.us/client/latest/zoom_amd64.deb -O zoom.deb
    sudo apt install -y ./zoom.deb
    rm -f zoom.deb
    

    좋은 웹페이지 즐겨찾기