分类 伪技术 下的文章

前言

哪吒探针流量不准 可能是多个网卡统计有误 手动设置需要监听的网卡

自定义监控的网卡

#在客户端执行以下命令来选择监听的网卡和硬盘分区等信息 按提示操作
/opt/nezha/agent/nezha-agent edit

#重启 Agent
systemctl restart nezha-agent.service
#或者
/opt/nezha/agent/nezha-agent service restart

#相关命令
#查看状态
systemctl status nezha-agent

#停止
/opt/nezha/agent/nezha-agent service stop

#重启
/opt/nezha/agent/nezha-agent service restart

参考:

  1. https://nezha-v0.mereith.dev/guide/q7
  2. https://nezha.wiki/configuration/agent.html

前言

官方的GitHub是没有IPv6的解析 纯IPv6的vps要安装脚本可能会遇到麻烦

改hosts

通过GitHub IPv6 proxy 修改hosts的方法

2a01:4f8:c010:d56::2 github.com
2a01:4f8:c010:d56::3 api.github.com
2a01:4f8:c010:d56::4 codeload.github.com
2a01:4f8:c010:d56::5 objects.githubusercontent.com
2a01:4f8:c010:d56::6 ghcr.io
2a01:4f8:c010:d56::7 pkg.github.com npm.pkg.github.com maven.pkg.github.com nuget.pkg.github.com rubygems.pkg.github.com
2a01:4f8:c010:d56::8 uploads.github.com

参考:https://danwin1210.de/github-ipv6-proxy.php

Debian11系统

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

执行host命令报错

host: error while loading shared libraries: libdns-9.16.27-Debian.so: cannot open shared object file: No such file or directory
#缺少依赖

解决办法

apt-get update
apt-get install host

前言

宽带被封被限速 不玩了 之前有2个n1盒子 现在从网心云的系统刷回armbian

软件及工具

稍后放出

刷机步骤

1.刷回原系统

拆开4个螺丝 短接触电再通电
USB_Burning_Tool 刷入救砖包
斐讯N1救砖包只需刷此包就行.img

2.armbian系统烧录进U盘

Armbian_5.77_Aml-s905_Debian_stretch_default_5.0.2_20190401.img

3.开启ADB U盘启动

参考:
https://mrdoc.fun/doc/514/
https://www.bilibili.com/video/BV1PV411P75f
https://post.smzdm.com/p/alpwnxmp/

更新内核

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
yum --enablerepo=elrepo-kernel install kernel-ml-devel kernel-ml -y
#yum --enablerepo=elrepo-kernel install kernel-lt-devel kernel-lt -y
#kernel-ml - mainline stable - 稳定主线版本;kernel-lt - long term support - 长期支持版本

删除内核

yum remove $(rpm -qa | grep kernel | grep -v $(uname -r))
#自动获取当前系统中的无用内核(未使用的)并进入卸载

参考:
https://www.zyixinn.com/archives/centos升级内核的三种方式
https://www.cnblogs.com/jykn92/p/15094919.html

背景

爱快系统里的虚拟机 ip4/6均自动获取

开启ipv6方法

在网络配置文件里添加配置
路径:
/etc/network/interfaces
添加内容:
iface ens3 inet6 auto

例子:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug ens3
iface ens3 inet dhcp

iface ens3 inet6 auto

测试ipv6是否成功开启

查看本机获取到的ipv6地址
ip a

查看本机ipv6出口地址
curl ip.sb -6

开启telnet

1.把光猫背后的光纤线拔掉,不然无法 telnet 进路由器
访问 http://192.168.1.1/hidden_version_switch.gch
在页面里 Version type 旁边的下拉框选择 Default version 点 submit ,这时光猫会重启
然后同样的操作再一次切换版本,这次切换到你所在的省份的版本,四川就选 SiChuan Version 以此类推
光猫重启好以后打开命令行客户端进行TELNET连接
用户名 root, 密码 Zte521(四川 Zte521@SC)

2.

sendcmd 1 DB set TelnetCfg 0 Lan_EnableAfterOlt 1 # 设置插上光纤后不自动关闭telnet)(这条一定要修改)
sendcmd 1 DB save # 保存设置
reboot # 重启光猫

关闭光猫注册界面

sendcmd 1 DB set PDTCTUSERINFO 0 tForcePushFlg 0
sendcmd 1 DB set PDTCTUSERINFO 0 Result 1
sendcmd 1 DB set CltLmt 8 Enable 0
sendcmd 1 DB set DevAuthInfo 0 Enable 1
sendcmd 1 DB save
reboot # 重启光猫生效

参考:

  1. https://gist.github.com/Malayke/d9636339af97132d1c0d5bcfbea2ec14
  2. https://www.right.com.cn/forum/forum.php?mod=redirect&goto=findpost&ptid=8251129&pid=17403160

vi /etc/apt/sources.list

deb http://archive.debian.org/debian/ stretch main non-free contrib
deb http://archive.debian.org/debian/ stretch-backports main non-free contrib
deb-src http://archive.debian.org/debian/ stretch main non-free contrib
deb-src http://archive.debian.org/debian/ stretch-backports main non-free contrib
deb http://archive.debian.org/debian-security/ stretch/updates main non-free contrib
deb-src http://archive.debian.org/debian-security/ stretch/updates main non-free contrib