# Turn off unwanted services systemctl disable {tab-tab} systemctl disable avahi-daemon.service avahi-daemon.socket bluetooth.service dbus-org.bluez.service dbus-org.freedesktop.Avahi.service \ dbus-org.freedesktop.ModemManager1.service dm-event.socket dmraid-activation.service dnf-makecache.timer hypervfcopyd.service hypervkvpd.service \ hypervvssd.service iscsid.socket iscsi.service iscsiuio.socket lvm2-lvmetad.socket lvm2-lvmpolld.socket lvm2-monitor.service mdmonitor.service \ ModemManager.service multipathd.service nfs-client.target pcscd.socket remote-fs.target vgauthd.service vmtoolsd.service ; systemctl enable sshd.service ; systemctl start sshd.service - - - - - # Setup local repos mkdir /etc/yum.repos.d/factory ; mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/factory/ ; cp ~/livecd-creator/MontanaLinux/lan-f24-x86_64.repo /etc/yum.repos.d/ # Turn off deltarpms echo "deltarpm=no" >> /etc/dnf/dnf.conf - - - - - # Switch to lightdm systemctl enable --force lightdm.service # Customize CS Lab machines for Fedora 24 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/f24/default/standard/f24-cs.png cd /usr/share/backgrounds/f24/default/standard/ ; wget http://img.cs.montana.edu/linux/.private/eps254/f24-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 - - - - - - # Set SELINUX to permissive mode nano -w /etc/sysconfig/selinux # Download and install extras for classroom mkdir /students/stuff ; cd /students/stuff ; wget http://img.cs.montana.edu/linux/.private/eps254/bluej-317.tar.xz \ http://img.cs.montana.edu/linux/.private/eps254/greenfoot-242.tar.xz \ http://img.cs.montana.edu/linux/.private/eps254/matlab-2016a-classroom.tar.xz \ http://img.cs.montana.edu/linux/.private/eps254/netbeans-81.tar.xz ; cd / ; tar xvJf /students/stuff/matlab-2016a-classroom.tar.xz ; tar xvJf /students/stuff/netbeans-81.tar.xz ; tar xvJf /students/stuff/bluej-317.tar.xz ; tar xvJf /students/stuff/greenfoot-242.tar.xz ; \rm /students/stuff/* # Download and install extras for research # Need to create - - - - - # nano -w /etc/hosts echo "153.90.127.183 esus.cs.montana.edu esus" >> /etc/hosts # 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 - - - - - # /root/bin/make-windows-default mkdir /root/bin/ ; echo "grub2-set-default 'Windows 7 (loader) (on /dev/sda1)'" > /root/bin/make-windows-default ; chmod 755 /root/bin/make-windows-default - - - - - # This was causing the /student partition to fill up periodically, so just in case # crontab -e */10 * * * * /bin/rm -rf /students/*/.xsession-errors - - - - - # Join machine to MSU directory realm join --user=b22r163 MSU.MONTANA.EDU # Verify it worked getent passwd b22r163 # Fix group policy parsing until sssd 1.14 comes out Change use_fully_qualified_names = True ...to use_fully_qualified_names = False ...and add ad_gpo_access_control = disabled ...change fallback_homedir = /students/%u@%d ...to fallback_homedir = /students/%u systemctl restart sssd.service # So homedirs will be created with the desired permissions chmod 700 /etc/skel - - - - -