使用Ubuntu命令进行安装
根据需要进行
# 如果您想更改按键绑定(在某些 PC 上不起作用)
# DELL Vostro 3020 Small Desktop虽然有效但过后遗忘
$ setxkbmap -option ctrl:swapcaps
# 恢复到按键绑定
$ setxkbmap -option
# 如果您想更改按键绑定(在某些 PC 上不起作用)
# DELL Vostro 3020 Small Desktop有效
$ sudo vi /etc/default/keyboard
XKBOPTIONS="ctrl:swapcaps"
$ sudo systemctl restart console-setup
# Ubuntu重启
# 如果要添加用户并将其设置为可执行 sudo
$ sudo adduser masumi
$ sudo gpasswd -a masumi sudo
# 如果使用 ifconfig 显示当前网络配置
$ sudo apt -y install net-tools
# 如果要显示以太网链路速度
$ sudo apt -y install ethtool
# 如果要显示运行时钟。
$ sudo apt -y install cpufrequtils
全局配置Git
$ cd
$ git config --global credential.helper store
$ git config --global user.email "taro@nihon.co.jp" # 设置地址
$ git config --global user.name "Taro Nihon" # 设置姓名
因为时间延迟了8小时,所以需要进行调整。
将BIOS时钟调整为中国时间
Windows使用BIOS的中国时间
Ubuntu将BIOS时间设置为本地时间进行解释
$ sudo hwclock -D --systohc --localtime
EPSON Endeavor的以太网使用即为使用以太网功能。
在以下链接中下载英特尔I219-V的驱动程序:
https://www.intel.com/content/www/us/en/download/14611/15817/intel-network-adapter-driver-for-pcie-intel-gigabit-ethernet-network-connections-under-linux.html
构建和安装
$ tar xf e1000e-3.8.4.tar.gz
$ cd e1000e-3.8.4/src/
$ vi nvm.c
s32 e1000e_validate_nvm_checksum_generic(struct e1000_hw *hw)
{
return 0; /* 使该功能成为非处理功能*/
}
$ sudo make install
$ sudo modprobe -r e1000e
$ sudo modprobe e1000e
$ dmesg | grep -i e1000
[ 470.573246] e1000e: loading out-of-tree module taints kernel.
[ 470.573502] e1000e: module verification failed: signature and/or required key missing - tainting kernel
[ 470.577509] e1000e: Intel(R) PRO/1000 Network Driver - 3.8.4-NAPI
[ 470.577510] e1000e: Copyright(c) 1999 - 2020 Intel Corporation.
[ 470.577996] e1000e 0000:00:1f.6: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode
[ 471.023527] e1000e 0000:00:1f.6 0000:00:1f.6 (uninitialized): registered PHC clock
[ 471.114089] e1000e 0000:00:1f.6 eth0: (PCI Express:2.5GT/s:Width x1) d8:97:ba:39:15:e2
[ 471.114091] e1000e 0000:00:1f.6 eth0: Intel(R) PRO/1000 Network Connection
[ 471.114280] e1000e 0000:00:1f.6 eth0: MAC: 13, PHY: 12, PBA No: FFFFFF-0FF
[ 471.117633] e1000e 0000:00:1f.6 eno1: renamed from eth0
[ 556.332827] e1000e 0000:00:1f.6 eno1: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
$ sudo ping 172.16.0.2 -i 0.001 -D -c 10000 -s 1200 | grep rtt
rtt min/avg/max/mdev = 0.102/0.131/0.306/0.015 ms
$ sudo ping 172.16.0.2 -i 0.001 -D -c 10000 -s 1200 | grep rtt
rtt min/avg/max/mdev = 0.099/0.131/0.219/0.015 ms
$ sudo ping 172.16.0.2 -i 0.001 -D -c 10000 -s 1200 | grep rtt
rtt min/avg/max/mdev = 0.104/0.132/0.231/0.013 ms
使用Realtek8821au的无线局域网 (WLAN)
$ git clone https://github.com/gnab/rtl8812au
$ cd rtl8812au
$ make
$ sudo make install
这个链接有点过时了:https://dmaiorino.com/?p=83
$ git clone https://github.com/scrivy/rtl8812AU_8821AU_linux.git
$ cd rtl8812AU_8821AU_linux
$ make
$ sudo make install
使用TP-Link的以太网PCIe
$ lspci
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Device 8161 (rev 15)
$ ethtool enp3s0
Settings for enp3s0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
$ sudo ping 172.16.0.2 -i 0.001 -D -c 10000 -s 1200 | grep rtt
rtt min/avg/max/mdev = 0.123/0.282/0.360/0.023 ms
$ sudo ping 172.16.0.2 -i 0.001 -D -c 10000 -s 1200 | grep rtt
rtt min/avg/max/mdev = 0.136/0.282/0.396/0.015 ms
$ sudo ping 172.16.0.2 -i 0.001 -D -c 10000 -s 1200 | grep rtt
rtt min/avg/max/mdev = 0.121/0.283/0.438/0.022 ms
比主板以太网控制器慢
使用NoBland的PCIe以太网。
$ lspci
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)
$ ethtool enp3s0
Settings for enp3s0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
$ sudo ping 172.16.0.2 -i 0.001 -D -c 10000 -s 1200 | grep rtt
rtt min/avg/max/mdev = 0.126/0.316/0.406/0.021 ms
$ sudo ping 172.16.0.2 -i 0.001 -D -c 10000 -s 1200 | grep rtt
rtt min/avg/max/mdev = 0.126/0.316/0.409/0.018 ms
$ sudo ping 172.16.0.2 -i 0.001 -D -c 10000 -s 1200 | grep rtt
rtt min/avg/max/mdev = 0.112/0.315/0.401/0.023 ms
比主板以太网控制器慢
删除不需要的内核。
$ dpkg --get-selections | grep linux-
$ sudo apt-get autoremove --purge linux-image-3.13.0-{65,71}
记事
bash for loop:
bash的for循环
https://www.koikikukan.com/archives/2014/03/03-015555.php
keyswap:
键盘映射
https://linuxfan.info/capslock-ctrl
Difference between apt and apt-get:
apt和apt-get的区别
https://qiita.com/quzq/items/8e47414bf95d1fcfa24a