#pragma section-numbers off
[[TableOfContents]]

= 概要 =
基本的には Ubuntu Mate を利用している

対象バージョン:18.04 LTS

= 公式サイト =
 *[http://www.ubuntulinux.org/ Ubuntu - Linux for Human Beings]
 *[http://www.ubuntulinux.jp/ Ubuntu-ja - Welcome to Ubuntu-ja](非公式日本語拡張版)

= ダウンロード =

 * [https://www.ubuntulinux.jp/ubuntu/mirrors 日本国内のダウンロードサイト | Ubuntu Japanese Team]
 * [https://ubuntu-mate.org/ Ubuntu MATE | For a retrospective future]

= フォルダ名変更 =
日本語ディレクトリ名は面倒なので、英語に変更。フォルダの中にファイルがあると、元のディレクトリはのこる。
{{{
LANG=C xdg-user-dirs-gtk-update
}}}

= 解像度 =
解像度が稀におかしな時がある

 * [http://deppari783.blog7.fc2.com/blog-entry-19.html 覚えるなんて無理 ubuntu 10.04 で解像度を変更する]

= 日本語入力 =

||SCIM||http://www.scim-im.org/||scim-skk||http://sourceforge.jp/projects/scim-imengine/||
||uim||https://github.com/uim/uim||uim-skk||http://code.google.com/p/uim-doc-ja/wiki/UimSkk||
||ibus||http://code.google.com/p/ibus/||ibus-skk||https://github.com/ueno/ibus-skk||
||fcitx||https://fcitx-im.org/||fcitx-skk||https://github.com/fcitx/fcitx-skk||

== uim-skk ==
{{{
sudo apt-get install uim uim-skk skksearch skkdic-cdb skkdic-extra skkdic skktools
sudo update-alternatives --config xinput-ja_JP
# uim-systray: 3 を選択
}}}

{{{
cd /usr/share/skk
# 辞書がcdb になっているか確認
# cdb になっていない場合は変換
sudo skk2cdb xxxx xxxx.cdb

sudo vi /etc/skksearch.conf
cdb:/usr/share/skk/SKK-JISYO.cdb
cdb:/usr/share/skk/SKK-JISYO.L.cdb
}}}


== mozc ==
 * [http://mypace75.blog92.fc2.com/blog-entry-909.html Winux/Lindows |Mozcに辞書追加 on LMDE201403]
 * [https://www.hiroom2.com/2016/10/02/ubuntu-16-04-fcitx-mozc%E3%81%A7%E6%97%A5%E6%9C%AC%E8%AA%9E%E5%85%A5%E5%8A%9B%E3%81%99%E3%82%8B/ Ubuntu 16.04: Fcitx + Mozcで日本語入力する - Narrow Escape]

{{{
sudo apt-get install fcitx-mozc
im-config -n fcitx
fcitx-configtool
}}}

= フォント =
{{{
sudo apt-get remove ttf-unfonts-core
}}}

 * [http://sourceforge.net/projects/sourcecodepro.adobe/files/ Source Code Pro - Browse Files at SourceForge.net]

 * [http://save.sys.t.u-tokyo.ac.jp/~yusa/fonts/ricty.html プログラミング用フォント Ricty]
{{{
sudo apt-get install fontforge
sh ricty_generator.sh -z Inconsolata.otf migu-1m-regular.ttf migu-1m-bold.ttf
}}}

= キーボード =

== 無変換をコントロールに変更 ==
{{{
vi .xmodmaprc

keycode 102 = Control_L
add control = Control_L

xmodmap ~/.xmodmaprc
}}}

[http://lambdalisue.hatenablog.com/entry/2013/09/27/212118 CapsLockをCtrlにするまとめ - Λlisue's blog]

== Emacs 系操作に統一 ==
{{{
sudo apt-get install dconf
gsettings get org.gnome.desktop.interface gtk-key-theme Emacs
}}}

古いバージョンでは以下で設定
 * gconf-editorを起動
 * desktop/gnome/interfaceを開く
 * gtk_key_themeに ”Emacs”を指定


== SandS ==
{{{
git clone git://gitorious.org/at-home-modifier/at-home-modifier.git
sudo apt-get install autoconf xserver-xorg-dev libudev-dev
}}}

 * [http://d.hatena.ne.jp/jeneshicc/20100306/1267843799 Linux で SandS の実現を目指す : xf86-input-evdev の修正(メモ) - 落書き、時々落学]

= checkinstall =
apt でインストールしないでソースからインストールした物をパッケージ管理する

{{{
sudo apt install checkinstall
}}}

{{{
sudo checkinstall
}}}

= エディタ =

== vi ==
{{{
sudo update-alternatives --config editor
# 3 /usr/bin/vim.tiny
}}}


== leafpad ==
{{{
sudo apt-get install leafpad
}}}

== gedit ==
{{{
sudo apt-get install gedit-plugins
}}}

「編集」「設定」「プラグイン」

== Emacs ==
{{{
sudo apt-get build-dep emacs
sudo apt-get install libmagickwand-dev libselinux1-dev libgnutls-dev libxml2-dev
}}}

{{{
wget ftp://ftp.ring.gr.jp/pub/GNU/emacs/emacs-24.2.tar.bz2
# 解凍形式の指定は通常不要
tar xvf emacs-24.2.tar.bz2
cd emacs-24.2
# ddskk 使う
./configure --without-xim
make
sudo checkinstall

emacs --version
}}}

「without-xim」しないでSKKを利用したい場合は、以下をXresourcesに設定する
{{{
emacs*useXIM:false
}}}

= migemo =
{{{
sudo apt-get install nkf
hg clone https://code.google.com/p/cmigemo/
cd cmigemo
./configure
make gcc
cd dict
make utf-8
cd ..
sudo paco -D make gcc-install
}}}

= 端末 =
== zsh ==
{{{
sudo apt-get install zsh
chsh -s /bin/zsh
}}}

== tmux ==
{{{
wget http://downloads.sourceforge.net/tmux/tmux-1.7.tar.gz
tar xvf tmux-1.7.tar.gz
cd tmux-1.7
./configure
make
sudo paco -D make install
}}}

== テーマ ==
 * [https://github.com/chriskempson/tomorrow-theme chriskempson/tomorrow-theme · GitHub]
 * [https://github.com/altercation/solarized altercation/solarized · GitHub]


= LibreOffice =
{{{
sudo apt-get purge “openoffice*.*”
sudo apt-add-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice libreoffice-gnome libreoffice-l10n-ja 
}}}

= その他 =
== SJISを含むzipの解凍文字化け ==
The Unarchiver を利用すれば普通に解凍できる

[https://theunarchiver.com/ The Unarchiver | Top Free Unarchiving Software for macOS]

{{{
sudo apt-get install unar
}}}



= 参考サイト =
 * [http://kosukebp.blogspot.jp/2012/01/ubuntu.html こすけの日記: 英語版Ubuntuのインストール後の設定]
 * http://www10.atwiki.jp/shirayuu/?page=%20Ubuntu%20Linux%2011.04
 * [http://mikio.github.com/article/2012/05/05_ubuntu.html (超個人的)Ubuntuインストール後にやることまとめ]
----
CategoryUnix