Skip to content

Instantly share code, notes, and snippets.

@yukpiz
Last active July 8, 2016 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukpiz/8699827b255f34641a1c to your computer and use it in GitHub Desktop.
Save yukpiz/8699827b255f34641a1c to your computer and use it in GitHub Desktop.

Ubuntu 13.10

TODO

  • IMでmozcが使いやすいもの(iBusは消したい)

Notes

~$ uname -a
Linux ubuntu 3.11.0-12-generic #19-Ubuntu SMP
Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

# Software updated
~$ uname -a
Linux ubuntu 3.11.0-18-generic #32-Ubuntu SMP
Tue Feb 18 21:11:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Software update

  1. ダッシュボードから"update"で検索
  2. Software Updaterが起動するのでアップデートがあれば当てておく

Settings

  • 日本語ロケールに設定する
System Settings
  -> Language Support
    Install/Remove Languagesから"Japanese"を選択、インストール
    日本語がインストールされたら、優先を最上位に移動する
    Apply Systemを選択して再起動
    初回起動時にディレクトリ名の再設定が出るので再設定する
  • 日本語キーボードに対応する
システム設定
  -> テキスト入力
    入力ソースに"日本語"を追加
  • BlankScreenをとにかくオフにする
システム設定
  -> 画面の明るさとロック
    スクリーンOFFが設定されているので"しない"に設定
    ロックは"OFF"

  -> セキュリティとプライバシー
    セキュリティタブにサスペンド設定があるのでチェックを"false"に設定

  -> 電源
    サスペンド設定があるので"サスペンドしない"に設定
  • GNOME Terminal設定
編集
  ->プロファイル
    新規から新しいプロファイルを作成する
    [全般]
      フォント Ubuntu Mono #10
    [色]
      テキスト #ECECEC
      背景色   #1F1F1F
      スキーム XTerm
    [背景]
      背景を透明にする 80%くらい
  • 設定ファイル関連
# Githubから設定ファイル取得
~$ git clone git@github.com:yukpiz/config.git ./config.git
~$ cd ./config.git
# submoduleがあるので取得
~$ git submodule init
~$ git submodule update

