Friday, September 16, 2011

openSUSE VMware tools vSphere 5

I just installed openSUSE 11.4 in vSphere 5 and wanted to use the latest tools. openSUSE comes with open source tools but that just isn't going to work for me. Here are some steps to get it done:

Install some applications prior to installing the tools
zypper install gcc make kernel-devel kernel-syms
Once this is complete you can mount the tools DVD and then drag it to the desktop, unzip, then execute the installer to install everything. This should work as it took me 5 tries to get everything installed.

zypper Package Manager

If you are using openSUSE this is the package manager which is very similar to yum and apt-get. Here are some commands which should help from the command line.

This will give you packages which have updates.
zypper list-updates
This will update all packages
zypper update
List all installed packages
rpm -qa
Check and update specific packages like httpd
zypper update httpd
Sample of searching for packages multiple line examples
zypper info {package-name}
zypper search httpd
zypper search perl*
This will install a package.
zypper install {package-name}

yum Package Manager

I know apt-get like the back of my hand and here are a few commands to help with YUM.

This will give you packages which have updates.
yum list updates
This will update all packages
yum update
List all installed packages
yum list installed
List all installed for specific packages like httpd
yum list installed httpd
Check and update specific packages like httpd
yum update httpd
Sample of searching for packages multiple line examples
yum list {package-name}
yum list httpd
yum list perl*
This will install a package.
yum install {package-name}

RedHat/CentOS 6 Networking

I am working on a project where I needed to install CentOS and get networking setup. Since RedHat is almost the exactly the same these should work on either. I will be working from the command line for all of the command and logged in as ROOT.

There is a quick command that is pretty easy: (this bring up a nice menu system)
setup
You can also go right to the config files:
cd /etc/sysconfig/network-scripts
nano ifcfg-eth0
Here is the output from my DHCP enabled setup:
DEVICE=eth0
HWADDR=00:50:56:a1:15:d3
NM_CONTROLLED=yes
ONBOOT=yes
BOOTPROTO=dhcp
DNS2=192.168.1.20
TYPE=Ethernet
DNS1=192.168.1.1
USERCTL=no
IPV6INIT=no
PEERDNS=yes
Then you need to restart the network to pickup the settings.
/etc/init.d/network restart

Raspberry Pi Zero W - Wireless Configuation

create the file under "boot" folder wpa_supplicant.conf country=GB ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev u...