esx find model of network card
vmkvsitools lspci -n | grep vmnic
The first column is VendorID and the second is DevID. E.g
VendorID 14e4 = Broadcom
VendorID 8086 = Intel
DevID 10bc = EXPI9404PTL or EXPI9404PTLBLK
DevID 10a4 = EXPI9404PT or EXPI9404PTBLK
www.intel.com/support/network/sb/CS-012904.htm?wapkw=expi9404pt
ubuntu gnome restore default icon folder
One by one:
1 Edit the file "$HOME/.config/user-dirs.dirs"
2 logoff and login
All together:
1 Delete the file "$HOME/.config/user-dirs.dirs"
2 Run "xdg-user-dirs-update"
For reference, here is my user-dirs.dirs:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
source: ubuntuforums.org/showthread.php?t=1528520
show hidden device manager windows
once only
=> Start | Run | cmd
set devmgr_show_nonpresent_devices=1
start devmgmt.msc
the device manager (devmgmt.msc) should be started in the same command line session as the set command otherwise the enviroment variable will be lost.
permanent change
=> Computer | Properties | Advanced system settings | Advanced tab. | Environment variables … | New…
Variable name: devmgr_show_nonpresent_devices
Variable value: 1
how to install Dig in Ubuntu
sudo apt-get install dnsutils
or
sudo -i
apt-get update
apt-get install dnsutils
root access in Ubuntu
sudo -i
Sometimes I get tired to type before every command sudo and sudo -i helps me in that case. Sure I can make a normal root user by just only command passwd without any parameters but ubuntu/debian people constantly remand me that is not a good idea so I will not do that.
flash player 64 bit in Ubuntu
sudo apt-get install chromium-browser flashplugin-installer
I don’t really need the flash player but the message “missing plug-in” makes me anxious so I remove Chrome and install Chromium.
the first script on a fresh box to remove experts-exchange.com
I don’t know why I hate the experts-exchange.com I just cannot help it
cp /etc/hosts /etc/hosts-`date +"%y%m%d"`
echo "127.0.0.1 experts-exchange.com www.experts-exchange.com" >> /etc/hosts
add vmware-tools depository in Ubuntu
Get and install public key
$>sudo wget packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub $>sudo apt-key add VMWARE-PACKAGING-GPG-RSA-KEY.pub
Add a line to file /etc/apt/sources.list like that:
deb packages.vmware.com/tools/esx/<esx-version>/ubuntu <dist> main restricted
in my case <esx-version>=4.1 and <dist>=maverick it will be:
deb packages.vmware.com/tools/esx/4.1/ubuntu maverick main restricted
$> sudo apt-get update
M$ windows style lock screen in Ubuntu
in Gnome main menu:
System | Preferences | Keyboard Shortcuts | Desktop | Lock screen : Mod4+L
disable CTRL-ALT-DEL in Ubuntu
I have commented “exec shutdown … ” in /etc/init/control-alt-delete.conf.
# control-alt-delete - emergency keypress handling # # This task is run whenever the Control-Alt-Delete key combination is # pressed, and performs a safe reboot of the machine. description "emergency keypress handling" author "Scott James Remnant" start on control-alt-delete # 110624 prevent restart from command line # task # exec shutdown -r now "Control-Alt-Delete pressed"