LoginSignup
0
1

More than 3 years have passed since last update.

[Linux][初期設定] インストール & アンインストール

Last updated at Posted at 2020-02-01

OS

  • Linux Mint
  • Ubuntu bionic

はじめのはじめ

パッケージリストを作成&インストール

書き出し
sudo dpkg-query -f '${binary:Package}\n' -W > packages_list.txt
読み込み
sudo xargs -a packages_list.txt apt install

アンインストール

・tomboy
・redshift
・xreader
・xviewer
・onboard
・gucharmap
・firefox
・hexchat
・thunderbird
・shimple-scan
・pix
・rhythmbox
・xplayer
・vim-tiny
・vim-common
・onboard
・mintwelcome

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

インストール

apt    (aptで入手可能なパッケージ)

入力、フォント、コーデック
- ubuntu-defaults-ja
- ubuntu-restricted-extras
- fcitx-mozc
- migmix

システム
- thunar
- nomacs
- google-chrome-stable
- ripgrep
- ncdu
- xdotool
- xbindkeys
- xdotool
- tree

開発
- zsh
- tmux
- git
- make
- cmake
- build-essential
- python3-dev
- python-dev
- nodejs
- npm
- n
- yarn
- 32bit用のライブラリ
- typora

マルチメディア
- gimp
- vlc
- audacious

add repository

ubuntu-defaults-ja
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
typora
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
sudo add-apt-repository 'deb https://typora.io/linux ./'
alacritty
sudo add-apt-repository ppa:mmstick76/alacritty
git
sudo add-apt-repository ppa:git-core/ppa

一括インストール

apt系
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 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 \
typora

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

dotfiles

gitをインストールしたら
dotfilesをgitからクローンする

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

gitおさらい

[Git] ローカル→リモートにプッシュとちょっとした修正まで

terminal

Gnome,Xfce系のターミナルのカラースキームを追加

 bash -c  "$(wget -qO- https://git.io/vQgMr)" 

Vim

  • PlugInstall

- YouCompleteMe

YouCompleteMeセットアップ
cd ~/.vim/plugged/YouCompleteMe && ./install.py --all

awesome color themes

ペーパーカラーのcolortheme
https://github.com/NLKNguyen/papercolor-theme

Rush

ls cat 'grep'のaliasをexa bat ripgrep にしているので、rustのcargoからインストールする必要がある

Rustインストール
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

exa

exaインストール
cargo install exa

bat

cargo install bat

procs

procsインストール
cargo install procs

ripgrep

cargo install ripgrep

fd

cargo install fd-find

cargo で一括インストール

cargo install exa bat procs ripgrep fd-find

Zshにシェルを変更

chsh -s /bin/zsh

再ログインして変更完了

themeを変更

リポジトリをClone
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"

シェルオプション

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

これをセットすることで,除外パターン,大文字小文字同一視など,すべての拡張表記が可能となる
https://gihyo.jp/dev/serial/01/zsh-book/0004

その他諸々の設定は

dotfilesからインポートする

エラー対処

sudo su しようとしたら /usr/local/bin/zsh を実行できなとき

thunar extension

thunarのサムねを表示するやつ
tumbler tumbler-plugins-extra

非apt   (aptで入手不可のパッケージ)

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

Foxt Reader

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

Wine

インストール

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
安定版
sudo apt install --install-recommends winehq-stable
安定版が安定しなかった時(笑)
sudo apt install --install-recommends winehq-devel

エラーでインストール出来ない時

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

これは、faudioというパッケージが不足していることが原因でインストールできない。サードパーティのPPAからパッケージを追加する。

PPAを追加
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt update && apt upgrade

日本語フォントインストール

sudo apt install -y winetricks \ && winetricks
  • あれこれインストールする
    • Mono, Gecko,
  • winetricks
    • Secelt the default >> Install a font >> cjkfont >> Install

YouTubeToMp3

Youtubeの動画をダウンロードしてmp3に変換して保存する

YouTubeToMp3

バックアップファイルを入れる

  • SSDにバックアップしておいた設定ファイルなどをコピペする
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1