Skip to content

Instantly share code, notes, and snippets.

@sfloess
Last active November 5, 2021 13:51
Show Gist options
  • Save sfloess/1f34ecb8e9ad82c28a980a0124cba7a7 to your computer and use it in GitHub Desktop.
Save sfloess/1f34ecb8e9ad82c28a980a0124cba7a7 to your computer and use it in GitHub Desktop.
Configuration

Bare Metal and VM Configuration

Notes

Much of the information contained here can be externalized to Ansible.

Common

AutoFS

Home Page

  • /etc/auto.admin-ap
exports   -rw  admin-ap:/opt/exports
  • /etc/auto.cloud-storage
exports   -rw  cloud-storage:/mnt/md0/exports
  • /etc/auto.redhat-workstation
exports -rw redhat-workstation:/exports
home    -rw redhat-workstation:/home
opt     -rw redhat-workstation:/opt

root

cd /root
rm -rf .ssh .bashrc
ln -s /mnt/admin-ap/root/.ssh
ln -s /mnt/admin-ap/root/.bashrc
ln -s /mnt/admin-ap/root/Config
ln -s /mnt/admin-ap/root/Bin
ln -s /mnt/admin-ap/root/Development

Alt-F

Home page

cloud-storage (DLink-320)

Product Page

Configuration
  • Services -> User -> Configure -> Script to execute on powerup
#!/bin/sh

# Script to execute as the root user at boot time.
# You can loose your data or make the system inaccessible
# if using the wrong commands. You have been warned!
 
exec >> /var/log/user.log 2>&1

case "$1" in
	start)
		echo "Starting $0"

                mkdir /mnt/md0/exports/sdc
                mount --rbind /dev/sdc1 /mnt/md0/exports/sdc

                /mnt/md0/etc/init.d/debian start
		;;
	stop)
		echo "Stopping $0"
                 /mnt/md0/etc/init.d/debian stop
		;;
esac

DD-WRT

Home Page

How To

  • Mount cifs
    • /bin/mount.cifs //[host]/export [mount point dir] -o guest,sec=ntlm
    • /bin/mount.cifs //admin-ap/exports /opt/debian/mnt/admin-ap/exports -o guest,sec=ntlm

admin-ap

  • crontab
MAILTO=scot.floess@gmail.com
MAILFROM=cron@flossware.org

00 00 * * * /mnt/admin-ap/exports/FlossWare/public/OperatingSystem/Linux/Debian/usr/local/bin/update-debian.sh

00 01 * * * ssh server-01   /mnt/admin-ap/exports/FlossWare/public/OperatingSystem/Linux/Debian/usr/local/bin/update-debian.sh
00 02 * * * ssh server-02   /mnt/admin-ap/exports/FlossWare/public/OperatingSystem/Linux/Debian/usr/local/bin/update-debian.sh
00 03 * * * ssh server-03   /mnt/admin-ap/exports/FlossWare/public/OperatingSystem/Linux/Debian/usr/local/bin/update-debian.sh
00 04 * * * ssh server-04   /mnt/admin-ap/exports/FlossWare/public/OperatingSystem/Linux/Debian/usr/local/bin/update-debian.sh
00 05 * * * ssh storage     /mnt/admin-ap/exports/FlossWare/public/OperatingSystem/Linux/Debian/usr/local/bin/update-debian.sh
00 06 * * * ssh desktop-ap  /mnt/admin-ap/exports/FlossWare/public/OperatingSystem/Linux/Debian/usr/local/bin/update-debian.sh
00 07 * * * ssh pi-01       /mnt/admin-ap/exports/FlossWare/public/OperatingSystem/BSD/FreeBSD/usr/local/bin/update-freebsd.sh
00 08 * * * ssh pi-02       /mnt/admin-ap/exports/FlossWare/public/OperatingSystem/Linux/Debian/usr/local/bin/update-debian.sh
00 00 * * * ssh app-server  /mnt/admin-ap/exports/FlossWare/public/OperatingSystem/BSD/FreeBSD/usr/local/bin/update-freebsd.sh
00 10 * * * ssh workstation /mnt/admin-ap/exports/FlossWare/public/OperatingSystem/BSD/FreeBSD/usr/local/bin/update-freebsd.sh

