From 72d28ba68ee9a081b760246ef0bf6001ea5048b0 Mon Sep 17 00:00:00 2001 From: axtlos Date: Sat, 2 Jul 2022 16:05:24 +0200 Subject: [PATCH 1/6] make it install audio stuff for xfce --- src/functions/desktops.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/functions/desktops.rs b/src/functions/desktops.rs index af92a70..ad90ea0 100755 --- a/src/functions/desktops.rs +++ b/src/functions/desktops.rs @@ -56,6 +56,11 @@ fn install_xfce() { "lightdm-gtk-greeter", "lightdm-gtk-greeter-settings", "xfce4-goodies", + "pipewire", + "pipewire-pulse", + "pipewire-jack", + "pipewire-alsa", + "pavucontrol", ]); files_eval( files::append_file( From fc8f06b8aceec7cdb0b625a237661fe7274b6046 Mon Sep 17 00:00:00 2001 From: axtloss Date: Wed, 6 Jul 2022 14:01:09 +0200 Subject: [PATCH 2/6] make user use a more secure password encryption --- src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/args.rs b/src/args.rs index 3bdf1aa..009a3e9 100644 --- a/src/args.rs +++ b/src/args.rs @@ -225,7 +225,7 @@ pub struct NewUserArgs { #[clap(long, aliases=&["has-root", "sudoer", "root"])] pub hasroot: bool, - /// The password to set. NOTE: Takes hashed password, use `openssl passwd -1 ` to generate the hash. + /// The password to set. NOTE: Takes hashed password, use `openssl passwd -6 ` to generate the hash. /// When not providing a password openssl jumps into an interactive masked input mode allowing you to hide your password /// from the terminal history. pub password: String, From 764916d1c8c107b11f6b934922d3bfdfec506f22 Mon Sep 17 00:00:00 2001 From: jasio Date: Fri, 8 Jul 2022 15:28:20 +0200 Subject: [PATCH 3/6] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e149eab..407ee44 100755 --- a/README.md +++ b/README.md @@ -5,8 +5,12 @@

Jade

- Discord - The + License + GitHub isses + GitHub pull requests
+ Twitter Follow + Discord + The maintainer of this repository

Jade is the backend and TUI installer for crystal linux.

From a678a1f1cd7858a33c452eebe9adccad1fb0e603 Mon Sep 17 00:00:00 2001 From: axtloss Date: Sun, 17 Jul 2022 20:06:08 +0200 Subject: [PATCH 4/6] add flatpak to setup instructions and warn about jade taking a hashed password --- README.md | 13 ++++++++++--- src/functions/desktops.rs | 11 +++++++---- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 407ee44..62900be 100755 --- a/README.md +++ b/README.md @@ -67,16 +67,18 @@ jade networking getcryst.al --ipv6 ### configure users ```sh # make a new user called nonRootHaver, without sudo and easytohack as the password -jade users newUser nonRootHaver easytohack +# jade uses prehashed passwords for user creation, so you'll have to calculate the hash of the password +jade users newUser nonRootHaver $(openssl passwd -1 easytohack) # make a user called rootHaver, with sudo and omgsosuperhardtohack as the password -jade users newUser rootHaver omgsosuperhardtohack --sudoer +jade users newUser rootHaver $(openssl passwd -1 omgsuperhardtohack) --sudoer ``` ### set root password ```sh # set the root password to 'muchSecurity,veryHardToHack' -jade users rootPass muchSecurity,veryHardToHack +# the same hashing thing goes for root passwords +jade users rootPass $(openssl passwd -1 muchSecurity,veryHardToHack) ``` ### install a desktop environment @@ -93,6 +95,11 @@ jade desktops gnome jade setup-timeshift ``` +### setup flatpak +```sh +jade flatpak +``` + ### debug logging debug messages: diff --git a/src/functions/desktops.rs b/src/functions/desktops.rs index ad90ea0..5d6efcf 100755 --- a/src/functions/desktops.rs +++ b/src/functions/desktops.rs @@ -147,11 +147,14 @@ fn install_kde() { fn install_gnome() { install(vec![ - "xorg", - "gnome", - "gnome-tweaks", - "chrome-gnome-shell", + "gnome-shell", + "nautilus", + "gnome-terminal", + "gnome-control-center", + "xdg-user-dirs", "gdm", + "xorg", + "gnome-tweaks". ]); enable_dm("gdm"); } From d7f77149858852bd02d36947a507fff36892eb74 Mon Sep 17 00:00:00 2001 From: axtloss Date: Sun, 17 Jul 2022 20:13:25 +0200 Subject: [PATCH 5/6] , --- src/functions/desktops.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/desktops.rs b/src/functions/desktops.rs index 5d6efcf..3039da8 100755 --- a/src/functions/desktops.rs +++ b/src/functions/desktops.rs @@ -154,7 +154,7 @@ fn install_gnome() { "xdg-user-dirs", "gdm", "xorg", - "gnome-tweaks". + "gnome-tweaks", ]); enable_dm("gdm"); } From 10544e88e0f41b795cbdb377ac4f2942810e72c6 Mon Sep 17 00:00:00 2001 From: axtloss Date: Sun, 17 Jul 2022 20:17:03 +0200 Subject: [PATCH 6/6] imagine using secure hashing algorithms --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 62900be..30d72af 100755 --- a/README.md +++ b/README.md @@ -68,10 +68,10 @@ jade networking getcryst.al --ipv6 ```sh # make a new user called nonRootHaver, without sudo and easytohack as the password # jade uses prehashed passwords for user creation, so you'll have to calculate the hash of the password -jade users newUser nonRootHaver $(openssl passwd -1 easytohack) +jade users newUser nonRootHaver $(openssl passwd -6 easytohack) # make a user called rootHaver, with sudo and omgsosuperhardtohack as the password -jade users newUser rootHaver $(openssl passwd -1 omgsuperhardtohack) --sudoer +jade users newUser rootHaver $(openssl passwd -6 omgsuperhardtohack) --sudoer ``` ### set root password