国内镜像阿里云/163源/清华大学/中科大 Ubuntu 22.04 LTS这是一个长期支持版本,它将被支持五年,直到2027年4月。已发布的LTS版本带来了一些新的功能。如果你正在使用Ubuntu 20.04 LTS,你会注意到许多视觉上的变化。 当然作为国内用户首要任务安装完成之后首要任务就是更改ubuntu 22.04的镜像/软件源。 国内有很多Ubuntu 22.04的镜像源,包括阿里、网易,还有很多教育网的镜像源,比如清华源、中科大源。 在教程中我们将介绍如何更改镜像在ubuntu 22.04。国内的包括有镜像阿里云/163源/清华大学/中科大。 首先我们需要先备份Ubuntu官方的软件源,执行以下命令将备份原来的软件源。 sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak 清华大学镜像 复制以下命令即可一键切换到清华大学ubuntu 22.04镜像: sudo bash -c “cat < /etc/apt/sources.list && apt update deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main…
Raspberry Pi Ubuntu 安装Docker
使用 APT 安装 由于 apt 源使用 HTTPS 以确保软件下载过程中不被篡改。因此,我们首先需要添加使用 HTTPS 传输的软件包以及 CA 证书。 $ sudo apt-get update $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg2 \ lsb-release \ software-properties-common 鉴于国内网络问题,强烈建议使用国内源,官方源请在注释中查看。 为了确认所下载软件包的合法性,需要添加软件源的 GPG 密钥。 $ curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/raspbian/gpg…
Linux VPS服务器SSH端口一键修改脚本
方法 系统要求:支持Debian、Ubuntu、CentOS系统。 运行以下命令: wget https://www.moerats.com/usr/down/sshport.sh bash sshport.sh 输入端口确认。再打开防火墙端口: #如果防火墙使用的iptables(Centos 6),修改端口为8080 iptables -I INPUT -p tcp –dport 8080 -j ACCEPT service iptables save service iptables restart #如果使用的是firewall(CentOS 7) firewall-cmd –zone=public –add-port=8080/tcp —permanent firewall-cmd –reload…
树莓派Ubuntu22.04 server换源
备份: sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 改文件: ———————————————— deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy main restricted deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy-updates main restricted deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy universe deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy-updates universe deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy multiverse deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy-updates multiverse deb http://mirrors.cloud.tencent.com/ubuntu-ports jammy-backports…
linux VPS开启http下载服务 共享VPS文件
想快速开启文件共享, 给服务器开启HTTP下载服务, 下载VPS里的文件, 可通过 simplefileserver. 通过VPS之间的文件下载, 还能顺便测试下 VPS之间的传输和带宽. 安装 simplefileserver 本文以Debian举例 (依赖python, pip) apt install -y python3 python3-pip pip3 install simplefileserver 开启http服务器 执行 simplefileserver 8989 即可 访问: 服务器IP地址:8989, 就可以 浏览和下载当前目录的文件 生成测速文件, 测试VPS的下载速度 可以生成100mb.bin文件测试下载速度, 执行: dd if=/dev/zero of=100mb.bin bs=100M count=1 会当前目录生成 100mb.bin 文件 然后可以通过 服务器IP地址:8989/100mb.bin 下载文件和测试了. 或通过wget测试速度: wget -O /dev/null…
Linux VPS常用脚本
VPS配置查看: curl -sL yabs.sh | bash -s — -i wget -qO- bench.sh | bash curl -Lso- bench.sh | bash 测速: bash <(curl -Lso- https://git.io/superspeed.sh) bash <(curl -Lso- http://yun.789888.xyz/speedtest.sh) 流媒体检查: bash <(curl -L -s check.unlock.media) bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh) bash…
PT盒子教程Seedbox 一键脚本
Github项目地址:jerry048/Dedicated-Seedbox https://github.com/jerry048/Dedicated-Seedbox 建议系统:Debian10 1:开启BBR #首先先更新下系统,然后安装依赖组建: apt-get update apt-get update && apt-get install -y wget curl echo “net.core.default_qdisc=fq” >> /etc/sysctl. conf echo “net.ipv4.tcp_congestion_control=bbr” >> /etc/sysctl. conf sysctl -p #检测是否正常开启BBR: sysctl net. ipv4 . tcp_available_congestion_control lsmod | grep bbr 2:安装一键脚本: 默认IP:8080 登录…
Setup Murmur Mumble Server on Ubuntu
Mumble is a completely free and open source alternative to other voice suites, such as Teamspeak. It runs on Windows, Linux, OS X, and iOS. This guide will teach you how to setup a Murmur, a Mumble server on Ubuntu.…
Ubuntu删除与安装系统内核
内核安装 搜索可安装的内核版本,使用命令: apt-cache search linux|grep linux-image 选择所需要的内核版本进行安装,安装内核需要安装image和header,例如: apt-get install linux-image-4.4.0-58-generic linux-headers-4.4.0-58-generic 重启,按ESC进入选择菜单,选择高级选项,选择所需要的内核版本启动系统 内核卸载 当我们安装软件时,如果boot空间已满系统会报: gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 如使用如下命令查看boot空间,可发现boot空间已满,这时就需要卸载多余的内核。 df -h 卸载方法: 首先查看当前使用的内核版本: uname -a 正在使用的内核是无法删除的,我们可以删除其他内核. 查询目前系统中存在的内核版本: dpkg –get-selections |…
Docker 搭建 Rocket.chat
GitHub原项目地址:https://github.com/RocketChat/Rocket.Chat 官网地址:https://rocket.chat/ 文档地址:https://docs.rocket.chat/ sudo -i # 切换到root用户 apt update -y # 升级packages apt install wget curl sudo vim git # 安装常用的软件 创建一下安装的目录: mkdir -p /root/data/docker_data/rocketchat cd /root/data/docker_data/rocketchat nano docker-compose.yml docker-compose.yml填入以下内容: version: ‘2’ services: rocketchat: image: rocketchat/rocket.chat:latest command: > bash -c…