Ubuntu删除与安装系统内核

1. 内核安装 搜索可安装的内核版本,使用命令: 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进入选择菜单,选择高级选项,选择所需要的内核版本启动系统 2. 内核卸载 当我们安装软件时,如果boot空间已满系统会报: gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1…

Read more

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填入以下内容:…

Read more

X-ui面板安装

X-ui介绍 x-ui的github项目地址:https://github.com/vaxilu/x-ui 系统状态监控 支持多用户多协议,网页浏览化操作 支持的协议:vmess、vless、trojan、shadowsocks、dokodemo-door、socks、http 支持配置 更多传输配置 流量统计,限制流量,限制时间 可自定义xray配置模板 支持https访问面板(自备域名+ssl证书) 更多高级配置项,详见面板 X-UI一键脚本 bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) 安装完成后默认是IP:54321访问面板。默认密码是admin;admin,默认密码不安全,请到面板后台更改用户名和密码。   TLS安装前准备步骤 socat 其实不需要SOCAT也可以,不过安装X-UI以后我们使用v2或者trojan的ssl加密的时候需要ssl证书,这个时候我们需要Acme配合NGINX/SOCAT申请证书。 当你的服务器上有nginx或者宝塔面板时,就不需要安装socat了,在这个时候执行是申请SSL脚本会提示80端口被占用出错。 1. Debian/Ubuntu安装socat apt update -y apt install -y…

Read more

Docker install tigase-xmpp-server

https://hub.docker.com/r/tigase/tigase-xmpp-server docker pull tigase/tigase-xmpp-server docker run –name tigase-server -p 8080:8080 -p 5222:5222 tigase/tigase-xmpp-server:latest Once started, open http://localhost:8080 (from the same machine, or using http://<server_hostname>:8080), by default those are: ‘admin-user’ = ‘admin’…

Read more

使用Docker搭建Syncthing

Syncthing 官网:https://syncthing.net/ 在服务器上部署 Docker Debian 安装 Docker:https://docs.docker.com/engine/install/debian/ Ubuntu 安装 Docker:https://docs.docker.com/engine/install/ubuntu/ 拉取 syncthing 镜像 docker pull syncthing/syncthing 运行容器 docker run -d -p 8384:8384 -p 22000:22000 -v /data/syncthing:/var/syncthing –restart=always syncthing/syncthing:latest 参数解释: -d:后台运行…

Read more

Linux防火墙放行指定端口

Debian/Ubuntu 放行端口 安装iptables(通常系统都会自带,如果没有就需要安装) apt-get update apt-get install iptables 例如要放行8888端口 iptables -I INPUT -p tcp –dport 8888 -j ACCEPT 然后保存放行规则 iptables-save 设置完就已经放行了指定的端口,但重启后会失效,下面设置持续生效规则; 安装iptables-persistent apt-get install iptables-persistent 保存规则持续生效 netfilter-persistent save netfilter-persistent reload…

Read more


Dropbox转换直链的方法

Dropbox 直链方法 Dropbox的分享链接是这样的: https://www.dropbox.com/s/qtikk8ob8fx1n7g/Agatha.zip?dl=0 一:将 www 替换成 dl-web 二:将尾端 ?dl=0 删除掉 然后我们就得到了直链地址: https://dl-web.dropbox.com/s/qtikk8ob8fx1n7g/Agatha.zip

Read more