00 11 * * * ssh redhat-workstation /mnt/admin-ap/exports/FlossWare/public/OperatingSystem/Linux/Fedora/usr/local/bin/update-fedora.sh

00 12 * * * ssh -p 2222 admin-ap   "opkg update ; opkg upgrade"                                            
00 13 * * * ssh -p 2222 den-ap     "opkg update ; opkg upgrade"                                            
00 14 * * * ssh -p 2222 desktop-ap "opkg update ; opkg upgrade"

den-ap (Netgear wndrv4)

Product Page

Configuration
  • Administration -> Commands -> Save Startup
startup() {
    echo "Running modprobe" 2>&1 >> /tmp/flossware.log

    /sbin/modprobe cifs  2>&1 >> /tmp/flossware.log
    /sbin/modprobe fuse  2>&1 >> /tmp/flossware.log

    sleep 25s

    ln -s /opt/var/yp /var/yp

    /opt/bin/domainname flossware.com

    /opt/etc/init.d/rc.unslung start 2>&1 > /tmp/flossware.log

    mkdir -p /opt/mnt/family-ap/exports
    mount.cifs //192.168.168.2/exports /opt/mnt/family-ap/exports -o rw,noperm,guest,workgroup=FLOSSWARE,sec=ntlm 2>&1 >> /tmp/flossware.log
}

startup &

basement-ap (Linksys EA6300)

Product Page

bedroom-ap (Buffalo WZR-1750 DHPD)

Product Page

Configuration
  • Administration -> Commands -> Save Startup
startup() {
     echo "Running modprobe" 2>&1 >> /tmp/flossware.log

     /sbin/modprobe cifs  2>&1 >> /tmp/flossware.log
     /sbin/modprobe isofs 2>&1 >> /tmp/flossware.log
     /sbin/modprobe nfsd  2>&1 >> /tmp/flossware.log
     /sbin/modprobe nfs   2>&1 >> /tmp/flossware.log
     /sbin/modprobe xfs   2>&1 >> /tmp/flossware.log
     
     sleep 25s

     #mkdir -p /opt/debian/mnt/family-ap/exports
     #mount.cifs //192.168.168.2/exports /opt/debian/mnt/family-ap/exports -o rw,noperm,guest,workgroup=FLOSSWARE,sec=ntlm 2>&1 >> /tmp/flossware.log

     echo "Attempting to mount.cifs" 2>&1 >> /tmp/flossware.log

     # For entware
     mkdir -p /opt/mnt/admin-ap/exports
     #mount.nfs -o nolock admin-ap:/opt/exports /opt/mnt/admin-ap/exports
     /bin/mount.cifs //admin-ap/exports /opt/mnt/admin-ap/exports -o guest,sec=ntlm 2>&1 >> /tmp/flossware.log
 
     # For debian
     mkdir -p /opt/debian/mnt/admin-ap/exports
     #mount.nfs -o nolock admin-ap:/opt/exports /opt/debian/mnt/admin-ap/exports
     /bin/mount.cifs //admin-ap/exports /opt/debian/mnt/admin-ap/exports -o guest,sec=ntlm 2>&1 >> /tmp/flossware.log

     /opt/etc/init.d/rc.unslung start 2>&1 >> /tmp/flossware.log
 }

startup &

cloud-ap (Netgear R9000)

Product Page

Configuration
  • Administration -> Commands -> Save Startup
