How to expand your root partition in Ubuntu using the logical volume manager (LVM) utilities. Particularly applies to virtual machine setups.
Sade Olutola

Product Placement
Show & Tell
trying on a metaphor
d e v o n
Peter Solarz

Andulka

blake kathryn
tumblr dot com

shark vs the universe
KIROKAZE

@theartofmadeline

Xuebing Du
cherry valley forever
Mike Driver
RMH

PR's Tumblrdome
Alisa U Zemlji Chuda

pixel skylines
seen from United States

seen from Germany

seen from Mexico
seen from United States

seen from United States
seen from Singapore

seen from United States

seen from Türkiye

seen from United States

seen from Poland

seen from Malaysia
seen from United States
seen from Malaysia

seen from United States

seen from United States

seen from United States

seen from United States
seen from United States
seen from United States
seen from Netherlands
@majorrabbid
How to expand your root partition in Ubuntu using the logical volume manager (LVM) utilities. Particularly applies to virtual machine setups.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Orphaned GPO
How dare you speak of cleaning up Group Policies - ofcourse they are all required and are all important ;)
use the below as a powershell script that will give you a list of GPO’s defined but that do not exist in the share and vice versa. very handy to clean up a messy environment before well any kind of activity on the infrastructure. You are welcome.
Code:
<# This script will find and print all orphaned Group Policy Objects (GPOs).Group Policy Objects (GPOs) are stored in two parts:1) GPC (Group Policy Container). The GPC is where the GPO stores all the AD-related configuration under the CN=Policies,CN=System,DC=... container, which is replicated via AD replication. 2) GPT (Group Policy Templates). The GPT is where the GPO stores the actual settings located within SYSVOL area under the Policies folder, which is replicated by either File Replication Services (FRS) or Distributed File System (DFS).This script will help find GPOs that are missing one of the parts, which therefore makes it an orphaned GPO.A GPO typically becomes orphaned in one of two different ways:1) If the GPO is deleted directly through Active Directory Users and Computers or ADSI edit. 2) If the GPO was deleted by someone that had permissions to do so in AD, but not in SYSVOL. In this case, the AD portion of the GPO would be deleted but the SYSVOL portion of the GPO would be left behind.Although orphaned GPT folders do no harm they do take up disk space and should be removed as a cleanup task.Lack of permissions to the corresponding objects in AD could cause a false positive. Therefore, verify GPT folders are truly orphaned before moving or deleting them.Original script written by Sean Metcalfhttp://blogs.metcorpconsulting.com/tech/?p=1076Release 1.1 Modified by [email protected] 29th August 2012#>$Domain = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() # Get AD Domain Name $DomainDNS = $Domain.Name # Get AD Distinguished Name $DomainDistinguishedName = $Domain.GetDirectoryEntry() | select -ExpandProperty DistinguishedName$GPOPoliciesDN = "CN=Policies,CN=System,$DomainDistinguishedName" $GPOPoliciesSYSVOLUNC = "\\$DomainDNS\SYSVOL\$DomainDNS\Policies"Write-Host -ForegroundColor Green "Finding all orphaned Group Policy Objects (GPOs)...`n"Write-Host -ForegroundColor Green "Reading GPO information from Active Directory ($GPOPoliciesDN)..." $GPOPoliciesADSI = [ADSI]"LDAP://$GPOPoliciesDN" [array]$GPOPolicies = $GPOPoliciesADSI.psbase.children ForEach ($GPO in $GPOPolicies) { [array]$DomainGPOList += $GPO.Name } #$DomainGPOList = $DomainGPOList -replace("{","") ; $DomainGPOList = $DomainGPOList -replace("}","") $DomainGPOList = $DomainGPOList | sort-object [int]$DomainGPOListCount = $DomainGPOList.Count Write-Host -ForegroundColor Green "Discovered $DomainGPOListCount GPCs (Group Policy Containers) in Active Directory ($GPOPoliciesDN)`n"Write-Host -ForegroundColor Green "Reading GPO information from SYSVOL ($GPOPoliciesSYSVOLUNC)..." [array]$GPOPoliciesSYSVOL = Get-ChildItem $GPOPoliciesSYSVOLUNC ForEach ($GPO in $GPOPoliciesSYSVOL) {If ($GPO.Name -ne "PolicyDefinitions") {[array]$SYSVOLGPOList += $GPO.Name }} #$SYSVOLGPOList = $SYSVOLGPOList -replace("{","") ; $SYSVOLGPOList = $SYSVOLGPOList -replace("}","") $SYSVOLGPOList = $SYSVOLGPOList | sort-object [int]$SYSVOLGPOListCount = $SYSVOLGPOList.Count Write-Host -ForegroundColor Green "Discovered $SYSVOLGPOListCount GPTs (Group Policy Templates) in SYSVOL ($GPOPoliciesSYSVOLUNC)`n"## COMPARE-OBJECT cmdlet note: ## The => sign indicates that the item in question was found in the property set of the second object but not found in the property set for the first object. ## The <= sign indicates that the item in question was found in the property set of the first object but not found in the property set for the second object.# Check for GPTs in SYSVOL that don't exist in AD [array]$MissingADGPOs = Compare-Object $SYSVOLGPOList $DomainGPOList -passThru | Where-Object { $_.SideIndicator -eq '<=' } [int]$MissingADGPOsCount = $MissingADGPOs.Count $MissingADGPOsPCTofTotal = $MissingADGPOsCount / $DomainGPOListCount $MissingADGPOsPCTofTotal = "{0:p2}" -f $MissingADGPOsPCTofTotal Write-Host -ForegroundColor Yellow "There are $MissingADGPOsCount GPTs in SYSVOL that don't exist in Active Directory ($MissingADGPOsPCTofTotal of the total)" If ($MissingADGPOsCount -gt 0 ) { Write-Host "These are:" $MissingADGPOs } Write-Host "`n"# Check for GPCs in AD that don't exist in SYSVOL [array]$MissingSYSVOLGPOs = Compare-Object $DomainGPOList $SYSVOLGPOList -passThru | Where-Object { $_.SideIndicator -eq '<=' } [int]$MissingSYSVOLGPOsCount = $MissingSYSVOLGPOs.Count $MissingSYSVOLGPOsPCTofTotal = $MissingSYSVOLGPOsCount / $DomainGPOListCount $MissingSYSVOLGPOsPCTofTotal = "{0:p2}" -f $MissingSYSVOLGPOsPCTofTotal Write-Host -ForegroundColor Yellow "There are $MissingSYSVOLGPOsCount GPCs in Active Directory that don't exist in SYSVOL ($MissingSYSVOLGPOsPCTofTotal of the total)" If ($MissingSYSVOLGPOsCount -gt 0 ) { Write-Host "These are:" $MissingSYSVOLGPOs } Write-Host "`n" pause
Surface Pro 4 losing network connectivity as soon as it locks while plugged into power
This is the fix for the “intended functionality”
https://support.microsoft.com/en-us/kb/2835052
How to set hostname on a Mac OS X machine - El Capitan Edition
To begin doing this, open the Terminal (located in /Applications/Utilities), or SSH into the Mac that you will be changing this setting on. Next, perform the following steps:
Type in the following command, replacing "name" with a user-friendly name that will identify the computer:
scutil --set ComputerName "name"
Once you press return, this name will be set. Next, type the following command, replacing "name" with the name that you wish to display on your local network to Bonjour-based services:
scutil --set LocalHostName "name"
Finally, you can also configure and set how the computer is displayed when connecting through SSH, and the name shown inside of the Terminal by typing the following command, replacing "name" with the name you want to use to display in the Terminal and when connecting to the machine over SSH:
scutil --set HostName "name" To begin doing this, open the Terminal (located in /Applications/Utilities), or SSH into the Mac that you will be changing this setting on. Next, perform the following steps:
Audio Redirection on RDS - Issues with Recording
Audio Redirection not working on RDS Server - here is a list of things to check.
1. Windows XP, Vista and 7, must be Professional, Enterprise of Ultimate or above, no Home, Starter etc
2. Windows XP SP3 and Windows Vista both must have KB969084, which is the Remote Desktop Connection 7.0 client update for Remote Desktop Services (RDS). Windows 7 does not need this update. It's Remote Desktop Protocol that includes the Audio Recording redirection.
3. Remote Audio Playback:- Bring to this Computer must be set.
4. Remote Audio Recording - Record from this computer must be set.
5. Windows Audio and Windows Audio Endpoint Builder Services Started.
The next three items, are just checks, only one really needs enabling but check all three.
6. Registry item HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp fDisableAudioCapture is equal to 0
7. Group Policy also updated to force the above.
8. “Audio recording” enabled in “Remote Desktop Session Host Configuration” settings on the server.
9. This final item could be the key, you also need to add the Remote Desktop Services role, it's not enough to just Enable "Remote Desktop". This also means that you will need to add a License Server, and purchases TSCALS/RD CALS licenses to enable this function, also when adding select the Desktop Experience.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
So it has come to the time where I am running out of disk space again (don't we all).....and I finally have to expand the storage of the NAS. My HP N40L is already maximized in terms of drive bay s...
Bringing back Removable drives on Desktop for Mac
To show removable media (cards, etc):
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
To show external hard drives (USB, Thunderbolt, firewire, etc):
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
To show mounted servers (AFP, SMB, NFS, etc):
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
To show internal hard drives:
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
Configuring Remote Access to Hyper-V Host in Workgroup (Lab environment etc)
While setting up a test Hyper-V lab I have been doing a few steps repeatedly to remotely manage both Windows Server 2012 R2 and Hyper-V Server 2012 R2 machines. Here is the basic setup: Systems Windows 8.1 Pro client machine not joined to a domain using WORKGROUP Hyper-V Server 2012 R2 (Bare Metal) upon initial installation using WORKGROUP - Computer Name for this will be HV2012R2A Windows Server 2012 R2 (in Hyper-V) using WORKGROUP. This is going to be the domain controller at some point - Computer Name for this will be WS2012R2A Configuration WinRM is turned on for both the Hyper-V Server 2012 R2 and Windows Server 2012 R2 machines Server Manager and Hyper-V Manager are installed on the Windows 8.1 client Here are the three major steps required: 1. Open notepad or notepad++ as administrator. Add two host entries with the IP address of each machine e.g.
Code:
192.168.1.69 HV2012A 10.0.3.20 WS2012A
This step makes it so you can resolve host names in the event you cannot. IP addresses should be whatever IP addresses the server has. 2. Open cmd.exe as administrator and add the server(s) as trusted hosts. Here you can comma separate to add multiple machines.Note: keep this in a text file as you will need to update the command and append more machines before you get a domain setup.
Code:
winrm set winrm/config/client @{TrustedHosts="HV2012A,WS2012A"}
3. Now add credentials and make your life easy. Since this is used pre-domain, I am using the Administrator passwords used during setup:
Code:
cmdkey /add:HV2012A /user:ADMINISTRATOR /pass:PasswordA cmdkey /add:WS2012A /user:ADMINISTRATOR /pass:PasswordA
Those three steps, assuming networking is all OK will get you to be able to remotely manage Windows Server and Hyper-V server hosts using Server Manager and Hyper-V Manager.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Apple Software Update
To point unmanaged clients (clients not being managed with a configuration profile or Managed Client) to a Software Update server:
On the unmanaged client, open Terminal.
Enter the following command (substituting your Software Update Server's fully qualified host name for su.example.com):
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://su.example.com:8088/index.sucatalog
You can verify your change using the following command:
defaults read /Library/Preferences/com.apple.SoftwareUpdate CatalogURL
To point the unmanaged client computer back to the Apple Software Update server, use the following command:
sudo defaults delete /Library/Preferences/com.apple.SoftwareUpdate CatalogURL
Locking your mac without putting it to sleep
Most people have the sleep function set under 'Security' in System Preferences to ask for password when waking up and optionally a hot corner setup to quickly lock the mac when walking away from their desk.
However, this is highly impractical for when you have multiple screens attached to the mac.
After a long time of trying to solve this problem and searching the internet, a brilliant idea struck me.
I use BetterTouchTool to get the screen snapping functionality in Mac much like Windows 7 & 8.
Instructions follow (assuming you have 'ask for password when waking up' setup under 'Security' preference pane.
Open System Preferences
Click the "Keyboard" tab and select "Global" in the left-hand "Select Application" pane
Click "+ Add new keyboard shortcut" at the bottom of the shortcut list
Click the "Keyboard shortcut" recording field and hold down the keys you wish to use for the shortcut, I use Option+Cmd + L
Click the "Trigger predefined action" dropdown and select "Open application/file/script..."
Navigate to /System/Library/Frameworks/Screensaver.framework/Versions/A/Resources and select "ScreenSaverEngine.app" and click "Open"
This will make sure everytime you punch in Option+Cmd+L, the screen will lock without putting your mac to sleep. I know the newer macs have powernap, but personally i would rather not have the mac go to sleep at all as long as it is connected to power during my work day.
Hyper-V Default Virtual Machine Path
Q: How can I change the default path for virtual machines on all Hyper-V hosts in my cluster?
A: If you've changed the storage configuration on the Hyper-V hosts in your cluster and want to change the default virtual machine (VM) and storage paths, you can use Windows PowerShell to easily accomplish this task. To view the current configuration, enter the following PowerShell command:
Get-ClusterNode | foreach {Get-VMHost -ComputerName $_.Name} | ft ComputerName,VirtualHardDiskPath,VirtualMachinePath -AutoSize
You can then set the new values:
Get-ClusterNode | foreach {Set-VMHost -ComputerName $_.Name -VirtualHardDiskPath C:\ClusterStorage\VM01 -VirtualMachinePath C:\ClusterStorage\VM01}
If you need to specify a particular cluster, just add -Cluster <name> to the Get-ClusterNode command.
As a side note, if you just want to list all the VMs in alphabetical order, use the following command:
Get-ClusterNode | foreach {Get-VM -ComputerName $_.Name}| sort-object Name | ft Name, Path, ConfigurationLocation, ComputerName -autosize
Remember that System Center Virtual Machine Manager (VMM) has its own configuration. You can view the VMM defaults, which are based on the available Cluster Shared Volumes (CSV). For example:
Get-ClusterNode -Cluster <cluster> | foreach {Get-SCVMHost -ComputerName $_.Name} | FT Computername, VMPaths -AutoSize
Manage Hyper-V Host from workgroup machine
Install Hyper-V Server 2012 Core and log in to the console.
Configure date and time (select #9).
Enable Remote Desktop (select #7). Also select the ‘Less Secure’ option.
Configure Remote Management (select #4 then #1).
Add local administrator account (select #3). Username and password need to be exactly the same as the account you are going to use on the client computer to manage this Hyper-V Server.
Configure network settings (select #8). Configure as a static IP. Same subnet as your home network. Don’t forget to configure the DNS IP.
Set the computer name (select #2). Rename the server and reboot.
Remote Desktop to server. On your client machine, remote to the server via the IP address you assigned it. Use the credentials of the local administrator account you created earlier.
Launch PowerShell. In the black cmd window, run the following command: start powershell
Run the following commands:
Enable-NetFirewallRule -DisplayGroup “Windows Remote Management”
Enable-NetFirewallRule -DisplayGroup “Remote Event Log Management”
Enable-NetFirewallRule -DisplayGroup “Remote Volume Management”
Set-Service VDS -StartupType Automatic
Reboot the server (select #12).
Enable Client Firewall Rule. On your client machine, launch an elevated PowerShell prompt and type the following command:
Enable-NetFirewallRule -DisplayGroup “Remote Volume Management”
ii c:\windows\system32\drivers\etc
Add server hostname and IP to hosts file. Right click hosts and select properties. In the security tab, add your username. Give your account modify rights.This is needed because some remote management tools we need to use rely on the hosts file to resolve the name. Without doing this you are highly likely to encounter some errors while trying to create VHDs and such. Error you might see: There was an unexpected error in configuring the hard disk.
You should now be able to remotely manage the Hyper-V server from the client machine. This includes managing the Hyper-V server’s disk from within the disk management console on the client. You should be able to create VHD’s successfully as well from within Hyper-V Manager on the client (assuming you installed the feature).
Error 1603 when installing SCCM VMM for your Hyper V Lab/Infrastructure
I recently ran into this issue when trying to install SCCM VMM 2012 R2 to manage my Hyper V Lab Environment. My previous attempt last year was not that great, but Hyper-V has matured enough now to be used in production etc.
If you encounter installation error 1603 and the installer tells you to troll through logs. Here is what you may need to do.
Add the Computer account of the machine you are installing on to the local administrators group. Dont forget the $ at the end of the computer like below, my server name is 'overlord'
overlord$
And see the installation fly!

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Apple Mail Slow After upgrading OS X? Rebuild Mail Profiles/Databases
You can start with a new Mail profile. This would require you to setup Mail and add accounts back. If you have a lot of accounts you could add one back to test first before making the full move.
Quit Mail.
Go to the User's Library folder. This folder is hidden by default. To unhide: Select the Finder in the Dock. Under Go in the Menu bar > hold down the Option key and you’ll see the Library.
Scroll to Containers. Drag the com.apple.mail.plist to the desktop.
Scroll to the Mail folder. Rename MailXX (this allows you to make a new profile, but easy to revert to old if needed.)
Log out under the Apple in the Menu bar.
Log in.
Open Mail.
Add an account and test.
If you had mail stored under the local "On My Mac" folders you can import those into the new profile.
File System check on a different disk OS X
sudo fsck_hfs -fy /dev/disk1s1