Installing Package Groups in Ubuntu Server

To re-run the package group selection from the Ubuntu server installation use: sudo tasksel If you want to view the avalable tasks use: sudo tasksel –list-tasks Just make sure you have the install CD in.
Read more →

Finding Group Membership from Active Directory with Dsquery

Use the following: dsquery user -samid "username" | dsget user -memberof -expand The -expand option will include nestled groups.
Read more →

Converting Wma to Mp3

This is easy with ffmpeg: ffmpeg -i source_file.wma -ab 128k output_filen.mp3 Where the -ab is the bitrate.
Read more →

Flushing the DNS Cache in OS X and Linux

In Leopard do: sudo dscacheutil -flushcache In Linux (Ubuntu): sudo /etc/init.d/nscd restart Update: In OS X Yosemite: sudo discoveryutil mdnsflushcache In OS X Mavericks, Lion, Mountain Lion: sudo killall -HUP mDNSResponder
Read more →

Adding a VLAN Adapter in OS X

Using the Network Preferences GUI you can add a VLAN tag network interface:
Read more →

Replacing the OS X Login Image

If you need to replace the system default image in Leopard OS X 10.5. You can do this easily from the terminal: sudo cp /System/Library/CoreServices/DefaultDesktop.jpg /System/Library/CoreServices/DefaultDesktop.jpg.bak Then just copy in the image you want (you really want this to be the correct aspect ratio/resolution): sudo cp ~/Pictures/filename.jpg /System/Library/CoreServices/DefaultDesktop.jpg
Read more →

Finding and Listing Email Addresses from Active Directory Groups with Powershell

Get hold of the excellent Quest Free PowerShell Commands for Active Directory, then once installed use the following command from the powershell (Quest) console: Get-QADGroupMember group name -Indirect | select name, email Change group name to the AD group you are interested in querying. Indirect will give you results from nestled grouping. This works for distribution groups as well as other types. Use the following to output the results to a csv file:
Read more →

Adding Colour to ‘ls’ in OS X

You can add colour to ‘ls’ with the -G option. To reduce typing pop an alias in your bash_profile file: alias ls=‘ls -G’
Read more →

Adding MacPorts Path/Environmental Variable

Run the following from a terminal: echo export PATH=$PATH:/opt/local/bin < < ~/.bash_profile source ~/.bash_profile
Read more →

Report a Dell Service Tag Remotely

Create a text file with the following: ComputerName = InputBox(Computer Name)strComputer = ComputerNameSet objWMIService = GetObject(winmgmts: _&amp; {impersonationLevel=impersonate}!\ &amp; strComputer &amp; \root\cimv2)Set colSMBIOS = objWMIService.ExecQuery _(Select * from Win32_SystemEnclosure)For Each objSMBIOS in colSMBIOSWscript.Echo Service Tag: &amp; objSMBIOS.SerialNumberNext``` Save it as a vbs then run: cscript filename.vbs You will need to run the script with the correct permissons to WMI.
Read more →