git clone https://github.com/elecbug/linuxus
cd linuxussudo snap install go --classicsudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginBuild the control CLI:
./shell/build_ctl.shGenerated executable:
./linuxusctl helpFor a more convenient CLI experience, enable bash completion support.
Run the following command:
source ./shell/linuxus-completion.bashAfter enabling completion, you can use TAB to automatically complete commands and options.
Important
linuxusctl is a project-local control binary.
Do not move linuxusctl outside the Linuxus project root.
It depends on ./src, ./cfg, and ./volume relative to the project root.
./linuxusctl <OPTION>| Command | Description |
|---|---|
help |
Show help message |
up |
Build images and start services |
down |
Stop and remove services |
restart |
Restart services |
ps [OPTION] |
Show status about linuxus service |
add-user --user <USERNAME> |
Add a new user |
remove-user --user <USERNAME> |
Remove an existing user |
clean-volume <OPTION> |
Remove all user directories if the option is all, otherwise remove specific user directory |
ensure-disk <OPTION> |
Create a missing user directory if the option is all, otherwise create a specific user directory |
./linuxusctl up # Build and start
./linuxusctl restart # Restart
./linuxusctl ps network # Show network status of linuxus serviceNote
Linuxus provides a built-in signup system via the web interface.
Edit cfg/config.yml:
auth_service:
allow_signup: trueA Signup link will appear on the login page.
- User opens the login page
- Clicks Signup
- Enters ID and password
- Account is registered
Important
Newly registered users are not immediately usable
After signup, the host must initialize user environments:
./linuxusctl ensure-disk <USERNAME>or initialize all missed user environments:
./linuxusctl ensure-disk --allThis step:
- Creates home directories
- Mounts volumes
- Activates user accounts
- Default admin ID:
alpha - Configurable in:
manager_service:
admin_id: alphavolumes/
├── homes/
├── share/
└── readonly/
- Private
- Mounted to
/home/<USER>
- RWX for all users
/home/share
- Read/execute for users
- Write for admin only
/home/readonly



