在Linux中安装Windows字体

使用的系统为Ubuntu 19.10,Windows系统分区lable为sys

参考如下操作:

alair@e6440:~$ sudo mkdir /usr/share/fonts/winfonts
[sudo] alair 的密码: 
alair@e6440:~$ sudo cp /media/alair/sys/Windows/Fonts/* /usr/share/fonts/winfonts/  
alair@e6440:~$ sudo rm -rf /usr/share/fonts/winfonts/*.fon
alair@e6440:~$ sudo mkfontscale 
alair@e6440:~$ sudo mkfontdir 
alair@e6440:~$ sudo fc-cache 

阅读更多

Armbian更改软件源

上一篇文章介绍了如何在斐迅N1上安装Armbian,现在介绍如何更改软件源为国内镜像。

编辑/etc/apt/sources.list替换为以下内容:

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
deb http://ftp.debian.org/debian jessie-backports main

接着编辑/etc/apt/sources.list.d/armbian.list ,替换为以下内容:

阅读更多

斐讯N1安装Armbian

20231101更新

最新斐讯N1可用Debian 12镜像

Armbian_23.11.0_amlogic_s905d_bookworm_6.1.59_server_2023.10.20.img.gz

境外地址 天朝地址

安装方法 使用balenaEtcher 等工具将系统写入 U盘里,然后把写好系统的 U盘插入盒子。登录 Armbian 系统 (默认用户: root, 默认密码: 1234) → 输入命令:

阅读更多

一加3t和树莓派UNIXBench跑分对比

一加3T

一加3T运行的是UbuntuTouch系统

一加3T系统信息

phablet@ubuntu-phablet:~$ inxi -F
Resuming in non X mode: xrandr not found. For package install advice run: inxi --recommends
System:    Host: android Kernel: 3.18.31-halium-gca027546546e-01041-g7961eb763e61 aarch64 (32 bit) Desktop: N/A
		Distro: Ubuntu 16.04 xenial
Machine:   No /sys/class/dmi; using dmidecode: dmidecode is not installed.
CPU:       Quad core AArch64 Processor rev 1 (aarch64) (-MCP-) (ARM)
		clock speeds: max: 2188 MHz 1: 1593 MHz 2: 1593 MHz 3: 1593 MHz 4: 1593 MHz
Graphics:  Card: Failed to Detect Video Card!
		Display Server: N/A driver: N/A Resolution: 165x47
Audio:     Card msm8996-tasha-mtp-snd-card driver: msm8996-tasha-m
		Sound: Advanced Linux Sound Architecture v: k3.18.31-halium-gca027546546e-01041-g7961eb763e61
Network:   Card-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter driver: cnss_wlan_pci
		IF: rename8 state: down mac: c2:ee:fb:e8:e2:ea
		Card-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter driver: cnss_wlan_pci
		IF: wlp1s0 state: up mac: c0:ee:fb:e8:e2:ea
Drives:    HDD Total Size: 64.0GB (8.3% used) ID-1: /dev/sda model: KLUCG4J1CB size: 57.9GB
		ID-2: /dev/sdb model: KLUCG4J1CB size: 0.0GB ID-3: /dev/sdc model: KLUCG4J1CB size: 0.0GB
		ID-4: /dev/sdd model: KLUCG4J1CB size: 0.1GB ID-5: /dev/sde model: KLUCG4J1CB size: 4.3GB
		ID-6: /dev/sdf model: KLUCG4J1CB size: 1.6GB
Partition: ID-1: / size: 2.9G used: 1.9G (67%) fs: ext4 dev: /dev/loop0
Sensors:   None detected - is lm-sensors installed and configured?
Info:      Processes: 551 Uptime: 1:02 Memory: 1668.1/5736.9MB Init: Upstart runlevel: 2
		Client: Shell (bash) inxi: 2.2.35

一加3T unixbench跑分

========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)

System: ubuntu-phablet: GNU/Linux
OS: GNU/Linux -- 3.18.31-halium-gca027546546e-01041-g7961eb763e61 -- #1 SMP PREEMPT Wed Aug 21 20:33:17 CEST 2019
Machine: aarch64 (aarch64)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
11:39:26 up 58 min,  2 users,  load average: 6.59, 7.93, 8.16; runlevel 2

------------------------------------------------------------------------
Benchmark Run: 六 9月 07 2019 11:39:26 - 12:07:49
0 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       13089762.3 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3000.5 MWIPS (9.8 s, 7 samples)
Execl Throughput                               1381.2 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        254749.2 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           75714.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        813273.2 KBps  (30.0 s, 2 samples)
Pipe Throughput                              650583.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  22716.1 lps   (10.0 s, 7 samples)
Process Creation                                835.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2556.9 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    938.3 lpm   (60.0 s, 2 samples)
System Call Overhead                         988399.2 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   13089762.3   1121.7
Double-Precision Whetstone                       55.0       3000.5    545.5
Execl Throughput                                 43.0       1381.2    321.2
File Copy 1024 bufsize 2000 maxblocks          3960.0     254749.2    643.3
File Copy 256 bufsize 500 maxblocks            1655.0      75714.9    457.5
File Copy 4096 bufsize 8000 maxblocks          5800.0     813273.2   1402.2
Pipe Throughput                               12440.0     650583.5    523.0
Pipe-based Context Switching                   4000.0      22716.1     56.8
Process Creation                                126.0        835.5     66.3
Shell Scripts (1 concurrent)                     42.4       2556.9    603.1
Shell Scripts (8 concurrent)                      6.0        938.3   1563.9
System Call Overhead                          15000.0     988399.2    658.9
																========
System Benchmarks Index Score                                         463.9



======= Script description and score comparison completed! =======

树莓派

树莓派运行的是官方Raspbian Buster Lite版

阅读更多