You are not logged in.

#1 2021-02-19 17:53:09

AHoneybun
Member
From: Lakewood, Colorado
Registered: 2011-06-24
Posts: 14

Bash script to install System76 software on Arch Linux installs

Here is a link to it:

https://github.com/ahoneybun/Arch-LUKS- … install.sh

PR's are welcomed!


Happiness Engineer @ System76
Arch Linux + GNOME
[img]https://i.imgur.com/ZrQGJ9u.jpg[/img]

Offline

#2 2021-02-20 17:55:17

chaseleif
Member
From: Texas
Registered: 2020-08-01
Posts: 18

Re: Bash script to install System76 software on Arch Linux installs

Speaking just of the general script aspect ... there are a lot of arbitrary sleeps, I would remove all of those.

You could echo a prompt for what the command is just before the sudo commands, so they know what command they are entering their password for.

You could add a line at the top, "set -e", to tell the script to exit if any of the commands fails

Last edited by chaseleif (2021-02-20 17:57:57)

Offline

#3 2021-02-21 18:45:44

AHoneybun
Member
From: Lakewood, Colorado
Registered: 2011-06-24
Posts: 14

Re: Bash script to install System76 software on Arch Linux installs

Most of the sleeps are so that the user can see what is happening on screen. I think it would be best to just leave the ones around starting services for ones that need to do that using systemd. The 'set -e' sounds like a good idea as well. Thanks!


Happiness Engineer @ System76
Arch Linux + GNOME
[img]https://i.imgur.com/ZrQGJ9u.jpg[/img]

Offline

#4 2021-02-21 22:05:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: Bash script to install System76 software on Arch Linux installs

So all it's really doing is installing half a dozen aur packages - don't do that.  Just give interested users the list of packages.  If they are unable to install them on their own, there are far bigger problems.

You could make a meta-package if you really wanted.

Last edited by Trilby (2021-02-21 22:06:36)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2021-02-21 22:44:51

yochananmarqos
Member
Registered: 2020-02-05
Posts: 194

Re: Bash script to install System76 software on Arch Linux installs

Perhaps a meta package for each laptop model? For example, system76-serw12-meta.

Offline

#6 2021-02-23 20:15:54

AHoneybun
Member
From: Lakewood, Colorado
Registered: 2011-06-24
Posts: 14

Re: Bash script to install System76 software on Arch Linux installs

@Trilby : This is more useful for setting up the install of these packages quicker for my after my install is done.

@yochanamarqos : That would be nice though it would need to include the other AUR packages in itself which I'm not sure how it works with AUR packages.


Happiness Engineer @ System76
Arch Linux + GNOME
[img]https://i.imgur.com/ZrQGJ9u.jpg[/img]

Offline

#7 2021-02-23 20:27:00

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Bash script to install System76 software on Arch Linux installs

AHoneybun wrote:

@Trilby : This is more useful for setting up the install of these packages quicker for my after my install is done.

If you are using this more than once then you'll already have the compiled packages saved somewhere, just install them using pacman.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2021-02-23 20:44:59

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,679
Website

Re: Bash script to install System76 software on Arch Linux installs

Just create a metapackage then upload that and the dependencies to an openSUSE Build Service repository so you can install everything in one fell swoop.

Offline

#9 2021-02-23 23:59:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: Bash script to install System76 software on Arch Linux installs

Or if nothing else, at least install all the required dependencies first, then build all the packages, and install them all when they are all built.  There should only be two interactive steps requiring a user password: install the dependencies, and install the built packages.  As is, it could prompt the user for a password almost two dozen times at effectively random intervals, that'd be kinda' a PITA.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB