Ubuntuの設定をする。

昨日MacBook AirにUbuntu16.04をいれたのでいろいろ環境設定をしていく。

pytry3g.hatenablog.com

 

Google Chrome

Terminalを開いて

① sudo apt-get install libappindicator1

次にここからー>https://www.google.co.jp/chrome/browser/desktop/index.html

google-chrome-stable_current_amd64.debをダウンロード

② cd Downloads

③ sudo dpkg -i google-chrome-stable_current_amd64.deb

google-chrome

を実行すると、Google Chromeが開き...

[3715:3753:1221/165111.427221:FATAL:nss_util.cc(631)] NSS_VersionCheck("3.26") failed. NSS >= 3.26 is required. Please upgrade to the latest NSS, and if you still get this error, contact your distribution maintainer.
中止 (コアダンプ)
開かなかった、、、
調べてみると、以下のコマンドで解決し無事に開いた。
sudo apt-get install --reinstall libnss3

python

Ubuntuには最初からpythonが入っていますが、python3を使いたかったのでAnacondaからpython3を入れてみます。

Anacondaのダウンロードページから(https://www.anaconda.com/download/)

Anaconda3-5.0.1-Linux-x86_64.shをダウンロードし、Terminal上でダウンロードフォルダに行き

bash Anaconda3-5.0.1-Linux-x86_64.sh

でインストールする。

 

Atom

普段プログラムを書くときはAtomを使っているのでUbuntuにも入れてみる。

Terminalを開いて

① sudo add-apt-repository ppa:webupd8team/atom

② sudo apt update; sudo apt install atom

を実行するとAtomのインストールができる。

Atomvimが使いたいのでvim-mode-plusを入れた。

普段controlキーとjを使って入力モードからノーマルモードに切り替えているのでUbuntuでもできるように設定する。

ホームディレクトリに.atomディレクトリがあるのでそこに行き、

keymap.csonに以下を挿入する

'atom-text-editor.vim-mode-plus.insert-mode':
        'ctrl-j': 'vim-mode-plus:activate-normal-mode'
 
これでcontrolキーとjを押すことにより入力モードからノーマルモードに切り替えることができる。

OneDrive

普段OneDriveを使っているので、Ubuntuで使えるようにする。

onedrive-d(https://github.com/xybu/onedrive-d-old)を使う。

pip3が必要みたいなので、Terminal上で

sudo apt install python3-pip

インストールをしていく。

git clone https://github.com/xybu/onedrive-d-old.git

cd onedrive-d-old/

./install.sh

これでインストールが完了したので次にいろいろ設定していく。

onedrive-pref

で設定を進めていく。

 

これでUbuntuでもOneDriveが使えるようになった。

 

pytry3g.hatenablog.com