首页
统计
壁纸
关于
Search
1
记录一下脚本命令
2,039 阅读
2
Scaleway Stardust(星尘)实例使用netboot.xyz重装系统
258 阅读
3
记录一下 Rclone 常用命令参数
243 阅读
4
简记一下Arch Linux安装部署
220 阅读
5
记录下LNMP环境下使用CDN后获取访客真实IP的方法
220 阅读
默认分类
登录
Search
标签搜索
Linux
Centos
Arch
Debian
Scaleway
Ubuntu
Manjaro
安卓
Docker
Hexo
Oneui
Oracle
三星
甲骨文
Tony
累计撰写
13
篇文章
累计收到
0
条评论
首页
栏目
默认分类
页面
统计
壁纸
关于
搜索到
2
篇与
的结果
2023-06-12
使用Cloudflare WARP给VPS添加IPv4/IPv6 双栈网络出口
安装wireguard等依赖Debianapt update -y && apt install wireguard sudo curl vim openresolv -yArch Linuxyay -S wireguard-tools openresolv wgcf vim dnsutils linux-headers --needed安装wgcfDebiancurl -fsSL git.io/wgcf.sh | sudo bash注册账户wgcf register生成配置文件wgcf generate编辑配置文件vim wgcf-profile.conf配置文件样式[Interface] PrivateKey = 这里会自动生成 Address = 172.16.0.2/32 Address = 这里会自动生成 DNS = 8.8.8.8,8.8.4.4,2001:4860:4860::8888,2001:4860:4860::8844 MTU = 1280 [Peer] PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo= AllowedIPs = 0.0.0.0/0 AllowedIPs = ::/0 Endpoint = engage.cloudflareclient.com:2408更改engage.cloudflareclient.com为IPV4/6地址(如双栈网络接入忽略)[root@archlinux ~]# nslookup engage.cloudflareclient.com Server: 1.1.1.1 Address: 1.1.1.1#53 Non-authoritative answer: Name: engage.cloudflareclient.com Address: 162.159.192.1 Name: engage.cloudflareclient.com Address: 2606:4700:d0::a29f:c001接入WARP IPV4删除配置文件中的AllowedIPs = ::/0接入WARP IPV6删除配置文件中的AllowedIPs = 0.0.0.0/0启动wireguard复制配置文件到wireguard文件夹cp wgcf-profile.conf /etc/wireguard/wgcf.conf启动 wireguardwg-quick up wgcf检查网络连通# IPv4 Only VPS curl -6 ip.p3terx.com # IPv6 Only VPS curl -4 ip.p3terx.com关闭wgcf接口wg-quick down wgcf将wireguard启用守护进程systemctl start wg-quick@wgcf systemctl enable wg-quick@wgcf参考P3terx企鹅大大
2023年06月12日
124 阅读
0 评论
0 点赞
2022-07-13
简记一下Manjaro折腾和优化
系统基本配置Manjaro换源sudo pacman-mirrors -c China添加 archlinuxcn 源,获得更多的包:sudo nano /etc/pacman.conf[archlinuxcn] SigLevel = Optional TrustAll Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch## xTom (Hong Kong server) (Hong Kong) (ipv4, ipv6, http, https) ## Added: 2017-09-18 ## Blocking users in mainland China [archlinuxcn] Server = https://mirrors.xtom.hk/archlinuxcn/$arch更新系统、软件sudo pacman -Syyu下载 yay AUR 助手sudo pacman -S yayyay安装报错sudo pacman -Sy && sudo pacman -S archlinuxcn-keyringsudo rm -rf /etc/pacman.d/gnupg sudo pacman-key --init sudo pacman-key --populate安装 base-devel,yay 命令构建包时会使用到sudo pacman -S base-devel输入法配置yay -S fcitx5-im fcitx5-chinese-addons fcitx5-material-color fcitx5-pinyin-zhwikifcitx5-im fcitx5 输入法框架包 fcitx5-chinese-addons 中文输入法 fcitx5-material-color 皮肤美化包 fcitx5-pinyin-zhwiki 词库安装完成后编辑将下面 3 行代码加入到 /etc/environment 文件中,这样可以预防出现某些程序不能输入中文的情况发生GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitxohmyzshwget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh更改默认 shell 为 zsh:chsh -s /usr/bin/zsh zsh下载插件:自动补全 git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions 语法高亮 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting zsh-vi-mod git clone https://github.com/jeffreytse/zsh-vi-mode $ZSH_CUSTOM/plugins/zsh-vi-mode安装 autojump,终端目录跳转神器:git clone https://github.com/wting/autojump cd autojump ./install.py cd .. rm -rf autojump打开 ~/.zshrc 找到 plugins 将它改成下面这样:plugins=( git zsh-syntax-highlighting zsh-autosuggestions zsh-vi-mode colored-man-pages )在~/.zshrc尾部添加[[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && . ~/.autojump/etc/profile.d/autojump.sh常用软件安装Chromeyay -S google-chrome网易云音乐sudo pacman -S netease-cloud-musicWPSyay -S ttf-wps-fonts wps-office-mui-zh-cn wps-office-mime-cn wps-office-cnyay -S wps-office-fonts ttf-ms-fonts百度网盘yay -S baidunetdisk迅雷yay -S xunlei-bin 微信yay -S deepin-wine-wechat微信运行时会显示:程序 WeChatApp.exe 遇到严重问题需要关闭。我们对此造成的不便表示抱歉。其实这个 BUG 不影响使用,但是看着心烦,解决办法是先运行如下命令:/opt/apps/com.qq.weixin.deepin/files/run.sh winecfg然后选择函数库选项卡,新增函数库顶替的输入框中中输入 wechatapp.exe ,点击右侧添加,选择新建好的 wechatapp.exe,点击编辑,选择停用即可。QQyay -S deepin-wine-qqTeamvieweryay -S teamviewer火焰截图sudo pacman -S flameshotTyporaTypora 最新版已经收费,可以在官网下载以前的版本并手动安装,下面是最后一个免费版本:点我跳转下载完成后手动安装:sudo tar -xvf ~/Downloads/Typora-linux-x64-1.0.3.tar.gz -C /usr/local sudo mv /usr/local/bin/Typora-linux-x64 /usr/local/typora添加可视化启动程序,在 ~/.local/share/applications 下新建以下文件,Typora 内部自己有 PNG 图片,所以不需要额外下载,直接复制粘贴以下内容即可:vim ~/.local/share/applications/typora.desktop [Desktop Entry] Type=Application Name=Typora Exec=/usr/local/typora/Typora Icon=/usr/local/typora/resources/assets/icon/
[email protected]
Terminal=false Categories=program;InstantMessagingPicgoyay -S picgo-appimage如果可以直接安装就直接使用。我这里自动安装出现了问题,所以又需要手动安装了。先到 picgo 的 github 中下载 AppImage 后缀的包,然后双击安装即可。点我跳转转换 deb 包安装 debtab:sudo pacman -S debtap更新 debtab:sudo debtap -u下载好待转换的 deb 包,将其转换,以下步骤一路回车即可:sudo debtap ~/Downloads/包名.deb安装转换后的包:sudo pacman -U ~/Downloads/包名.pkg.tar.zst配置Git配置 Git 用户名、密码、代理 :git config --global user.name <用户名> git config --global user.email <邮箱地址> git config --global http.proxy socks5://127.0.0.1:7890 git config --global https.proxy socks5://127.0.0.1:7890添加 SSH:ssh-keygen # 疯狂回车拷贝公钥 ~/.ssh/id_rsa.pub 中的内容,到 github 中添加 ssh keys 即可。VMware-WorkStationVMware-WorkStation包在AUR上可用,可以通过运行命令来安装。yay -S vmware-workstation安装系统对应的linux-headerssudo pacman -S linux-headers载入vmmon模块sudo modprobe -a vmw_vmci vmmon自启动网络服务和USBsudo systemctl enable vmware-networks.service vmware-usbarbitrator.servicesudo systemctl start vmware-networks.service vmware-usbarbitrator.service安装osc-url下载 ocs-url:点我跳转下载完成后手动安装:sudo pacman -U ~/Downloads/ocs-url-3.1.0-1-x86_64.pkg.tar.xz
2022年07月13日
153 阅读
0 评论
0 点赞