杨过link

杨过Link

部署、运维 关于一些部署的内容


pve误修改fstab导致无法启动问题排查

问题原因 由于pve原本的磁盘不够用了,所以新加了一块HDD做存储盘,添加硬盘后pve重启失败。 附:Linux硬盘分区代码 # 查看硬盘 fdisk -l # 开始分区 fdisk /dev/sdb 输入n(分区) - 输入p(主分区) - 输入w(写入分区) # 格式化 mkfs -t ext4 /dev/sdb1 # 创建挂载目录 mkdir -p /mnt/sdb1 # 挂载 mount -t ext4 /dev/sdb1 /mnt/sdb1 # 写入系统启动项 echo /dev/sdb1 /mnt/sdb1 ext4 defaults 1 2 /etc/fstab https://wp.gxnas.com/10402.html 开机报错无法挂载sdb分区导致启动失败 问题排查 使用umount取消挂载 失败 ,无法取消 直接在/etc/fstab删除挂载硬盘 不小心删除多了 …

pve

OpenWrt常用插件安装配置

OpenWrt常用插件安装配置 The OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For  …

Proxy openwrt

PVE安装OpenWrt软路由、NAS及桌面环境

基础配置 镜像配置 进入系统软件源配置文件目录 cd /etc/apt 将默认软件源配置文件进行备份 cp sources.list sources.list.bak 替换系统软件仓库 sed -i 's|^deb http://ftp.debian.org|deb https://mirrors.ustc.edu.cn|g' /etc/apt/sources.list sed -i 's|^deb http://security.debian.org|deb https://mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list 订阅源替换 创建 PVE 免费源 source /etc/os-release echo deb https://mirrors.ustc.edu.  …

pve openwrt

Windows重装后全自动下载所需软件和配置开发环境

初始化一键安装必备软件 右键点击开始菜单,powershell(管理员)运行下面脚本 iex ((New-Object System.Net.WebClient).DownloadString('https://github.com/gxhao2020/configuration-script-win/blob/main/install.ps1')) 安装winget winget 是微软推出的命令行工具,可以输入简单的命令安装常用软件,参考这里 Install Winget if (-not $(Get-Command winget -ErrorAction SilentlyContinue)) { Write-Host Installing WinGet... -ForegroundColor Green Start-Process ms-appinstaller:?  …

Windows automatic PowerShell

Use Samba to share files in Linux and Windows

1、Introduction Samba is a free software for linking the UNIX series of operating systems with the Microsoft Windows operating system's SMB / CIFS (Server Message Block / Common Internet File System) network protocol. The third edition not only visits and shares SMB folders and printers, which can also be integrated into Windows Server domains, playing a domain control station (Domain Controller) …

Samba

利用Svn Hooks触发自动部署流水线

缘起 项目上使用集成开发平台构建部署已经有一段时间了,因为项目上使用的是svn,所以在更新系统的时候仍然需要提交代码->集成开发平台更新->服务器远程构建更新。由于提交代码和集成开发平台构建更新都是在公司内网进行的,那么我们可不可以将前两步合并为一步?也就是提交完代码自动进行集成开发平台更新,接着只需要在服务器端远程构建更新就可以了。 思路 gitlab 有个配置项Webhooks可以触发集成开发平台构建。 Webhooks enable you to send notifications to web applications in response to events in a group or project. svn应该有相关触发事件 编写个后台Restful接口,svn触发这个接口,这个接口触发集成开发平台更新 调研与设计 svn监听如何实现? 1. svn本身仓库自带了 …

svn automatic ci cd

shell proxy via proxychains-ng

Introduce Usually when we use GNU/Linux we visit some external websites, and in many cases the relevant content is downloaded through a shell, such as git,wget,etc. At this point we need to speed up access by setting up a proxy .proxychains-ng is very simple and convenient. Although we can enable the current shell agent via export export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0. …

Proxy Shell

NFS Filesystem Mount

使用nfs文件系统挂载 服务器端挂载配置 https://cloud.tencent.com/developer/article/1626660 参考文章 :How to share a directory on a Linux machine to a Windows machine via NFS? 挂载相关命令 Linux side: Install the NFS server and utilities (nfs-utils or your distribution's equivalent). sudo apt install nfs-kernel-server Create the directory /srv/nfs. sudo mkdir -p /srv/nfs4/backups Create a new empty directory under /srv/ …

Linux NFS Windows

Linux 部署clash的三种方式

前言 Clash for Windows 是一款非常好用的代理软件,它通过简单的配置能实现通过代理的网路自动切换直连或者代理。也提供了允许局域网其他设备连接和游戏模式等非常好i用的功能。在Windows的图形化界面操作非常友好。由于我家里有台设备是Linux Ubuntu。想通过这个软件走代理。以下是配置三种方法 linux常规安装 1. 下载文件 wget https://github.com/Dreamacro/clash/releases/download/v1.8.0/clash-freebsd-amd64-v1.8.0.gz 2. 解压 gunzip 3. 配置 将订阅的配置文件移动到解压目录并重命名为config.yaml 4、启动 chmod +x ./clash-linux-XXXX ./clash-linux-XXXX -d . 5、自启动 #创建service文件 …

clash Linux

没有静态公网ip如何稳定访问家里的设备

前置条件 Linux系统或者可以装docker的路由器 域名 cloudflare账号 开整 1、创建配置文件 新建一个DDNS目录并创建config.json配置文件,文件内容如下 { cloudflare: [ { authentication: { api_token: api_token_here, api_key: { api_key: api_key_here, account_email: your_email_here } }, zone_id: your_zone_id_here, subdomains: [ { name: , proxied: false  …

DDNS IP Cloudflare