Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: ShadowAce; All

Anyone know a fairly easy way to get Linux set up the way you like, with all the programs you want, or most anyways, and make an instalation disk out of it? (I’ve got it down to about 3-4 hours getting Linux set back,up after reinstall, but putting back all,the settings and programs takes time. Woild be nice is one installation disk could get everything back with ease.


39 posted on 06/09/2022 8:23:51 AM PDT by Bob434 (.)
[ Post Reply | Private Reply | To 1 | View Replies ]


To: Bob434
I wrote a short script that I put on my /home directory.

Since /home is a separate partition/disk on my laptop, I can reinstall the OS at any point, and when I run this script, it automatically installs and configures the software I want.

Every time I install a new package, I'll add it into the script. Makes a vanilla install to be my preferred install.

For instance:

#!/bin/bash

if [ "$EUID" -ne 0 ]
  then echo "Please run as root"
  exit
fi

cp /home/Shadow/Shadow-user /etc/sudoers.d/.
cat /home/Shadow/fstab >> /etc/fstab
hostnamectl set-hostname laptop-name
apt-add-repository ppa:lucioc/sayonara
apt -y install /home/Shadow/Downloads/nordvpn-release_1.0.0_all.deb
apt -y install xfsprogs xfsdump attr quota
apt update
apt -y full-upgrade --allow-downgrades
apt -y install nordvpn
apt -y install kde-standard
apt -y install tuned terminator vim transmission xfreerdp flameshot
.
.
.
I (obviously) replaced my username with "Shadow" in the above snippet.

So--I perform a vanilla install, run this script (Usually another 20-30 minutes due to the update/upgrade process and the kde-install), and everything is back to the way I want it.

41 posted on 06/09/2022 8:45:46 AM PDT by ShadowAce (Linux - The Ultimate Windows Service Pack )
[ Post Reply | Private Reply | To 39 | View Replies ]

To: Bob434

Try the snapshot function of MX Linux. Get it set up, make a snapshot (in the menu, duck soup stupid easy), load it up on the next boot.


56 posted on 06/14/2022 12:10:44 PM PDT by tanstaafl.72555
[ Post Reply | Private Reply | To 39 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson