How to build my own Linux server

It's stupid to forget how to build a server and start over from scratch every time, so I'd like to summarize it. Install Linux in the CLI environment when building it as a server. Security settings are not included, so please include each one for reference.

1. Install the server

I will use Ubuntu. Access the following URL and drop the ISO. https://jp.ubuntu.com/download

Black background screen

  1. Select "English" as the language
  2. Select "Japanese" for the keyboard layout
  3. Set up the network
  4. For static, set "eth0"-> "edit Ipv4"-> "manual"
  5. Set proxy if necessary
  6. Mirror address remains the same
  7. Use the entire disk space
  8. The summary remains Done
  9. Confirmation dialog is Continue
  10. Set "User name", "Server name" and "Password"
  11. Don't put SSH (I'll put it later ...)
  12. No features added
  13. Reboot after installation (remove installation media)

2. Log in to the server

Log in as the user created in 1.10 and execute the following code.

$ export LANG=C
$ sudo apt update
$ sudo apt install ssh

Since I opened SSH, I logged in from a remote PC.

SSH client uses TeraTerm. https://ja.osdn.net/projects/ttssh2/

コメント 2020-08-18 134938.png

Enter the address set in 1.4 for "Host name". If you don't know, run "ip a" on the server.

コメント 2020-08-18 135049.png For "Username" and "Passphrase", enter the "Username" and "Password" entered in 1.10. After inserting, press "OK".

If you can log in, enter the following command to translate it into Japanese. If you use sudo, you will be asked for a password, so enter the password you used when logging in.

$ sudo apt-get install language-pack-ja-base language-pack-ja
$ sudo update-locale LANG=ja_JP.UTF-8 LANGUAGE=ja_JP.UTF-8
$ source /etc/default/locale

Referenced site https://shell-mag.com/portal-linuxserver/ https://symfoware.blog.fc2.com/blog-entry-2447.html

The end I wonder if I can make a Server Core installation for Windows Server.

Recommended Posts

How to build my own Linux server
How to build Java environment on Ubuntu (Linux)
How to build a Python environment on amazon linux 2
How to create your own Transform
How to install wkhtmltopdf (Amazon Linux2)
How to install VMware-Tools on Linux
How to install MBDyn (Linux Ubuntu)
How to build MongoDB C driver
How to check Linux OS version
How to build a NEM (current version) node (NIS1: NEM Infrastructure Server)
[Linux] How to subdivide files and folders
How to install aws-session-manager-plugin on Manajro Linux
How to build a sphinx translation environment
How to set the server time to Japanese time
I want to know how LINUX works!
How to build Hello, World on #Nix
Build an NFS server on Arch Linux
Build a simple WebDAV server on Linux
[Linux] How to use the echo command
How to use the Linux grep command
How to update php on Amazon linux 2
How to display emoji on Manjaro Linux
How to install packages on Alpine Linux
Build a Samba server on Arch Linux
How to install Anisble on Amazon Linux 2
How to operate Linux from the console
How to install your own (root) CA
How to install Windows Subsystem For Linux
How to power off Linux with Ultra96-V2
How to update security on CentOS Linux 8
How to install php7.4 on Linux (Ubuntu)
How to find large files on Linux
How to get started with laravel (Linux)
I tried how to improve the accuracy of my own Neural Network
[python] How to add RDF triples to your own Fuseki server using rdflib
Verification of how to periodically execute a script on a Linux server on Windows
How to make an embedded Linux device driver (11)
How to use Qubits Tomography (my graduate product)
How to make an embedded Linux device driver (8)
How to make an embedded Linux device driver (1)
How to make an embedded Linux device driver (4)
Linux C / C ++ Build your own library creation environment
[Latest] How to build Java environment on Ubuntu
How to make an embedded Linux device driver (7)
How to make an embedded Linux device driver (2)
How to make an embedded Linux device driver (3)
How to define your own target in Sage
Linux server command
How to write regular expression patterns in Linux
How to operate Linux from the outside Procedure
How to handle Linux commands well from Python
[Linux] Introduction to Linux
How to create a shortcut command for LINUX
My linux command
How to switch between Linux and Mac shells
How to make an embedded Linux device driver (6)
How to set up a local development server
How to install Camunda Modeler on Manjaro Linux
How to make an embedded Linux device driver (5)
[TF] How to build Tensorflow in Proxy environment
How to make an embedded Linux device driver (10)