nextcloud aio + cloudflare tunnel
Refhttps://blog.laoda.de/archives/docker-compose-install-nextcloud-aiohttps://github.com/nextcloud/all-in-onehttps://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadirhttps://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.mdhttps://help.nextcloud.com/t/using-nextcloud-aio-via-cloudflare-argo-tunnel/141376/4https://github.com/nextcloud/all-in-one/discussions/2845https://github.com/nextcloud/all-in-one#how-to-run-nextcloud-behind-a-cloudflare-tunnel
Google cloud console免费shell玩法
PrepGoogle cloud console我并不清楚是个什么东西,由percycle提供给我。直到现在,我只知道我能通过它创建12个shell配额。 此shell运行在docker中,并没有提供公网IP,这意味着可玩性大大降低,不能当作server使用。 目前已知的玩法: Tailscale exit node Link here: https://console.cloud.google.com/ PS:本文假设您已经注册了tailscale并且了解tailscale与tailscale exit node是什么 Tailscale首先创建此文件以摆脱烦人的警告: $ mkdir -p ~/.cloudshell/$ touch ~/.cloudshell/no-apt-get-warning 使用如下命令安装tailscale: $ curl -fsSL https://tailscale.com/install.sh | sh 此时收到调用tailscale up进行登陆,但这里不要直接使用该命令,因为我们需要作为exit...
rk3568刷写openharmony4.1
sudo upgrade_tool di -p parameter.txtsudo upgrade_tool UL MiniLoaderAll.bin -noresetsudo upgrade_tool di -u uboot.img && sudo upgrade_tool di -boot_linux boot_linux.img&& sudo upgrade_tool di -system system.img && sudo upgrade_tool di -vendor vendor.img && sudo upgrade_tool di -userdata userdata.img && sudo upgrade_tool di -ramdisk ramdisk.img && sudo upgrade_tool di -resource resource.img && sudo upgrade_tool di -sys-prod sys_prod.img...
Ubuntu22.04.4LTS安装AMD显卡驱动
AMD 7840HS core GPU driver: https://github.com/TroyMitchell911/Ubuntu-config/blob/main/deb/amdgpu-install_6.1.60103-1_all.deb
[TMUX]复制内容到系统剪切板
安装软件: sudo apt install xclip # 或者使用 xsel 在``~/.tmux.conf或者~/.tmux.conf.local`中添加如下内容: bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -sel clip -i" 重新加载tmux配置: tmux source-file ~/.tmux.conf
[VIM]plug coc.nvim
在coc.nvim更新到0.0.82之后,shortcut映射方式改变。 .vimrc配置如下: function! CheckBackSpace() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~ '\s'endfunctioninoremap <silent><expr> <TAB> \ coc#pum#visible() ? coc#pum#next(1): \ CheckBackSpace() ? "\<Tab>" : \ coc#refresh()inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"" below is for using ENTER for...
如何将sd卡或者emmc镜像导出
SD卡插入sd卡后,会在/dev下看到sdX的文件,我这里是sdb: ❯ ls /dev/sdb*/dev/sdb /dev/sdb1 /dev/sdb2 从这个信息可以知道镜像至少分区为了boot和rootfs分区. 使用dd命令导出: ❯ sudo dd if=/dev/sdb of=sd.img bs=4M status=progress[sudo] troy 的密码: 63753420800字节(64 GB,59 GiB)已复制,652 s,97.8 MB/s 记录了15218+1 的读入记录了15218+1 的写出63831015424字节(64 GB,59 GiB)已复制,653.304 s,97.7 MB/s 导出后需要缩减分区 EMMC对于EMMC操作复杂一些,需要修改uboot,打开CONFIG_CMD_USB_MASS_STORAGE的配置项。 进入fel模式将uboot下载进入内存并运行: ❯ sudo sunxi-fel uboot...
[rootfs]制作Ubuntu根文件系统
Requirements An x86_64 machine with Ubuntu or another Linux distribution installed. debootstrap tool. Internet connection. Basic knowledge of using the terminal. Steps to Create Ubuntu 20.04 Rootfs for ARMhf 1. Install Required Tools First, ensure that debootstrap and qemu-user-static are installed. qemu-user-static allows you to run ARM binaries on your x86_64 machine. sudo apt updatesudo apt install debootstrap qemu-user-static 2. Create a Directory for the Rootfs Create a directory...
[全志A33-Vstar]Kernel
系列: [全志A33-Vstar]Kernel[全志A33-Vstar]Uboot Envcpu: allwinner a33board: vstarhost: ubuntu 22.04 需要安装交叉编译工具链: ❯ sudo apt install gcc-arm-none-eabi mainline首先下载主线kernel的源码: ❯ git clone git@github.com:torvalds/linux.git 配置文件的话,在arch/arm/configs目录下只有一个sunxi_defconfig是我们能够使用的,那么就使用这个配置文件作为基准。 设备树就选择sinlinx的,与vstar开发板相近。 与uboot套路类似,先拷贝一份配置文件和设备树作为vstar开发板的: ❯ cp arch/arm/configs/sunxi_defconfig arch/arm/configs/a33_vstar_defconfig❯ cp arch/arm/boot/dts/allwinner/sun8i-a33-sinlinx-sina33.dts...
Linux分区恢复
在删除U盘分区的时候,忘了插U盘,直接把Ubuntu的efi分区删掉了。 直接原地红温… 不过还好删除的是分区不是数据,还有的救… 注意这时候千万不要重启系统!!! 查看分区挂载: ❯ lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS...nvme0n1 259:0 0 953.9G 0 disk └─nvme0n1p2 259:2 0 953.4G 0 part / 已经看不见p1了,但是! 执行如下命令安装众神之父testdisk: ❯ sudo apt install testdisk 这个工具非常好用,可以自定义检测分区表,并且检测丢失的分区: ❯ sudo testdisk /dev/nvme0n1 进入如下界面,...