From 81b7d54ae65ed8a0a7223182a1b6f6326130e4c6 Mon Sep 17 00:00:00 2001 From: Syahrial Agni Prasetya Date: Mon, 10 May 2021 13:38:08 +0700 Subject: [PATCH 1/3] Remove warnings from noexec mount. --- archbox-desktop.bash | 2 +- enter.bash | 6 +++--- exec.bash | 6 +++--- uth.bash | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/archbox-desktop.bash b/archbox-desktop.bash index 8eae06e..bff055a 100644 --- a/archbox-desktop.bash +++ b/archbox-desktop.bash @@ -1,6 +1,6 @@ #!/usr/bin/env bash -source /etc/archbox.conf +source /etc/archbox.conf &>/dev/null install_desktop(){ mkdir -p ~/.local/share/applications/archbox diff --git a/enter.bash b/enter.bash index 76d04c5..d0b389e 100644 --- a/enter.bash +++ b/enter.bash @@ -1,7 +1,7 @@ #!/usr/bin/env bash -source /etc/archbox.conf -source /tmp/archbox_env +source /etc/archbox.conf &>/dev/null +source /tmp/archbox_env &>/dev/null REQ_ENV="DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS " REQ_ENV+="XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR " @@ -10,4 +10,4 @@ REQ_ENV+="XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR " ENV="$REQ_ENV $ENV_VAR" COMMAND="$@" -chroot $CHROOT /sbin/env $ENV /bin/su $ARCHBOX_USER \ No newline at end of file +chroot $CHROOT /sbin/env $ENV /bin/su $ARCHBOX_USER diff --git a/exec.bash b/exec.bash index d182fbd..092bab0 100644 --- a/exec.bash +++ b/exec.bash @@ -1,7 +1,7 @@ #!/usr/bin/env bash -source /etc/archbox.conf -source /tmp/archbox_env +source /etc/archbox.conf &>/dev/null +source /tmp/archbox_env &>/dev/null REQ_ENV="DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS " REQ_ENV+="XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR " @@ -10,4 +10,4 @@ REQ_ENV+="XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR " ENV="$REQ_ENV $ENV_VAR" COMMAND="$@" -chroot $CHROOT /bin/su -c "env $ENV $COMMAND" $ARCHBOX_USER \ No newline at end of file +chroot $CHROOT /bin/su -c "env $ENV $COMMAND" $ARCHBOX_USER diff --git a/uth.bash b/uth.bash index cb06189..ba7128f 100644 --- a/uth.bash +++ b/uth.bash @@ -1,7 +1,7 @@ #!/usr/bin/env bash -source /etc/archbox.conf -source /tmp/archbox_env +source /etc/archbox.conf &>/dev/null +source /tmp/archbox_env &>/dev/null case $1 in copyresolv) From 8a5cacf3a05622167e71742c536ccec930a2ad54 Mon Sep 17 00:00:00 2001 From: Syahrial Agni Prasetya Date: Mon, 10 May 2021 14:19:52 +0700 Subject: [PATCH 2/3] Update CROS_INSTALL.md --- CROS_INSTALL.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/CROS_INSTALL.md b/CROS_INSTALL.md index 9454255..969431e 100644 --- a/CROS_INSTALL.md +++ b/CROS_INSTALL.md @@ -12,8 +12,28 @@ source ~/.bashrc Just follow [INSTALL.md](INSTALL.md) but with : 1. Now that `/usr/local` is owned by you, it's better to set `INSTALL_PATH` to somewhere in `/usr/local` in `archbox.conf`, for example `/usr/local/archbox` 2. Remove `/home` from `SHARED_FOLDER` in `archbox.conf` + +Then add : +```sh +[[ $DBUS_SESSION_BUS_ADDRESS = "disabled:" ]] && eval "$(dbus-launch)" +``` +to `~/.bashrc` in Archbox ## Miscs ### Init Archbox Automatically -Add `archbox -m` to `~/.bashrc`. +Add `archbox -m` to `~/.bashrc` in host. ### Uniform look with ChromeOS -Install [`cros-adapta-gtk-theme`](https://aur.archlinux.org/packages/cros-adapta-gtk-theme/) from AUR and set it with `lxappearance` and `dconf-editor`. \ No newline at end of file +Install [`cros-adapta-gtk-theme`](https://aur.archlinux.org/packages/cros-adapta-gtk-theme/), `ttf-roboto`, and `papirus-icon-theme` and use it with : +```sh +gsettings set org.gnome.desktop.interface gtk-theme "cros-adapta" +gsettings set org.gnome.desktop.interface icon-theme "Papirus" +gsettings set org.gnome.desktop.interface font-name "Roboto 10" +``` + +For GTK2 apps, use `lxappearance` and for QT5 apps, use `qt5ct` + +## Issues +Things that depends on `dbus` may broke if you execute it directly, e.g. : +``` +archbox dconf-editor +``` +You'll need to enter the shell to use it. From aca9670aabe3185848f43da0da000b21b1a3bcb4 Mon Sep 17 00:00:00 2001 From: Syahrial Agni Prasetya Date: Mon, 10 May 2021 14:49:36 +0700 Subject: [PATCH 3/3] Update CROS_INSTALL.md --- CROS_INSTALL.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CROS_INSTALL.md b/CROS_INSTALL.md index 969431e..fb1274c 100644 --- a/CROS_INSTALL.md +++ b/CROS_INSTALL.md @@ -32,8 +32,12 @@ gsettings set org.gnome.desktop.interface font-name "Roboto 10" For GTK2 apps, use `lxappearance` and for QT5 apps, use `qt5ct` ## Issues +### DBus Things that depends on `dbus` may broke if you execute it directly, e.g. : ``` archbox dconf-editor ``` You'll need to enter the shell to use it. + +### Audio +Audio doesn't seem to work at the moment, It's possible to start pulseaudio in chroot, but I didn't dive enough yet.