Deploy Android Operating System on VMware ESX

android logo

The Android-x86 Project has ported Android to the x86 platform, from ARM so now you can install it on your favorite virtualisation platform (in my case I will be using VMware but you can use others like Virtual Box etc).

Requirements

1. A virtualisation platform (I will be using VMware in this example only)
2. A copy of Android-x86 bootable ISO (current version is 4.3)

Procedure

1. Create a new virtual machine

2. The operating system will be Linux/Other 2.6 x86

3. I recommend using at least 512mb of RAM and a hard disk of 3GB or more using IDE and thick provisioned

4. Mount the ISO to the CDROM drive and ensure it is “connected”

5. Power on the virtual machine

Android Live CD Menu

6. Select “Installation – Install Android-x86 to harddisk”

7. Select “Create/Modify partitions

Android Create Partition

8. Select the right arrow to select “New”

Android Create Partition - New9. Select “Primary”

Android Create Partition - Primary10. Hit enter to allow maximum allocated sizeAndroid Create Partition - Size11. Hit enter on “Bootable” and make sure “Boot” comes up under “Flags” then move the arrow to the “Write” and hit enter

Android Create Partition - Bootable and Write12. Type “yes” and press enterAndroid Create Partition - Confirmation

13. Select “Quit” and select the new partition and press enterAndroid Install OS on new partition14. Select “Ext3” and confirm you want to format the partition

15. Select “Yes” to install GRUBAndroid Install GRUB

16. Select “Yes” to install /system as read writeAndroid Install Sytem Read Write

17. Select “Reboot” and unmount ISO from CDROM

Android Android Begin Setup Phone

18. Configuring the ethernet 0 adapter if DHCP is not available

adb shell
su
mount -o rw,remount /system
ifconfig eth0 ipaddress netmask 255.255.255.0
route add default gw yourgatewayip dev eth0
setprop net.eth0.dns1 8.8.8.8
setprop net.eth0.dns2 4.4.2.2
netcfg
</code>

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Installing and Configuring Exim4 to Smarthost on Linux Debian or Ubuntu

linux-logo-300x300

1. Update source repositories

apt-get update && apt-get -y upgrade

2. Install Exim4

apt-get install exim4-daemon-light

3. Create and edit the following file location:

vi /etc/exim4/passwd.client

4. Add the following line

smarthostaddress:login:password

example: smtp.example.com:chris:password

5. Create the following file

vi /etc/exim4/exim4.conf.localmacros

6. Add the following line

AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS = 1

7. Reconfigure Exim4

dpkg-reconfigure exim4-config

7a. Select “mail sent by smarthost, no local mail”

8. Apply settings by resetting daemon

/etc/init.d/exim4 restart

9. Test by sending a email using Mutt

mutt -s "test1" [email protected]

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Automatically Reboot VMware ESX Host after Purple Screen of Death (PSOD)

VMware_logo

 

The default and recommended setting is to leave the purple screen of death up to help you notice that the host has died and also leave the PSOD up to help troubleshoot the issue because on reboot you can loose your logs.

1. Shell (SSH) into the physical host or access the host directly from the troubleshooting console

2. Change the auto reboot timeout value (in seconds) in this example I have changed it to 2 minutes

esxcfg-advcfg -s 120 /Misc/BlueScreenTimeout
vmware esx bluescreentimeout

 

3. Test the physical host by sending an unsupported command (do this only if you really want to test it!)

vsish -e set /reliability/crashMe/Panic 1

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

How to Install WordPress on Linux Ubuntu or Debian

Install WordPress

Install WordPress on Linux Ubuntu or Debian

Assumptions:

  • A working Debian or Ubuntu server (ideally headless)
  • A working knowledge of Linux (view this post for some useful commands)
  • A standard Linux account preconfigured
  • Apache 2 installed and configured correctly
  • Ideally a preconfigured vhost (not required but a good idea, refer to this post)
  • PHP5 installed and configured correctly
  • mySQL installed and configured correctly
  • A valid domain name
  • Firewall rules allowing port 80 traffic from the internet to the internal Apache server
  • A records for the domain pointing to the outside static IP address of the Apache servers internet connection

Procedure:

Install WordPress

1. Log into the server using a standard Linux account (Ideally Putty to terminal)

2. Elevate to root privileges

su - root

3. Make a folder to hold WordPress in a temp area

mkdir -p /tmp/wordpress

4. Change to temp location

cd /tmp/wordpress

5. Download the latest WordPress source installation files

wget http://wordpress.org/latest.tar.gz

6 Extract files

tar -xzvf latest.tar.gz

mySQL Configuration

7. Log into mySQL (this will be your Root mySQL password, not the root of your Linux box)

mysql -u root -p

8. Create database (call it the same as your site)

CREATE DATABASE wordpress;

9. Create mySQL user (Change “username” to something other than username – it will only be used to authenticate to mySQL)

CREATE USER [email protected];

10.  Set the password for the username (Change password123 to something else)

SET PASSWORD FOR [email protected]= PASSWORD ("password123")

11. Grant privileges for the new user to the database

GRANT ALL PRIVILEGES ON wordpress.* TO [email protected]
-&amp;gt; IDENTIFIED BY 'password123';

12. Refresh mySQL

FLUSH PRIVILEGES;

13. Exit mySQL

EXIT

WordPress Configuration

14. Copy WordPress same configration file to a working file

cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php

15. Open configuration file (refer to this post for a reference to VI)

vi /etc/wordpress/wp-config.php

16. Find the following following lines:

define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpressuser');
define('DB_PASSWORD', 'password');

Change “wordpress” to the database name you created in step 8
Change “wordpressuser” to the username you created in step 9
Change “password” to the password you created in step 10

17.  Save and exit

:wq

Loading WordPress to Apache

18. Change to the WordPress temp folder

cd /tmp/wordpress

19. Create new site folder (change”newsite.com” to the domain name of your site)

mkdir -p /var/www/newsite.com

19. Move all WordPress files from the temp location to the active location

mv * /var/www/newsite.com -R

20. Give ownership rights

chown www-data:www-data /var/www/newsite.com -R
chmod g+w /var/www/newsite.com -R

Apache Configuration

21. Install php5-gd

apt-get install php5-gd

MySQL Configuration

22. Install php5-mysql

apt-get install php5-mysql

Rewrite

23. Run the Apache rewrite

a2enmod rewrite

Testing

Browse to the site http://example.com/wp-admin/install.php

Conclusion

This was a quick write up on how to install WordPress on Ubuntu or Debian.

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Keywords: Install, WordPress, Linux, Debian, Ubuntu

Install VMTools for Ubuntu or Debian using Bash Scripts

VMware_logo

If you are looking to install VMware VMTools on multiple Ubuntu or Debian Linux servers and don’t feel like typing commands all day then you can run this bash script to install it automatically so long as you are willing to accept all defaults.

1. Mount VMtools

2. Create script folder

mkdir -p /scripts

3. Create scripting file

vi /scripts/vmware-inst.sh

4. Paste the following into the script

#!/bin/bash
mkdir -p /mnt/vmtools
mkdir -p /tmp/vmtools
mount /dev/cdrom /mnt/vmtools
cp /mnt/vmtools/VM*.gz /tmp/vmtools
cd /tmp/vmtools
tar zxvf VM*.gz
cd vmware-tools-distrib
./vmware-install.pl -d
rmdir /mnt/vmtools
rm -rf /tmp/vmtools
echo Finished installation and cleaned up

5. Change script to execute parameters

chmod +x /scripts/vmware-inst.sh

6. Execute script

/scripts/vmware-inst.sh

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.