Update README.md
This commit is contained in:
parent
0e7434a12a
commit
21dcb183ec
43
README.md
43
README.md
@ -1,29 +1,50 @@
|
|||||||
# Archbox
|
# Archbox
|
||||||
Installs Arch Linux inside a chroot enviroment.
|
Installs Arch Linux inside a chroot enviroment.
|
||||||
## Why?
|
## Why?
|
||||||
Ever since I'm running some niche distros like Void, Solus, I had a problem finding what softwares I need in their not-so-large repositories, also I don't like how flatpak and snap works. so i decided to create an Arch Linux chroot enviroment everytime I distrohop. Why Arch Linux? They have a really, really good repositories, oh and don't mention how big AUR is.
|
Ever since I'm running some niche distros like Void, Solus, I had a problem finding softwares I need in their not-so-large repositories, also I don't like how flatpak and snap works. so i decided to create an Arch Linux chroot enviroment everytime I distrohop. Why Arch Linux? They have a really, really good repositories, oh and don't mention how big AUR is.
|
||||||
## Installation
|
## Installation
|
||||||
### Installing Archbox
|
### Installing Archbox
|
||||||
It's pretty easy, just run ```install.sh``` as root.
|
It's pretty easy, just run ```install.sh``` as root.
|
||||||
### Installing chroot enviroment
|
### Installing chroot enviroment
|
||||||
Before creating chroot enviroment, edit your username in ```/etc/archbox.conf```, then do ```sudo archbox --create <archlinux tarball download link>```.
|
Before creating chroot enviroment, edit your username in ```/etc/archbox.conf```, then do :
|
||||||
|
```
|
||||||
|
sudo archbox --create <archlinux tarball download link>
|
||||||
|
```
|
||||||
### Entering chroot enviroment
|
### Entering chroot enviroment
|
||||||
To enter chroot, do ```archbox --enter```.
|
To enter chroot, do :
|
||||||
|
```
|
||||||
|
archbox --enter
|
||||||
|
```
|
||||||
### Executing commands in chroot enviroment
|
### Executing commands in chroot enviroment
|
||||||
To execute commands inside chroot envirotment, do ```archbox <command>```.
|
To execute commands inside chroot envirotment, do :
|
||||||
for example, to update chroot, do ```archbox sudo pacman -Syu```.
|
```
|
||||||
|
archbox <command>
|
||||||
|
```
|
||||||
|
for example, to update chroot, do :
|
||||||
|
```
|
||||||
|
archbox sudo pacman -Syu
|
||||||
|
```
|
||||||
### Automount filesystem
|
### Automount filesystem
|
||||||
If you use runit, copy archbox folder inside ```runit/``` to whatever your distro store runit services and symlink it to whatever your distro store running runit services, if you don't use runit, you may need to create your own init script, or create a cronjob that runs on boot.
|
If you use runit, copy archbox folder inside ```runit/``` to whatever your distro store runit services and symlink it to whatever your distro store running runit services, if you don't use runit, you may need to create your own init script, or create a cronjob that runs on boot.
|
||||||
### Optional steps
|
### Optional steps
|
||||||
You may want to add this, if you don't want to run archbox chroot without password :
|
You may want to add this, if you don't want to run archbox chroot without password :
|
||||||
#### Sudo
|
#### Sudo
|
||||||
```%wheel ALL=(root) NOPASSWD: /usr/local/share/archbox/bin/archboxenter,/usr/local/share/archbox/bin/copyresolv,/usr/local/share/archbox/bin/archboxcommand```
|
```
|
||||||
|
%wheel ALL=(root) NOPASSWD: /usr/local/share/archbox/bin/archboxenter,/usr/local/share/archbox/bin/copyresolv,/usr/local/share/archbox/bin/archboxcommand
|
||||||
|
```
|
||||||
#### Doas
|
#### Doas
|
||||||
```Idk you're on your own```
|
```
|
||||||
|
Idk you're on your own
|
||||||
|
```
|
||||||
### Misc
|
### Misc
|
||||||
#### Lauching apps via rofi
|
#### Lauching apps via rofi
|
||||||
Instead of opening terminal everytime you want to run application inside chroot, you may want to launch rofi inside chroot, install rofi and do ```archbox rofi <rofi options>```.
|
Instead of opening terminal everytime you want to run application inside chroot, you may want to launch rofi inside chroot, install rofi and do :
|
||||||
#### Pulseaudio
|
```
|
||||||
If the audio doesn't work, comment ```mount -R /var/lib/dbus $CHROOT/var/lib/dbus``` in init script and start pulseaudio inside chroot instead, do ```archbox pulseaudio```.
|
archbox rofi <rofi options>
|
||||||
|
```
|
||||||
#### Prompt
|
#### Prompt
|
||||||
If you use bash and nerd font you could add a nice little Arch Linux icon in your prompt, add ```[[ -e /etc/arch-release ]] && export PS1=" $PS1"``` to your ```~/.bashrc```
|
If you use bash with nerd font you could add a nice little Arch Linux icon in your prompt, add "
|
||||||
|
```
|
||||||
|
[[ -e /etc/arch-release ]] && export PS1=" $PS1"
|
||||||
|
```
|
||||||
|
to your ```~/.bashrc```
|
||||||
|
Loading…
Reference in New Issue
Block a user