[Linux] [Initial Settings] Install & Uninstall

OS

Beginning of the beginning

https://qiita.com/osorezugoing/items/2b48f88d947636421e4a

Create & install package list

Export


sudo dpkg-query -f '${binary:Package}\n' -W > packages_list.txt

Read


sudo xargs -a packages_list.txt apt install

Uninstall

・ Tomboy ・ Redshift ・ Xreader ・ Xviewer ・ Onboard ・ Gucharmap ・ Firefox ・ Hexchat ・ Thunderbird ・ Simple-scan ・ Pix ・ Rhythmbox ・ Xplayer ・ Vim-tiny ・ Vim-common ・ Onboard ・ Mint welcome

sudo apt purge firefox hexchat thunderbird tomboy redshift xreader xviewer xviewer gucharmap simple-scan pix rhythmbox xplayer mintwelcome  onboard vim-tiny vim-common 

Installation

apt (package available with apt)

** Input, font, codec **

system

development of

** Multimedia **

Add PPA

ubuntu-defaults-ja PPA added


wget -q https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | sudo apt-key add -
wget -q https://www.ubuntulinux.jp/ubuntu-jp-ppa-keyring.gpg -O- | sudo apt-key add -
sudo wget https://www.ubuntulinux.jp/sources.list.d/bionic.list -O /etc/apt/sources.list.d/ubuntu-ja.list

alacritty


sudo add-apt-repository ppa:mmstick76/alacritty

Bulk installation with apt

apt system


sudo apt update && \
sudo apt install -y libncurses5-dev libncursesw5-dev libclang-dev \
ubuntu-defaults-ja ubuntu-restricted-extras git make build-essential \
fcitx-mozc vim-gnome fonts-migmix gimp \ thunar ffmpegthumbnailer nomacs vlc \
audacious alacritty zsh ncdu xbindkeys \
xdotool cmake python3-dev python-dev \
libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386 \ tree
tmux 

npm system


sudo apt install nodejs npm && sudo npm install -U npm && sudo npm install -g yarn n && sudo n stable

dotfiles

After installing git Clone dotfiles from git

git clone https://github.com/username/dotfiles.git

git review

[Git] Push from local to remote and make minor corrections

Vim

YouCompleteMe setup


cd ~/.vim/plugged/YouCompleteMe && ./install.py --all

Rush

Since the alias of ls`` cat'grep' is set to ʻexa bat`` ripgrep`, it is necessary to install from cargo of rust.

Rust installation


curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

exa

exa installation


cargo install exa

bat

cargo install bat

procs

procs installation


cargo install procs

ripgrep

cargo install ripgrep

fd

cargo install fd-find

Bulk installation with cargo

cargo install exa bat procs ripgrep fd-find

Change shell to Zsh

chsh -s /bin/zsh

Log in again to complete the change

Change theme

https://github.com/sorin-ionescu/prezto

Clone repository


git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"

Shell options

extended_Set glob


setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
  ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done

By setting this, all extended notations such as exclusion patterns and case identification are possible. https://gihyo.jp/dev/serial/01/zsh-book/0004

Other settings

Import from dotfiles

Error handling

When you cannot execute / usr / local / bin / zsh when you try to sudo su

thunar extension

The one that displays thunar thumbnails


tumbler tumbler-plugins-extra

Non-apt (package not available with apt)

https://code.visualstudio.com/#alt-downloads

Foxt Reader https://www.foxitsoftware.com/pdf-reader

sudo chmod a+x FoxitReader*.run && sudo ./FoxitReader*.run

https://github.com/BurntSushi/ripgrep#installation

Wine

Installation

sudo dpkg --add-architecture i386 && \
wget -nc https://dl.winehq.org/wine-builds/winehq.key && \
sudo apt-key add winehq.key

bionic


sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' && \
sudo apt update

Stable version


sudo apt install --install-recommends winehq-stable

When the stable version is not stable(Lol)


sudo apt install --install-recommends winehq-devel

When it cannot be installed due to an error

Example) Error: winehq-devel: Depends: wine-devel (= x.xx ~ bionic)

This cannot be installed due to a missing package called faudio. Add packages from a third-party PPA.

Add PPA


sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt update && apt upgrade

Japanese font installation

sudo apt install -y winetricks \ && winetricks

--Install this and that

Insert backup file

--Copy and paste the configuration files backed up on the SSD

Recommended Posts

[Linux] [Initial Settings] Install & Uninstall
[Linux] [Initial Settings] System Settings
[Linux] [Initial Settings] Getting Started
[Linux] [Initial Settings] [Flutter] Summary
[Linux] [Initial Settings] Backup & Recovery
[Linux] [Initial Settings] Table of Contents
Flask initial settings
linux mono uninstall
[Linux] DNS settings
[Linux] su, sudo settings
Linux, Windows proxy settings
Install Minecraft on Arch Linux
Install Linux on your Chromebox
Anaconda 4.4.0 Initial Settings for Windows
Install the JDK on Linux
Initial settings from Kubuntu installation
Install tomcat 5.5 on Amazon Linux.
Raspbian initial settings (Raspberry Pi 4)
Install Homebrew on Amazon Linux 2
Install strongSwan 5.9.1 on Amazon Linux 2
[Linux] [Initial Settings] Table of Contents for Development Environment Setup
Install Python Pillow on Amazon Linux
Install oracle java8 on amazon linux2
Install CUDA on Linux Mint Mate 20
Install Arch Linux on DeskMini A300
Install tensorflow in Docker (LINUX) (memo)
How to install wkhtmltopdf (Amazon Linux2)
[Linux] Install Python 3 without administrator privileges
How to install VMware-Tools on Linux
Install pyenv on EC2 (Amazon Linux)
How to install MBDyn (Linux Ubuntu)
[Note] Install Imagick on Amazon Linux2
Linux ssh port forwarding (tunnel) settings
Initial settings for Mac (for data analysts)