赏鸡腿好人一生平安
c++概述
树莓派wifi配置
在boot盘新建一个空白文件ssh,一个wpa_supplicant.conf文件
编辑wpa_supplicant.conf文件:
1 | country=CN |
服务器杂项问题
ipv6套warp
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh
systemd内存空间不够
报错Systemd - Failed to reload daemon: Refusing to reload, not enough space available on /run/systemd
解决:
append to /etc/fstab
none /run tmpfs defaults,size=64M 0 0
mount /run again
mount -o remount /run
now check df again
df -h /run
debian wifi固件缺失
添加源,debian11用bullseye替换stretch
buster:debian10 stretch:debian9 jessie:debian8
1 | deb http://httpredir.debian.org/debian/ stretch main contrib non-free |
lua环境配置.md
安装lua
wget https://lua.org/ftp/lua-5.3.6.tar.gz
make linux
make install INSTALL_TOP=/opt/lua5.3.6
安装luarocks
wget https://luarocks.org/releases/luarocks-3.11.1.tar.gz
./configure –prefix=/opt/lua5.3.6 –with-lua=/opt/lua5.3.6
环境变量配置
export LUA_PATH=/opt/lua5.3.6/share/lua/5.3/?.lua
mongodb启动失败
debian远程环境配置
firefox 安装
1 | sudo install -d -m 0755 /etc/apt/keyrings |
不用vnc的chrome
ssh工具: mobaxterm
安装xserver组件
1 | apt install xserver-xorg xserver-xorg-core xserver-xorg-legacy xorg xauth openbox |
等待个5秒左右,本地电脑上会弹出一个chromium浏览器的窗口
python conda 环境安装配置
conda安装配置
官网下载合适版本
‘’’
https://repo.anaconda.com/archive/
‘’’
配置环境变量后,conda init
每次打开终端不默认激活conda: conda config --set auto_activate_base False
conda list 查看base环境中的所有包
pip升级最新版本:
python -m pip install –upgrade pip
换源:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
conda相关命令
创建新环境命名python311
1 | conda create -n python311 python=3.11 |
配置jupyter notebook 远程访问
生成配置文件:
1 | jupyter notebook --generate-config |
一般保存在~/.jupyter/jupyter_notebook_config.py
可用 jupyter notebook password 设置密码
设置notebook自动补全
1 | pip3 install jupyter-tabnine |
运行图片相关代码报错:tesseract not found
1 | apt install tesseract-ocr |
selenium包使用
pip install pyvirtualdisplay selenium
apt install chromium-driver xvfb
xvfb-run python test.py
google-chrome安装
1 |
|
windows端口转发
添加转发
netsh interface portproxy add v4tov4 listenport=新开的监听端口 listenaddress=新开端口的绑定地址 connectaddress=要转发的地址 connectport=要转发的端口 protocol=tcp
‘’’
netsh interface portproxy add v4tov4 listenport=12345 listenaddress=0.0.0.0 connectaddress=127.0.0.1 connectport=8118 protocol=tcp
‘’’
删除转发
netsh interface portproxy delete v4tov4 listenport=新开的监听端口 listenaddress=新开端口的绑定地址