Linode Linux system update and Linode software update and time setting tutorial

888u

Last update at :2024-05-18,Edit by888u

After connecting to Linode, you should first update the Linux version. The latest security patches and bug fixes are required, otherwise Linode will be vulnerable to attacks, and software updates should be carried out regularly.

Here's how to update various Linux versions.

CentOS

yum update

Fedora

dnf upgrade

Arch Linux

pacman-Syu

Gentoo

emaint sync -a

After the update, there will be a final message, use the "-oneshot" emerge command to upgrade Portage, and then update the rest of the system. emerge –uDN @world

Slackware

slackpkg update
slackpkg upgrade-all

Set hostname

Your system's hostname should be unique. Note that the hostname has nothing to do with the website or email service hosted on it, other than providing a name for the system itself. Your host should not be named "WWW" or anything too general.

Once completed, you can verify the hostname by running the command.

Arch/CentOS 7/Debian 8/Fedora/Ubuntu 16.04 and above

Replace example_hostname with one of your choices hostnamectl set-hostname example_hostname

Debian 7 / Slackware / Ubuntu 14.04

Replace example_hostname with one of your choices echo “example_hostname” > /etc/hostname
hostname -F /etc/hostname

CentOS 6 permanent link

Replace hostname with one of your choices echo “HOSTNAME=example_hostname” >> /etc/sysconfig/network
hostname "hostname"

Gentoo

Enter the following command to set the hostname, replacing example_hostname with the hostname of your choice: echo “HOSTNAME=/”example_hostname/”” > /etc/conf.d/hostname
/etc/init.d/hostname restart

Update /etc/hosts

Create a static association between the IP address and the host name in the file /etc/hosts where hosts is located. Its priority is higher than DNS. Open this file in a text editor and add a line for your Linode's public IP address. You can associate this address with your Linode's fully qualified domain name (FQDN) (if you have one) and the local hostname you set in the steps above. In the example below, 203.0.113.10 is the public IP address, hostname is the local hostname, and hostname.example.com is the FQDN. 127.0.0.1 localhost.localdomain localhost
203.0.113.10 hostname.example.com hostname

If you have IPv6 enabled on your Linode, you may also need to add an entry for your IPv6 address: 127.0.0.1 localhost.localdomain localhost
203.0.113.10 hostname.example.com hostname
2600:3c01::a123:b456:c789:d012 hostname.example.com hostname

The value assigned as the system's FQDN should have an "A" record in DNS pointing to your Linode IPv4 address. For IPv6-enabled Linodes, you should also set up an "AAAA" record in DNS that points to your Linode's IPv6 address.

Set time zone

By default, your Linode will be set to UTC time. You may want to change this to the time zone you live in or where most of your users are to make the log file timestamps more sensible.

Debian / Ubuntu

dpkg-reconfigure tzdata

Arch Linux and CentOS 7

  1. View a list of available time zones: timedatectl list-timezones
  2. Use the Up, Down, Page Up and Page Down keys to navigate. Find the time zone you want. Remember it, write it down, or copy it as a mouse selection. Then press q to exit the list.
  3. Set time zone: timedatectl set-timezone ‘America/New_York’

Gentoo

  1. View a list of available time zones: ls /usr/share/zoneinfo
  2. Write the selected time zone to the /etc/timezone file: echo "EST" > /etc/timezone
  3. Configure the sys-libs/timezone-data package, which will set /etc/localtime appropriately: emerge –config sys-libs/timezone-data

Check time

View the current date and time based on your server. date

The above is the tutorial on Linode system update, Linode software update and time setting. I hope it can help friends in need.

Recommended site searches: domain name search, how much does it cost to rent a server for one year, cloud virtual hosting, server rental, Shandong registration, how to rent a server, expired domain name query, VIP domain name, US website space, host server rental,

Linode Linux system update and Linode software update and time setting tutorial

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码