峯言凬语 O ever youthful O ever weeping~
本无意与众不同,怎奈何口味太重。
首页
平水韵
颜色表
ABOUT
文章分类
友情链接
您正在查看:Nonni 发布的文章
2022-09-29 |Nonni

木下柚花.jpg

综合

curl -sL yabs.sh | bash

CPU

curl -sL yabs.sh | bash -s -- -fi

硬盘

curl -sL yabs.sh | bash -s -- -ig

网络

curl -sL yabs.sh | bash -s -- -fg

回程路由
BestTrace

curl -LO https://github.com/chika0801/tool/raw/main/besttrace && chmod +x besttrace
./besttrace --tcp IP

NextTrace

bash <(curl -Ls https://raw.githubusercontent.com/xgadget-lab/nexttrace/main/nt_install.sh)
nexttrace -T -table IP
nexttrace -U -table IP

MTR

apt install -y mtr
mtr --tcp --psize 1400 IP
mtr --udp IP

流媒体解锁

bash <(curl -L -s check.unlock.media)

curl -Lo nf https://github.com/sjlleo/netflix-verify/releases/download/v3.1.0/nf_linux_amd64 && curl -Lo ytb https://github.com/sjlleo/TubeCheck/releases/download/1.0Beta/tubecheck_1.0beta_linux_amd64 && chmod +x nf ytb
./nf && ./ytb

测速

curl -L https://raw.githubusercontent.com/chika0801/tool/main/speedtest.sh | bash

在线测速

curl -sSL https://get.docker.com/ | sh && systemctl enable docker && systemctl start docker
docker run -d -p 5000:80 badapple9/speedtest-x
IP:5000
2022-09-20 |Nonni

PVE.png

后台登录 PVE _Shell 或者登录 SSH,修改 IP 和网关:

vi /etc/network/interfaces

修改登录IP:

vi /etc/issue
vi /etc/hosts

保存后重启PVE。

Proxmox.png

1.上传后文件路径:

/var/lib/vz/template/iso/openwrt-x86-64-generic-squashfs-combined.img

2.创建虚拟机,记住 ID,操作系统不使用任何介质, 分离默认磁盘,然后打开 Shell 运行指令转换格式:

qm importdisk 100 /var/lib/vz/template/iso/openwrt-x86-64-generic-squashfs-combined.img local-lvm

3.转换完后回到虚拟机处,多出一个未使用硬盘双 击选择添加。

4.在选项点击引导顺序进行编辑,将新转换的磁盘设为第一引导。

5.启动虚拟机。

rtl8812au.png

RTL8812au 网卡使用方便,支持2.4和5G频段

开源驱动支持内核 kernel 5.4.0+ 下载网址:

https://github.com/gnab/rtl8812au

下载后解压,进入目录,运行:

sudo ./install.sh

按 y 安装完成后,如果没有显示设备,重新插拔网卡。

SSL.bmp

打开配置文件

sudo vim /etc/systemd/logind.conf

配置文件介绍

This file is part of systemd.

systemd is free software; you can redistribute it and/or modify it

under the terms of the GNU Lesser General Public License as published by

the Free Software Foundation; either version 2.1 of the License, or

(at your option) any later version.

Entries in this file show the compile time defaults.

You can change settings by editing this file.

Defaults can be restored by simply deleting this file.

See logind.conf(5) for details.

[Login]

配置分配的虚拟终端(VTs)数量,默认6个

NAutoVTs=6

标识一个将无条件预留给autovt@.的虚拟终端服务激活

ReserveVT=6

配置用户退出时是否停止该用户的进程

KillUserProcesses=no

设置进程被杀死的用户

KillOnlyUsers=

设置不被杀死进程的用户

KillExcludeUsers=root

指定系统关闭或睡眠请求延迟的最长时间,默认为5秒

InhibitDelayMaxSec=5

为电源操作,默认关机

HandlePowerKey=poweroff

为电源操作,默认休眠到内存

HandleSuspendKey=suspend

为电源操作,默认休眠到硬盘

HandleHibernateKey=hibernate

关盖操作,默认休眠

HandleLidSwitch=ignore

使用外部电源关盖操作,默认休眠

HandleLidSwitchExternalPower=ignore

插了扩展坞或者连接多个显示器关盖子操作,默认无操作

HandleLidSwitchDocked=ignore

电源事件所触发的systemd-logind操作是否应该忽略高级inhibitor锁

PowerKeyIgnoreInhibited=no

休眠(到内存)事件所触发的systemd-logind操作是否应该忽略高级inhibitor锁

SuspendKeyIgnoreInhibited=no

休眠(到磁盘)事件所触发的systemd-logind操作是否应该忽略高级inhibitor锁

HibernateKeyIgnoreInhibited=no

关盖子事件所触发的systemd-logind操作是否应该忽略高级inhibitor锁

LidSwitchIgnoreInhibited=yes

当开机/唤醒时间 尚未超出此处设置的时间长度时, systemd将延迟响应合上盖子(lid)硬件事件,默认30秒

HoldoffTimeoutSec=30s

当系统持续处于空闲状态超过 IdleActionSec= 所设置的时间后,应该执行何种操作,默认无操作。

IdleAction=ignore

当系统持续处于空闲状态超过此处设置的时长之后将会自动执行IdleAction=设定的动作

IdleActionSec=30min

为每个已登录用户设置运行时目录 $XDG_RUNTIME_DIR 的最大尺寸

RuntimeDirectorySize=10%

当用户完全退出登录时(也就是退出最后一个登录会话时), 是否销毁所有属于该用户的 SysV 与 POSIX IPC 对象

RemoveIPC=yes

控制最多允许同时存在多少个inhibitor锁,默认值是8192(8K)

InhibitorsMax=8192

控制最多允许同时管理多少个用户会话,默认值是 8192

SessionsMax=8192

修改配置文件

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore

重启服务

sudo service systemd-logind restart