ip firewall nat add chain=dstnat protocol=tcp dst-port=3389 in-interface=pppoe-out1 action=dst-nat to-addresses=192.168.5.8 to-ports=3389
作者归档:贝贝爸
群晖的ddns获取公网ip不正确的问题
群晖设置ddns和quickconnect,如果内网有旁路由,会有问题,先手工指定网关,完成upnp的设置,再改回来,利用本身的功能进行一下端口映射,之后就没问题了。
遇到了问题获取公网ip不对,是因为旁路由设置了国外ip走代理,群晖判断ip地址的服务器应该是在国外,所以获取的地址不是实际的nas地址。
旁路由的梯子改成gfw的规则就行,或者可以将群晖的服务器设置为白名单,直接链接?不过我不知道他们的域名。困扰了多天,可以解决了。。
windows 11 安卓子项目 增加代理
D:\prog\WSAToolbox>adb kill-server
D:\prog\WSAToolbox>adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
D:\prog\WSAToolbox>adb.exe connect 172.22.34.229:5555
connected to 172.22.34.229:5555
安卓系统的ip地址
D:\prog\WSAToolbox>d:
D:\prog\WSAToolbox>adb shell settings put global http_proxy 172.22.32.1:10809
Ethernet adapter vEthernet (WSL): 的地址
删除代理
adb shell settings delete global http_proxy
adb shell settings delete global global_http_proxy_host
adb shell settings delete global global_http_proxy_port
ds220+扩展内存失败
看来是我人品问题,220+升级内存失败,看来不是所有内存都支持。
发现是我没插紧,用力就好了。。
Using FORERUNNER 935 Virtual Partner
Using Virtual Partner
The Virtual Partner® feature is a training tool designed to help you meet your goals. You can set a pace for the Virtual Partner and race against it.
NOTE: This feature is not available for all activities.
From the watch face, select START.
Select an activity.
Hold Menu symbol.
Select the activity settings.
Select Data Screens > Add New > Virtual Partner.
Enter a pace or speed value.
Start your activity (Starting an Activity).
Select UP or DOWN to scroll to the Virtual Partner screen and see who is leading.
Virtual partner data
http://download.garmin.com/tw/download/manuals/forerunner935_TW_0A.pdf
https://www8.garmin.com/manuals/webhelp/forerunner935/EN-US/Forerunner_935_OM_EN-US.pdf
pip or pip3 update all packages
$ pip freeze > requirements.txt
Open the text file, replace the == with >=, or have sed do it for you:
$ sed -i ‘s/==/>=/g’ requirements.txt
and execute:
$ pip install -r requirements.txt –upgrade
https://stackoverflow.com/questions/2720014/how-to-upgrade-all-python-packages-with-pip
r2s lsusb result
root@FusionWrt:/# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0bda:b812 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
faq
kodi链接失败?
把 api.themoviedb.org 翻墙看看
n1电视盒子或者安卓设备时间不对?
换个网络看看,说不定是连不上时间服务器。
如何添加公钥
wget -q ‘https://www.abc.com/key.txt’ -O – >>/root/.ssh/authorized_keys
oracle cloud机器修改主机名不起效
vi /etc/oci-hostname.conf
测试翻墙速度的一些文件
test_file_urls=https://download.microsoft.com/download/2/0/E/20E90413-712F-438C-988E-FDAA79A8AC3D/dotnetfx35.exe|Default
test_file_urls=https://dl.google.com/android/studio/maven-google-com/stable/offline-gmaven-stable.zip|Google
test_file_urls=http://cachefly.cachefly.net/200mb.test|Cachefly
test_file_urls=http://updates-http.cdn-apple.com/2019FallFCS/fullrestores/061-22552/374D62DE-E18B-11E9-A68D-B46496A9EC6E/iPhone12,1_13.1.2_17A860_Restore.ipsw|Apple
*back data to onedrive
onedrive –synchronize –upload-only –no-remote-delete
*add ip address to black list
iptables -I INPUT -s 121.12.125.240 -j DROP
*delete
iptables -D INPUT -s 121.12.125.240 -j DROP
*find big file
find . -type f -size +1M -mtime -1 -exec ls -lh {} \;
ubuntu修改主机名
sudo apt install systemd
hostnamectl set-hostname jiarm1
git
ssh://juhui@192.168.5.10:2022/volume1/gitRepos/test.git
升级openssl
ssh
apt-get install -y aptitude
aptitude install -f libpam0g-dev libselinux1-dev
apt-get install -y libssl-dev zlib1g-dev
# 备份ssh配置
cp -rf /etc/ssh /etc/ssh.bak
# 设置文件权限
chmod 600 /etc/ssh/ssh_host_rsa_key
chmod 600 /etc/ssh/ssh_host_ecdsa_key
chmod 600 /etc/ssh/ssh_host_ed25519_key
# 配置sshd配置
sed -i ‘s/^#PermitRootLogin yes/PermitRootLogin yes/’ /etc/ssh/sshd_config
sed -i ‘s/^GSSAPIAuthentication/#&/’ /etc/ssh/sshd_config
sed -i ‘s/^GSSAPICleanupCredentials/#&/’ /etc/ssh/sshd_config
sed -i ‘s/^UsePAM/#&/’ /etc/ssh/sshd_config
# 配置service, 取消notify
sed -i ‘s/^Type/#&/’ /lib/systemd/system/ssh.service
# 下载包
wget https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.6p1.tar.gz
tar zxf openssh-8.6p1.tar.gz
# 编译安装
cd openssh-8.6p1
./configure –prefix=/usr –with-privsep-path=/var/empty/sshd/ \
–sysconfdir=/etc/ssh –with-ssl-dir=/usr/local/openssl/ \
–with-default-path=/usr/local/bin:/bin:/usr/bin \
–with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin \
–with-pam –with-selinux –disable-strip –with-md5-passwords
make
make install
# 重启服务
systemctl daemon-reload
systemctl restart sshd
# 现在版本
ssh -V
openssl
https://www.howtoforge.com/tutorial/how-to-install-openssl-from-source-on-linux/
也可以看这个
https://stackoverflow.com/a/49578644
但是记得要看Openssl是不是在path里面
openwrt上安装you-get下载youtube视频
opkg update && opkg install git git-http
git clone git://github.com/soimort/you-get.git
cd you-get/
./setup.py install
you-get -i "https://www.youtube.com/watch?v=OdCeoQ2dYxE&t=34s"