mirror of
https://github.com/fsquillace/junest.git
synced 2026-01-23 10:35:36 +00:00
Merge branch 'fsquillace:master' into master
This commit is contained in:
commit
36fa282e21
3 changed files with 46 additions and 36 deletions
68
README.md
68
README.md
|
|
@ -11,7 +11,7 @@ The lightweight Arch Linux based distro that runs, without root privileges, on t
|
|||
|
||||
|Project Status|Donation|Communication|
|
||||
|:------------:|:------:|:-----------:|
|
||||
| [](https://app.travis-ci.com/github/fsquillace/junest) [](https://www.openhub.net/p/junest) | [](https://github.com/sponsors/fsquillace) [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8LEHQKBCYTACY) | [](https://discord.gg/ttfBT7MKve) |
|
||||
| [](https://app.travis-ci.com/github/fsquillace/junest) [](https://www.openhub.net/p/junest) | [](https://github.com/sponsors/fsquillace) [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8LEHQKBCYTACY) [](https://www.buymeacoffee.com/fsquillace) | [](https://discord.gg/ttfBT7MKve) |
|
||||
|
||||
**Table of Contents**
|
||||
- [Description](#description)
|
||||
|
|
@ -63,6 +63,37 @@ This allows interaction between processes belonging to both host OS and JuNest.
|
|||
For example, you can install the `top` command in JuNest and use it to monitor
|
||||
processes belonging to the host OS.
|
||||
|
||||
Installation
|
||||
============
|
||||
|
||||
## Dependencies ##
|
||||
JuNest comes with a very short list of dependencies in order to be installed in most
|
||||
of GNU/Linux distributions.
|
||||
Before installing JuNest be sure that all dependencies are properly installed in your system:
|
||||
|
||||
- [bash (>=4.0)](https://www.gnu.org/software/bash/)
|
||||
- [GNU coreutils](https://www.gnu.org/software/coreutils/)
|
||||
|
||||
## Installation from git repository ##
|
||||
Just clone the JuNest repo somewhere (for example in ~/.local/share/junest):
|
||||
|
||||
```sh
|
||||
git clone https://github.com/fsquillace/junest.git ~/.local/share/junest
|
||||
export PATH=~/.local/share/junest/bin:$PATH
|
||||
```
|
||||
|
||||
Optionally you want to use the wrappers to run commands
|
||||
installed in JuNest directly from host:
|
||||
|
||||
```sh
|
||||
export PATH="$PATH:~/.junest/usr/bin_wrappers"
|
||||
```
|
||||
Update your `~/.bashrc` or `~/.zshrc` to get always the wrappers available.
|
||||
|
||||
### Installation using AUR (Arch Linux only) ###
|
||||
If you are using an Arch Linux system you can, alternatively, install JuNest from the [AUR repository](https://aur.archlinux.org/packages/junest-git/).
|
||||
JuNest will be located in `/opt/junest/`
|
||||
|
||||
Quickstart
|
||||
==========
|
||||
|
||||
|
|
@ -70,7 +101,9 @@ Setup environment
|
|||
-----------------
|
||||
|
||||
The first operation required is to install the JuNest environment in the
|
||||
location of your choice (by default `~/.junest`, configurable via the environment variable `JUNEST_HOME`):
|
||||
location of your choice via `JUNEST_HOME` environment variable
|
||||
(it must contain an absolute path) which by
|
||||
default is `~/.junest`:
|
||||
|
||||
```sh
|
||||
junest setup
|
||||
|
|
@ -177,37 +210,6 @@ Have fun!
|
|||
If you are new on Arch Linux and you are not familiar with `pacman` package manager
|
||||
visit the [pacman rosetta page](https://wiki.archlinux.org/index.php/Pacman_Rosetta).
|
||||
|
||||
Installation
|
||||
============
|
||||
|
||||
## Dependencies ##
|
||||
JuNest comes with a very short list of dependencies in order to be installed in most
|
||||
of GNU/Linux distributions.
|
||||
Before installing JuNest be sure that all dependencies are properly installed in your system:
|
||||
|
||||
- [bash (>=4.0)](https://www.gnu.org/software/bash/)
|
||||
- [GNU coreutils](https://www.gnu.org/software/coreutils/)
|
||||
|
||||
## Installation from git repository ##
|
||||
Just clone the JuNest repo somewhere (for example in ~/.local/share/junest):
|
||||
|
||||
```sh
|
||||
git clone https://github.com/fsquillace/junest.git ~/.local/share/junest
|
||||
export PATH=~/.local/share/junest/bin:$PATH
|
||||
```
|
||||
|
||||
Optionally you want to use the wrappers to run commands
|
||||
installed in JuNest directly from host:
|
||||
|
||||
```sh
|
||||
export PATH="$PATH:~/.junest/usr/bin_wrappers"
|
||||
```
|
||||
Update your `~/.bashrc` or `~/.zshrc` to get always the wrappers available.
|
||||
|
||||
### Installation using AUR (Arch Linux only) ###
|
||||
If you are using an Arch Linux system you can, alternatively, install JuNest from the [AUR repository](https://aur.archlinux.org/packages/junest-git/).
|
||||
JuNest will be located in `/opt/junest/`
|
||||
|
||||
Usage
|
||||
=====
|
||||
There are three different ways you can run JuNest depending on the backend program you decide to use.
|
||||
|
|
|
|||
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
7.4.7
|
||||
7.4.8
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@ function _install_pkg(){
|
|||
function _prepare() {
|
||||
# ArchLinux System initialization
|
||||
prepare_archlinux
|
||||
sudo pacman -S --noconfirm git arch-install-scripts haveged
|
||||
# curl is used to download pacman.conf file
|
||||
sudo pacman -S --noconfirm git arch-install-scripts haveged curl
|
||||
}
|
||||
|
||||
function build_image_env(){
|
||||
|
|
@ -59,12 +60,19 @@ function build_image_env(){
|
|||
fi
|
||||
sudo mkdir -p "${maindir}"/root/run/lock
|
||||
|
||||
sudo tee -a "${maindir}"/root/etc/pacman.conf > /dev/null <<EOT
|
||||
# For some reasons, pacstrap does not create the pacman.conf file,
|
||||
# I could not reproduce the issue locally though:
|
||||
# https://app.travis-ci.com/github/fsquillace/junest/builds/268216346
|
||||
[[ -e "${maindir}"/root/etc/pacman.conf ]] || sudo curl "https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/raw/main/pacman.conf" -o "${maindir}/root/etc/pacman.conf"
|
||||
|
||||
sudo tee -a "${maindir}"/root/etc/pacman.conf <<EOT
|
||||
|
||||
[junest]
|
||||
SigLevel = Optional TrustedOnly
|
||||
Server = https://raw.githubusercontent.com/fsquillace/junest-repo/master/any
|
||||
EOT
|
||||
info "pacman.conf being used:"
|
||||
cat "${maindir}"/root/etc/pacman.conf
|
||||
sudo pacman --noconfirm --config "${maindir}"/root/etc/pacman.conf --root "${maindir}"/root -Sy sudo-fake groot-git proot-static qemu-user-static-bin-alt yay
|
||||
|
||||
echo "Generating the metadata info"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue