Manjaro安装配置docker 主要来源:在 Manjaro Linux 系统使用 Docker 提要硬件平台还是百视通R3300-M …… 安装Manjaro Arm 21.04后已升级到21.08,内核版本 5.13.0-1-MANJARO-ARM #1 SMP PREEMPT Wed Jun 30 23:07:51 +03 2021 aarch64 GNU/Linux 安装Docker12sudo pacman 2021-08-20 #Manjaro #Arm #Docker
hexo使用git管理 生成密钥及配置(略)网上教程有很多 生成站点并推送到githubhexo g -d 推送站点源码到github.gitignore123456.DS_StoreThumbs.dbdb.json*.lognode_modules/public/ 123git add .git commit -m 'hexo 源文件推送'git push origin hexoSource 远 2021-08-20 #hexo #git #github
Manjaro配置管理 参考:manjaro 切换国内源及软件安装 同步时间时间不准会造成SSL验证失败等一系列问题。同步方式如下:(https://wiki.manjaro.org/index.php/System_Maintenance#Time_and_Date) 12user $ timedatectl set-ntp trueuser $ sudo systemctl enable --now systemd- 2021-08-20 #Manjaro
R3300-M安装运行Manjaro ARM 提要这个盒子硬件没啥好说的了,前面介绍过。之前用它运行Armbian 20.10 Focal 没问题,但是balbes150弃坑后无人接手,前景不明,于是迁移到了Manjaro ARM。目前来看社区支持比较完善,更新及时,测试内核5.13(linux-aml)运行成功。 镜像选择了Manjaro ARM 21.04。为什么没有选择更新的版本,比如21.06,还得从内核提起。21.04搭载主线5.1 2021-08-19 #Manjaro #GXBB #S905 #S905M-B #BestTV #Arm
bash - pdftk删除页码脚本 pdftk删除页码脚本最近把《Linux命令行与shell脚本编程大全》翻了一遍,想演练一下,于是写出了下面这个脚本,用于调用pdftk删除给定页码生成新文档。编写调试过程中,对bash函数传参、位置参数调用等概念有了更深入的理解,特别是shift,用于处理数量未知的位置参数格外好用。 pdftool.sh1234567891011121314151617181920212223242526272 2021-05-19 #bash #递归
bash - 递归 bash递归函数测试recursion_test.sh12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455#!/bin/bash# using recursionfunction factorial { if [ $1 -lt 1 ] 2021-04-23 #bash #递归
bash - 数组 bash中简单函数数组传递array_test.sh12345678910#!/bin/bash# array variable to function testfunction testit {local newarraynewarray="$@"echo "The new array value is: ${newarray[*]}& 2021-04-22 #bash #函数
bash - bc bash中简单的bc计算bc_test.sh1234567891011121314#!/bin/bashvar1=3.14var2=5.2var3=$(bc << EOFscale = 4a1 = $var1 + $var2a2 = $var1 * $var2a1 + a2EOF)echo The final result is $var3 结果毫无悬念,24.668。注意这里用到了 2021-04-09 #bash #bc
bash - for bash中简单的for循环1234567891011#!/bin/bash for_test.shsum=0i=$(echo {1..5})echo "The content of list:$i"for var in $ido echo "The current value is:$var" sum=$[$sum+$var] 2021-04-08 #bash #for