How do I create a trunk port in ESX ?

In order to create a trunk port in ESX you need to : Within vSphere or ViClient go to the “Configuration” tab. Select “Networking“ Select your “Add Networking“. Choose “Virtual Machine” and click “Next“ Select your Virtual Switch (or create one), then click “Next“ Choose you Network label and then add the VLAN ID as … Read more

Linux: Password Protect & Encrypt File Using OpenSSL

In this article we will encrypt (using AES 256 cbc) and password protect (Salt the AES) a file using the openssl binary. The file we will encrypt will be the file secretfile.txt.As you can see it is just a plain text file. [root@linux tmp]# cat  secretfile.txt This is a secret file that we do not … Read more

How to embed an SWF into a Word 2007 Document

In order to embed an SWF into a Word 2007 Document please follow these steps : Click the Microsoft Office Button on the top left corner. Click Word Options at the bottom of the panel Select Show Developer tab in the Ribbon and click OK On the Developer tab click the icon of hammer and … Read more

How to Install RRDtool on Redhat Enterprise Linux

RRDtool is the OpenSource industry standard, high performance data logging and graphing system for time series data. The RRDtool homepage can be found here Below shows you how to install RRDtool 1.3.1 on Redhat Enterprise Linux. Update your system [root@localhost /]# yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel make -y Download and … Read more

How do I install snmpwalk / snmpget using Yum ?

To install snmpwalk or snmpget on Redhat use the command yum install net-snmp-utilsThis will install the following binaries,  [root@localhost .ssh]# snmp snmpbulkget    snmpdelta      snmpinform     snmptable      snmptrapd snmpbulkwalk   snmpdf         snmpnetstat    snmptest       snmpusm snmpconf       snmpget        snmpset        snmptranslate  snmpvacm snmpd          snmpgetnext    snmpstatus     snmptrap       snmpwalk

vSphere/VI Client: User name or password has an invalid format

Issue When trying to add a user you get the following error message, User name or password has an invalid format Solution This can be down to either Your password is not eight characters in length. Your password or username entered contained characters outside of the character types allowed. These are : – Alphanumeric Characters … Read more

vSphere – Creating User and Group Permissions

This tutorial was created using the vSphere client, but the general steps should pretty much the same for the Virtual Infrastructure Client.If you are using vCentre please read the notes relating to this at the bottom of the article. Create Privileges Click “View | Administration | Roles” Right client and cick “Add” Select a name … Read more

vi / vim – Show Line Numbers

Below shows you how to display line numbers within vi. Enable While in VI and not in `Insert Mode`type the following to display the line numbers : :set number Disable To disable line numbers enter the following : :set nonumber

Windows – Environment Variables Windows 2000/XP

Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer. %ALLUSERSPROFILE% Returns the location of the All Users Profile %APPDATA% Returns the location where applications store data by default. %CD% Returns the current directory string %CMDCMDLINE% Returns the exact command line used to start … Read more

Windows: Disable Windows Update Restart Dialog Box

Your windows box installed another bunch of windows updates and keeps asking you if you want to restart. To disable this reminder, Go into the Command Prompt. via Start / Run / CMD. Enter the command sc stop wuauserv This change is temporary and updates will continue upon the next reboot.

Bash / CGI – Premature end of script headers

Issue When trying to add a image to your CGI script you recieve the following error and the image isnt displayed. [root@localhost cgi-bin]# cat /var/log/httpd/error_log [Fri Jul 10 20:51:39 2009] [error] [client 10.2.2.5] Premature end of script headers: picture2.jpg, referer: [Fri Jul 10 20:57:57 2009] [error] [client 10.2.2.5] (8)Exec format error: exec of ‘/var/www/cgi-bin/picture2.jpg’ failed, … Read more

Redhat / Fedora – No fonts found

Issue You receive the following error when trying to run an application (such as rrdtool), No fonts found; this probably means that the fontconfiglibrary is not correctly configured. You may need toedit the fonts.conf configuration file. More informationabout fontconfig can be found in …. Solution Run yum install deja* If you receive the following,  –> … Read more

Linux – how to use the alias command

The alias command allows you to create command shortcuts within your shell. Below shows you how, move to your home directory, [root@localhost ~]# cd ~ add the alias of os which will show the output of ‘uname -a’ [root@localhost ~]# cat >> .bash_profile [root@localhost ~]# alias os=’uname -a’ Reload you environment variables for your new … Read more

Unix Mount Commands

Samba mount -t cifs //[Windows IP]/[Share] /root/folder/ -o user=[username],pass=[password],nocase BSD mount -t cd9660 /dev/`mdconfig -a -t vnode -f discimg.iso` /cdrom Solaris mkdir -p /cdrom/unnamed_cdrom ; mount -F hsfs -o ro `ls -al /dev/sr* | awk ‘{print “/dev/” $1 1}’` /cdrom/unnamed_cdrom

Solaris Files and Prompts

Solaris is a UNIX based (BSD derivative) operating system. Nativity based on Sun (SPARC) hardware, Solaris allows for high performance due to its lightweight and minimal design. Basic Configuration /etc/inittab – sets run-level (default 3, runs scripts under S, 2 and 3) /etc/init.d/ – boot scripts /etc/rc?.d/S* – links to scripts to be run on … Read more

Linux : Random Fact Generator

The command below with present you with a random fact, lynx -dump  randomfunfacts.com | grep -A4 “\[3\]”| tail -n1 You can place it into your ~/.bash_profile file so that you receive a random fact everytime you log in.

-bash: /dev/null: Permission Denied

Issue After creating a new user account you may find that on login you recieve the following error, -bash: /dev/null: Permission denied -bash: /dev/null: Permission denied -bash: /dev/null: Permission denied  Solution /dev/null is a character special device which should have read+write permissions for everybody.Run the following to confirm the current permissions for /dev/null, ls -l … Read more

ESXi – Connecting to a named pipe

Within this article we will be creating a named serial pipe on 2 machines to allow us to connect to a virtual machines serial port. In this example we will use hyperterminal on a virtual XP machine to connect to the serial port of another virtual machine (in this case SUSE Linux) Adding a serial … Read more

Want to learn more about Operating Systems and Databases?

Here is our hand-picked selection of the best courses you can find online:
Linux Mastery course
Linux Administration Bootcamp
Learn Linux in 5 Days
Windows Server 2022 Administration course
Windows 10 Troubleshooting course
Complete VMware Administration course
VMware vSphere 8 – Install, Configure, Manage
Complete SQL Bootcamp
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial