Last active
March 30, 2022 12:05
-
-
Save cjonstrup/e9513e517fd7c721a3aab9ae0adeb9f7 to your computer and use it in GitHub Desktop.
Fedora 3x - install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#System setup | |
sudo visudo //remove ask for password for wheel users | |
#Install vim | |
sudo dnf -y install vim | |
#Use fast mirror | |
sudo echo 'fastestmirror=true' >> /etc/dnf/dnf.conf | |
#Disable firewall | |
sudo systemctl disable firewalld && sudo systemctl stop firewalld | |
#Disable selinux | |
sudo sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config | |
#Update local packages | |
sudo dnf update | |
#Filewatchers | |
cat << EOF | sudo tee /etc/sysctl.d/98-local.conf | |
# 2^23 | |
fs.inotify.max_queued_events = 8388608 | |
# 2^16 | |
fs.inotify.max_user_instances = 65536 | |
# 2^22 | |
fs.inotify.max_user_watches = 4194304 | |
EOF | |
#Disable ipv6 | |
sudo vim /etc/sysctl.conf | |
net.ipv6.conf.default.disable_ipv6=1 | |
net.ipv6.conf.all.disable_ipv6=1 | |
#Reload sysctl | |
sudo sysctl -p | |
#Sysutils | |
sudo dnf -y install sysstat htop docker-compose apt tig | |
#Sysutils (optionals) | |
sudo dnf -y install glances | |
sudo dnf -y install cockpit && sudo systemctl enable cockpit.socket --now | |
#Change hostname | |
hostnamectl status # view current hostname | |
sudo hostnamectl set-hostname --static "robbinespu" # set up new hostname | |
#Docker | |
sudo dnf -y install dnf-plugins-core | |
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo | |
sudo dnf -y install docker-ce docker-ce-cli containerd.io | |
#Docker | |
sudo dnf -y install docker | |
#Docker setup | |
sudo systemctl enable docker | |
sudo gpasswd -a ${USER} docker && sudo systemctl restart docker && sudo newgrp docker | |
reboot | |
#Check docker | |
sudo docker run hello-world | |
#Docker GUI | |
sudo wget https://github.com/bcicen/ctop/releases/download/v0.7.7/ctop-0.7.7-linux-amd64 -O /usr/local/bin/ctop | |
sudo chmod +x /usr/local/bin/ctop | |
#Development stuff | |
sudo dnf -y install make php-cli composer php-mysqli php-pgsql php-bcmath php-xdebug nodejs && sudo dnf -y remove php-mysqlnd | |
#NVM node version manager | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash | |
#NVM Export to ~/.zshrc, ~/.profile, or ~/.bashrc | |
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
#NPM packages | |
sudo npm install -g gitlab-ci-local | |
#.NET | |
sudo dnf -y copr enable @dotnet-sig/dotnet && sudo dnf -y install dotnet | |
#Gnome | |
sudo dnf -y install gnome-tweak-tool | |
#RPM Fusion | |
https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/ | |
sudo dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm | |
sudo dnf -y install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
#Browsers | |
sudo dnf -y install chromium-freeworld | |
#Shell | |
sudo dnf -y install zsh util-linux-user | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
sudo chsh -s $(which zsh) $(whoami) | |
#Sublime | |
sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo && sudo dnf -y install sublime-text | |
#Follow guidelines | |
https://code.visualstudio.com/docs/setup/linux | |
https://slack.com/intl/en-dk/downloads/linux | |
https://www.jetbrains.com/toolbox-app/ | |
#Cleaning | |
sudo dnf -y install stacer | |
#Compression | |
sudo dnf -y install unzip p7zip unrar | |
#Restore Super + L | |
gsettings set org.gnome.desktop.lockdown disable-lock-screen false | |
#Laravel | |
composer global require laravel/installer | |
composer global require friendsofphp/php-cs-fixer | |
#Laravel Export to ~/.zshrc, ~/.profile, or ~/.bashrc | |
echo 'export PATH=$PATH:$HOME/.config/composer/vendor/bin' >> ~/.zshrc | |
#Bitdefender | |
sudo dnf -y install libnsl | |
#Google endpoint verfication | |
sudo curl -L "https://github.com/cjonstrup/dev-setup/raw/main/google-native-helper.tar.gz" -o google-native-helper.tar.gz | |
sudo tar zxvf google-native-helper.tar.gz -C / | |
#PHP kafka | |
sudo dnf -y install php-devel librdkafka-devel php-pear | |
sudo pecl install rdkafka | |
echo "extension=rdkafka.so" | sudo tee /etc/php.d/rdkafka.ini | |
# .gitconfig | |
cat << EOF >> .gitconfig | |
[user] | |
name = "YOUR NAME" | |
email = "YOUR EMAIL" | |
[push] | |
default = simple | |
[alias] | |
ci = commit -a -v | |
cv = commit -v | |
st = status | |
ss = status -s | |
br = branch -a -v | |
bm = branch --merged | |
pr = fetch --prune | |
pp = pull --prune | |
c = checkout | |
b = branch | |
m = merge | |
mm = merge master | |
stat = log --stat | |
[pull] | |
rebase = false | |
[core] | |
editor = vim | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment