How to get my reports in Chef Server working on Ubuntu

Problem: I installed the Chef Server but my Reports are not working. Solution: The reporting piece of Chef is actually installed separately from the server.  To get reports to work simply issue these commands. sudo chef-server-ctl install opscode-reporting sudo opscode-reporting-ctl reconfigure

How to resolve Windows machine names from Ubuntu server

Problem: I can’t resolve my Windows machine names on my Ubuntu Linux box. Solution: Install libnss-winbind and then update your /etc/nsswitch.conf file. To install libnss-winbind run the following command:  sudo apt-get install libnss-winbind When asked “Do you want to continue? [Y/n]” type Y and press enter. Now we have to update your /etc/nsswitch.conf file. We are going to use vim. Type sudo vim /etc/nsswitch.conf Type i (to enter insert mode) Add “wins” to the “hosts:       files dns” line so that it is “hosts:      files dns wins” Press Esc (to exit insert mode) Type :wq (to save and quit) Now ping your Windows machines by name.

Building Ubuntu Servers in Hyper-V

Download Ubuntu server Ubuntu Server 14.04 LTS ISO from http://www.ubuntu.com/download/server In Hyper-V Manager select New / Virtual Machine Before You Begin Click Next Specify Name and Location Name: <Stage> i.e. Dev, QA, Prod Click Next Specify Generation Select Generation 1.  If you don't you will not be able to mount the ISO for Ubuntu Click Next Assign Memory Startup memory: 512 Click Next Configure Networking Connect to the same external network with internet access used for your Windows VM Click Next Connect Virtual Hard Disk Select Create a virtual hard disk Click Next Installation Options Select Install an operating system from bootable CD/DVD-ROM Select Image file (.iso) and browse to Ubuntu Server iso. Click Next Summary Click Finish Start VM and connect to it. Language Select English Press Enter Ubuntu Select Install Ubuntu Server Press Enter Select a language Select English Press Enter Select your location Select United States Press Enter Configure the Keyboard (1) Select No Press Enter Configure the Keyboard (2) Select English (US) Press Enter Configure the Keyboard (3) Select English (US) Press Enter Configure the network Hostname: <serverName> Press Enter Set up users and passwords (1) Full name for the new user: <your name> Press Enter Set up users and passwords (2) Username for your account: <username> Press Enter Set up users and passwords (3) Choose a password for the new user: P2ssw0rd Press Enter Set up users and passwords (4) Re-enter password to verify: P2ssw0rd Press Enter Set up users and passwords (5) Encrypt your home directory: No Press Enter Configure the clock Is this time zone correct: Yes Press Enter Partition disks (1) Partitioning method: Guided - user entire disk and set up LVM Press Enter Partition disks (2) Press Enter Partition disks (3) Select Yes Press Enter Partition disks (4) Press Enter Partition disks (5) Select Yes Press Enter Configure the package manager HTTP proxy information: <leave blank> Press Enter Configuring tasksel Select No automatic updates Press Enter Software selection Select OpenSSH server Select Samba file server Select Tomcat Java server Press Enter Install the GRUB boot loader on hard disk Select Yes Press Enter Finish Installation Press Enter Login to server Type sudo apt-get update Your server is now installed and up to date.