This is my basic setup for a laptop/desktop that I have for my family to use.
Debian Based
Should work on Debian, Ubuntu (all Ubuntu flavors)
Bash
sudo apt-get --assume-yes install ntp
sudo timedatectl set-timezone America/Detroit
sudo service ntp stop
sudo ntpdate us.pool.ntp.org
sudo service ntp start
echo nameserver 208.67.222.123 > /etc/resolv.conf
echo nameserver 208.67.220.123 >> /etc/resolv.conf
ifconfig eth0 | grep inet | awk '{ print $2 }'
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'
curl http://kittell.net/ip.phpRed Hat Based
Should work on Red Hat, Rocky, CentOS, and Fedora
This first part is only needed for Red Hat
Bash
# Red Hat subscription Setup - Start
sudo subscription-manager register --username <RedHat.com username> --password <RedHat.com password> --auto-attach
sudo subscription-manager refresh
# Red Hat subscription Setup - StopBash
sudo subscription-manager list
sudo subscription-manager repos > repolist.txt
osMajorVersion=$(cat /etc/redhat-release | grep -oP "[0-9]+" | head -1)
sudo subscription-manager repos --enable=rhel-${osMajorVersion}-for-x86_64-supplementary-rpms
sudo yum clean all
sudo yum repolist all
sudo yum -y update
sudo timedatectl set-timezone America/Detroit
sudo dnf install -y net-tools bind-utils nano wget
# Install Development Tools (Optional but suggested) - Start
sudo yum groupinstall 'Development Tools'
# Install Development Tools (Optional but suggested) - Stop
sudo yum -y install unzip bzip2Fedora Specific Programs
Bash
cd ~/
#http://www.binarytides.com/better-fedora-20-xfce/
sudo dnf -y update
sudo dnf clean packages
sudo dnf -y install wget curl bind-utils
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
sudo dnf -y install google-chrome-stable_current_x86_64.rpm
sudo dnf install http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm -y
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
sudo dnf install flash-plugin -y
sudo dnf install vlc -y
sudo dnf install nautilus*.rpm
dnf --setopt=clean_requirements_on_remove=false remove libreoffice\*
## Fedora 21/20/19/18/17/16/15/14/13/12 and CentOS/RHEL 7.2/6.8 ##
yum remove openoffice* libreoffice*
dnf -y remove abiword gnumeric osmo asunder midori
cd ~/
wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.2/binaries/en-US/Apache_OpenOffice_4.1.2_Linux_x86-64_install-rpm_en-US.tar.gz/download -O Apache_OpenOffice_4.1.2_Linux_x86-64_install-rpm_en-US.tar.gz
tar -xvf Apache_OpenOffice_4.1.2*
cd en-US
echo -e "exclude=openoffice.org-ure* libreoffice-ure*" >> /etc/dnf/dnf.conf
rpm -Uvh RPMS/*.rpm RPMS/desktop-integration/openoffice4.1.2-redhat-*.rpmOriginally Posted on April 9, 2018
Last Updated on December 10, 2025
Last Updated on December 10, 2025
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.