odroid-xu4:software:ubuntu_nas:01_basic_settings

Basic Settings

Before you build, you should update your ODROID and set timezone, locale data.

Type the command lines below to update your ODROID.

target
$ sudo apt update && sudo apt full-upgrade

And install latest kernel.

target
$ sudo apt install linux-image-xu3
$ reboot

Set timezone.

target
$ sudo dpkg-reconfigure tzdata

Set locale.

target
sudo locale-gen "en_US.UTF-8"
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
sudo dpkg-reconfigure locales
# Select "en_US.UTF-8" for all of the steps.

To take effect, you should re-connect your shell and you can check using following command.

target
$ locale
 
# results
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

We strongly recommend you to create a user for SSH access or for doing something related to the ODROID.
And we also recommend you to create a group for the NAS services. For file sharing, specifying a group is very helpful.

To create a user and to grant super user permission, enter the command lines below:

target
# Enter prefer user name.
$ sudo adduser your-user-name
$ sudo usermod -G sudo your-user-name

To create a group, enter the command lines below:

target
# Enter prefer group name
$ sudo groupadd your-group-name

And to join a new user into a new group, enter the command lines below:

target
$ sudo usermod -a -G your-group-name your-user-name

After you're done, change root's password and disable SSH root login.

target
$ sudo passwd
 
$ sudo vi /etc/ssh/sshd_config
# Find "PermitRootLogin" and change it to "no".
$ sudo service sshd restart

Restart the shell and login again with your new account.

  • odroid-xu4/software/ubuntu_nas/01_basic_settings.txt
  • Last modified: 2018/03/09 10:47
  • by joshua