How To Linux Server - 2019-03-01 03:47:15

For Pi-Hole servers, I have a post with some tips on How to Pi-Hole Also check out my ASSSS – A Simple Server Sync Script for an example of a backup job that can be automated on your server to sync data to a backup repo. Packages sudo apt-get install vim ranger tmux htop neofetch rsync msmtp curl my tmux config mkdir -p ~/.config/tmux curl theatomheart.net/raw/.config/tmux/tmux.conf >~/.config/tmux/tmux.conf Setup msmtp for notifications Create a ~/.

How To SSH - 2018-12-11 00:27:03

Step 1: Create the RSA key pair on the connecting (client) computer ssh-keygen -t rsa You’ll be asked where to save the key. ‘~/.ssh/id_rsa’ is the default. The entire keygen process should look similar to this: ssh-keygen -t rsa Output Generating public/private rsa key pair. Enter file in which to save the key (/home/demo/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/demo/.

How to Test SMTP via Telnet - 2018-09-15 20:29:22

Telnet to your mailserver telnet mail.domain.com 25 EHLO domain.com MAIL FROM:<sender@domain.com> RCPT TO:<recipient@domain.com> DATA Subject: This is a subject line Press Enter twice; a blank line is needed between the Subject field and the message body. Type the rest of your message, then press Enter. To finish the message, type a period ( . ) and press Enter QUIT

Windows Stuff - 2018-05-26 00:47:53

How to Crack a Windows Login net user [username] [password] Here is a working method Boot the computer into a mode that gives you access to the command prompt. if you use a windows installer, select the repair computer option. At the command prompt, change directory to C:\windows\system32 copy cmd.exe to replace utilman.exe using the following commands move utilman.exe utilman.bak copy cmd.exe utilman.exe Reboot Boot in normal mode, at the login screen use crtl+alt+del to open the windows login dialog, then use windowskey+u and the command prompt should open.

ESXi Stuff - 2018-05-12 18:35:54

Common Issue: Windows VM NIC not active after reboot To work around this issue, turn off gratuitous ARP in the guest operating system. To turn off gratuitous ARP in the guest operating system: Shut down the guest operating system and power off the virtual machine. Change the virtual machine to a network vSwitch with no uplink. You can create one for this procedure. Power on the virtual machine and log in.

How to Rescue a Non-booting GRUB 2 on Linux - 2018-01-11 00:27:03

By Carla Schroder Once upon a time we had legacy GRUB, the Grand Unified Linux Bootloader version 0.97. Legacy GRUB had many virtues, but it became old and its developers did yearn for more functionality, and thus did GRUB 2 come into the world. GRUB 2 is a major rewrite with several significant differences. It boots removable media, and can be configured with an option to enter your system BIOS.

10 Basics of Linux that apply to managing VMware ESX through the service console - 2017-11-23 01:54:33

by David Davis posted on September 1, 2009 Introduction If you are using the full version of VMware ESX you have the option to manage it, from the command line, using the service console operating system (called the COS). The service console, in VMware ESX, is really a modified version of Red Hat Enterprise Linux. Thus, basic Linux administration knowledge is very valuable when you go to manage VMware ESX from the command line.

How To NtdsUtil - 2017-08-26 20:03:33

C:\Windows\system32>hostname dcserver01 C:\Windows\system32>ntdsutil ntdsutil: m c metadata cleanup: co server connections: connect to server localhost Binding to localhost ... Connected to localhost using credentials of locally logged on user. server connections: q metadata cleanup: s o t select operation target: list domains Found 1 domain(s) 0 - DC=demodomain,DC=theatomheart,DC=net select operation target: select domain 0 No current site Domain - DC=demodomain,DC=theatomheart,DC=net No current server No current Naming Context select operation target: list sites Found 6 site(s) [site details listed] select operation target: select site 0 Site - [site details] Domain - DC=demodomain,DC=theatomheart,DC=net No current server No current Naming context select operation target: list server in site Found 5 server(s) [server details listed] select operation target: select server 1 Site - [site details] Domain - DC=demodomain,DC=theatomheart,DC=net Server - [server details] DSA object - [details] DNS host name - server.

SQL Stuff - 2017-08-26 00:44:52

Shrink log files Log into Microsoft SQL Server Management Studio Right click on your database Select Properties Click on Options Change the recovery model to Simple Click OK Right click on the database Select Tasks > Shrink > Database Click OK Right click on the database Select Properties Click on Options Change the recovery model to Full Click OK Reset sa password From command prompt osql -L Copy full name of SQL Server and type:

Forceful Removal of a Domain Controller - 2017-08-26 00:31:47

Know Your FSMO Locations Make sure that the DC you are removing is not holding any of the FSMO Roles On any health domain controller, click Start, click Run, type Ntdsutil in the Open box, and then click OK Type roles, and then press ENTER Type connections, and then press ENTER Type connect to server , where is the name of the server you want to use, and then press ENTER Type quit, and then press ENTER Type select operation target, and then press ENTER Type list roles for connected server, and then press ENTER Review the listed roles and their host, if the DC that wish to remove is not listed proceed to step 4 Seizing FSMO Roles (The Last Resort) If for what ever reason you can not do a clean transfer you will need to seize it

Sharepoint Stuff - 2017-08-26 00:25:32

Create Document Templates for Sharepoint Document Libraries With SharePoint, there’s a feature that helps with source control for document templates. Using Content Types in combination with document libraries we can have a set of document templates that users can choose from, edit and save without over-writing the original document. Here are the steps to implement this: Create a Document Library Within the site that contains that Document Library, go to Site Actions > Site Settings Under the Galleries section, click on Site Content Types Click the Create link at the top of the list.

Exchange Stuff - 2017-08-25 18:24:55

Get a list of addresses, export to c:\smtp.csv Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,ServerName,PrimarySmtpAddress,@{Name="EmailAddresses";Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq "smtp"} | ForEach-Object {$_.SmtpAddress}}} | Export-CSV c:\smtp.csv -NoTypeInformation Whitelist a domain or address To check whats currently whitelisted Get-ContentFilterConfig To whitelist an address $list = (Get-ContentFilterConfig).BypassedSenders $list.add("new.mail@address.com") Set-ContentFilterConfig -BypassedSenders $list To whitelist a domain $list = (Get-ContentFilterConfig).BypassedSenderDomains $list.add("domain.com") Set-ContentFilterConfig -BypassedSenderDomains $list Permissions to Import or Export Mailbox Data in Exchange 2010 In Exchange 2010 none of the preloaded role groups have the Mailbox Import Export role, The person performing the import or export must have the appropriate permissions within Exchange.

