いまさらながら、、初めてUbuntu系を触ったので。雑感。
Download Ubuntu Server | Download | Ubuntu
curl -O http://releases.ubuntu.com/16.04.2/ubuntu-16.04.2-server-amd64.iso
このisoを使えばよいでしょう。
基本 sudo せいというコトらしい。。
Ubuntu 15.04 : 初期設定 : rootユーザを有効にする : Server World
まああとでイイや。
Ubuntu 16.04 / Debian 8: aptコマンドの使い方 - Narrow Escape
# sudo apt update //リストの更新 # sudo apt upgrade
以下はapt-getを使った場合だけど、上のaptが正式みたいすね。
# sudo apt-get update //リストの更新 # sudo apt-get upgrade // 更新 # sudo apt-get dist-upgrade // kernelとか含め更新
How To Install Oracle JAVA 8 on Ubuntu & LinuxMint with Apt-Get
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, mixed mode) # javac -version javac 1.8.0_131
OK!。
ココに整理しました
DHCPだとこんな感じになってると思います。
$ cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). 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 on your system # and how to activate them. For more information, see interfaces(5). 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
この記事は
現在のアクセス:2364