startup() {
     echo "nameserver 192.168.168.1" > /etc/resolv.conf

     echo "Running modprobe" 2>&1 >> /tmp/flossware.log

     /sbin/modprobe cifs  2>&1 >> /tmp/flossware.log
     /sbin/modprobe isofs 2>&1 >> /tmp/flossware.log
     /sbin/modprobe nfsd  2>&1 >> /tmp/flossware.log
     /sbin/modprobe nfs   2>&1 >> /tmp/flossware.log
     /sbin/modprobe xfs   2>&1 >> /tmp/flossware.log
     
     sleep 25s

     # Figure out which is the HDD
     df -h | grep sda | grep 698

     if [ $? -eq 0 ]
     then
         export OPT_PARTITION=/dev/sdb1
         export EXPORTS_PARTITION=/dev/sda1
     else
         export OPT_PARTITION=/dev/sda1
         export EXPORTS_PARTITION=/dev/sdb1
     fi

     echo "Partition for opt:      [${OPT_PARTITION}]" >> /tmp/flossware.log
     echo "Partition for exports:  [${EXPORTS_PARTITION}]" >> /tmp/flossware.log

     mkdir -p /opt
     mount -t xfs ${OPT_PARTITION} /opt

     mkdir -p /opt/exports
     mount ${EXPORTS_PARTITION} /opt/exports

     mkdir -p /opt/debian/exports
     mount ${EXPORTS_PARTITION} /opt/debian/exports

     mkdir -p /opt/mnt/bedroom-ap/exports
     mount.nfs -o nolock bedroom-ap:/opt/exports /opt/mnt/bedroom-ap/exports 2>&1 >> /tmp/flossware.log

     mkdir -p /opt/debian/mnt/bedroom-ap/exports
     mount.nfs -o nolock bedroom-ap:/opt/exports /opt/debian/mnt/bedroom-ap/exports 2>&1 >> /tmp/flossware.log

     # mkdir -p /opt/debian/mnt/family-ap/exports
     # mount.cifs //192.168.168.2/exports /opt/debian/mnt/family-ap/exports -o rw,noperm,guest,workgroup=FLOSSWARE,sec=ntlm 2>&1 >> /tmp/flossware.log

     mkdir -p /opt/mnt/den-ap/exports
     mount.nfs -o nolock den-ap:/opt/exports /opt/mnt/den-ap/exports 2>&1 >> /tmp/flossware.log

     mkdir -p /opt/debian/mnt/den-ap/exports
     mount.nfs -o nolock den-ap:/opt/exports /opt/debian/mnt/den-ap/exports 2>&1 >> /tmp/flossware.log

     mkdir -p /opt/mnt/desktop-ap/exports
     mount.nfs -o nolock desktop-ap:/exports /opt/mnt/desktop-ap/exports

     mkdir -p /opt/debian/mnt/desktop-ap/exports
     mount.nfs -o nolock desktop-ap:/exports /opt/debian/mnt/desktop-ap/exports

     echo "mounts..." /tmp/flossware.log
     df -h >> /tmp/flossware.log

     chroot /opt/debian /usr/sbin/sysctl -p

     /opt/etc/init.d/rc.unslung start 2>&1 >> /tmp/flossware.log
 }

startup &
  • Debian: /etc/sysctl.conf
fs.inotify.max_user_instances=10000
fs.inotify.max_user_watches=640000

desktop-ap (Netgear R9000)

Product Page

Configuration
  • Administration -> Commands -> Save Startup
startup() {
     echo "Running modprobe" 2>&1 >> /tmp/flossware.log

     /sbin/modprobe cifs  2>&1 >> /tmp/flossware.log
     /sbin/modprobe isofs 2>&1 >> /tmp/flossware.log
     /sbin/modprobe nfsd  2>&1 >> /tmp/flossware.log
     /sbin/modprobe nfs   2>&1 >> /tmp/flossware.log
     /sbin/modprobe xfs   2>&1 >> /tmp/flossware.log
     
     sleep 25s

     # Figure out which is the HDD
     df -h | grep sda | grep 931

     if [ $? -eq 0 ]
     then
         export OPT_PARTITION=/dev/sdb1
         export EXPORTS_PARTITION=/dev/sda1
     else
         export OPT_PARTITION=/dev/sda1
         export EXPORTS_PARTITION=/dev/sdb1
     fi

     echo "Partition for exports:  [${EXPORTS_PARTITION}]" >> /tmp/flossware.log

     mkdir -p /opt
     mount -t xfs ${OPT_PARTITION} /opt

     mkdir -p /opt/exports
     mount ${EXPORTS_PARTITION} /opt/exports

     mkdir -p /opt/debian/exports
     mount ${EXPORTS_PARTITION} /opt/debian/exports

     mkdir -p /opt/mnt/admin-ap/exports
     mount.nfs -o nolock admin-ap:/opt/exports /opt/mnt/admin-ap/exports

     mkdir -p /opt/debian/mnt/admin-ap/exports
     mount.nfs -o nolock admin-ap:/opt/exports /opt/debian/mnt/admin-ap/exports

     # mkdir -p /opt/debian/mnt/family-ap/exports
     # mount.cifs //192.168.168.2/exports /opt/debian/mnt/family-ap/exports -o rw,noperm,guest,workgroup=FLOSSWARE,sec=ntlm 2>&1 >> /tmp/flossware.log

     # mkdir -p /opt/mnt/cloud-ap/exports
     # mount.nfs -o nolock cloud-ap:/exports /opt/mnt/cloud-ap/exports

     # mkdir -p /opt/debian/mnt/cloud-ap/exports
     # mount.nfs -o nolock cloud-ap:/exports /opt/debian/mnt/cloud-ap/exports

     /opt/etc/init.d/rc.unslung start 2>&1 >> /tmp/flossware.log
 }

startup &
  • crontab
MAILTO=scot.floess@gmail.com
MAILFROM=cron@flossware.org

00 00,12 * * *  /mnt/admin-ap/exports/FlossWare/public/Host/desktop-ap/backup_admin-ap.sh
00 01,13 * * *  /mnt/admin-ap/exports/FlossWare/public/Host/desktop-ap/backup_storage.sh
00 02,14 * * *  /mnt/admin-ap/exports/FlossWare/public/Host/desktop-ap/backup_desktop-ap.sh
00 03,15 * * *  /mnt/admin-ap/exports/FlossWare/public/Host/desktop-ap/backup_redhat-workstation.sh
00 04    * * 6  /mnt/admin-ap/exports/FlossWare/public/Host/desktop-ap/backup_admin-ap.sh --delete
00 05    * * 6  /mnt/admin-ap/exports/FlossWare/public/Host/desktop-ap/backup_storage.sh --delete
00 06    * * 6  /mnt/admin-ap/exports/FlossWare/public/Host/desktop-ap/backup_desktop-ap.sh --delete
00 07    * * 6  /mnt/admin-ap/exports/FlossWare/public/Host/desktop-ap/backup_redhat-workstation.sh --delete
00 08,20 * * *  /etc/init.d/megasync stop ; /etc/init.d/megasync start
00 09,21 * * *  /usr/local/bin/mega-du -h

Entware

Home Page

Debian

Home Page

/chroot-services.list
rsyslog
rpcbind
cron
nfs-kernel-server
postfix
ssh
Cobbler

Home Page

  • TFTP

    • cd /srv/tftp
    • rmdir images
    • ln -s /var/www/cobbler/images
  • /etc/apache2/apache.conf

<Directory />                                                                                                          
        Options FollowSymLinks                                                                                         
        AllowOverride None                                                                                             
#       Require all denied                                                                                             
        Require all granted                                                                   dnf -y install nfs-utils                          
</Directory>
  • /usr/sbin/apache2ctl
