介绍
安装自己的linux-server,可以作为学习使用,web方式访问,基于ubuntu构建
开源项目
https://github.com/linuxserver/docker-webtop
安装
docker run -d -p 1336:3000 -e PASSWORD=123456 --name webtop lscr.io/linuxserver/webtop:ubuntu-kde
登录
docker exec -it --user root webtop /bin/bash
apt update
apt install vim
配置镜像源
cp /etc/apt/sources.list /etc/apt/sources.list.bak
vim /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
chown root:root /etc/apt/sources.list
apt update
安装语言包
sudo apt-get install language-pack-kde-zh-hant language-pack-kde-zh-hans language-pack-zh-hans-base language-pack-zh-hant-base language-pack-zh-hans
sudo apt-get install fonts-wqy-zenhei
配置语言
locale -a
sudo locale-gen zh_CN.UTF-8
sudo update-locale LANG=zh_CN.UTF-8
登录
http://127.0.0.1:1336
用户名:abc
密码:123456(安装时配置)