File tree Expand file tree Collapse file tree 13 files changed +260
-0
lines changed Expand file tree Collapse file tree 13 files changed +260
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ gnulinwiz AKA GNU/Linux Config Wizard: The ultimate post-installation setup assistant for Linux,
3
+ streamlining your configuration process with ease and precision.
4
+
5
+ Copyright (C) 2025 Andrew Kushyk
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+
1
21
pub mod commands;
2
22
pub mod configs;
3
23
pub mod env;
Original file line number Diff line number Diff line change
1
+ /*
2
+ gnulinwiz AKA GNU/Linux Config Wizard: The ultimate post-installation setup assistant for Linux,
3
+ streamlining your configuration process with ease and precision.
4
+
5
+ Copyright (C) 2025 Andrew Kushyk
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+
1
21
use colored:: Colorize ;
2
22
use std:: { io:: Write , process:: Command , process:: Stdio } ;
3
23
Original file line number Diff line number Diff line change
1
+ /*
2
+ gnulinwiz AKA GNU/Linux Config Wizard: The ultimate post-installation setup assistant for Linux,
3
+ streamlining your configuration process with ease and precision.
4
+
5
+ Copyright (C) 2025 Andrew Kushyk
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+
1
21
use super :: commands:: run_sudo_command;
2
22
use colored:: Colorize ;
3
23
use std:: path:: Path ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ gnulinwiz AKA GNU/Linux Config Wizard: The ultimate post-installation setup assistant for Linux,
3
+ streamlining your configuration process with ease and precision.
4
+
5
+ Copyright (C) 2025 Andrew Kushyk
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+
1
21
use colored:: Colorize ;
2
22
use std:: env:: var;
3
23
Original file line number Diff line number Diff line change
1
+ /*
2
+ gnulinwiz AKA GNU/Linux Config Wizard: The ultimate post-installation setup assistant for Linux,
3
+ streamlining your configuration process with ease and precision.
4
+
5
+ Copyright (C) 2025 Andrew Kushyk
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+
1
21
use super :: commands:: { run_sudo_command, run_sudo_command_with_stdin} ;
2
22
use colored:: Colorize ;
3
23
use std:: { fs:: read_to_string, path:: Path } ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ gnulinwiz AKA GNU/Linux Config Wizard: The ultimate post-installation setup assistant for Linux,
3
+ streamlining your configuration process with ease and precision.
4
+
5
+ Copyright (C) 2025 Andrew Kushyk
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+
1
21
use colored:: Colorize ;
2
22
use std:: { io:: stdin, process:: exit} ;
3
23
Original file line number Diff line number Diff line change
1
+ /*
2
+ gnulinwiz AKA GNU/Linux Config Wizard: The ultimate post-installation setup assistant for Linux,
3
+ streamlining your configuration process with ease and precision.
4
+
5
+ Copyright (C) 2025 Andrew Kushyk
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+
1
21
use super :: commands:: { run_sudo_command, run_user_command} ;
2
22
use colored:: Colorize ;
3
23
use std:: process:: { Command , Stdio } ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ gnulinwiz AKA GNU/Linux Config Wizard: The ultimate post-installation setup assistant for Linux,
3
+ streamlining your configuration process with ease and precision.
4
+
5
+ Copyright (C) 2025 Andrew Kushyk
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+
1
21
use colored:: Colorize ;
2
22
use std:: process:: Command ;
3
23
Original file line number Diff line number Diff line change
1
+ /*
2
+ gnulinwiz AKA GNU/Linux Config Wizard: The ultimate post-installation setup assistant for Linux,
3
+ streamlining your configuration process with ease and precision.
4
+
5
+ Copyright (C) 2025 Andrew Kushyk
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+
1
21
use crate :: functionality:: prog_fun:: print_setup_status_failed;
2
22
use std:: process:: exit;
3
23
Original file line number Diff line number Diff line change
1
+ /*
2
+ gnulinwiz AKA GNU/Linux Config Wizard: The ultimate post-installation setup assistant for Linux,
3
+ streamlining your configuration process with ease and precision.
4
+
5
+ Copyright (C) 2025 Andrew Kushyk
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+
1
21
/// struct for storing username and home path
2
22
pub struct UserCfg {
3
23
name : String ,
You can’t perform that action at this time.
0 commit comments