Skip to content


todo-list

#todo-list
—–Media server build—–
-build basic server
-add storage
-move files from 1s
-setup plex
-setup apache
-setup websites
-setup security and htpasswords
-setup postfix
-setup phpmyadmin
-setup webmin
-setup nfs
-setup samba
-setup users
-cron jobs
-update computers mapped to network drive
-update eyefi mapping
-update cifs shares
-setup mysql
-setup wireless
-setup dsm 5.2 vm

power off old servers
-media
-webvm1 after sites are moved and all mail server entries are updated

clean up esx drives to remove a few from server

Posted in Uncategorized.

Tagged with .


Build mythbuntu 14.04 frontend

Installed from 14.04 (usb drive, cd-rom or pxe boot)
reconfigure sources.list to point to local repo and install aptitude
apt-get update
apt-get upgrade
apt-get install openssh-server rpcbind nfs-common snmpd smartmontools mutt postfix ssh dstat iptraf logwatch dselect mailutils sysv-rc-conf gparted ntp iftop apcupsd ethtool libauthen-pam-perl libio-pty-perl apt-show-versions libnet-ssleay-perl
mkdir /dvr /offline
nano /etc/fstab
192.168.1.220:/offline /offline nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp
192.168.1.220:/dvr /dvr nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp

mount -a
copy blootube theme
cp -R /dvr/files/blootubelite-wide/ /usr/share/mythtv/themes/

RSYNC
cp /offline/files/rsync/rsyncd.conf /etc
cp /offline/files/rsync/rsyncd.secrets /etc
chmod 600 /etc/rsyncd.secrets
nano /etc/default/rsync and enable
/etc/init.d/rsync restart

SNMP
cp /offline/archive/common/snmpd.conf /etc/snmp
/etc/init.d/snmpd restart

SMARTD
cp /offline/archive/common/smartd.conf /etc/smartd.conf
nano /etc/default/smartmontools
start_smartd=yes
/etc/init.d/smartmontools restart

APCUPSD
cp /offline/archive/common/apcupsd.conf /etc/apcupsd
nano /etc/default/apcupsd and make isconfigured=yes
/etc/init.d/apcupsd restart

WEBMIN
dpkg -i /offline/files/webmin_1.610_all.deb

Mythtv log files changes
rm /etc/logrotate.d/mythtv-*
cp /dvr/scripts/logrotate.d/mythtv /etc/logrotate.d/
mkdir /var/log/mythtv/old
chown syslog.adm /var/log/mythtv/old
cp /dvr/files/lirc/mythtv.precise /home/desktop/.lirc

Wake on lan if supported
echo ‘ethtool -s eth0 wol g’ >> /etc/rc.local

Posted in Linux, Mythtv.


todo-list

#todo-list
Fix damaged wood on shed and shed doors
adjust sprinkler heads
plant shrubs on side of house
mulch areas that need more mulch
raise shed
power wash portch
power wash house
power wash deck
stain deck

Posted in Uncategorized.

Tagged with .


startssl.com

#startssl.com
Create the server key (in this example RSA 1024 bit):
openssl genrsa -out host.key 4096
Make a certificate out of it (it won’t be signed yet):
openssl req -new -key host.key -out host.csr
Create your CA certificate (will be valid for a year):
openssl req -new -x509 -days 365 -key host.key -out host.crt
Copy info from host.csr and plug it into startssl.com website. It will create text you will put in a .csr file

Create the .csr file in the /etc/apache2/ssl area, in this case I called it my host name webvm1.csr.

cp host.key webvm1.key

Enable the SSL module

sudo a2enmod ssl
Listen to port 443

echo “Listen 443″ | sudo tee -a /etc/apache2/ports.conf
Create and enable the SSL site

sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl
Modify it so it looks something like this

NameVirtualHost *:443

ServerAdmin webmaster@localhost

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/webvm1.newy.org.startssl.csr
SSLCertificateKeyFile /etc/apache2/ssl/webvm1.key
SSLCertificateChainFile /etc/apache2/ssl/sub.class1.server.ca.pem
SSLCACertificateFile /etc/apache2/ssl/ca.pem

…and enable it

sudo a2ensite ssl

don’t forget to modify /etc/apache2/sites-available/default

NameVirtualHost *:80

Posted in Uncategorized.

Tagged with .


mythtv mythbackend

#mythtv
#mythbackend
Install using mythbuntu media
verify frontend works
exit frontend and start backend config, add cards, lineups etc
apt-get install aptitude
aptitude install cacti phpmyadmin backuppc
aptitude install openssh-server portmap nfs-common snmpd smartmontools mutt postfix ssh dstat iptraf logwatch dselect mailutils sysv-rc-conf gparted ntp iftop apcupsd xfsprogs

mkdir /dvr /offline
nano /etc/fstab

192.168.1.210:/offline /offline nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp
192.168.1.210:/dvr /dvr nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp

mount -a

nx debs
sudo dpkg -i /offline/files/nx/nxclient_3.5.0-7_amd64.deb
sudo dpkg -i /offline/files/nx/nxnode_3.5.0-9_amd64.deb
sudo dpkg -i /offline/files/nx/nxserver_3.5.0-11_amd64.deb

RSYNC
cp /offline/files/rsync/rsyncd.conf /etc
cp /offline/files/rsync/rsyncd.secrets /etc
chmod 600 /etc/rsyncd.secrets
nano /etc/default/rsync and enable
/etc/init.d/rsync restart

SNMP
cp /offline/archive/common/snmpd.conf /etc/snmp
/etc/init.d/snmpd restart

SMARTD
cp /offline/archive/common/smartd.conf /etc/smartd.conf
nano /etc/default/smartmontools
start_smartd=yes
/etc/init.d/smartmontools restart

APCUPSD
cp /offline/archive/common/apcupsd.conf /etc/apcupsd
nano /etc/default/apcupsd and make isconfigured=yes
/etc/init.d/apcupsd restart

WEBMIN
aptitude install libauthen-pam-perl libio-pty-perl apt-show-versions libnet-ssleay-perl
dpkg -i /offline/files/webmin_1.590_all.deb

Posted in Uncategorized.

Tagged with , .


sshl

#sshl
1. aptitude install sslh
2. change line in /etc/default/sslh to RUN=yes
3. update DAEMON_OPS line to listen and forward from correct ip/port to correct ip/port
4. change /etc/apache/ports.conf from Listen 443 to Listen 127.0.0.1:443

Posted in Uncategorized.

Tagged with .


mythtv mythfrontend

#mythtv
#mythfrontend
Installed from 12.04 (usb drive, cd-rom or pxe book)
reconfigure sources.list to point to local repo and install aptitude
aptitude update
aptitude upgrade
aptitude install openssh-server rpcbind nfs-common snmpd smartmontools mutt postfix ssh dstat iptraf logwatch dselect mailutils sysv-rc-conf gparted ntp iftop apcupsd ethtool
mkdir /dvr /offline
nano /etc/fstab
192.168.1.220:/offline /offline nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp
192.168.1.220:/dvr /dvr nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp

mount -a
copy blootube theme
cp -R /dvr/files/blootubelite-wide/ /usr/share/mythtv/themes/

RSYNC
cp /offline/files/rsync/rsyncd.conf /etc
cp /offline/files/rsync/rsyncd.secrets /etc
chmod 600 /etc/rsyncd.secrets
nano /etc/default/rsync and enable
/etc/init.d/rsync restart

SNMP
cp /offline/archive/common/snmpd.conf /etc/snmp
/etc/init.d/snmpd restart

SMARTD
cp /offline/archive/common/smartd.conf /etc/smartd.conf
nano /etc/default/smartmontools
start_smartd=yes
/etc/init.d/smartmontools restart

