Run the Last Command with Sudo

This will add sudo to the last command (that you forgot to use sudo in the first place): sudo !!
Read more →

Editing Text Files from X in OpenSolaris

pfexec gedit
Read more →

Updating MacPorts

sudo port selfupdate Then to upgrade your installed ports: sudo port upgrade outdated
Read more →

Creating A Custom WinPE Disk

Currently I am using this to run Dell updates on non windows operating systems that are not directly supported. imagex /mountrw c:\winpe_x86\winpe.wim 1 c:\winpe_x86\mount imagex /unmount /commit c:\winpe_x86\mount copy c:\winpe_x86\winpe.wim c:\winpe_x86\ISO\sources\boot.wim oscdimg.exe -n -bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO c:\winpe_x86\dell.iso
Read more →

Compare Directories in Linux

comm <(ls ~/dir-new/) <(ls ~/dir) This works in OS x as well.
Read more →

Getting to Network Connections Quickly in Vista

Pop this into the run dialog: control ncpa.cpl This will also work for the following: control printers = Printers control sysdm.cpl = System Properties control appwiz.cpl = Programs & Features (Add & Remove) This can also be coupled with ‘Runas’: runas /user:computername\Administrator rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl
Read more →

Creating a Report of ALL SMTP email addresses from Active Directory

Ldifde -d DC=domain,DC=co,DC=uk -r (&amp;(mailnickname=*)) -l proxyAddresses -f Report.txt
Read more →

Creating a ZFS iSCSI Target

Using a Nexenta VM it is possible to create a 500 TB thin provisioned iSCSI target in three lines: zpool create zfspool01 raidz c2t0d0 c2t1d0 c2t2d0 zfs create -s -V 500TB zfspool01/share01 zfs set shareiscsi=on zfspool01/share01 In this case the disks c2t0d0, c2t1d0 and c2t2d0 are all dynamic 10 GB virtual disks. This can easily be mounted with the Microsoft iSCSI Initiator for testing; it will be interesting to see how well this plays with ESX…
Read more →

Checking DNS for CERT VU#800113

You can use the following web service to see if your DNS servers or resolvers need attention. For Windows: nslookup -querytype=TXT -timeout=10 porttest.dns-oarc.net. nslookup -querytype=TXT -timeout=10 porttest.dns-oarc.net. DnsServerName For *nix: dig +short porttest.dns-oarc.net TXT dig @DnsServerName +short porttest.dns-oarc.net TXT Where DnsServerName is the name of the DNS server you want to check. You are looking for GREAT, GOOD or POOR in the results. Original Reference
Read more →

Setting up Framebuffer on Ubuntu for the EEE PC 901

If you haven’t got hwinfo installed then: sudo aptitude install hwinfo Then put this in: sudo hwinfo –framebuffer Returns : 02: None 00.0: 11001 VESA Framebuffer [Created at bios.447] Unique ID: rdCR.il6towt04X5 Hardware Class: framebufferModel: Intel(r) 82945GM Chipset Family Graphics Chip Accelerated VGA BIOS Intel(r) 82945GM Chipset Family Graphics ControllerVendor: Intel CorporationDevice: Intel(r) 82945GM Chipset Family Graphics ControllerSubVendor: Intel(r) 82945GM Chipset Family Graphics Chip Accelerated VGA BIOSSubDevice:Revision: Hardware Version 0.0Memory Size: 7 MB + 704 kBMemory Range: 0xd0000000-0xd07affff (rw)Mode 0x0312: 640x480 (+2560), 24 bitsMode 0x0314: 800x600 (+1600), 16 bitsMode 0x0315: 800x600 (+3200), 24 bitsMode 0x0301: 640x480 (+640), 8 bitsMode 0x0303: 800x600 (+832), 8 bitsMode 0x0311: 640x480 (+1280), 16 bitsConfig Status: cfg=new, avail=yes, need=no, active=unknown``` Which seems to suggest the highest framebuffer resolution the 901 supports is 800x600, 24 bits.
Read more →