Install latest ChefDK nightly build through crontab

2016/10/24

To install the latest ChefDK nightly build at 1 AM every day, put this in the root crontab:

0 1 * * * curl https://omnitruck.chef.io/install.sh | bash -s —- -p -P chefdk

Note 1: Credits go to StackOverflow, IT blogs and alike, sites that helped me with the code when searching for solutions.
Note 2: Be aware that when copy-pasting, the quotes and possibly other characters get messed up by WordPress, you’ll have to replace them.


Install useful stuff on Fedora 23

2016/01/12

Execute the following commands within sudo:

su –

## Install updates
dnf update

## Add additional repositories
#rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
dnf install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

## Install audio and video codecs
## Next command represents a single line
dnf install gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-ugly gstreamer1-plugins-bad-free gstreamer1-plugins-bad-free gstreamer1-plugins-bad-freeworld gstreamer1-plugins-bad-free-extras ffmpeg
## Add HandBrake repo
dnf config-manager –add-repo=http://negativo17.org/repos/fedora-handbrake.repo
dnf install libdvdcss -y
dnf install HandBrake-gui -y

## Install additional desktop environments
## Check available and installed environments
dnf grouplist -v | grep environment
## Fedora 23 Workstation comes with Gnome, so comment corresponding line
## Fedora 23 Games comes with Xfce, so comment corresponding line
dnf install @xfce-desktop -y
dnf install @kde-desktop -y
dnf install @lxde-desktop -y
dnf install @gnome-desktop -y
dnf install @cinnamon-desktop -y
dnf install @mate-desktop -y
## If you want even more from mate environment, execute the following
dnf groupinstall mate-compiz -y
dnf groupinstall mate-applications -y

## If you have issues seeing the newly installed desktop environments
## run one of the following commands to switch the desktop manager:
systemctl enable lxdm.service -f
systemctl enable lightdm.service -f
systemctl enable gdm.service -f
systemctl enable kdm.service -f
## You can check the current running desktop manager like this:
systemctl list-units | grep -i manager

## You might consider useful to install a switcher for desktop environments
## if the default one is not shown in Gnome at the top-right corner
## The switcher will be available when logging to Fedora
## at the bottom-left corner
dnf install system-switch-displaymanger -y

## Install additional environments
dnf groupinstall workstation-product-environment -y
## The below environments are needed only if you want to code
dnf groupinstall developer-workstation-environment -y
dnf groupinstall web-server-environment -y

## Install utilities
dnf install smplayer -y
dnf install vlc -y
dnf install unzip -y
dnf install gimp -y
dnf install pidgin -y
dnf install qbittorrent -y
dnf install uget -y
dnf install VirtualBox -y
dnf install youtube-dl -y
dnf install wine -y # To run Windows programs

## Install Steam
dnf config-manager –add-repo=http://negativo17.org/repos/fedora-steam.repo
dnf -y install steam

## Install Adobe Flash player
## Adobe Repository 64-bit x86_64 ##
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
dnf install -y flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl

## Install cool games
dnf install -y supertuxkart
dnf install -y BlockOutII

## Install extra wallpapers on Fedora 23 environments
## Path for installed backgrounds is /usr/share/backgrounds/f23/extras
dnf install f23-backgrounds-extras-gnome -y
dnf install f23-backgrounds-extras-kde -y
dnf install f23-backgrounds-extras-xfce -y
dnf install f23-backgrounds-extras-mate -y

## Disable password entering on mounting NTFS partitions
cp /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy.bak
sed -i ‘s/auth_admin_keep/yes/g’ /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy

Useful content: www.if-not-true-then-false.com

Note 1: Credits go to StackOverflow, IT blogs and alike, sites that helped me with the code when searching for solutions.
Note 2: Be aware that when copy-pasting, the quotes and possibly other characters get messed up by WordPress, you’ll have to replace them.


%d bloggers like this: