STUFF

Office2021自定义安装

Office2021安装包: ProPlus2021Retail.img 备用下载地址 Office2021中文语言安装包: OfficeSetup_langpack 备用下载地址 安装要求Windows10以上系统,右键点击下载后的ProPlus2021Retail.img,选择装载挂载镜像文件到虚拟光驱,注意查看虚拟光驱盘符。 新建configuration.xml文件保存到D盘,内容如下: <Configuration> <Add SourcePath="F:\" OfficeClientEdition="64" > <Product ID="ProPlusRetail"> <Language ID="zh-CN" /> <ExcludeApp ID="Groove" /> <ExcludeApp ID="InfoPath" /> <ExcludeApp ID="Lync" /> <ExcludeApp ID="OneNote" /> <ExcludeApp ID="Outlook" /> <ExcludeApp ID="Publisher" /> <ExcludeApp ID="SharePointDesigner" /> </Product> </Add> </Configuration> 说明: SourcePath 为虚拟光驱盘符,以实际情况修改。 ExcludeApp ID 在此选择不需要安装的组件,可用配置Access/Excel/Groove/Lync/OneDrive/OneNote/Outlook/PowerPoint/Publisher/Teams/Word。 CMD进入到光驱根目录,执行以下命令开始自定义安装: Setup.exe /configure d:\configure.xml 安装完成后推荐使用MAS激活,下载地址在此

按网段ping主机返回在线状态

通过以下命令,可以按网段ping所有的主机,并返回那些ip状态为在线,前提是安装nmap 命令: nmap -sP 220.181.38.0/24 运行结果如下: ➜ ~ nmap -sP 220.181.38.0/24 Starting Nmap 6.40 ( http://nmap.org ) at 2021-06-26 11:27 CST Nmap scan report for 220.181.38.97 Host is up (0.16s latency). Nmap scan report for 220.181.38.98 Host is up (0.16s latency). Nmap scan report for 220.181.38.99 Host is up (0.18s latency). Nmap scan report for 220.181.38.129 Host is up (0.16s latency). Nmap scan report for 220.181.38.130 Host is up (0.16s latency).

Ubuntu21.04安装Gnome40

ubuntu21.04可以通过PPA源的方法安装gnome40,方法如下: sudo add-apt-repository ppa:shemgp/gnome-40 #添加PPA源 sudo apt install mutter gnome-shell sudo apt upgrade 安装完成后重启系统,在会话选择中选择GNOME即可进入。 删除GNOME方法如下: sudo apt install ppa-purge && sudo ppa-purge ppa:shemgp/gnome-40 sudo apt remove gnome-session

v2rayA客户端使用实例

v2rayA是一款Project V的Linux Web GUI客户端,支持V2Ray,Xray,SS,SSR,Trojan和Pingtunnel 安装v2rayA之前需要先安装v2ray,命令如下: ➜ ~ curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh #下载安装脚本 ➜ ~ bash ./install-release.sh #运行安装脚本 ➜ ~ sudo systemctl enable v2ray #开启v2ray service Created symlink /etc/systemd/system/multi-user.target.wants/v2ray.service → /etc/systemd/system/v2ray.service. ➜ ~ sudo systemctl start v2ray 运行v2ray service ubuntu中安装v2rayA ubuntu下可以使用添加sources.list源来安装v2rayA ➜ ~wget -qO - https://apt.v2raya.mzz.pub/key/public-key.asc | sudo apt-key add - #添加public key ➜ ~echo "deb https://apt.v2raya.mzz.pub/ v2raya main" | sudo tee /etc/apt/sources.list.d/v2raya.list #添加apt源 ➜ ~sudo apt update #更新源 ➜ ~ sudo apt install v2raya #安装V2RayA 正在读取软件包列表.

通过批处理控制网卡接口

将内网网卡名改为"lan",将外网网卡名改为"wlan" REM copyright unixetc.com @echo off set /p input=a:内网/b:外网/c:禁用/d:开启 if "%input%"=="a" goto MA if "%input%"=="b" goto MB if "%input%"=="c" goto MC if "%input%"=="d" goto MD if not "%input%"== "a" (if not "%input%"=="b"(if not "%input%"=="c" (if not "%input%"=="d" goto ME))) :MA echo 单开内网 netsh interface set interface "lan" enabled netsh interface set interface "wlan" disabled ping 133.64.8.1 -n 10 echo 设置完成! pause>nul exit :MB echo 单开外网 netsh interface set interface "lan" disabled netsh interface set interface "wlan" enabled ping baidu.