Linux/Ubuntu Server/構築メモ
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
#topicpath
----
いまさらながら、、初めてUbuntu系を触ったので。雑感。
#contents
**Ubuntu Server 16.04.2 LTS 構築メモ [#ld21b0a5]
[[Download Ubuntu Server | Download | Ubuntu>https://www....
curl -O http://releases.ubuntu.com/16.04.2/ubuntu-16.04....
このisoを使えばよいでしょう。
***Ubuntuはrootがつかえない。 [#xc91c02d]
基本 sudo せいというコトらしい。。
[[Ubuntu 15.04 : 初期設定 : rootユーザを有効にする : Ser...
まああとでイイや。
*** aptとapt-getがある。 [#z80c2d89]
[[Ubuntu 16.04 / Debian 8: aptコマンドの使い方 - Narrow E...
***初回のUpdate [#ffccf4d0]
# sudo apt update //リストの更新
# sudo apt upgrade
以下はapt-getを使った場合だけど、上のaptが正式みたいすね。
# sudo apt-get update //リストの更新
# sudo apt-get upgrade // 更新
# sudo apt-get dist-upgrade // kernelとか含め更新
***Java8のインストール [#e46b3e68]
[[How To Install Oracle JAVA 8 on Ubuntu & LinuxMint with...
apt-getの標準のリポジトリサーバにはないようで、リポジトリ...
# sudo add-apt-repository ppa:webupd8team/java
# sudo apt-get update
# sudo apt-get install oracle-java8-installer
あとはつぎへつぎへ。。
# java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mix...
# javac -version
javac 1.8.0_131
OK!。
***iptablesの設定 [#u69acf37]
-Network/iptables
ココに整理しました
*** IPを固定にする場合 [#e8074b05]
DHCPだとこんな感じになってると思います。
$ cat /etc/network/interfaces
# This file describes the network interfaces available o...
# and how to activate them. For more information, see in...
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens160
iface ens160 inet dhcp
下記の通り変更
$ cat /etc/network/interfaces
# This file describes the network interfaces available o...
# and how to activate them. For more information, see in...
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens160
#iface ens160 inet dhcp
iface ens160 inet static
address 192.168.10.50
netmask 255.255.255.0
gateway 192.168.10.1
dns-nameservers 192.168.10.1
再起動して反映させます。
$ sudo shutdown -r now
**関連リンク [#s1ea844a]
----
この記事は
#vote(おもしろかった,そうでもない)
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
終了行:
#topicpath
----
いまさらながら、、初めてUbuntu系を触ったので。雑感。
#contents
**Ubuntu Server 16.04.2 LTS 構築メモ [#ld21b0a5]
[[Download Ubuntu Server | Download | Ubuntu>https://www....
curl -O http://releases.ubuntu.com/16.04.2/ubuntu-16.04....
このisoを使えばよいでしょう。
***Ubuntuはrootがつかえない。 [#xc91c02d]
基本 sudo せいというコトらしい。。
[[Ubuntu 15.04 : 初期設定 : rootユーザを有効にする : Ser...
まああとでイイや。
*** aptとapt-getがある。 [#z80c2d89]
[[Ubuntu 16.04 / Debian 8: aptコマンドの使い方 - Narrow E...
***初回のUpdate [#ffccf4d0]
# sudo apt update //リストの更新
# sudo apt upgrade
以下はapt-getを使った場合だけど、上のaptが正式みたいすね。
# sudo apt-get update //リストの更新
# sudo apt-get upgrade // 更新
# sudo apt-get dist-upgrade // kernelとか含め更新
***Java8のインストール [#e46b3e68]
[[How To Install Oracle JAVA 8 on Ubuntu & LinuxMint with...
apt-getの標準のリポジトリサーバにはないようで、リポジトリ...
# sudo add-apt-repository ppa:webupd8team/java
# sudo apt-get update
# sudo apt-get install oracle-java8-installer
あとはつぎへつぎへ。。
# java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mix...
# javac -version
javac 1.8.0_131
OK!。
***iptablesの設定 [#u69acf37]
-Network/iptables
ココに整理しました
*** IPを固定にする場合 [#e8074b05]
DHCPだとこんな感じになってると思います。
$ cat /etc/network/interfaces
# This file describes the network interfaces available o...
# and how to activate them. For more information, see in...
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens160
iface ens160 inet dhcp
下記の通り変更
$ cat /etc/network/interfaces
# This file describes the network interfaces available o...
# and how to activate them. For more information, see in...
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens160
#iface ens160 inet dhcp
iface ens160 inet static
address 192.168.10.50
netmask 255.255.255.0
gateway 192.168.10.1
dns-nameservers 192.168.10.1
再起動して反映させます。
$ sudo shutdown -r now
**関連リンク [#s1ea844a]
----
この記事は
#vote(おもしろかった,そうでもない)
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
ページ名: