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

Alpine Linux Package Management Tool

About The package management tool used in Alpine Linux is apk. apk is a fast, lightweight, and efficient package management tool that has the following features: Native support for cross-compilation and cross-platform installation. Automatic handling of dependencies when installing and uninstalling packages. Support for multiple repositories, including official repositories, community repositories, and personal repositories. Simple command-line interface that allows users to perform various operations such as search, install, upgrade, and uninstall....

May 24, 2023 · 3 min · 510 words · King Tam

Alpine Installation

Why Alpine Linux Alpine Linux is a lightweight, security-focused, rolling release distribution with a fast and efficient package manager. It is highly customizable and compatible with a wide range of hardware architectures, making it suitable for use in a variety of environments. Preparation Download the Alpine Linux ISO image file from the official website: https://alpinelinux.org/downloads/ Write the ISO image file to a USB drive using a tool such as Rufus or Etcher....

May 24, 2023 · 2 min · 338 words · King Tam