Setting up BT Infinity with a Draytek 2860
If you get “PPPoE no response from server side” errors double check you have enabled VLAN Tag insertion for VSDL2 and set the tag value as 101.
If you get “PPPoE no response from server side” errors double check you have enabled VLAN Tag insertion for VSDL2 and set the tag value as 101.
If SVN not installed (on the older servers) install by doing… portsnap fetch update cd /usr/ports/devel/subversion && make install clean If svnlite is already installed do… ln -s /usr/bin/svnlite /usr/bin/svn Once installed checkout our repos mkdir /scs cd /scs/ svn checkout https://svn.spectrumcs.net:9443/svn/freebsd-scripts/ svn checkout https://svn.spectrumcs.net:9443/svn/freebsd-preferences/
I usually use Wireshark but strumbkled accros this recently… Microsoft Network Monitor https://www.microsoft.com/en-gb/download/details.aspx?id=4865 https://en.wikipedia.org/wiki/Microsoft_Network_Monitor After I installed Microsoft Network Monitor I read the Wikipedia page I discovered Microsoft Network Monitor was been superseded by Microsoft Message Analyzer (https://www.microsoft.com/en-us/download/details.aspx?id=44226). Microsoft Network Monitor seems to work on Windows 7 64bit, but I’ll give Microsoft Message Analyzer a try when I get a… Read More »
Original script at https://www.howtoforge.com/how-to-find-outdated-wordpress-versions-on-your-server-to-reduce-the-risk-of-being-hacked This script has been improved to automatically detect latest WordPress version by sending a HTTP HEAD request to http://wordpress.org/latest and parsing the Content-Disposition: attachment; filename=wordpress-A.B.C.tar.gz result as suggested at https://wordpress.org/support/topic/programmatically-check-latest-wp-release <?php /** * find outdated wordpress versions * (c) 2014 howtoforge.com (M. Cramer) <m.cramer@pixcept.de> * Appended by Steve Scotter www.stephen-scotter.net */ if(!isset($argv[1])) die(“Please start this program with… Read More »
Query a particular DNS Server for a hostname dig @ ns1.namecity.com helpdesk.spectrumcs.net host helpdesk.spectrumcs.net ns1.namecity.com Query for MX records dig mx helpdesk.spectrumcs.net host -t MX helpdesk.spectrumcs.net Query for MX records dig NS spectrumcs.net host -t NS spectrumcs.net Reverse DNS dig -x 109.169.47.183 host 109.169.47.183 Possibly useful flags -a Make a verbose query of type… Read More »
Office 2013 – Subscription expired but not using 365? This appears to happen if you’ve inserted say a Office 2013 H&B product key into a fresh PC which came with Office 2013 installed. Not sure exactly whats going on, but I suspect the pre-installed Office is Office 365, not Office 2013. The solution is as follows…… Read More »
Common problems… A previous software update installation was not completed. The system must be restarted to finish the installation. If the incomplete installation was a security update, then the system may be at risk until it is restarted. https://technet.microsoft.com/en-us/library/cc164360(v=exchg.80).aspx First thing to check is if the server needs a restart due to Windows Updates or… Read More »
Open Administrative Tools -> Local Security Policy and navigate to user Configuration -> Administrative Templates -> Control Panel -> Personalisation. Change Enable “Screen saver timeout”, I use 3600 to make it timeout after an hour.
Fsutil.exe is a built in filesystem tool that is useful to do file system related operations from command line. We can create a file of required size using this tool. syntax to create a file: fsutil file createnew filename length (length is in bytes) For example, to create a file called test.txt and of 1GB in size:… Read More »
Short version Download and install http://www.microsoft.com/en-us/download/details.aspx?id=29999 (avoid rebooting if required, doesn’t seem to effect the effectiveness of the hotfix) sc stop WsusService iisreset /stop iisreset /start sc start WsusService Longer version BACKGROUND: Every machine I install the lastest Windows Update Agent on results in a 800B0001 error when getting updates “FROM YOUR SYSTEM ADMINISTRATOR” but have no problems when… Read More »
Decimal Numbers… DECIMAL(18,0) will allow 0 digits after the decimal point. Use something like DECIMAL(18,4) instead that should do just fine! That gives you a total of 18 digits, 4 of which after the decimal point (and 14 before the decimal point). Question Sum’ing data of type REAL resulted in a total with about 10… Read More »
The single command approach mysqldump -h oldhost -u oldusername -poldpassword olddbname | mysql -h newhost -u newusername -pnewpassword newdbname make sure you can … mysql -h newhost -u newusername -pnewpassword newdbname … before attempting the transfer. Common issues are :- Firewall preventing access to MySQL server across the network User configured to only be able… Read More »
Need to make sure the php5-curl module was installed.
Needed to have the php5-mbstring module installed
http://social.technet.microsoft.com/wiki/contents/articles/4506.group-policy-debug-log-settings.aspx
Download and install (Typical) SlikSVN (https://sliksvn.com/download/) Open a CMD prompt CD C:\ MKDIR SCS CD SCS svn checkout https://rainbow.spectrumcs.net:9443/svn/windows-server-tools
Getting Fatal error: Call to undefined function geoip_country_name_by_name() ? Install /usr/ports/net/pecl-geoip # cd /usr/ports/net/pecl-geoip && make install clean # “/usr/local/www/awstats/cgi-bin/awstats.pl” -update -config=account.ptiexpress.com -configdir=”/usr/local/etc/awstats/” Error: Plugin load for plugin ‘geoipfree’ failed with return code: Error: Can’t locate Geo/IPfree.pm in @INC (you may need to install the Geo::IPfree module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.18 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.18/mach /usr/local/lib/perl5/5.18 /usr/local/lib/perl5/site_perl/5.18 /usr/local/lib/perl5/site_perl/5.18/mach… Read More »
While looking into what wermgr.exe was () and why it was trying to communicate with 65.55.53.190 I found this page with some useful information about how to generate a XML file with the reasons why a connection is blocked… http://superuser.com/questions/451862/windows-firewall-blocks-outbound-connection-that-is-allowed-by-a-rule After asking for help in the Windows Filtering Platform (WFP) forum on MSDN I learned that you can… Read More »
Error logs were filling up with these…. [core:notice] [pid 1282] AH00052: child pid 29796 exit signal Segmentation fault (11) Web visitors where shown… — No data received Unable to load the web page because the server sent no data. Error code: ERR_EMPTY_RESPONSE — Tracked the issue down to the fact php5-extentions port was compiled with zip… Read More »
As yet unconfirmed… secedit /configure /db secedit.sdb /cfg %SystemRoot%\defltwk.inf /overwrite /verbose https://www.raymond.cc/blog/apply-hardening-on-windows-7-windows-server-2008-using-command-line/
Common synlink’s you do. ln -s /usr/bin/svnlite /usr/bin/svn ln -s /usr/local/share/munin/plugins/scs_directory_size_v3_ /usr/local/etc/munin/plugins/scs_directory_size_v3___var___db___mysql ln -s [SOURCE FILE / DIR] [CREATE SYM LINK HERE]
Change shell to sh # chsh -s /bin/sh <username> Change shell to nologin # chsh -s /usr/sbin/nologin <username> Change shell to scponly # chsh -s /usr/local/bin/scponly <username> Quickly checking which users have non nologin shells # grep –invert-match ‘nologin’ /etc/passwd
ln -s /usr/bin/svnlite /usr/bin/svn
# vi /etc/rc.local.d/local.sh Make the contents something similar to the following… #!/bin/sh # local configuration options # Note: modify at your own risk! If you do/use anything in this # script that is not part of a stable API (relying on files to be in # specific places, specific tools, specific output, etc) there is… Read More »
For a list of plugins that will probably work run /usr/local/sbin/munin-node-configure –suggest If this is a fresh install run /usr/local/sbin/munin-node-configure –shell | sh -x to install the plugins automatically