APCUPSD
cp /offline/archive/common/apcupsd.conf /etc/apcupsd
nano /etc/default/apcupsd and make isconfigured=yes
/etc/init.d/apcupsd restart

WEBMIN
aptitude install libauthen-pam-perl libio-pty-perl apt-show-versions libnet-ssleay-perl
dpkg -i /offline/files/webmin_1.610_all.deb

Mythtv log files changes
rm /etc/logrotate.d/mythtv-*
cp /dvr/scripts/logrotate.d/mythtv /etc/logrotate.d/
mkdir /var/log/mythtv/old
chown syslog.adm /var/log/mythtv/old
cp /dvr/files/lirc/mythtv.precise /home/desktop/.lirc

Wake on lan if supported
echo ‘ethtool -s eth0 wol g’ >> /etc/rc.local

Posted in Uncategorized.

Tagged with , .


backuppc

#backuppc
If you find your backuppc log filling up with entries like the ones below, you can fix these warnings with one command thanks to a entry I found at http://www.nooblet.org/blog/2012/backuppc-use-of-qw-as-parentheses-is-deprecated/

Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.

grep -ril ‘qw(‘ /usr/share/backuppc/lib/BackupPC/|while read file; do sed -i “1i no warnings ‘deprecated’;” $file; done

Posted in Uncategorized.

Tagged with .


backuppc errors

If you find your backuppc log filling up with entries like the ones below, you can fix these warnings with one command thanks to a entry I found at http://www.nooblet.org/blog/2012/backuppc-use-of-qw-as-parentheses-is-deprecated/

Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
Use of qw(…) as parentheses is deprecated at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.

grep -ril ‘qw(‘ /usr/share/backuppc/lib/BackupPC/|while read file; do sed -i “1i no warnings ‘deprecated’;” $file; done

Posted in General.


Building mythbuntu 12.04 frontend

Installed from 12.04 (usb drive, cd-rom or pxe book)
reconfigure sources.list to point to local repo and install aptitude
aptitude update
aptitude upgrade
aptitude install openssh-server rpcbind nfs-common snmpd smartmontools mutt postfix ssh dstat iptraf logwatch dselect mailutils sysv-rc-conf gparted ntp iftop apcupsd ethtool
mkdir /dvr /offline
nano /etc/fstab
192.168.1.220:/offline /offline nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp
192.168.1.220:/dvr /dvr nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp

mount -a
copy blootube theme
cp -R /dvr/files/blootubelite-wide/ /usr/share/mythtv/themes/

RSYNC
cp /offline/files/rsync/rsyncd.conf /etc
cp /offline/files/rsync/rsyncd.secrets /etc
chmod 600 /etc/rsyncd.secrets
nano /etc/default/rsync and enable
/etc/init.d/rsync restart

SNMP
cp /offline/archive/common/snmpd.conf /etc/snmp
/etc/init.d/snmpd restart

SMARTD
cp /offline/archive/common/smartd.conf /etc/smartd.conf
nano /etc/default/smartmontools
start_smartd=yes
/etc/init.d/smartmontools restart

APCUPSD
cp /offline/archive/common/apcupsd.conf /etc/apcupsd
nano /etc/default/apcupsd and make isconfigured=yes
/etc/init.d/apcupsd restart

WEBMIN
aptitude install libauthen-pam-perl libio-pty-perl apt-show-versions libnet-ssleay-perl
dpkg -i /offline/files/webmin_1.610_all.deb

Mythtv log files changes
rm /etc/logrotate.d/mythtv-*
cp /dvr/scripts/logrotate.d/mythtv /etc/logrotate.d/
mkdir /var/log/mythtv/old
chown syslog.adm /var/log/mythtv/old
cp /dvr/files/lirc/mythtv.precise /home/desktop/.lirc

Wake on lan if supported
echo ‘ethtool -s eth0 wol g’ >> /etc/rc.local

Posted in General, Mythtv.