start)                                                                                                                 
    # ssl_scache shouldn't be here if we're just starting up.                                                          
    # (this is bad if there are several apache2 instances running)                                                     
    rm -f ${APACHE_RUN_DIR:-/var/run/apache2}/*ssl_scache*                                                             
                                                                                                                       
    need_systemd=false                                                                                                 
    if [ -z "$APACHE_STARTED_BY_SYSTEMD" ] ; then                                                                      
        case "$(readlink -f /proc/1/exe)" in                                                                           
        *systemd*)                                                                                                     
            #need_systemd=true                                                                                         
            need_systemd=false                                                                                         
            ;;                                                                                                         
        *)                                                                                                             
  • ln -s /lib/modules/4.4.228 /lib/modules/uname -r`
  • insmod isofs
Plex

Home Page

  • Install

    • wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | apt-key add -
    • /etc/apt/sources.list: deb https://downloads.plex.tv/repo/deb public main
    • apt install plexmediaserver
    • cd /usr/lib/plexmediaserver ; cp /usr/lib/plexmediaserver/Resources/start.sh .
  • /etc/init.d/plexmediaserver

# Read configuration variable file if it is present
[ -r /etc/default/plexmediaserver ] && . /etc/default/plexmediaserver

plex_running=`ps ax | grep "\./Plex Media Server" | awk '{ print $1 }' | wc -l`

export LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib:$LD_LIBRARY_PATH

case "$1" in
    start)
    if [ "$plex_running" -gt 1 ]; then
        echo "Plex already running..."
        exit 0
    fi  
    echo -n "Starting Plex Media Server: "
    #/usr/lib/plexmediaserver/Resources/start.sh & >/dev/null 2>&1
    #/usr/lib/plexmediaserver/Resources/start.sh
    /usr/lib/plexmediaserver/start.sh & >/dev/null 2>&1
    #su -l $PLEX_MEDIA_SERVER_USER -c "/usr/sbin/start_pms &" >/dev/null 2>&1
    sleep 1
    echo "done"
    ;;  
    stop)
    if [ "$plex_running" -eq 1 ]; then
        echo "Plex Media Server is not running (no process found)..."
        exit 0
    fi  
    echo -n "Killing Plex Media Server: "
    # Trying to kill the Plex Media Server itself but also the Plug-ins
    ps ax | grep "Plex Media Server" | awk '{ print $1 }' | xargs kill -15 >/dev/null 2>&1
    ps ax | grep "Plex Plug-in" | awk '{ print $1 }' | xargs kill -15 >/dev/null 2>&1
    ps ax | grep "Plex DLNA Server" | awk '{ print $1 }' | xargs kill -15 >/dev/null 2>&1
    ps ax | grep "Plex Tuner Service" | awk '{ print $1 }' | xargs kill -15 >/dev/null 2>&1
    ps ax | grep "Plex Media Scanner" | awk '{ print $1 }' | xargs kill -15 >/dev/null 2>&1
    ps ax | grep "Plex DLNA Server" | awk '{ print $1 }' | xargs kill -15 >/dev/null 2>&1
    ps ax | grep "Plex Relay" | awk '{ print $1 }' | xargs kill -15 >/dev/null 2>&1
    ps ax | grep "Plex Transcoder" | awk '{ print $1 }' | xargs kill -15 >/dev/null 2>&1
    ps ax | grep "Plex Script Host" | awk '{ print $1 }' | xargs kill -15 >/dev/null 2>&1
    sleep 1
    echo "done"
    ;;  
    restart)
    sh $0 stop
    sh $0 start
    ;;  
    status)
        if [ "$plex_running" -gt 1 ]; then
                echo "Plex Media Server process running."
    else
        echo "It seems that Plex Media Server isn't running (no process found)."
        fi  
    ;;  
    *)  
    echo "Usage: $0 {start|stop|restart|status}"
    exit 1
    ;;  
esac

exit 0
Postfix

Home Page

  • /etc/postfix/main.cf
    • append_dot_mydomain = yes
    • relayhost = mail.flossware.com
    • mynetworks = 127.0.0.0/8 192.168.1680/24 [::ffff:127.0.0.0]/104 [::1]/128

FreeBSD

Home Page

Configuration

AutoFS

Home Page

  • /etc/auto_master
/mnt/admin-ap           /etc/auto.admin-ap
/mnt/cloud-storage      /etc/auto.cloud-storage
/mnt/family-ap          /etc/auto.family-ap
/mnt/redhat-workstation /etc/auto.redhat-workstation
  • /etc/auto.family-ap
exports -fstype=smbfs,rw ://family-ap/exports
fail2ban

Home Page

  • /usr/local/etc/fail2ban>/action.d/ipfw.conf: actionban = ipfw add 64000 <blocktype> tcp from <ip> to <localhost> <port>
  • /usr/local/etc/fail2ban/jail.d/ssh-ipfw.local
[ssh-ipfw]
enabled  = true
filter   = sshd
action   = ipfw[name=SSH, port=ssh, protocol=tcp]
logpath  = /var/log/auth.log
findtime = 31557600
maxretry = 2
bantime  = 31557600
  • /etc/rc.comf
firewall_enable="YES"                                                                                                  
firewall_type="open"                                                                                                   
firewall_logging="YES"                                                                                                 
firewall_logdeny="YES"                                                                                                 
#firewall_myservices="22/tcp 111/tcp 2049/tcp 2049/udp 123/udp"                                                        
firewall_allowservices="any"                                                                                           
                                                                                                                       
fail2ban_enable="YES"
/etc/rc.conf
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"

zfs_enable="YES"

powerd_enable="YES"

hostname="rhw-desktop"
ifconfig_vtnet0="DHCP"

rpcbind_enable="YES"
rpc_lockd_enable="YES"

ntpdate_enable="YES"
ntpd_enable="YES"

autofs_enable="YES"

nisdomainname="flossware.com"
nis_client_enable="yes"
nis_client_flags="-m -S flossware.com,192.168.168.3"

sshd_enable="YES"

sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

postfix_enable="YES"

saver="green"
blanktime="10"
scrnmap="NO"

dbus_enable="YES"

webcamd_enable="YES"

linux_enable="YES"

xrdp_enable="YES"                                                                                                      
xrdp_sesman_enable="YES"
Swap file:
dd if=/dev/zero of=/var/swapfile bs=1m count=512
chmod 0600 /var/swapfile

vi /etc/fstab
    md99	none	swap	sw,file=/var/swapfile,late	0	0
    
swapon -aL

Install

  • pkg install -y automount htop rsync vim sudo screen

How To

  • Mount cifs
    • mount -t smbfs -o-N //[host]/[export] [mount point dir]
    • mount -t smbfs -o-N //family-ap/exports /tmp/fa

workstation (HP Pavilion 20)

Product Page

  • pkg install automount drm-kmod xorg lxde-meta xdm tigervnc-server openjdk8 openjdk11 openjdk17 htop vim rsync terminator bash bash-completion libreoffice postfix git firefox chromium virt-manager sudo

  • /etc/exports

V4: / -network=192.168.168.0 -mask=255.255.255.0
/exports -maproot=root: -network=192.168.168.0 -mask=255.255.255.
  • /etc/rc.conf
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"

kld_list="radeonkms"   

hostname="workstation"
ifconfig_re0="DHCP"
#ifconfig_re0="inet 192.168.168.31 netmask 255.255.255.0"
#defaultrouter="192.168.168.2"

rpcbind_enable="YES"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"

powerd_enable="YES"
powerd_flags="-m 1400 -M 1400"
#powerd_flags="-a hiadaptive"
#powerd_flags="-a max"

ntpdate_enable="YES"
ntpd_enable="YES"

nfs_server_enable="YES"
nfs_server_flags="-u -t -n 4"
nfsv4_server_enable="YES"
nfsuserd_enable="YES"
mountd_flags="-r"
mountd_enable="YES"

nisdomainname="flossware.com"
nis_client_enable="yes"
nis_client_flags="-m -S flossware.com,192.168.168.3"

autofs_enable="YES"

sshd_enable="YES"

sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

postfix_enable="YES"

dbus_enable="YES"
xdm_enable="YES"

#xrdp_enable="YES"
#xrdp_sesman_enable="YES"

#activemq_enable="YES"
#jenkins_enable="YES"
#nexus_enable="YES"
#plexmediaserver_enable="YES"

pi-01 (Raspberry Pi-3)

Home Page

  • Delete user: pw deluser freebsd

Linux

This section works regardless of using a chroot'd Operating System: in other words, common.

Home Page

Configuration

AutoFS:

Home Page

  • /etc/auto.master
/mnt/admin-ap           /etc/auto.admin-ap
/mnt/cloud-storage      /etc/auto.cloud-storage
/mnt/family-ap          /etc/auto.family-ap
/mnt/redhat-workstation /etc/auto.redhat-workstation
  • /etc/auto.family-ap
exports -fstype=cifs,rw,noperm,guest ://192.168.168.2/exports
MegaNZ

Home Page

  • /usr/lib/systemd/system/mega-sync.service
[Unit]
Description=Mega Sync Service
After=network.target

[Service]
Type=simple
User=root
WorkingDir=~
ExecStart=/usr/bin/mega-sync
ExecStop=/usr/bin/pkill mega-cmd-server

[Install]
WantedBy=network.target
Plex: /etc/yum.repos.d/plex.repo

Home Page

[PlexRepo]
name=PlexRepo
baseurl=https://downloads.plex.tv/repo/rpm/$basearch/
enabled=1
gpgkey=https://downloads.plex.tv/plex-keys/PlexSign.key
gpgcheck=1
CentOS

Home Page

Install
  • dnf install -y epel-release ; dnf install -y autofs ypbind htop rsync htop autofs ypbind vim sudo screen java-1.8.0-openjdk-devel nfs-utils
Debian

Home Page

Apps
  • Adopt A JDK
    • wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
  • MegaNZ
  • Plex
    • Plex Downloads
    • wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | apt-key add -
  • Vivaldi
    • wget -qO- https://repo.vivaldi.com/archive/linux_signing_key.pub | sudo apt-key add -
Configuration
  • /etc/apt/sources.list:
deb http://ftp.debian.org/debian buster main contrib non-free
deb http://ftp.debian.org/debian buster-updates main contrib non-free
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb http://ftp.debian.org/debian buster-backports main contrib non-free

deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ buster main

deb https://repo.vivaldi.com/archive/deb/ stable main
deb https://downloads.plex.tv/repo/deb public main

deb [ trusted=yes ] http://apt.flossware.com:8080/repo/apt/apps buster main
Install
  • Apps: apt install -y autofs nis htop rsync gnupg2 vim sudo screen
  • Java: apt install -y adoptopenjdk-8-hotspot adoptopenjdk-11-hotspot adoptopenjdk-14-hotspot
  • GUI: apt install -y lxde vivaldi-stable
cloud-host-01 (Toshiba Satellite s855-s5378)

Product Page

  • Grub
    • /etc/default/grub: GRUB_CMDLINE_LINUX_DEFAULT="... consoleblank=[seconds to blank]"
      • GRUB_CMDLINE_LINUX_DEFAULT="quiet consoleblank=10"
    • update-grub
    • systemctl mask suspend.target
  • Power
    • apt-get install cpufrequtils
    • for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do [ -f $CPUFREQ ] || continue; echo -n performance > $CPUFREQ; done
  • Bridge
    • /etc/network/interfaces.d/bridge
auto bridge
    iface bridge inet dhcp 
    bridge_ports enp1s0
  • /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback 
cloud-host-02 (Dell Precision 490)

Product Page

cloud-host-03 (Dell Precision T5400)

Product Page

cloud-server (HP Pavilion 20)

Product Page

As Desktop

  • apt install firmware-amd-graphics
  • LXDE: /etc/lightdm/lightdm.conf: greeter-setup-script=/usr/bin/synergyc redhat-workstation
  • cobbler: pip install future distro sphinx coverage cobbler
  • ansible: pip install ansible
  • vivaldi

As Server

  • activemq
  • adoptopenjdk
  • cobbler: apt install make git python-urlgrabber python-simplejson osinfo-db libosinfo-bin python-distro
  • nexus
pi-02 (Raspberry Pi-3)

Home Page

Fedora

Home Page

Install
  • dnf install -y autofs ypbind htop rsync htop autofs ypbind vim sudo screen java-1.8.0-openjdk-devel nfs-utils
redhat-workstation (Lenovo T590)

Product page

  • /etc/lightdm/lightdm.conf
    • greeter-setup-script = /usr/bin/synergys -c /home/sfloess/Config/synergy.conf
/home/sfloess/Config/synergy.conf
section: screens
   workstation:
   redhat-workstation:
end
section: links
   workstation:
       down = redhat-workstation
   redhat-workstation:
       up = workstation
end
section: options
end
RHEL

Home Page

  • subscription-manager register --auto-attach ; dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm ; dnf install -y autofs ypbind htop rsync htop autofs ypbind vim sudo screen java-1.8.0-openjdk-devel nfs-utils

VM

workstation
Tigervnc Server

In FreeBSD 12.x, tigervnc-server's executable now resides in /usr/local/libexec/vncserver:

  • pkg instal xdm tigervnc-server
  • ln -s /usr/local/share/xsessions /usr/share/xsessions
  • ln -s /usr/local/etc/X11/xdm/Xsession /etc/X11/Xsession
  • /usr/local/libexec/vncserver :1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment