#author("2018-07-07T08:33:30+00:00","default:masatomix","masatomix") #author("2018-07-07T08:34:42+00:00","default:masatomix","masatomix") #topicpath ---- いまさらながら、、初めてUbuntu系を触ったので。雑感。 #contents **Ubuntu Server 16.04.2 LTS 構築メモ [#ld21b0a5] [[Download Ubuntu Server | Download | Ubuntu>https://www.ubuntu.com/download/server]] curl -O http://releases.ubuntu.com/16.04.2/ubuntu-16.04.2-server-amd64.iso このisoを使えばよいでしょう。 ***Ubuntuはrootがつかえない。 [#xc91c02d] 基本 sudo せいというコトらしい。。 [[Ubuntu 15.04 : 初期設定 : rootユーザを有効にする : Server World>https://www.server-world.info/query?os=Ubuntu_15.04&p=initial_conf&f=2]] まああとでイイや。 *** aptとapt-getがある。 [#z80c2d89] [[Ubuntu 16.04 / Debian 8: aptコマンドの使い方 - Narrow Escape>https://www.hiroom2.com/2016/05/12/ubuntu-16-04-debian-8%E3%81%AEapt%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9/]] ***初回の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>https://tecadmin.net/install-oracle-java-8-ubuntu-via-ppa/#]] 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!。 ***iptablesの設定 [#u69acf37] -Network/iptables ココに整理しました *** IPを固定にする場合 [#e8074b05] 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 **関連リンク [#s1ea844a] ---- この記事は #vote(おもしろかった,そうでもない) #comment #topicpath SIZE(10){現在のアクセス:&counter;}