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.
About Pages in Google Chrome
You can get some interesting information out of these if you pop then into Google Chrome:
about:crash about:memory about:stats about:histograms about:dns about:version about:network about:internets about:cache
Thin Provisioning Disks in ESX
Log in over SSH and run:
vmkfstools -c 50G -d thick /vmfs/volumes/san/vm/thick.vmdk vmkfstools -c 50G -d thin /vmfs/volumes/san/vm/thin.vmdk A ls will show:
50G thick-flat.vmdk 373 thick.vmdk 50G thin-flat.vmdk 398 thin.vmdk However a du will show:
50G thick-flat.vmdk 64K thick.vmdk 1.0M thin-flat.vmdk 64K thin.vmdk Which is, I think, rather neat…
Sniffing Network Traffic in ESX
If you want to enable promiscuous network sniffing within a vSwitch the safest way to do it is to create a second port group. Promiscuous mode can be enabled on an existing port group but once this has been done, any device connected to that port group has that ability.
Once you have your second port group correctly configured you can attach a monitoring appliance. To do my monitoring I tend to use OpenBSD with tcpdump and then use Wireshark to analyse the data.
Sysinternals Live from Powershell
Sysinternals Live is a service that enables you to execute Sysinternals tools directly from the Web without hunting for and manually downloading them.
dir \live.sysinternals.com\tools\ | fw -Column 4
A Basic Traceroute in Scapy
ans,unans=traceroute(['www.google.co.uk','www.yahoo.com','www.microsoft.com']) ans ans.graph(target="> /tmp/graph.svg")
SU on ESX
When you su in ESX you may find that you can not run the usual commands. This may be down to environmental variables, use:
su - This will change the environmental variables to the new user.
Searching Active Directory
This is a quick way to search Active Directory from the cmd line:
dsquery user -name * -limit 0 Just pop the name or name + wildcard where the * is. If you want to reduce the output to the relative distinguished name then just add:
dsquery user -name * -limit 0 -o rdn
Running Programs over SSH
This is by far the best thing to use when you are running programs that take a while to complete. The danger is that you lose your SSH connection and your program along with it. Use the following to start a screen session:
screen This generates a screen session that can be detached from by pressing:
ctrl + a d At this point you can safely close down the SSH session.