12
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntu Desktopをインストールした後軽量化した

Last updated at Posted at 2014-05-20

LivaPCにUbuntu Desktop 日本語 Remix 14.04をインストールした。
LivaPCはiPad用ACアダプタで動作した。

bootオプション

grubのbootオプション末尾に text を入力しインストールするとcuiで起動した。

アプリケーションの追加

$ sudo apt-get install -y tasksel
$ LANG=C sudo tasksel

OSインストール直後: 3.8GB

パターン1

tasksel
-Print server
-Ubuntu desktop
+OpenSSH server
+DNS server
+LAMP server
+Virtual Machine host

taskselで変更後: 2.4GB

パターン2

tasksel
-Print server
-Ubuntu desktop
+OpenSSH server
+lubuntu minimal installation

taskselで変更後: 2.8GB

手動でアプリ追加削除
$ sudo apt-get install -y \
  w3m curl build-essential nkf vim ranger zsh byobu \
  docker.io monit etckeeper \
  mailutils mutt postfix
$ sudo apt-get purge libpam-smbpass
$ sudo apt-get autoremove -y
$ sudo apt-get clean

その他設定

etckeeper

$ sudo sed -i.org -e 's@VCS="bzr"@#VCS="bzr"@' -e 's@#VCS="git"@VCS="git"@' /etc/etckeeper/etckeeper.conf
$ sudo etckeeper init && sudo etckeeper commit init

grub修正

/etc/default/grub
-GRUB_CMDLINE_LINUX="text"
+GRUB_CMDLINE_LINUX=""
$ sudo update-grub2

update

$ sudo apt-get update
$ sudo apt-get upgrade -y

byobu

editorをvimに設定

$ sudo update-alternatives --config editor

docker

docker
$ sudo usermod -a -G docker `whoami`
$ docker.io pull ubuntu:14.04

lxde自動ログイン

$ sudo sed -ie "s@# autologin=dgod@autologin=`whoami`@" /etc/lxdm/default.conf

vino

5900ポートで待ち受け
$ export DISPLAY=:0
$ vino-preferences
-> 他のユーザが自分のデスクトップを表示できる
-> 他のユーザがデスクトップを操作できる
-> パスワードの入力を要求する
# TLS無効化。gvncviewerを使えば設定不要
$ gsettings set org.gnome.Vino require-encryption false
$ /usr/lib/vino/vino-server &

gsettings set org.gnome.Vino require-encryption false

これをしないとmacから接続が出来なかった。

keyringを削除する場合
$ rm $HOME/.local/share/keyrings/Default_keyring.keyring

monitにvinoを登録

/etc/monit/conf.d/vino
check host vino with address localhost
    start program = "/usr/bin/sudo -u execuser -i DISPLAY=:0 /usr/lib/vino/vino-server"
    stop  program = "/usr/bin/killall vino-server"
    if failed host localhost port 5900 then restart
    if 5 restarts within 5 cycles then timeout

ホームディレクトリを英語にする

LANG=C xdg-user-dirs-gtk-update

Lubuntu 14.04.2 を入れた時のメモ

  • 普通にインストールできた。
12
12
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
12
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?