Veeam Error: Failed to Quiesce the VM - 2017-08-25 03:47:15

Some of the VMware KB suggestions include: KB#2069952 KB#2034002 However, the virtual disk service suggestion didn’t help, and the other suggestion requires a reboot, which was not possible in my situation. The solution I found was to modify the VMware tools installation to REMOVE the VMware tools VSS option.

Xen Stuff - 2017-08-25 03:38:56

Troubleshoot a Hung VM The issue is that the iSCSI storage was lost due to loss of connectivity to the SAN from XenServer. Gather Information from VM’s: xe vm-list This returns all of the VMs in the XenServer cluster. Specifically this will give you the UUID and Name of the VM. If this was just a power down issue, we could easily reset the power state with the following command:

MDaemon Stuff - 2017-08-24 04:47:32

Create a CSR and Import a Third-Party SSL Certificate for MDaemon MDaemon does not have a method of creating a Certificate Signing Request (CSR) for you in order to obtain a third party SSL certificate issued by a Trusted Root Authority (such as Verisign or GoDaddy). In the past, we have recommended installing Internet Information Server (IIS) and using it to generate the certificate request, but that may be difficult for Administrators who are not used to working with that product or who do not wish to install IIS on their server.

Active Directory User Login Script - 2017-08-22 20:20:23

On Error Resume Next Dim WSHShell, WSHNetwork, DomainString, UserObj, GroupObj Set WSHShell = CreateObject("WScript.Shell") Set WSHNetwork = CreateObject("WScript.Network") 'Automatically grab the user's domain name DomainString = WSHNetwork.UserDomain 'Find the windows Directory WinDir = WSHShell.ExpandEnvironmentStrings("%winDir%") 'Grab the user name UserString = WSHNetwork.UserName 'Bind to the user object to get user name and check for group memberships later Set UserObj = GetObject("WinNT://" & DomainString & "/" & UserString) 'Grab the computer name for use in add-on code later strComputer = WSHNetwork.

How To Lock Down Remote Desktop Services - 2017-07-24 10:11:42

Preparation Create OU for RDS Server in Active Directory. Create security group for users who will use Remote Desktop Host (i.e. RDS Users). Create GPO (i.e. RDS Server Lock Down). In Security Filtering delete Authenticated Users, add RDS Server Computer Account, and the security group created in previous step. Configure users who can connect to the server remotely: Log in to RDS Server >>> Run >>> control system >>> Remote Settings >>> Remote tab >>> Select users >>> Delete any groups/users >>> Add security group for RDS users

ASSSS -- A Simple Server Sync Script - 2018-05-06 03:11:46

Raw #!/bin/bash # A Simple Server Sync Script ### Required packages # rsync -- runs the data sync process # cifs-utils -- for windows/smb shares # sshfs -- for ssh mounts # msmtp -- for email notifications ### User-defined variables # Name the backup job BackupName="Client Name Backup" # The path where logs should be stored LogFolder="$HOME/Logs/client" # The path to the source/root folder to be backed up SourcePath="/media/clientmounts/client-name" # The path to the backup target/repository TargetPath="/media/repo-name/client-name/sync" # The command used to mount the backup source SourceMountCommand="sshfs hostname.