How to use Ubuntu Server 20.10 (Groovy Gorilla) in Sakura's cloud

This post is the 18th day post (pinch hitter) of Sakura Internet Advent Calendar 2020. On the 17th day, he was pitan's "Enjoy netbox", and on the 19th day he was 0n1shi's "Use Cert manager on Kuberentes built in Sakura's cloud "was.

Overview

The fastest way to set up Ubuntu Server 20.10 on Sakura's cloud is to use an ISO image. This is an installation procedure using an ISO image. With Sakura Cloud, the ISO image can be used as a public ISO image, so there is no need to download it. Also, since the virtual server (machine) to boot supports DHCP, it can automatically communicate with the Internet side, which is convenient when you want to use it immediately.

procedure

1. Start Ubuntu Server with public ISO image

From "Server" in the IaaS menu of the control panel, click "Add" at the top right of the screen.

image.png

To install with an ISO image, you need to cancel "Simple mode". If it is in simple mode (checked), cancel it.

image.png

Choose the virtual core and memory of your server plan. If you want to move (try to start) for the time being, 1 core 1GB is fine, but change it if necessary.

image.png

Then scroll the screen and click "Blank" in the "Disc" section.

image.png

Then click "▼" from "Use ISO Image" and click "Ubuntu Server 20.10 64bit".

image.png

It's okay if it is selected like this.

image.png

Then scroll the screen and in the server information, for Name, enter Ubuntu Server, for example. This is the name of the server displayed on the server list screen (not the host name hostname in the server).

image.png

After that, scroll as it is and click "Create" at the bottom right of the screen.

image.png

Click Create on the confirmation screen as well, and wait until the creation is completed.

image.png

The server is now ready. Click Close.

2. Installation procedure using the console function

From the server list screen, double-click the target server.

image.png

Click "Console" in the menu.

image.png

Then you will see a black screen like this.

image.png

Click on the screen and wait for the boot to complete and the menu to appear.

From here, you can set up with the console function. Although it is a server on the cloud, you can work as if you set it up on a normal server.

image.png

First, select the language of the installer. The installer enters the enter key with English "English" selected.

The next screen is the keyboard layout and language settings. If it remains in English, it will proceed as it is, but if you want to use Japanese, you can move the selected item with the "Tab" key. Press the tab several times to move to the "Layout" column, press the "Enter" key, move up and down the cursor keys, move to "Japanese" and press "Enter".

image.png

Tab again and click Done.

image.png

Second, if you connect the server to a public network, DHCP will automatically assign you an IP address. With Done still selected, click Enter.

image.png

No Proxy settings are required, so this is also "Enter".

image.png

Archive mirrors are usually just "enter".

image.png

For the installation disk, if there is no problem as it is, press the Tab key to move to "Done" and click "Enter".

image.png

On the confirmation screen, enter with "Done".

image.png

This is the final confirmation of whether to initialize and install the storage (disk). If it is a new disk, there is no problem, so click the tab, select "Continue", and press "Enter".

image.png

Next is the input of profile information (account settings). Enter and move while holding down the "Tab" key.

--Your name: Enter your name in alphabet (optional) --Your server's name: Enter the server name --Pick a username: Enter the user name (account name) when logging in to the server --Choose a password: Enter password --Confirm a password: Enter the password again

Click "Done" when you are done.

image.png

Next, for remote SSH connection and operation, click "Space" in "Install OpenSSH Server" to make it selected.

By the way, if you select "Import SSH identiy" here, you can also automatically set the public key registered in GitHub or Launchpad.

image.png

After confirmation, click "Done".

image.png

Then select additional packages (press the spacebar) as needed, then teach the tabs and press "Done".

image.png

After that, setup and package update work will start automatically. Look at the screen or have a cup of coffee until the end.

image.png

Rotate around to the right of "security updates" at the bottom of the screen ← ↖ ↑ ↗ → ↘ ↓ ↙ ← ↖ ↑ ↗ When you finish, the screen will switch to "Reboot", so press enter to restart the virtual machine. To do.

image.png

Then you will see a warning like this on the screen.

image.png

The message is that the CD-ROM cannot be automounted. Remove the ISO image connected to this server from the control panel.

Click the tab that looks like "Ubuntu" and click "Eject". Click "Eject" on the confirmation screen as well.

image.png

This completes the removal.

image.png

After that, return to the "Console" screen again and press "Enter".

This completes the setup.

Then reopen the console and you'll see a log of cloud-init initialization.

image.png

To log in to the server through the console function as it is, press the "Enter" key to display the login prompt.

image.png

3. Start and connect with SSH

If you have set up the OpenSSH server in the previous step, you can SSH log in remotely. To log in to the server, first check your IP address. You can check the column that says "NIC" in the server list, or you can check it on the "NIC" tab in the server details. In the example below, it is 163.43.133.25.

image.png

Clicking the icon next to this IP address is convenient because you can copy it to the clipboard.

image.png

After that, let's log in with the user name created during setup.

$ ssh -l lain 163.43.133.25
The authenticity of host '163.43.133.25 (163.43.133.25)' can't be established.
ECDSA key fingerprint is SHA256:FwlPbLNVqZ78kSWQ+mShy2X6jraopVnbXx5SiZuUw/s.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '163.43.133.25' (ECDSA) to the list of known hosts.
[email protected]'s password:
Welcome to Ubuntu 20.10 (GNU/Linux 5.8.0-33-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Tue Dec 22 11:49:06 PM UTC 2020

  System load:  0.0                Processes:             99
  Usage of /:   21.7% of 18.57GB   Users logged in:       0
  Memory usage: 18%                IPv4 address for ens3: 163.43.133.25
  Swap usage:   0%

20 updates can be installed immediately.
0 of these updates are security updates.
To see these additional updates run: apt list --upgradable



The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

lain@tachibana-lab:~$

You are now logged in!

If you need to work as root, use the sudo command. Here, enter your login password. The following is an execution example.

lain@tachibana-lab:~$ sudo apt update
[sudo] password for lain:← There is no display on the screen (no echo back), but enter it
Hit:1 http://jp.archive.ubuntu.com/ubuntu groovy InRelease
Get:2 http://jp.archive.ubuntu.com/ubuntu groovy-updates InRelease [110 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu groovy-backports InRelease [101 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu groovy-security InRelease [110 kB]
Fetched 321 kB in 0s (915 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
20 packages can be upgraded. Run 'apt list --upgradable' to see them.
lain@tachibana-lab:~$

Finally, if necessary, set Sakura's cloud packet filter function and TCP Wrapper or security settings.

Enjoy!

Referenced sentences and sites

Recommended Posts

How to use Ubuntu Server 20.10 (Groovy Gorilla) in Sakura's cloud
How to use Lombok in Spring
How to use Bio-Formats on Ubuntu 20.04
How to use InjectorHolder in OpenAM
How to use classes in Java?
How to distinguish ubuntu cloud image
Multilingual Locale in Java How to use Locale
How to use custom helpers in rails
How to use named volume in docker-compose.yml
How to use MySQL in Rails tutorial
How to use environment variables in RubyOnRails
Understand in 5 minutes !! How to use Docker
How to use credentials.yml.enc introduced in Rails 5.2
How to use ExpandableListView in Android Studio
(Memo) How to solve dummy output in Ubuntu 20.04
[Rails] How to use select boxes in Ransack
How to use "sign_in" in integration test (RSpec)
How to use JQuery in js.erb of Rails6
How to use nfs protocol version 2 with ubuntu 18.04
How to Install Oracle JDK 1.8 in Ubuntu 18.04 LTS?
How to use Alibaba Cloud LOG Java Producer
How to log in automatically when Ubuntu restarts
[Rails] How to use PostgreSQL in Vagrant environment
How to use Map
How to use rbenv
How to use letter_opener_web
How to use with_option
How to use fields_for
How to use java.util.logging
How to use map
How to use collection_select
How to use Twitter4J
How to use MapStruct
How to use hidden_field_tag
How to use TreeSet
[How to use label]
How to use identity
How to use hashes
How to use JUnit 5
How to use Dozer.mapper
How to use Gradle
How to use org.immutables
How to use java.util.stream.Collector
How to use VisualVM
How to use Map
[Ruby] How to use standard output in conditional branching
How to use Z3 library in Scala with Eclipse
Understand how to use Swift's JSON Decoder in 3 minutes
How to use CommandLineRunner in Spring Batch of Spring Boot
How to use JDD library in Scala with Eclipse
How to use RealSense with ubuntu 20.04 and ROS Noetic
How to use In-Memory Job repository in Spring Batch
Beginners use ubuntu in windows to prepare rails environment
Notes on how to use regular expressions in Java
[Java] How to use Map
How to use Chain API
[Java] How to use Map
How to use Priority Queuing
How to use JSON data in WebSocket communication (Java, JavaScript)
[Rails] How to use enum
How to use java Optional