Setting a static IP address in Linux

Introduction: Usually, IP addresses are dynamically assigned by the router’s DHCP server on most network devices. But using a static IP address on the server makes the provided services more stable. If the DHCP server is not working, it will affect the computers in the local area network to obtain IP addresses, thereby affecting access to services, while servers with static IP addresses are not affected, so static IP is also necessary (on devices providing services)....

June 2, 2023 · 7 min · 1340 words · King Tam

Configuring VLANs on a Host for PVE (Proxmox VE)

Configuring VLANs on a Host for Proxmox VE In today’s increasingly complex networking environments, Virtual Local Area Networks (VLANs) have become a crucial tool for managing network traffic and ensuring optimal performance. This blog post provides a step-by-step guide on configuring VLANs on a host for Proxmox Virtual Environment (VE), a popular open-source virtualization platform. Why use VLANs with Proxmox VE? VLANs allow you to segregate network traffic into isolated broadcast domains, improving security and reducing network congestion....

May 30, 2023 · 4 min · 744 words · King Tam

PVE (Proxmox VE) Multi-port Identification

PVE (Proxmox VE) Multi-port Identification About: This is a post about network card (multiple ports) identification in the PVE system. Through the ethtool command, you can easily find the corresponding location of each network port. Operation Steps: Take Intel EXPI9402PTBLK 82571GB Network Adapter as an example Install the ethtool command apt update && apt install ethtool -y ethtool can be used to view network device driver parameters and hardware configuration....

May 30, 2023 · 3 min · 486 words · King Tam

Installing CUPS on PVE's LXC Container System

Installing CUPS on PVE’s LXC Container System Introduction: At home, I use a Canon LBP6030 USB printer connected to a Padavan system on a router (Youku1) to enable wireless printing. However, wireless printing can only be achieved on the Windows platform, and on systems such as macOS and IOS from Apple, it cannot be achieved, causing some inconvenience. I came across this post on SMZDM N1刷armbian變身打印服務器, which can install CUPS software as a printer server system, and thus the following content was recorded....

May 29, 2023 · 5 min · 930 words · King Tam

Managing LXC in Proxmox Virtual Environment (PVE)

We will explore the syntax of managing LXC using PVE. Use commands that are commonly used by system administrators and cover the basics of creating, removing, and managing LXC in PVE. What’s LXC? LXC is a user space interface for the Linux kernel containment features. Through a powerful API and simple tools, it lets Linux users easily create and manage system or application containers. Template Image Creating an LXC in PVE is to download a template image....

May 29, 2023 · 4 min · 642 words · King Tam

Set up SmartDNS in Alpine Linux (LXC)

Set up SmartDNS in Alpine Linux (LXC) SmartDNS is a local DNS server that retrieves DNS query results from multiple upstream DNS servers and delivers the fastest results to clients. It supports secure DNS protocols such as DoT (DNS over TLS) and DoH (DNS over HTTPS), providing enhanced privacy protection, avoiding DNS pollution, and improving network access speed. Additionally, SmartDNS supports high-performance ad filtering for an overall better browsing experience...

May 26, 2023 · 3 min · 570 words · King Tam

Alpine Linux share the terminal over the web (ttyd)

What is ttyd? What is ttyd? ttyd is a simple command-line program that allows you to share a terminal session over the web. It provides a web-based terminal interface for interacting with a Linux system, making it possible to access the system remotely from a web browser. Install ttyd in Alpine Linux Install ttyd in Alpine Linux Open the terminal and type the following command to update the packages list:...

May 26, 2023 · 3 min · 516 words · King Tam

Alpine Linux as a DHCP and DNS Server

dnsmasq is a lightweight, easy-to-configure DHCP and DNS server. I’ll demonstrate how to set up dnsmasq as both a DHCP and DNS server on a Linux system. Procedure Procedure Network Card Configuration : Network Card Configuration ip address The physical interface eth1 is used to set up DHCP and DNS services. cat >> /etc/network/interfaces << EOF auto eth1 iface eth1 inet static address 192.168.0.1 network 192.168.0.0 netmark 255.255.255.0 broadcast 192....

May 26, 2023 · 2 min · 361 words · King Tam

Alpine Linux-based LXC with Docker support on a PVE host

Setting up an Alpine Linux-based Container (LXC) with Docker support on a Proxmox Virtual Environment (PVE) host. Lightweight and secure: Alpine Linux is a lightweight and secure distribution of Linux that is ideal for use in containers. It has a small footprint and is designed to minimize attack surface, making it a good choice for running Docker containers. Flexibility: Using an LXC container allows you to run multiple instances of Docker on a single host, each with its own isolated environment and resources....

May 25, 2023 · 3 min · 559 words · King Tam

Alpine Linux Customizations

One of the benefits of using Alpine Linux is its flexibility and customizability, which allows users to tailor the system to their specific needs. Setting the timezone Check the current timezone date Timezone setting setup-timezone Which timezone are you in? (’?’ for list) [UTC] Asia/Hong_Kong Suppose you want to use the Asia/ timezone and Hong_Kong as the sub-timezone of ‘Asia/’. You can input ‘?’ to list the timezones to choose from....

May 24, 2023 · 7 min · 1425 words · King Tam