ESXi SSH customisations
Add the following to /etc/profile.local alias ll=”ls -lah –color”
Add the following to /etc/profile.local alias ll=”ls -lah –color”
SSH to server, CD to directory disk is held in. vmkfstools -E ‘examplevm.vmdk’ ‘examplevm-renamed.vmdk’ eg vmkfstools -E Windows\ 2008-000001.vmdk Clubhouse-HD1.vmdk May be wise to delete any snapshots associated with the disk first?
Not PowerSNMP (can’t do much with it) Not Tembria (nice, but can’t get the OIDs) Possibly iReasoning MIB Browser – qwerky but has what I need
To to add a DC to a domain over a slow link? SYSVOL replication going slow? Use Install From Media instead! Install an Additional Domain Controller from IFM (Install From Media) in Windows Server 2012 Install an Additional Do…er 2012 _ MS Server Pro
portmaster -o mail/postfix mail/postfix28
Run the following command via Exchange Management Shell. New-TransportRule -Name ‘SCS MailGuard classified messages moved to Junk Mail’ -Comments ” -Priority ‘0’ -Enabled $true -SubjectMatchesPatterns ‘[BANNED]’,'[SPAMMY’,'[SPAM’ -SetSCL ‘9’ I believe Exchange 2007 will be a minimum requirement.
Consider using Collections, not arrays Use SET when assigning Objects Set InvoiceWS = ActiveWorkbook.Sheets(“Invoice”) Function InArray(arr, val) As Boolean For arrloop = LBound(arr) To UBound(arr) If arr(arrloop) = val Then InArray = True Exit Function End If Next arrloop InArray = False End Function Dim ListOfDirectors As Variant:… Read More »
Use the command ifconfig bge0 mtu 1500 and NOT ifconfig bge0 192.168.0.1 mtu 1500 ias explained in http://www.cyberciti.biz/faq/freebsd-jumbo-frames-networking-configration/ if trying to chage the MTU remotely via SSH. If you specifiy a a IP address FreeBSD seems to “reset the stack” and loses the default gateway
Unsure of the future implications of this but as it’s been a few days and there are no signs of a upgrade I’m taking a flyer… Download and extract spamassassin from Website cd ~ fetch http://apache.mirrors.timporter.net//spamassassin/source/Mail-SpamAssassin-3.4.0.tar.gz tar -zvxf Mail-SpamAssassin-3.4.0.tar.gz cd Mail-SpamAssassin-3.4.0 Create make file perl Makefile.PL Make SpamAssassin make make install SpamAssassin no longer comes with… Read More »
To gain access to cpan type perl -MCPAN -e shell To update cpan type install CPAN reload cpan To install a module via cpan type cpan> install HTML::Template
http://www.freebsd.org/releases/9.2R/installation.html Recommend running commands 1-5 at the bottom of this page prior to updating to avoid receiving errors like “pkg: Warning: Major OS version upgrade detected. Running “pkg-static install -f pkg” recommended” thousands of times 🙂 Upgrading Using “FreeBSD Update” The freebsd-update(8) utility supports binary upgrades of i386 and amd64 systems running earlier FreeBSD releases. Systems running 8.[34]-RELEASE, 9.[01]-RELEASE, 9.2-BETA[123], or 9.2-RC[1234] can… Read More »
To test… kldload vesa vidcontrol -i mode (will list the available modes) vidcontrol MODE_279 To make permanant Edit /boot/loader.conf and add vesa_load=”YES” Edit /etc/rc.conf add allscreens_flags MODE_279″ (for example)
As yet untested over any period of time. portmaster –check-depends portmaster –check-port-dbdir portmaster -s portmaster -y –clean-distfiles
Update portstree! portsnap fetch update Portmaster users: portmaster -o lang/perl5.16 lang/perl5.14 Conservative: (tried this, didn’t see to make Amavis work though) portmaster -D p5- Comprehensive (but perhaps overkill): (tried this, but took ages due to the constant OPTION menus popipng up portmaster -r perl5- Comprehensive and quite (but perhaps overkill): (worked like a charme, took… Read More »
[mysqld] … log-output=TABLE expire_logs_days=1 general_log=1 general_log_file=/var/log/mysqld-queries.log slow_query_log=1 slow_query_log_file=/var/log/mysqld-slow-queries.log … SET @old_log_state = @@global.general_log; SET GLOBAL general_log = ‘OFF’; ALTER TABLE mysql.general_log ENGINE = MyISAM; SET GLOBAL general_log = @old_log_state; SET GLOBAL general_log = ‘ON’; SET @old_log_state = @@global.slow_query_log; SET GLOBAL slow_query_log = ‘OFF’; ALTER TABLE mysql.slow_log ENGINE = MyISAM; SET GLOBAL slow_query_log = @old_log_state;… Read More »
Control Panel Tools You can access any of the Control Panel Tools by using RunAs against the control.exe file and the associated CPL app. For this you can use the local PC administrator account or a network account with workstation admin rights. Example: Add/Remove Programs runas /user:_ADMINACCT_ “control.exe appwiz.cpl” Other Options: Accessibility Controls: control.exe access.cpl… Read More »
C:\Program files (x86)\Sage\Payroll C:\Program files (x86)\Sage Payroll C:\WINDOWS\Payroll.ini
// You may need to update the table names if a WordPress table prefix has been set. INSERT INTO wp_users (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES (‘spectrum’, MD5(‘some-password’), ‘Spectrum Computer Solutions’, ‘wordpress@spectrumcs.net’, ‘http://www.spectrumcs.net’, NOW(), ”, ‘0’, ‘Spectrum Computer Solutions’); SET @USER_ID = LAST_INSERT_ID(); INSERT INTO wp_usermeta (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES… Read More »
SBS 2011 Exchange Memory Usage Limits with side note for Exchange 2007 / 2010 How to limit Exchange 2010 memory usage
Best Practices with Windows Server Update Services 3.0 Geek of All Trades: 6 Tips for 100 Percent WSUS Compliance What to do when your WSUSContent folder grows too large Scripts WSUS Cleanup <- Using adapted version here WSUS Cleanup v2 Script PoshWSUS WSUS: How to change the location where WSUS stores updates locally http://blogs.technet.com/b/sus/archive/2008/05/19/wsus-how-to-change-the-location-where-wsus-stores-updates-locally.aspx wsusutil.exe movecontent… Read More »
Open up SQL Server Management Studio, connect to \\.\pipe\mssql$microsoft##ssee\sql\query, right click the server and click Properties. Set the Max Server Memory to 256. Recommendations for the usual suspects… Instance Tried and tested Max Limit microsoft##ssee 256mb WSUS 256mb SBSMonitoring 70mb SharePoint Unknown – Not been brave enough to tweak this. Seen 384mb as a suggestion.Set Abstrakt… Read More »
HandBrake is a tool for converting video from nearly any format to a selection of modern, widely supported codecs http://handbrake.fr/
WSUS_Cleanup_v2 Must be unzipped to C:\ (so it becomes C:\SCRIPTS). Import the scheduled take by going into Task Scheduler, clicking Import Task, navigating to C:\SCRIPTS and selecting WSUS_Cleanup_v2.xml. I recommend calling the task WSUS_Cleanup_v2 Warning : If run on a server which hasn’t been tided for a while it may take MANY HOURS (I’ve seen it take… Read More »
IIS-Hardening-1-Disable-insecure-Ciphers-and-Hashes I believe that a reboot is required for the configuration to take effect. A reboot is required. May not be required for Windows 2003 / IIS6? Might get away with a “iisreset /restart” Useful links to check before and after applying the registry script. http://www.serversniff.net/sslcheck.php https://www.ssllabs.com/ssltest/analyze.html https://www.nartac.com/Products/IISCrypto
# portmaster -DaG ===>>> Starting check of installed ports for available updates ===>>> The devel/gio-fam-backend port moved to devel/glib20 ===>>> Reason: Obsoleted by new functionality in glib20 ===>>> Launching child to reinstall gio-fam-backend-2.34.3 ===>>> All >> gio-fam-backend-2.34.3 (1/1) ===>>> The devel/gio-fam-backend port moved to devel/glib20 ===>>> Reason: Obsoleted by new functionality in glib20 ===>>> Currently… Read More »