- 追加された行はこの色です。
- 削除された行はこの色です。
目次~
#contents
*概要 [#e6081090]
Ubuntu14.10の初期設定手順。~
Ubuntu14系は既にサポートが終了しているため、あえて古いバージョンを使用する場合にのみ使用すること。~
*OS設定 [#x32f7a49]
**リポジトリの変更 [#rec7128a]
***概要 [#vdae87e4]
Ubuntu14系は既にサポートが終了しているため、オンラインのリポジトリパスが変更されている。~
OSのインストール段階で参照しているURLにはリポジトリが存在しないため、URLの書き換えが必要となる。~
-/etc/apt/sources.list
【変更前】http://jp.archive.ubuntu.com/ubuntu/
【変更後】http://old-releases.ubuntu.com/ubuntu/
-一括書き換えスクリプト~
root権限で実行すること~
-一括書き換えスクリプト(root権限で実行すること)
#!/bin/sh
# ------------------------
# Ubuntu 14 setup script
# ------------------------
# Version : 1.0
# date : 2018/1/4
export LANG=C
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH
##
## OS setting
##
## Rep Update
cd /etc/apt
cp sources.list sources.list_orig
sed -i -e 's|//.*ubuntu.com/|//old-releases.ubuntu.com/|' /etc/apt/sources.list
apt-get update
#EOF
*パッケージ追加 [#yecb897d]
**SSH [#wb7345ce]
***概要 [#afa9e846]
SSHクライアントのみ導入されているため、リモート接続を行うためにはSSHサーバの導入が必要となる。~
***手順 [#md0339b5]
-パッケージ導入
apt-get install -y openssh-server
-設定~
導入後、サービスは自動的に起動する。~
Redhat系と比較して安全なデフォルト設定が行われているため、インターネットに曝す場合を除き、初期設定のまま運用しても問題は少ない。~
**NFS [#rdd46e88]
***概要 [#i75db0d0]
Ubuntu 14はデフォルトではNFS領域をマウントすることができない。~
これはnfs-commonパッケージを入れることで解消する。~
***手順 [#u9fe7614]
-パッケージ導入
apt-get install -y nfs-common
-マウント
mount -t nfs [NFS SERVER]:[PATH] [MOUNT POINT]
**SNMP [#o87cc90a]
***概要 [#t63b0742]
SNMP関連のパッケージは一切導入されていないため、必要な場合には追加する。~
***手順 [#n9bedd30]
-パッケージ導入
apt-get install -y snmp
**VNC [#o8377017]
***概要 [#mc04aa6e]
VNC Server機能とxorg関連のパッケージ導入が必要。~
***手順 [#n58cebae]
-パッケージ導入
apt-get install -y xorg gnome-core gnome-system-tools gnome-app-install tightvncserver
途中でディスプレイマネージャの選択が求められるため、「gdm」を選ぶ。
-VNC設定~
以下のコマンドを実行し、VNC接続時のパスワードを設定する。
vncpasswd
-VNCの起動/停止
xstartupファイルを生成するため、VNCサービスを起動/停止する。
vncserver :1
vncserver -kill :1
-xstartupファイルの修正
vi cat ~/.vnc/xstartup
~
--xstartup
#!/bin/sh
#xrdb $HOME/.Xresources
#xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
# export XKL_XMODMAP_DISABLE=1
# /etc/X11/Xsession
xsetroot -solid grey
exec gnome-session &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus -n &
gnome-terminal &
-VNCの起動
vncserver :1
New 'X' desktop is [HOSTNAME]:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/[HOSTNAME]:1.log
-VNC接続~
VNCクライアントから以下のアドレス:ポートにアクセスする
[Server Name]:5901