作者归档:贝贝爸

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里面

 

esxi esir openwrt ikuai 安装注意点

客户机操作系统版本 其他5.X或更高linux64,可以选vmxnet3,获取更好的性能。
esxi 7 安装,启动的时候要输入参数,避免占用120空间
ikuai主路由 lede等做旁路由,会出现mac地址混乱的问题,要在主路由开通xx,旁路由启动yyy
安装windows 10,可能安装过程认不出网卡,先取消联网,装了vmtools之后就行了
esxi的管理口可以在启动后的黄黑屏幕设置,可以多选,选了以后就不能直通了
管理口设置的ip地址放一个网段,允许混杂,可以不插网线访问
esxi上的系统可以通过这个管理口虚拟的网卡做连通
如果用主路由+胖路由的方式上网,群晖设置外网访问upnp,说有两个路由器,把网关手工指定一下就行了

服务器安装推荐

安装lnmp
lnmp ssl add
强制所有的走https
include black.conf
传输文件 用管道
导入数据
安装v2ray
安装 monit
配置crontab
lnmp 安装exif opcache memcached
开启bbr
——————
nginx配置
cut log脚本
monit配置
配置mon
v2ray配置