Ubuntu 14 初期設定
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
目次~
#contents
*概要 [#e6081090]
Ubuntu14.10の初期設定手順。~
Ubuntu14系は既にサポートが終了しているため、あえて古いバ...
*OS設定 [#x32f7a49]
**リポジトリの変更 [#rec7128a]
***概要 [#vdae87e4]
Ubuntu14系は既にサポートが終了しているため、オンラインの...
OSのインストール段階で参照しているURLにはリポジトリが存在...
-/etc/apt/sources.list
【変更前】http://jp.archive.ubuntu.com/ubuntu/
【変更後】http://old-releases.ubuntu.com/ubuntu/
-一括書き換えスクリプト(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/|...
apt-get update
#EOF
*パッケージ追加 [#yecb897d]
**SSH [#wb7345ce]
***概要 [#afa9e846]
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 gn...
途中でディスプレイマネージャの選択が求められるため、「gd...
-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 "$...
#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
終了行:
目次~
#contents
*概要 [#e6081090]
Ubuntu14.10の初期設定手順。~
Ubuntu14系は既にサポートが終了しているため、あえて古いバ...
*OS設定 [#x32f7a49]
**リポジトリの変更 [#rec7128a]
***概要 [#vdae87e4]
Ubuntu14系は既にサポートが終了しているため、オンラインの...
OSのインストール段階で参照しているURLにはリポジトリが存在...
-/etc/apt/sources.list
【変更前】http://jp.archive.ubuntu.com/ubuntu/
【変更後】http://old-releases.ubuntu.com/ubuntu/
-一括書き換えスクリプト(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/|...
apt-get update
#EOF
*パッケージ追加 [#yecb897d]
**SSH [#wb7345ce]
***概要 [#afa9e846]
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 gn...
途中でディスプレイマネージャの選択が求められるため、「gd...
-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 "$...
#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
ページ名: