Skip to content

linzziy/ubuntu

 
 

Repository files navigation

Usage

docker run -d \
  --name ubuntu \
  -p 2222:22 \
  -e SSH_USER=ubuntu \
  -e SSH_PASSWORD='ubuntu!23' \
  ghcr.io/linzziy/ubuntu:22

家目录初始化

1、权限设置

ls -l /home
sudo chown -R $USER:$USER /home/$USER

2、终端字体颜色美化、ls -l 命令别名设置等

curl -sk -o ~/.bashrc https://raw.githubusercontent.com/linzziy/ubuntu/refs/heads/main/.bashrc
curl -sk -o ~/.profile https://raw.githubusercontent.com/linzziy/ubuntu/refs/heads/main/.profile

home目录自定义启动/home/ubuntu/.boot_

#!/bin/sh
cd /home/ubuntu/uptime-kuma
exec /home/ubuntu/.nvm/versions/node/v20.19.5/bin/node server/server.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 77.1%
  • Dockerfile 22.9%