Category Archives: UNIX

Gentoo ARM64 UEFI Install Guide

This is not a detail guide to describe how to full install system, just figure out some important point. Even not for Gentoo newbie.

Most important handbook is Gentoo AMD64 installation guide.
There is some different between ARM64 and AMD64

Read more »

自架 DNS 防成人內容

果然還是到了這一天,雖然總是有一天他們會看到,但是多多少少還是要設一道簡單的關卡
最簡單的是在路由器上設定 DNS ,畢竟誰都不喜歡在自己的手機電腦裝軟體吧

Read more »

CentOS8 ARM64/AARCH64 Install Docker

It’s not complex to install docker on ARM64 platform and make it work, but it needs a trick

Read more »

ARM64 Centos8 Ubuntu PXE Boot Install

This document will introduce how to setup a centos PXE boot environment on ubuntu 18.04 for install centos8 to your ARM64 machine.

In this document, it uses CentOS 8 version is 8.1.1911, it might also work on later version if you change file name accordingly . 

all command in this document we assume you already run with root permission. 

Read more »

ARM64 mfpu=neon-fp-armv8 and unrecognized command line option

又學到一個小知識

原因是因為 -mfpu=neon-fp-armv8 是 arm32 compiler option ARM64 使用 Linux ABI 那邊就規範要支援 Floatpoint 和 ASIMD(也就是 neon 的 64bit 版 )

不要用 -mfpu 指令就可以了

ref.
-mfpu=neon-fp-armv8 and unrecognized command line option

Netplan Bridge Setup

Backup for mysalves

network:
  version: 2
  renderer: networkd
  ethernets:
    enP6p1s0:
      dhcp4: no
  bridges:
    br0:
      dhcp4: no
      interfaces:
         - enP6p1s0
      addresses: [192.168.110.254/16]
      gateway4: 192.168.1.1
      nameservers:
              addresses: [8.8.8.8,8.8.8.4]
      dhcp4: no

ref
https://netplan.io/examples

Raspberry 4 Pi + Kubuntu

買了二塊 Raspberry 4 Pi 回來,本來是準備裝 K8s 的,但是在這之前要先跑個 ubuntu image 才對.

我買 Raspberry 4 Pi 的時候知道他要用 5V3A 的電源,但是我沒有想到我自己沒有 5V3A 的 USB 變壓器,手機用的含 Apple 87W USB-C 變壓器都不足瓦
Apple 87W 只能輸出 5V 2.4A
最後找了一個 Sony 可以輸出 5V 2.7A 才可以用,所以如果要買 Raspberry Pi 4 的人請注意一下

另外這一塊的外接是 Micro-HDMI,我也忘了買,記得還要加買 SD Card

Read more »

QEMU Network Problem When Run With Docker

如果 Docker 和 QEMU 同時執行時,QEMU 內部透過 tap interface bridge 到 host network 的網路會出不去

這個問題的原因是 Docker 起來之後,會將 iptables 的 packet forward 預設變成 DROP

這時可以在 Docker 起來的時候將 bridge interface 加到 iptables 規則內即可,首先編輯 systemd docker service

Read more »

Install Kubernetes on ARM64 Ubuntu 18.04 (with QEMU)

Install Kubernetes on Ubuntu 18.04 is very easy now, but only for x86 platform. If on ARM64 environment, it might have some other problem.
Some old article mentioned a lot of information but software version is too old for deploy a new version software.

After a lot of time to have research, here is instruction for how to install Kubernetes on ARM64 Ubuntu 18.04

Read more »

Ubuntu 18.04 Change Mac Address on QEMU via Netplan

This is a quick note about how to modify mac address for qemu image with ubuntu 18.04 cloud image.

but I have not found a working way only change mac address in system

Read more »