Tuesday, October 26, 2010

Get Grub2 to save last chosen entry

Every piece of pseudo-help I've read on this matter says:

"edit /etc/default/grub, and set GRUB_DEFAULT=saved" to save your default boot choice.

While this is true, its not complete. It's not what 90+% of the people are looking for. It's a question of semantics.

I want to save my default boot choice EVERY TIME I BOOT... i.e. save the last chosen entry every time I boot - for multi-OS systems, I believe this is fundamental.

For this to happen, you need to ADD to /etc/default/grub (it's missing altogether in the file) the entry:

GRUB_SAVEDEFAULT=true

This solves this issue. Without this line, /boot/grub/grubenv never gets updated when you choose you boot entry in grub boot menu.

This option is listed in 'info grub', but appears nowhere in the /etc/grub.d/* files.

Following the usual notation, the entry should be in the file, set as false and commented, indicating the default option if omitted:

#GRUB_SAVEDEFAULT=false

[ trackback ]

Thursday, July 15, 2010

Disable IPv6 on Windows 7 ~ 8.1

Create

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents = 0xffffffff (DWORD:32b)

[edit - it also works for Windows 8 and 8.1]


[ trackback ]

Monday, May 3, 2010

Disable IPv6 on Ubuntu 10.04 Lucid Lynx

Add to /etc/sysctl.conf


#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1



and reboot... or for a quickie, 'echo 1 > /proc/sys/net...' as root


[ trackback ]

Saturday, March 20, 2010

Wireshark as non-root user

When in Windows, you get the NPF service... in Ubuntu/Debian, you get:

apt-get install libcap2-bin
setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap

[ backtrack ]

Monday, November 30, 2009

TomTom maps - latest version

Determine which version is the latest for your TomTom device:

  1. Go to tomtom.com/products/maps and select map (for ex. - Europe-840 for x50 devices)
  2. right click on map's picture and get properties - you'll see ....tomtom.com/lib/img/mapshop/maps/map14477.gif - here 14477 - is map ID in TomTom store.
  3. create url-path with this ID: http://num1.id.tomtom.com/14477
  4. put this link to your browser - voila! Now you got almost all map's info including region, build, IQ Routes™ supporting, supported devices
Et voilá!

[ trackback ]

Thursday, October 29, 2009

Ubuntu & NVidia :: Dual screen setup and gnome-panel

Dual monitors, set up with nVidia TwinView in a way that the gnome-panel does not stretch across the whole desktop but is only on one monitor.

Now I want to add another panel on the second monitor, but if I create a new one, I can only add it to the primary display.

Solution:
  • add a new panel as usual
  • run gconf-editor and go to apps/panel/toplevels/panel_
  • set the variable "monitor" from 0 to 1
And that's it!

[ trackback ]

Tuesday, August 25, 2009

Jumbo Frames on VMware ESX

From the Service Console:
  1. Change the MTU on the vSwitch "esxcfg-vswitch -m 9000 "
  2. Do an "esxcfg-vswitch -l" and a "esxcfg-nics -l" to make sure the vSwitch and the physical NICs associated with it are now set to an MTU of 9000.
  3. Create the port group and add it to the vSwitch "esxcfg-vswitch -a "
  4. Create a VMkernel interface and associated port group "esxcfg-vmknic -a -i -n -m 9000 "
  5. Test it "vmkping -s 9000"
[ trackback ]