Time is accompanied by the growth of each of us, which is actually a pain for us. We grew up in time, our thoughts became more and more mature, we experienced more and more things, and we learned ...
Use N1Box and CUPS to make the usb Printer connecting Network
Because of the price, I bought a usb Printer. It is Cannon IP2780. And the N1Box can be installed Arabian OS. So I try to make the AirPrint of my MacBook and iPhone. Let's do it. install softwa...
Connect to WPA2 enterprise wifi on N2 Box
nmcli connection edit type 802-11-wireless nmcli> goto 802-11-wireless nmcli 802-11-wireless> set ssid <your_ssid> nmcli 802-11-wireless> back nmcli> goto 802-11-wireless-security nmcli 802-11-...
Fixed some errors of DSDT
Non-hex letters must be upper case (pnp0c14) 所有自必须是大写字母 把 pnpc改成大写字母 2.Invalid combination of Length and Min/Max fixed flags 错误提示无效的长度 length的计算方法为 The Max Val...
Upgrade macOS Catalina on my Thinkpad E450
In the last few years, I learned a lot about how to install macOS on pc. So this week I try to upgrade macOS Catalina on Thinkpad E450. Because this computer has good compatibility with the macO...
Listen network traffic using shell script
vim net.sh #!/bin/bash ethn=$1 while true do RX_pre=$(cat /proc/net/dev | grep $ethn | sed 's/:/ /g' | awk '{print $2}') TX_pre=$(cat /proc/net/dev | grep $ethn | sed 's/:/ /g' | awk '{prin...
install the latest syncthing on N1 box
// add the soft source sudo apt install curl apt-transport-https curl -s https://syncthing.net/release-key.txt | sudo apt-key add - sudo echo "deb https://apt.syncthing.net/ syncthing release" > /...
Backup some scripts of refresh rom for N1Box
After setting up using the armbian-config command. Then install the Chinese support. sudo apt-get install ttf-wqy-zenhei sudo fc-cache -v sudo vim /etc/pro...
Install gogs with my N1 Box
Last week, I bought a Phicomm N1 Box. I installed the Armbian OS to it. Let's install gogs for it. First we use this guide to install go-lang. Because of the N1 box's cpu is armv8l and the a...
Setting up 802.1x auth using command line in Ubuntu
My company's network has 802.1x auth. So I need to auth my network.Today we using the nmcli tool to set up network. which nmcli nmcli con edit eth0 nmcli> set ipv4.method auto nmcli> set 802-1...
A demo of the UDP transmission used python
server.py # -*- coding: utf-8 -*- import ctypes import socket import json # ipv4 SOCK_DGRAM指定了这个Socket的类型是UDP s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.setsockopt(so...
Learning note of vim (2)
Bottom Model :! 【not save the content】 :w 【save the content to file】 :wq 【save the content to file and exit the vim】 :! ifconfig 【execute shell command in vim 】 :s/x/X 【replace x to X i...
Learning note of vim (1)
multimode of vim: I insert model N normal model C command model V visual modelde normal -> insert model i: focus in current position I: focus in first position of current line a: focus next in c...