<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Debian on KTDEVX</title><link>/en/tags/debian/</link><description>KTDEVX (Debian)</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>ktdevx@gmail.com
(Kaito Takemura)</managingEditor><lastBuildDate>Sun, 20 Apr 2025 00:49:42 +0900</lastBuildDate><atom:link href="/en/tags/debian/index.xml" rel="self" type="application/rss+xml"/><item><title>Set a Static IP Address on Debian</title><link>/en/blog/set-a-static-ip-address-on-debian/</link><pubDate>Sun, 20 Apr 2025 00:49:42 +0900</pubDate><author>ktdevx@gmail.com (Kaito Takemura)</author><guid>/en/blog/set-a-static-ip-address-on-debian/</guid><description>&lt;p>When using Debian as a server operating system, you may need to configure it so that its IP address does not change.&lt;/p>
&lt;p>This article explains how to set a static IP address on Debian.&lt;/p>
&lt;h2 id="check-the-network-interface-information" >
&lt;div>
&lt;a href="#check-the-network-interface-information">
#
&lt;/a>
Check the Network Interface Information
&lt;/div>
&lt;/h2>
&lt;p>Enter &lt;code>ip a&lt;/code> to check the network interface information.&lt;/p>
&lt;pre tabindex="0">&lt;code>kaito@file:~$ ip a
1: lo: &amp;lt;LOOPBACK,UP,LOWER_UP&amp;gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: ens18: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether bc:24:11:6e:79:1d brd ff:ff:ff:ff:ff:ff
altname enp0s18
inet 192.168.2.140/24 brd 192.168.2.255 scope global dynamic ens18
valid_lft 43045sec preferred_lft 43045sec
inet6 2001:f76:8a0:8b00:be24:11ff:fe6e:791d/64 scope global dynamic mngtmpaddr
valid_lft 2591844sec preferred_lft 604644sec
inet6 fe80::be24:11ff:fe6e:791d/64 scope link
valid_lft forever preferred_lft forever
&lt;/code>&lt;/pre>&lt;p>In this example, the IP address of the network interface named &lt;code>ens18&lt;/code> is set to a static address.&lt;/p>
&lt;h2 id="edit-the-network-configuration-file" >
&lt;div>
&lt;a href="#edit-the-network-configuration-file">
#
&lt;/a>
Edit the Network Configuration File
&lt;/div>
&lt;/h2>
&lt;p>To set a static IP address, edit the configuration file named &lt;code>/etc/network/interfaces&lt;/code>.&lt;/p>
&lt;p>When DHCP is enabled, there may be a line such as &lt;code>iface ens18 inet dhcp&lt;/code>. Change &lt;code>dhcp&lt;/code> to &lt;code>static&lt;/code> to switch to manual configuration.&lt;/p>
&lt;pre tabindex="0">&lt;code>iface ens18 inet static
address 192.168.2.3
netmask 255.255.255.0
gateway 192.168.2.1
dns-nameservers 192.168.2.1
&lt;/code>&lt;/pre>&lt;p>In this example, the IP address of &lt;code>ens18&lt;/code> is configured as &lt;code>192.168.2.3/24&lt;/code>, and the default gateway and DNS server are configured as &lt;code>192.168.2.1&lt;/code>.&lt;/p>
&lt;p>Save the file if the configuration is correct.&lt;/p>
&lt;h2 id="apply-the-network-configuration" >
&lt;div>
&lt;a href="#apply-the-network-configuration">
#
&lt;/a>
Apply the Network Configuration
&lt;/div>
&lt;/h2>
&lt;p>Run the following command to apply the configuration.&lt;/p>
&lt;pre tabindex="0">&lt;code>sudo systemctl restart networking
&lt;/code>&lt;/pre>&lt;p>The network configuration is now applied. Enter &lt;code>ip a&lt;/code> to verify that the settings have been applied.&lt;/p>
&lt;pre tabindex="0">&lt;code>kaito@file:~$ ip a
1: lo: &amp;lt;LOOPBACK,UP,LOWER_UP&amp;gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: ens18: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether bc:24:11:6e:79:1d brd ff:ff:ff:ff:ff:ff
altname enp0s18
inet 192.168.2.3/24 brd 192.168.2.255 scope global ens18
valid_lft forever preferred_lft forever
inet6 2001:f76:8a0:8b00:be24:11ff:fe6e:791d/64 scope global dynamic mngtmpaddr
valid_lft 2591912sec preferred_lft 604712sec
inet6 fe80::be24:11ff:fe6e:791d/64 scope link
valid_lft forever preferred_lft forever
&lt;/code>&lt;/pre>&lt;p>You can confirm that the &lt;code>ens18&lt;/code> configuration has been applied.&lt;/p></description></item><item><title>Install Debian</title><link>/en/blog/install-debian/</link><pubDate>Sat, 12 Apr 2025 17:44:58 +0900</pubDate><author>ktdevx@gmail.com (Kaito Takemura)</author><guid>/en/blog/install-debian/</guid><description>&lt;p>This article explains how to install Debian.&lt;/p>
&lt;h2 id="introduction" >
&lt;div>
&lt;a href="#introduction">
#
&lt;/a>
Introduction
&lt;/div>
&lt;/h2>
&lt;p>For the server hardware, GMKtec&amp;rsquo;s NucBox M5 Plus was selected.&lt;/p>
&lt;script type="text/javascript">(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;b[a]=b[a]||function(){arguments.currentScript=c.currentScript||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};c.getElementById(a)||(d=c.createElement(f),d.src=g,d.id=a,e=c.getElementsByTagName("body")[0],e.appendChild(d))})(window,document,"script","//dn.msmstatic.com/site/cardlink/bundle.js?20220329","msmaflink");msmaflink({"n":"GMKtec NucBox M5 Plus","b":"GMKtec","t":"NucBox M5 Plus","d":"https:\/\/m.media-amazon.com","c_p":"\/images\/I","p":["\/41vR0Tr81-L._SL500_.jpg","\/513cIiEP24L._SL500_.jpg","\/51y7Jy80gjL._SL500_.jpg","\/41Z+vuOobhL._SL500_.jpg","\/41M5cVWuDTL._SL500_.jpg","\/41DjW5RaV+L._SL500_.jpg","\/41TK+siBCKL._SL500_.jpg","\/41MlY4V1GHL._SL500_.jpg","\/41+kH9qwTXL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/B0CCSLMGM1","t":"amazon","r_v":""},"v":"2.1","b_l":[{"id":1,"u_tx":"Amazonで見る","u_bc":"#f79256","u_url":"https:\/\/www.amazon.co.jp\/dp\/B0CCSLMGM1","a_id":4972695,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":2,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/GMKtec%20NucBox%20M5%20Plus\/","a_id":4972697,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":3,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=GMKtec%20NucBox%20M5%20Plus","a_id":4972698,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"JoQuJ","s":"s"});&lt;/script>&lt;div id="msmaflink-JoQuJ">リンク&lt;/div>
&lt;p>Since the Proxmox VE virtualization platform is installed on the mini PC, Debian is installed in a virtual machine created on it.&lt;/p>
&lt;p>When installing Debian in a virtual machine on Proxmox VE, also see &lt;a href="https://www.ktdevx.com/en/blog/create-vm-in-proxmox-ve/">Create a Virtual Machine (VM) on Proxmox VE&lt;/a>.&lt;/p>
&lt;h2 id="download-debian" >
&lt;div>
&lt;a href="#download-debian">
#
&lt;/a>
Download Debian
&lt;/div>
&lt;/h2>
&lt;p>Download the ISO image from the &lt;a href="https://www.debian.org/distrib/">Debian download page&lt;/a>. In this example, Debian 12.10.0 was downloaded.&lt;/p>
&lt;h2 id="create-an-installation-usb-drive" >
&lt;div>
&lt;a href="#create-an-installation-usb-drive">
#
&lt;/a>
Create an Installation USB Drive
&lt;/div>
&lt;/h2>
&lt;p>Write the downloaded ISO image to a USB drive. Use an image-writing tool such as Win32 Disk Imager to write it to the USB drive.&lt;/p>
&lt;p>For details on using Win32 Disk Imager, see &lt;a href="https://www.ktdevx.com/en/blog/install-win32-disk-imager/">How to Install and Use Win32 Disk Imager&lt;/a>.&lt;/p>
&lt;h2 id="install-debian" >
&lt;div>
&lt;a href="#install-debian">
#
&lt;/a>
Install Debian
&lt;/div>
&lt;/h2>
&lt;p>Connect the USB drive to the PC on which you want to install Debian, start the PC, and boot from the USB drive. The Debian installation screen is displayed.&lt;/p>
&lt;h3 id="select-the-installation-method" >
&lt;div>
&lt;a href="#select-the-installation-method">
##
&lt;/a>
Select the Installation Method
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-1.webp">&lt;/p>
&lt;p>The installation methods are displayed. Select Graphical Install and press Enter, or wait for the installation to start automatically.&lt;/p>
&lt;h3 id="configure-the-language" >
&lt;div>
&lt;a href="#configure-the-language">
##
&lt;/a>
Configure the Language
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-2.webp">&lt;/p>
&lt;p>Configure the language displayed during installation. Select Japanese and press Continue.&lt;/p>
&lt;h3 id="configure-the-locale" >
&lt;div>
&lt;a href="#configure-the-locale">
##
&lt;/a>
Configure the Locale
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-3.webp">&lt;/p>
&lt;p>Configure the locale. This setting is used to help configure the time zone and select the system locale.&lt;/p>
&lt;p>Select Japan and press Continue.&lt;/p>
&lt;h3 id="configure-the-keyboard" >
&lt;div>
&lt;a href="#configure-the-keyboard">
##
&lt;/a>
Configure the Keyboard
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-4.webp">&lt;/p>
&lt;p>Configure the keyboard. Select the layout that matches your keyboard and press Continue.&lt;/p>
&lt;h3 id="configure-the-hostname" >
&lt;div>
&lt;a href="#configure-the-hostname">
##
&lt;/a>
Configure the Hostname
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-5.webp">&lt;/p>
&lt;p>Configure the server hostname.&lt;/p>
&lt;p>The default is &lt;code>debian&lt;/code>. If you have no specific requirement, you can leave it unchanged. Enter a hostname and press Continue.&lt;/p>
&lt;h3 id="configure-the-domain-name" >
&lt;div>
&lt;a href="#configure-the-domain-name">
##
&lt;/a>
Configure the Domain Name
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-6.webp">&lt;/p>
&lt;p>Configure the server domain name.&lt;/p>
&lt;p>The default is blank. If you have no specific requirement, you can leave it blank. Enter a domain name and press Continue.&lt;/p>
&lt;h3 id="configure-the-administrator-password" >
&lt;div>
&lt;a href="#configure-the-administrator-password">
##
&lt;/a>
Configure the Administrator Password
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-7.webp">&lt;/p>
&lt;p>Configure the password for the administrator user (&lt;code>root&lt;/code>).&lt;/p>
&lt;p>Entering a password allows you to log in as the &lt;code>root&lt;/code> user with the &lt;code>su&lt;/code> command.&lt;/p>
&lt;p>If you leave it blank, login as the &lt;code>root&lt;/code> user is restricted and the user created later is given &lt;code>sudo&lt;/code> privileges.&lt;/p>
&lt;p>Configure this according to your use case and press Continue.&lt;/p>
&lt;h3 id="configure-the-users-full-name" >
&lt;div>
&lt;a href="#configure-the-users-full-name">
##
&lt;/a>
Configure the User&amp;rsquo;s Full Name
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-8.webp">&lt;/p>
&lt;p>Create a non-administrator user. Enter the full name of the user who owns the account being created.&lt;/p>
&lt;p>This information is used to display the user&amp;rsquo;s real name, by programs that use it, and as the default sender of emails sent by this user. In general, enter the user&amp;rsquo;s real name.&lt;/p>
&lt;p>Enter the user&amp;rsquo;s full name and press Continue.&lt;/p>
&lt;h3 id="configure-the-username" >
&lt;div>
&lt;a href="#configure-the-username">
##
&lt;/a>
Configure the Username
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-9.webp">&lt;/p>
&lt;p>Create a non-administrator user. Enter the username for the account being created.&lt;/p>
&lt;p>The username must begin with a lowercase letter. Enter a username and press Continue.&lt;/p>
&lt;h3 id="configure-the-password" >
&lt;div>
&lt;a href="#configure-the-password">
##
&lt;/a>
Configure the Password
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-10.webp">&lt;/p>
&lt;p>Create a non-administrator user. Enter the password for the account being created.&lt;/p>
&lt;p>Enter a password and press Continue.&lt;/p>
&lt;h3 id="configure-the-partitioning-method" >
&lt;div>
&lt;a href="#configure-the-partitioning-method">
##
&lt;/a>
Configure the Partitioning Method
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-11.webp">&lt;/p>
&lt;p>Configure the partitioning method.&lt;/p>
&lt;p>If you have no specific requirement, select Guided - use entire disk and press Continue.&lt;/p>
&lt;h3 id="select-the-disk-to-partition" >
&lt;div>
&lt;a href="#select-the-disk-to-partition">
##
&lt;/a>
Select the Disk to Partition
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-12.webp">&lt;/p>
&lt;p>Select the disk to partition.&lt;/p>
&lt;p>Select a disk and press Continue.&lt;/p>
&lt;h3 id="configure-the-partitioning-scheme" >
&lt;div>
&lt;a href="#configure-the-partitioning-scheme">
##
&lt;/a>
Configure the Partitioning Scheme
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-13.webp">&lt;/p>
&lt;p>Configure the partitioning scheme.&lt;/p>
&lt;p>If you have no specific requirement, select All files in one partition and press Continue.&lt;/p>
&lt;h3 id="configure-the-partition-details" >
&lt;div>
&lt;a href="#configure-the-partition-details">
##
&lt;/a>
Configure the Partition Details
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-14.webp">&lt;/p>
&lt;p>You can configure the partition details.&lt;/p>
&lt;p>If you have no specific requirement, leave the defaults unchanged, select Finish partitioning and write changes to disk, and press Continue.&lt;/p>
&lt;h3 id="create-the-partitions" >
&lt;div>
&lt;a href="#create-the-partitions">
##
&lt;/a>
Create the Partitions
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-15.webp">&lt;/p>
&lt;p>This is the final confirmation of the partitions to be created.&lt;/p>
&lt;p>If everything is correct, select Yes and press Continue.&lt;/p>
&lt;h3 id="check-the-installation-media" >
&lt;div>
&lt;a href="#check-the-installation-media">
##
&lt;/a>
Check the Installation Media
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-16.webp">&lt;/p>
&lt;p>You can specify whether to check additional media used by the package manager (&lt;code>apt&lt;/code>).&lt;/p>
&lt;p>If you have no specific requirement, select No and press Continue.&lt;/p>
&lt;h3 id="configure-the-debian-package-repository" >
&lt;div>
&lt;a href="#configure-the-debian-package-repository">
##
&lt;/a>
Configure the Debian Package Repository
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-17.webp">&lt;/p>
&lt;p>Configure the Debian package repository. Select Japan and press Continue.&lt;/p>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-18.webp">&lt;/p>
&lt;p>A list of package repositories and mirrors is displayed. If you have no specific requirement, &lt;code>deb.debian.org&lt;/code> is suitable.&lt;/p>
&lt;p>Select a repository and press Continue.&lt;/p>
&lt;h3 id="configure-the-http-proxy" >
&lt;div>
&lt;a href="#configure-the-http-proxy">
##
&lt;/a>
Configure the HTTP Proxy
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-19.webp">&lt;/p>
&lt;p>Configure the HTTP proxy.&lt;/p>
&lt;p>If you need to access the internet through a proxy, enter the proxy information. Otherwise, leave it blank.&lt;/p>
&lt;p>After configuring it, press Continue.&lt;/p>
&lt;h3 id="configure-debian-popularity-contest" >
&lt;div>
&lt;a href="#configure-debian-popularity-contest">
##
&lt;/a>
Configure Debian Popularity Contest
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-20.webp">&lt;/p>
&lt;p>You can configure the system to anonymously provide the Debian community with statistics about the packages most used on this system.&lt;/p>
&lt;p>If you choose to participate, an automatic submission script runs once a week and sends statistics to the Debian community. The collected statistics can be viewed at &lt;a href="https://popcon.debian.org/">Debian Popularity Contest&lt;/a>.&lt;/p>
&lt;p>Select either option and press Continue.&lt;/p>
&lt;h3 id="select-software-to-install" >
&lt;div>
&lt;a href="#select-software-to-install">
##
&lt;/a>
Select Software to Install
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-21.webp">&lt;/p>
&lt;p>By default, only the core system functions are installed. You can select additional software to install here.&lt;/p>
&lt;p>If you need a GUI environment, such as when using the system as a desktop PC, select Debian desktop environment and GNOME.&lt;/p>
&lt;p>If you need a remote connection environment, such as when using the system as a server, select SSH server.&lt;/p>
&lt;p>Select the software to install and press Continue.&lt;/p>
&lt;h3 id="install-the-boot-loader" >
&lt;div>
&lt;a href="#install-the-boot-loader">
##
&lt;/a>
Install the Boot Loader
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-22.webp">&lt;/p>
&lt;p>Install the GRUB boot loader. Select Yes and press Continue.&lt;/p>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-23.webp">&lt;/p>
&lt;p>Select the device on which to install the GRUB boot loader and press Continue. Wait for the installation to complete.&lt;/p>
&lt;h3 id="restart-the-system" >
&lt;div>
&lt;a href="#restart-the-system">
##
&lt;/a>
Restart the System
&lt;/div>
&lt;/h3>
&lt;p>&lt;img alt="Debian installation screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-24.webp">&lt;/p>
&lt;p>Remove the USB drive used for installation and press Continue.&lt;/p>
&lt;p>The system restarts and Debian boots.&lt;/p>
&lt;p>&lt;img alt="Debian login screen" src="https://www.ktdevx.com/ja/blog/install-debian/images/install-debian-25.webp">&lt;/p>
&lt;p>The shell login screen is displayed. The Debian installation is complete.&lt;/p></description></item></channel></rss>