# Turn off unwanted services systemctl | grep active | grep service | less systemctl disable servicename systemctl | grep active | grep socket | less systemctl disable socketname systemctl enable sshd.service ; systemctl start sshd.service firewall-cmd --list-all # Setup local repos cd /etc/yum.repos.d/ ; mkdir factory ; mv *.repo factory/ ; cp ~/livecd-creator/MontanaLinux/lan-f23-x86_64.repo /etc/yum.repos.d/ # Turn off deltarpms nano -w /etc/dnf/dnf.conf deltarpm=no # Switch to lightdm systemctl isolate multi-user.target systemctl enable --force lightdm.service # Customize CS Lab machines for Fedora 23 install # Enable Alt-Control-Backspace cd /etc/X11/xorg.conf.d/ ; wget http://img.cs.montana.edu/linux/.private/eps254/05-zap.conf # Customize LightDM login screen nano -w /etc/lightdm/lightdm-gtk-greeter.conf background=/usr/share/backgrounds/f23/default/standard/f23-cs.png cd /usr/share/backgrounds/f23/default/standard/ ; wget http://img.cs.montana.edu/linux/.private/eps254/f23-cs.png cd /etc/lightdm/lightdm.conf.d/ ; wget http://img.cs.montana.edu/linux/.private/eps254/50-remove-userlist.conf # Customize GRUB and set Windows to be default nano -w /etc/default/grub # change 5 seconds to 60 # comment out CONSOLE line GRUB_BACKGROUND=/boot/grub2/themes/system/cs.png cd /boot/grub2/themes/system/ ; wget http://img.cs.montana.edu/linux/.private/eps254/cslab-dualboot-fedora-win7.png ; mv cslab-dualboot-fedora-win7.png cs.png grub2-mkconfig -o /boot/grub2/grub.cfg grep Windows /boot/grub2/grub.cfg grub2-setdefault '' # Set SELINUX to permissive mode nano -w /etc/sysconfig/selinux # Download and install extras for classroom mkdir /home/stuff ; cd /home/stuff ; wget http://img.cs.montana.edu/linux/.private/eps254/bluej-315.tar.xz \ http://img.cs.montana.edu/linux/.private/eps254/greenfoot-242.tar.xz \ http://img.cs.montana.edu/linux/.private/eps254/matlab-2015a-classroom.tar.xz \ http://img.cs.montana.edu/linux/.private/eps254/netbeans-802-20150702.tar.xz ; cd / ; tar xvJf /home/stuff/matlab-2014b-classroom.tar.xz ; tar xvJf /home/stuff/netbeans72.tar.xz ; tar xvJf /home/stuff/bluej-314.tar.xz ; tar xvJf /home/stuff/greenfoot-240.tar.xz ; \rm /home/stuff/* # Download and install extras for research # Need to create # Update /etc/hosts for ypbind nano -w /etc/hosts 153.90.127.183 esus.cs.montana.edu esus systemctl isolate graphical.target # Do the following with X11 as user authconfig-gtk # Will prompt for sudo password NIS cs.montana.edu esus.cs.montana.edu Advanced Turn off finger print Add autocreate home directory # Configure printer system-config-printer Unlock # Will prompt for sudo password Add Network -> AppSocket/HP JetDirect HP LaserJet p4515x orca EPS 254 duplexer # For CS Photocopier Add LPD/LPR canonir6570.cs.montana.edu CS-Dept-Photocopier EPS 357 Photocopier Room Edit and add double-sided (Standard) printing # Print a test page # Back to being root # Make ypbind restart if needed systemctl edit ypbind.service [Service] Restart=always RestartSec=45