Home Page Top

Ubuntu17.10 perfect setup guide

3. How to setup ubuntu17.10

3.1 download Server iso

3.2 install OS

3.3 sudo without password

sudo su
chmod 660 /etc/sudoers
vi /etc/sudoers

(edit)
#%sudo ALL=(ALL:ALL) ALL
%sudo ALL=(ALL:ALL) NOPASSWD: ALL
(and save)

chmod 440 /etc/sudoers
reboot

3.4 how to find ip address

ip a

3.5 static ip address

(create or edit file)
sudo vi /etc/netplan/01-netcfg.yaml

(e.g. edit adapter name "ens33" , ip address "192.168.0.100" , gateway "192.168.0.1")
network:
 version: 2
 renderer: networkd
 ethernets:
   ens33:
     dhcp4: no
     dhcp6: no
     addresses: [192.168.0.100/24]
     gateway4: 192.168.0.1
     nameservers:
       addresses: [192.168.0.1]
(and save)

sudo netplan --debug generate
sudo netplan apply

(open port)
sudo ufw disable

3.6 apt

sudo apt update
sudo apt -y install unzip

3.7 time zone

3.8 create /home/user/dhm/dpj directory

cd /home/user
mkdir dhm
cd dhm
mkdir dpj
cd dpj
mkdir dpjApp

3.9 JRE install

3.10 application install

3.11 auto start

crontab -e

(select editor and write to bottom . e.g. user=user group=user)

@reboot HMDIR=$HOME;sudo chown -R user.user $HMDIR/dhm;chmod -R 777 $HMDIR/dhm;sudo $HMDIR/dhm/dpj/dpjApp/softwareupdate.sh;$HMDIR/dhm/dpj/dpjApp/run.sh
(save file)
sudo reboot

Application will be started automatically. you are already ready for using command on web browser.

3.12 set "MyIp"

you should set "MyIp" on config page in order to use from other device.

3.13 create ram disk

3.14 sample dicom files