mimikakimemo

自分用メモ。

Ubuntu 14.04 on LIVA の環境整備

昨日(下の記事)のつづき。

デスクトップ版 Ubuntu を入れたので一応 GUI でも使えるが、普段は SSH でログインして CUI で使おうかと考えている。LAN は有線。

ログインシェルを zsh にする

$ sudo apt-get install zsh
…
$ zsh --version
zsh 5.0.2 (x86_64-pc-linux-gnu)
$ which zsh
/usr/bin/zsh
$ chsh
パスワード:
mashabow のログインシェルを変更中
新しい値を入力してください。標準設定値を使うならリターンを押してください
        ログインシェル [/bin/bash]: /usr/bin/zsh

一旦ログアウトしてからログインすると zsh の初期設定が始まる。

This is the Z Shell configuration function for new users,
zsh-newuser-install.
You are seeing this message because you have no zsh startup files
(the files .zshenv, .zprofile, .zshrc, .zlogin in the directory
~).  This function can help you with a few settings that should
make your use of the shell easier.

You can:

(q)  Quit and do nothing.  The function will be run again next time.

(0)  Exit, creating the file ~/.zshrc containing just a comment.
     That will prevent this function being run again.

(1)  Continue to the main menu.

(2)  Populate your ~/.zshrc with the configuration recommended
     by the system administrator and exit (you will need to edit
     the file by hand, if so desired).

--- Type one of the keys in parentheses --- 0

とりあえず 0 で抜ける。そのあと、他のマシンで使っている .zshrc を持ってきた。

mosh のインストール

$ sudo apt-get install mosh
$ mosh --version
mosh 1.2.4a
Copyright 2012 Keith Winstein 
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

インストール後、ufw の設定を追加し、mosh への通信ができるようにする。

$ sudo ufw app info mosh
プロファイル: mosh
タイトル: Mosh (mobile shell)
Description: Mobile shell that supports roaming and intelligent local echo

Port:
  60000:61000/udp
$ sudo ufw allow mosh
ルールを追加しました
ルールを追加しました (v6)

他のマシンから mosh でログインできることを確認して完了。

普段使うツールいろいろ

apt-get で入れる。順不同。

  • emacs
  • lv
  • git
  • tmux
  • silversearcher-ag
  • tree
  • build-essential
  • source-highlight

今は録画に 鼻毛鯖+epgrec+KTV-FSUSB2 を使っているが、近いうちに LIVA+Chinachu+KTV-FSUSB2 に移行してみたい。