### Vim
~$ cd ./vim/linux/
~$ cp vimrc ~/.vimrc
~$ mkdir ~/.vim
~$ cp -r ./vim/* ~/.vim/
~$ sudo cp ./vim74/ftplugin.vim /usr/local/share/vim/vim74/
~$ mkdir ~/.vim/vimbak

### bash
~$ cp ./bash/linux/bashrc ~/.bashrc
~$ source ~/.bashrc

### Git
~$ cp ./git/linux/gitconfig ~/.gitconfig

Uninstalled & Stopped service

  • Ubuntu Software Centerから不要アプリケーションを削除する
# Accessories
  Contacts(gnome-contacts) [連絡先管理アプリ]

# Developer Tools
  Ubuntu One(ubuntuone-control-panel-qt) [Ubuntu Oneアカウント管理]

# Games
  AisleRiot Solitaire
  Sudoku
  Mines(gnome-mines)
  Mahjongg

# Graphics
  Photos lens for Unity [Dashの写真検索]
  Shotwell Photo Manager [デジタル写真管理アプリ] ※Viewerも同時に消える
  Simple Scan [ドキュメントのスキャンツール]
  LibreOffice Draw [図板作成アプリ]

# Internet
  Empathy Internet Messaging [チャットサービスのクライアント]
  Remmina Remote Desktop Client [リモートデスクトップ接続クライアント]
  Transmission BitTorrent Client [BitTrrentクライアント]
  Thunderbird Mail [メール管理クライアント]

# Office
  Google Drive scope for Unity [DashのGoogle Drive検索]
  LibreOffice Calc [表計算アプリ]
  LibreOffice Math [数式アプリ]
  LibreOffice Writer [文書作成アプリ]

# Sound & Video
  Brasero Disc Burner [ディスク作成アプリ]
  Rhythmbox Music Player [音楽再生アプリ]

# Themes & Tweaks
  Landscape Service [システム管理ソフト]
  Online Accounts(gnome-control-center-signon) [SNSとかのアカウント管理]

# Universal Access
  Onboard [ソフトウェアキーボード]
  Orca Screen Reader [スクリーンリーダー]

# Uncategorized
  • 不要なサービスを停止する

UpstartとSysVinitで管理されるものがあり、それぞれ設定方法が異なる。
Upstartで管理されるジョブは initctl で制御する。
SysVinitで管理されるジョブは sysv-rc-conf で制御する(要インストール)。

~$ initctl list
unicast-local-avahi stop/waiting
update-notifier-crash stop/waiting
update-notifier-hp-firmware stop/waiting
xsession-init stop/waiting
dbus start/running, process 2220
update-notifier-cds stop/waiting
gnome-session start/running, process 2275
ssh-agent start/running
unity7 stop/waiting
upstart-dbus-session-bridge start/running, process 2247
logrotate stop/waiting
unity-panel-service start/running, process 2278
hud start/running, process 2269
im-config start/running
unity-gtk-module stop/waiting
upstart-dbus-system-bridge start/running, process 2245
at-spi2-registryd start/running, process 2270
update-notifier-release stop/waiting
upstart-file-bridge start/running, process 2243
gnome-settings-daemon start/running, process 2263
window-stack-bridge start/running, process 2236
re-exec stop/waiting
upstart-event-bridge start/running, process 2226

start/runningとなっているものが起動時に実行される
process ###となっているものはデーモンとして常駐しているもの

各ジョブの起動設定は「/etc/init/」配下に配置されている
例えばssh-agentを停止させ、システム起動時にも起動させないようにするには以下のようにする
~$ initctl stop ssh-agent
ssh-agent stop/waiting

~$ vi /etc/init/ssh-agent.conf  # start onに続く行をコメントアウトする
~$ man upstart-events           # manページ(start onに続く意味がある)
~$ grep "start on" /etc/init/*  # システム起動時に起動されるジョブの一覧

  • Upstart jobs
name detail
unicast-local-avahi DNSの自動設定/ネットワークサービスの検知
update-notifier-crash
update-notifier-hp-firmware
xsession-init
dbus アプリケーション間通信実装
update-notifier-cds
gnome-session GNOMEデスクトップセッション管理
ssh-agent 公開鍵認証における認証キーの保持
unity7 Unity
upstart-dbus-session-bridge
logrotate ログのローテート
unity-panel-service Unity
hud Head Up Display
im-config IM設定
unity-gtk-module
upstart-dbus-system-bridge
at-spi2-registryd
update-notifier-release
upstart-file-bridge
gnome-settings-daemon
window-stack-bridge
re-exec
upstart-event-bridge
~$ sudo aptitude install sysv-rc-conf   # sysv-rc-confの導入

~$ sudo sysv-rc-conf --list             # サービス一覧を表示

~$ sudo sysv-rc-conf ntp on             # NTPの自動起動をON
~$ sudo sysv-rc-conf ntp off            # NTPの自動起動をOFF

Installed

  • aptitudeの導入
~$ sudo apt-get install aptitude
~$ aptitude --version
aptitude 0.6.8.2 (コンパイル日時: Sep 24 2013 01:32:39)
  • Mercurialの導入
~$ sudo aptitude install mercurial
~$ mercurial --version
Mercurial - 分散構成管理ツール(バージョン 2.6.3)
  • lua5.2の導入(+lua vimの導入の前準備)
~$ sudo aptitude install lua5.2
~$ sudo aptitude install liblua5.2-dev
~$ lua --version
Lua 5.2.2  Copyright (C) 1994-2013 Lua.org, PUC-Rio
  • Vim(+lua)の導入
# aptでインストール可能なvimは+luaじゃないのでneocompleteが使えない
~$ sudo hg clone https://vim.googlecode.com/hg/ ./vim/
~$ ./configure --enable-multibyte --with-features-huge \
--disable-selinux --prefix=/usr/local \
--enable-luainterp=yes --with-lua-prefix=/usr
~$ sudo make
~$ sudo make install
~$ vim --version
+lua
  • Gitの導入
~$ sudo aptitude install git
~$ git --version
git version 1.8.3.2
  • Subversionの導入
~$ sudo aptitude install subversion
~$ svn --version
svn, バージョン 1.7.9 (r1462340)
   コンパイル日時: Oct 15 2013, 12:40:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment