Skip to main content
Install Arch Linux with Windows

BIOS Setup

  • change hard drive mode from “RAID” to “ACHI/NVME”

Partitioning for EFI System

  • disable “Secure Boot”
  • boot Arch Linux ISO

[Optional] Connect from Another Device

root@archiso ~ # passwd
New password:
Retype new password:
passwd: password updated succesfully
root@archiso ~ # systemctl start sshd
root@archiso ~ # systemctl status sshd
● sshd.service - OpenSSH Daemon
     Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; preset: disabled)
     Active: active (running) since Wed 2023-03-08 06:08:32 UTC; 1min 36s ago
   Main PID: 508 (sshd)
      Tasks: 1 (limit: 19074)
     Memory: 4.2M
        CPU: 145ms
     CGroup: /system.slice/sshd.service
             └─508 "sshd: /usr/bin/sshd -D [listener] 0 of 10-100 startups"

Mar 08 06:08:32 archiso systemd[1]: Started OpenSSH Daemon.
Mar 08 06:08:33 archiso sshd[508]: Server listening on 0.0.0.0 port 22.
Mar 08 06:08:33 archiso sshd[508]: Server listening on :: port 22.
root@archiso ~ # ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> 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
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 08:00:27:12:bc:70 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 metric 100 brd 10.0.2.255 scope global dynamic enp0s3
       valid_lft 86284sec preferred_lft 86284sec
    inet6 fe80::a00:27ff:fe12:bc70/64 scope link
       valid_lft forever preferred_lft forever

PostsArch LinuxLinuxWindowsAbout 7 minAbout 2007 words
Run Tencent Meeting on Ubuntu 22.04

Environment

Name Value
OS Ubuntu 22.04 LTS
Tencent Meeting 3.9.0.1 2022-07-20

Problem

检测到窗口系统采用wayland协议,腾讯会议暂不兼容,程序即将退出!

PostsLinuxTencent MeetingUbuntuUbuntu 22.04About 1 minAbout 331 words
Linux Device Drivers | Building and Running Modules

Utilities

insmod
modprobe
rmmod

User-space utilities that load modules into the running kernels and remove them.

<linux/init.h>

module_init(init_function);
module_exit(cleanup_function);

ResearchC/C++LinuxLinux Device DriversLinux KernelAbout 1 minAbout 434 words
Linux Device Drivers | Char Drivers

<linux/types.h>

dev_t

dev_t is the type used to represent device numbers within the kernel.

int MAJOR(dev_t dev);
int MINOR(dev_t dev);

ResearchC/C++LinuxLinux Device DriversLinux KernelAbout 1 minAbout 411 words
Linux Device Drivers | Concurrency and Race Conditions
<asm/semaphore.h> (not found)

The include file that defines semaphores and the operations on them.

DECLARE_MUTEX(name);
DECLARE_MUTEX_LOCKED(name);

ResearchC/C++LinuxLinux Device DriversLinux KernelAbout 2 minAbout 640 words
Linux Device Drivers | Time, Delays, and Deferred Work

Timekeeping

<linux/param.h>
HZ

The HZ symbol specifies the number of clock ticks generated per second.

<linux/jiffies.h>
volatile unsigned long jiffies
u64 jiffies_64

ResearchC/C++LinuxLinux Device DriversLinux KernelAbout 4 minAbout 1104 words