-
网络文件系统SSHFS使用实例
Sep 26, 2020
什么是SSHFS? SSHFS是一个通过SSH连接到服务器的网络文件系统客户端。 SSHFS允许您使用SFTP挂载远程文件系统。 大多数VPS SSH服务器默认情况下都支持并启用此SFTP访问,因此SSHFS使用非常简单,无需在服务器端执行任何操作。 …
-
V2ray配置实例[最新v2fly]
Sep 07, 2020
Linux下推使用V2rayA,安装使用可参考V2rayA客户端使用实例 说明: 从V2Ray 4.27.0开始,请使用新版安装脚本,旧版安装配置实例仅供参考。 新版安装配置实例 服务端安装 下载安装脚本 ➜ ~ curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh 执行安装脚本 ➜ ~ bash ./install-release.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 98k 100 98k 0 0 495k 0 --:--:-- --:--:-- --:--:-- 495k info: Installing V2Ray v4.27.5 for x86_64 Downloading V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.27.5/v2ray-linux-64.zip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 644 100 644 0 0 5457 0 --:--:-- --:--:-- --:--:-- 5457 100 12.6M 100 12.6M 0 0 8316k 0 0:00:01 0:00:01 --:--:-- 10.2M Downloading verification file for V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.27.5/v2ray-linux-64.zip.dgst % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 649 100 649 0 0 2368 0 --:--:-- --:--:-- --:--:-- 2368 100 590 100 590 0 0 1053 0 --:--:-- --:--:-- --:--:-- 1053 info: Extract the V2Ray package to /tmp/tmp.gWzZRTMMij and prepare it for installation. installed: /usr/local/bin/v2ray installed: /usr/local/bin/v2ctl installed: /usr/local/share/v2ray/geoip.dat installed: /usr/local/share/v2ray/geosite.dat installed: /usr/local/etc/v2ray/config.json installed: /var/log/v2ray/ installed: /var/log/v2ray/access.log installed: /var/log/v2ray/error.log installed: /etc/systemd/system/v2ray.service installed: /etc/systemd/system/[email protected] removed: /tmp/tmp.gWzZRTMMij info: V2Ray v4.27.5 is installed. //安装完成 You may need to execute a command to remove dependent software: dnf remove curl unzip Please execute the command: systemctl enable v2ray; systemctl start v2ray 配置systemd服务 ➜ ~ systemctl enable v2ray //添加systemd服务模块 Created symlink /etc/systemd/system/multi-user.target.wants/v2ray.service → /etc/systemd/system/v2ray.service. ➜ ~ systemctl start v2ray //开启v2ray服务 ➜ ~ service v2ray status //检查v2ray服务状态 Redirecting to /bin/systemctl status v2ray.service ● v2ray.service - V2Ray Service Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2020-09-07 11:16:13 CST; 8s ago Main PID: 25897 (v2ray) Tasks: 6 (limit: 4566) Memory: 4.7M CGroup: /system.slice/v2ray.service └─25897 /usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json Sep 07 11:16:13 bwgcn2 systemd[1]: Started V2Ray Service. Sep 07 11:16:13 bwgcn2 v2ray[25897]: V2Ray 4.27.5 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.14.7 linux/amd64) Sep 07 11:16:13 bwgcn2 v2ray[25897]: A unified platform for anti-censorship. Sep 07 11:16:13 bwgcn2 v2ray[25897]: 2020/09/07 11:16:13 [Info] v2ray.com/core/common/platform/ctlcmd: <v2ctl message> Sep 07 11:16:13 bwgcn2 v2ray[25897]: v2ctl> Read config: /usr/local/etc/v2ray/config.json Sep 07 11:16:13 bwgcn2 v2ray[25897]: 2020/09/07 11:16:13 [Warning] v2ray.com/core: V2Ray 4.27.5 started 服务端配置 默认安装完成后,启用配置文件为/usr/local/etc/v2ray/config.json,但这个默认配置为空,因此需要自定义服务端配置。 …
-
Excel经纬度计算距离公式
Aug 27, 2020
公式如下: =6371004*ACOS(1-(POWER((SIN((90-B2)*PI()/180)*COS(A2*PI()/180)-SIN((90-D2)*PI()/180)*COS(C2*PI()/180)),2)+POWER((SIN((90-B2)*PI()/180)*SIN(A2*PI()/180)-SIN((90-D2)*PI()/180)*SIN(C2*PI()/180)),2)+POWER((COS((90-B2)*PI()/180)-COS((90-D2)*PI()/180)),2))/2) 将以上公式填写在E2单元格,其中A2、B2、C2、D2单元格对应前后两个经纬度值。
-
Windows10下访问WSL目录
Aug 11, 2020
Windows10下访问WSL目录的方法其实很简单,如下所示: ➜ post git:(master) explorer.exe . 即可通过文件浏览器打开当前目录。
-
Joplin配置坚果云WebDAV同步
Aug 06, 2020
Joplin是一款开源的笔记软件,功能十分强大,支持多种同步方式,本文简介如何为joplin设置坚果云的webdav同步。 首先,登录坚果云网页版,进入账户信息->安全选项,在第三方应用管理中点击添加应用,输入自定义名称(joplin),点击生成密码。 …
-
Nginx V2ray and WebSocket
Jul 30, 2020
安装v2ray/nginx v2ray安装可以参考Ubuntu中v2ray客户端配置实例. Nginx安装推荐使用OneinStack一键安装脚本 准备好使用的域名,这里以**v.fuckgfw.cn**为例。 …
-
斐讯N1系统信息和UNIXBENCH跑分
Mar 02, 2020
系统信息 alair@aml:~ $ inxi -F System: Host: aml Kernel: 5.5.0-rc6-aml-s9xxx aarch64 bits: 32 Console: tty 0 Distro: Ubuntu 18.04.4 LTS Machine: No /sys/class/dmi; using dmidecode: dmidecode is not installed. CPU: Quad core ARMv8 rev 4 (v8l) (-MCP-) (ARM) clock speeds: max: 1512 MHz 1: 1512 MHz 2: 1512 MHz 3: 1512 MHz 4: 1512 MHz Graphics: Card: Failed to Detect Video Card! Display Server: N/A driver: N/A tty size: 254x72 Advanced Data: N/A out of X Audio: Card AMLGX driver: AMLGX Sound: ALSA v: k5.5.0-rc6-aml-s9xxx Network: Card: Failed to Detect Network Card! Drives: HDD Total Size: NA (-) ID-1: /dev/mmcblk1 model: N/A size: 7.8GB Partition: ID-1: / size: 6.3G used: 4.8G (76%) fs: ext4 dev: /dev/mmcblk1p2 ID-2: /boot size: 244M used: 77M (32%) fs: vfat dev: /dev/mmcblk1p1 ID-3: /var/log size: 49M used: 2.5M (6%) fs: ext4 dev: /dev/zram0 ID-4: swap-1 size: 0.91GB used: 0.00GB (0%) fs: swap dev: /dev/zram1 Sensors: None detected - is lm-sensors installed and configured? Info: Processes: 155 Uptime: 2:39 Memory: 306.4/1741.2MB Init: systemd runlevel: 5 Client: Shell (zsh) inxi: 2.3.56 Unixbench分数 alair@aml:~/unixbench-5.1.2 $ ./Run make all make[1]: Entering directory '/home/alair/unixbench-5.1.2' Checking distribution of files ./pgms exists ./src exists ./testdir exists ./tmp exists ./results exists make[1]: Leaving directory '/home/alair/unixbench-5.1.2' sh: 1: 3dinfo: not found # # # # # # # ##### ###### # # #### # # # # ## # # # # # # # ## # # # # # # # # # # # ## ##### ##### # # # # ###### # # # # # # ## # # # # # # # # # # # # ## # # # # # # # ## # # # # #### # # # # # ##### ###### # # #### # # Version 5.1.2 Based on the Byte Magazine Unix Benchmark Multi-CPU version Version 5 revisions by Ian Smith, Sunnyvale, CA, USA December 22, 2007 johantheghost at yahoo period com Wide character in print at ./Run line 1510. Wide character in printf at ./Run line 1541. Use of uninitialized value in printf at ./Run line 1378. Use of uninitialized value in printf at ./Run line 1379. Use of uninitialized value in printf at ./Run line 1378. Use of uninitialized value in printf at ./Run line 1379. Use of uninitialized value in printf at ./Run line 1378. Use of uninitialized value in printf at ./Run line 1379. Use of uninitialized value in printf at ./Run line 1378. Use of uninitialized value in printf at ./Run line 1379. Use of uninitialized value in printf at ./Run line 1588. Use of uninitialized value in printf at ./Run line 1589. Use of uninitialized value in printf at ./Run line 1588. Use of uninitialized value in printf at ./Run line 1589. Use of uninitialized value in printf at ./Run line 1588. Use of uninitialized value in printf at ./Run line 1589. Use of uninitialized value in printf at ./Run line 1588. Use of uninitialized value in printf at ./Run line 1589. 1 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10 1 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10 1 x Execl Throughput 1 2 3 1 x File Copy 1024 bufsize 2000 maxblocks 1 2 3 1 x File Copy 256 bufsize 500 maxblocks 1 2 3 1 x File Copy 4096 bufsize 8000 maxblocks 1 2 3 1 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10 1 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10 1 x Process Creation 1 2 3 1 x System Call Overhead 1 2 3 4 5 6 7 8 9 10 1 x Shell Scripts (1 concurrent) 1 2 3 1 x Shell Scripts (8 concurrent) 1 2 3 Wide character in printf at ./Run line 1483. 4 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10 4 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10 4 x Execl Throughput 1 2 3 4 x File Copy 1024 bufsize 2000 maxblocks 1 2 3 4 x File Copy 256 bufsize 500 maxblocks 1 2 3 4 x File Copy 4096 bufsize 8000 maxblocks 1 2 3 4 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10 4 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10 4 x Process Creation 1 2 3 4 x System Call Overhead 1 2 3 4 5 6 7 8 9 10 4 x Shell Scripts (1 concurrent) 1 2 3 4 x Shell Scripts (8 concurrent) 1 2 3 Wide character in printf at ./Run line 1483. ======================================================================== BYTE UNIX Benchmarks (Version 5.1.2) System: aml: GNU/Linux OS: GNU/Linux -- 5.5.0-rc6-aml-s9xxx -- #rc1.037 SMP PREEMPT Wed Feb 5 17:28:41 MSK 2020 Machine: aarch64 (aarch64) Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") CPU 0: ARMv8 Processor rev 4 (v8l) (0.0 bogomips) CPU 1: ARMv8 Processor rev 4 (v8l) (0.0 bogomips) CPU 2: ARMv8 Processor rev 4 (v8l) (0.0 bogomips) CPU 3: ARMv8 Processor rev 4 (v8l) (0.0 bogomips) 19:35:59 up 2:44, 1 user, load average: 2.13, 2.07, 2.01; runlevel 5 ------------------------------------------------------------------------ Benchmark Run: 一 3月 02 2020 19:35:59 - 20:03:58 4 CPUs in system; running 1 parallel copy of tests Dhrystone 2 using register variables 6888588.0 lps (10.0 s, 7 samples) Double-Precision Whetstone 1373.9 MWIPS (9.8 s, 7 samples) Execl Throughput 877.5 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 168765.4 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 49199.4 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 445012.9 KBps (30.0 s, 2 samples) Pipe Throughput 327924.7 lps (10.0 s, 7 samples) Pipe-based Context Switching 69606.2 lps (10.0 s, 7 samples) Process Creation 2416.8 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 2283.5 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 656.5 lpm (60.0 s, 2 samples) System Call Overhead 632162.6 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 6888588.0 590.3 Double-Precision Whetstone 55.0 1373.9 249.8 Execl Throughput 43.0 877.5 204.1 File Copy 1024 bufsize 2000 maxblocks 3960.0 168765.4 426.2 File Copy 256 bufsize 500 maxblocks 1655.0 49199.4 297.3 File Copy 4096 bufsize 8000 maxblocks 5800.0 445012.9 767.3 Pipe Throughput 12440.0 327924.7 263.6 Pipe-based Context Switching 4000.0 69606.2 174.0 Process Creation 126.0 2416.8 191.8 Shell Scripts (1 concurrent) 42.4 2283.5 538.6 Shell Scripts (8 concurrent) 6.0 656.5 1094.1 System Call Overhead 15000.0 632162.6 421.4 ======== System Benchmarks Index Score 369.1 ------------------------------------------------------------------------ Benchmark Run: 一 3月 02 2020 20:03:58 - 20:32:08 4 CPUs in system; running 4 parallel copies of tests Dhrystone 2 using register variables 26826718.3 lps (10.0 s, 7 samples) Double-Precision Whetstone 5449.1 MWIPS (9.8 s, 7 samples) Execl Throughput 2965.8 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 291243.4 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 80902.5 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 827300.0 KBps (30.0 s, 2 samples) Pipe Throughput 1252522.5 lps (10.0 s, 7 samples) Pipe-based Context Switching 217969.4 lps (10.0 s, 7 samples) Process Creation 6193.8 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 5216.1 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 701.8 lpm (60.1 s, 2 samples) System Call Overhead 2375324.0 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 26826718.3 2298.8 Double-Precision Whetstone 55.0 5449.1 990.7 Execl Throughput 43.0 2965.8 689.7 File Copy 1024 bufsize 2000 maxblocks 3960.0 291243.4 735.5 File Copy 256 bufsize 500 maxblocks 1655.0 80902.5 488.8 File Copy 4096 bufsize 8000 maxblocks 5800.0 827300.0 1426.4 Pipe Throughput 12440.0 1252522.5 1006.9 Pipe-based Context Switching 4000.0 217969.4 544.9 Process Creation 126.0 6193.8 491.6 Shell Scripts (1 concurrent) 42.4 5216.1 1230.2 Shell Scripts (8 concurrent) 6.0 701.8 1169.6 System Call Overhead 15000.0 2375324.0 1583.5 ======== System Benchmarks Index Score 943.1
-
YandexDisk命令行客户端
Feb 29, 2020
Linux的Yandex.Disk控制台客户端使您可以在Yandex.Disk上管理文件,而无需使用窗口界面或支持WebDAV的程序。 …
-
CentOS安装Hugo
Feb 04, 2020
Hugo是由Go语言实现的静态网站生成器。简单、易用、高效、易扩展、快速部署。 新建hugo.repo文件,sudo vi /etc/yum.repos.d/hugo.repo,填入以下内容。 …
-
Gnome美化简介
Dec 08, 2019
安装必要软件 sudo apt install gnome-tweak-tool chrome-gnome-shell 安装Gnome Shell Extensions 使用Firefox浏览https://extensions.gnome.org/,第一次访问根据提示安装Firefox插件,如下图: …