2014 July

How to Resize a Linux Cloud Disk Size After an Upgrade

Scope

This article was written to outline the steps required to resize the disk space on a Codero Cloud instance that had previously been upgraded to a larger size.

 

Requirements

A Codero Cloud account
A running Codero Cloud instance that had previously been upgraded to a larger size.

 

Procedure

 

Log In

Log into your cloud instance as root using SSH

 

Verify upgraded size

You can verify the size of the drive had been upgraded by running the following command:

# fdisk -l /dev/xvda
Sample Output:

Disk /dev/xvda: 39.7 GB, 39728447488 bytes
255 heads, 63 sectors/track, 4830 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c1698
...

The available disk is 39.7GB

 

Verify current disk size

Check the current size of the disk by running the df (disk free) command

df -h
Sample Output:

Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda3       19G  1.1G   17G   6% /
tmpfs           497M     0  497M   0% /dev/shm
/dev/xvda1      485M   64M  396M  14% /boot

In this example the current usable disk size is 19G

 

Resize the disk

Resize the disk using the resize2fs command

# resize2fs /dev/xvda3
Sample Output

By admin on July 18, 2014 | Cloud, Linux | A comment?

How to Upgrade your Codero Cloud Server

Scope

This article describes the steps required to restore a previously created Codero Cloud snapshot.

 

Requirements

An active Codero Cloud account
A cloud instance with a previously created snapshot

Please note that Codero Cloud servers can only be scaled UP and cannot be scaled down. In order to scale an instance down, you will need to first create the smaller instance, then copy your data to the new instance manually.

 

Procedure

Log In

Log into your Codero Cloud account at https://portal.codero.com

 

List available servers

Lists all available cloud servers by clicking the small cloud icon from the Main Menu.

cloud-list-servers
 

Display Control Options

If you do not see the Cloud control options (Start, Restart, ect., click the the downward pointing arrow located at the right of the cloud description.

 

Stop Server

The server must be stopped before you are able to upgrade it. To stop the instance, click the “Stop Server” icon.

cloud-control-options-stop

 

Upgrade Server

After the instance has stopped, click the “Upgrade Server” icon. This will display the sizes available.

cloud-options-upgrade-icon

 

Choose Server Size

A new window will appear with the available upgrade options. Click the size you wish to upgrade to, then click Upgrade.

cloud-upgrade-choose-size

 

Verify New Size

After a few moments, your server upgrade will complete and will automatically restart. You will see the upgrade change in the cloud description.

cloud-upgrade-restart

 

*** Resize your drive ***
While your instance is ready to accept the new drive size, you will need to manually resize it. The steps to resize your drive are quite different between Linux and Windows systems, so these steps are outlined in different articles.

 
 

By admin on July 12, 2014 | Cloud | A comment?

How to restore a Codero Cloud Snapshot

Scope

This article describes the steps required to restore a previously created Codero Cloud snapshot.

 

Requirements

An active Codero Cloud account
A cloud instance with a previously created snapshot

 

Procedure

Log In

Log into your Codero Cloud account at https://portal.codero.com

 

List available servers

Lists all available cloud servers by clicking the small cloud icon from the Main Menu.

cloud-list-servers
 

Display Control Options

If you do not see the Cloud control options (Start, Restart, ect., click the the downward pointing arrow located at the right of the cloud description.

 

Restore Snapshot

Click the “Restore Snapshot” icon. This will display the “Restore from a snapshot” confirmation form.

cloud-control-options-restore-snapshot-icon

 

Confirm Restore

Confirm you are restoring the correct snapshot based on the details displayed in the “Restore from a snapshot” confirmation form. If the information displayed is correct click Confirm Restore

cloud-restore-snapshot-confirm-form
 

Snapshot Restore

The screen will update displaying different stages of the restore process. The server will restart before the process has completed.

cloud-restore-snapshot-restore-in-progress
 
 

By admin on | Uncategorized | A comment?

How to Delete a Codero Cloud Snapshot

Scope

This article describes the steps required to delete a previously created Codero Cloud snapshot.

Codero cloud instances are only allowed 1 snapshot each. In order to create a new snapshot, you will need to delete any existing snapshots first.

 

Requirements

An active Codero Cloud account
A cloud instance with a previously created snapshot

 

Procedure

Log In

Log into your Codero Cloud account at https://portal.codero.com

 

List available servers

Lists all available cloud servers by clicking the small cloud icon from the Main Menu.

cloud-list-servers
 

Display Control Options

If you do not see the Cloud control options (Start, Restart, ect., click the the downward pointing arrow located at the right of the cloud description.

 

Delete Snapshot

Click the “Delete Snapshot” icon. This will display the “Delete a snapshot” confirmation form.

cloud-control-options-delete-snapshot

 

Confirm Deletion

Confirm you are deleting the correct snapshot based on the details displayed in the “Delete a snapshot” confirmation form. If the information displayed is correct, click the name of the snapshot, then click Confirm Delete

cloud-confirm-delete-form

 

After deleting a snapshot, it is strongly recommended to immediately create a new one. Failure to do so may result in an irretrievable loss of data.

 

By admin on July 11, 2014 | Cloud | A comment?

How to create a Codero Cloud snapshot

Scope

This article describes the steps required to create a snapshot of a Codero Cloud instance.

Snapshots are used to restore a cloud instance back to the exact state the instance was in at the time the snapshot was created. This means a snapshot can be used as a rudimentary form of backup. When a snapshot is applied, all files on the instance are in restored.

Cloud instances are only allowed 1 snapshot each. If you have previously created a snapshot, you will need to delete the existing snapshot before you can create a new one.

 

Requirements

An active Codero Cloud account
A previously created cloud instance.

 

Procedure

Log In

Log into your Codero Cloud account at https://portal.codero.com

 

List available servers

Lists all available cloud servers by clicking the small cloud icon from the Main Menu.

cloud-list-servers
 

Display Control Options

If you do not see the Cloud control options (Start, Restart, ect., click the the downward pointing arrow located at the right of the cloud description.

 

Create Snapshot

Click the “Create Snapshot” icon. This will display the “Create a snapshot” form.

ccoptionssnapshot

 

Title

Enter a title for the snapshot. The title should provide a very brief description of the current state of the cloud instance. After you’ve entered a title, click Create Snapshot

For this example, we’ve titled our snapshot “Fresh OS”

cccreatesnapshotconfirm

 

Snapshot complete

Once the snapshot has completed, you will see the “Restore Snapshot” icon in the Cloud Control Options.

cloud-control-options-restore-snapshot

By admin on | Cloud | A comment?

How to create a Codero Cloud Instance

This article is designed to walk you through the steps required to create a new Cloud Instance through Codero Cloud Portal https://portal.codero.com

Requirements:

* A current Codero Cloud Account.
 

Procedure

Log In

Log into your Codero Cloud portal using your login ID or Codero Client ID and your Password. https://portal.codero.com

 

Create Cloud

To begin creating a new cloud instances, click the cloud-portal-create-cloud symbol from the Main Menu in the left column. This will open the Create Cloud Server screen.

 

Name

Select a unique name identifier for this server. The name may only contain characters A-Z, 0-9 and hyphens (-). You are limited to a total of 60 characters for the name and it cannot start with a hyphen.

add-cloud-name

 

Size

Codero Cloud instances are available in a variety of sizes. Each size has predetermined RAM, Bandwidth, cores and disk space. Click the option that supports your requirements. The monthly pricing for each size option is displayed on the right.

If you intend to create a Windows instance, you will need to select a server with 1024 MB RAM minimum. Lower options will not support the Windows operating system.

add-cloud-size

 

Operating System

Select the desired Operating System (OS) by clicking on the OS Icon, then select the required version. Any additional license fees for the selected OS will be displayed on the right.

At the time of writing, the OS versions available are:

Ubuntu 10.04
Ubuntu 12.04
Ubuntu 14.04
Debian 6.0
CentOS 5.10
CentOS 6.5
Fedora 18
ArchLinux 2013.07.01
Windows Server 2008
Windows Server 2008 w/MSSQL Standard*
Windows Server 2012
Windows Server 2012 w/MSSQL Standard*
Docker 1.0 on Ubuntu 14.04

If you require MSSQL, but do not need the advanced options provided with MSSQL Standard, you should create an instance without MSSQL, then install your own version of MSSQL with the license provided to you by Microsoft.

create-cloud-select-os

 

Bandwidth

There are no options to select since Codero Cloud Bandwidth pricing does not change based on the cloud’s configurations. Currently, all incoming bandwidth is free and so is any private communication between the instance and any other Codero servers on the account provided they are connected with a Hybrid connection.

create-cloud-bandwidth

 

Billing Period

Select your desired billing period. Select between Hourly or Monthly. Hourly instances are best for development or for offloading processing spikes. If you are using your instance for hosting or other continuous services, select the Monthly option for the best pricing.

Note that when you change between Hourly and Monthly billing cycles, the prices listed for each Size and OS license fees are updated automatically.
Hourly instances are billed from the creation time until they are deleted. Simply stopping an hourly instance does not stop the billing for the instance. To stop all billing on a cloud instance, it must be deleted.

Hourly billing example
create-cloud-hourly

Monthly billing example
create-cloud-monthly

 

Create Server

The last step is to create your server! Click the blue Create Server button at the bottom of the page.

create-cloud-create-server

Depending on the size and operating system selected, it may take between a few minutes to as much as 1/2 hour for your instance to be created.

 

Note your Password and IP address!

create-cloud-instance-created

By admin on July 10, 2014 | Cloud, ServerPortal | A comment?

Understanding Codero Cloud Portal

This article is designed to help you navigate your Codero Cloud Portal account. When the screen width is limited, Only icons are displayed and the text descriptions are hidden. This document provides a brief summary of what each icon is used for.

 

Requirements

A current Codero Cloud account.

 

Icon Descriptions

The Codero Cloud Portal main menu (located on the left side of the screen) is broken down in to 4 main sections. Cloud, Billing, API and Support. Each section is defined by a large white icon with their related menu options located below in smaller, light gray colored icons.

 

cloud-portal-cloud-server Cloud Servers

cloud-portal-create-cloud Create Cloud Server

Use this option to create a new or additional cloud instances.

cloud-portal-list-cloud List Cloud Servers

Click here to display a list of all current cloud instances. You will use this option to start, stop, restart, change passwords and more for each instance.

 

cloud-portal-billing Billing

cloud-portal-payment-methods Payment Methods

Use this option to add or edit your current methods of payment.

cloud-portal-billing-history Billing History

Use this option to view your billing history. This will display payments made along with credits earned.

 

cloud-portal-api API (Application Programming Interface)

The Codero API is comprised of a set of http requests that will allow you to create, destroy, start, stop, reboot and other options you might be required to perform on your could instances directly from your software and completely without human interaction.

cloud-portal-api-key API Keys

An API Key is required in order to use the API calls. This key authorizes your software to have control access to your Cloud Instances.

cloud-portal-api-documentation API Documentation

Click this icon to learn more about the Codero Cloud API calls.

 

cloud-portal-support Support

cloud-portal-submit-ticket Submit a Ticket

Use this option to submit a ticket to the Codero Customer Support Dept. This options will redirect you to your Codero ServerPortal.com management system.

cloud-portal-support-chat Support Chat

Use the 24/7/365 Codero Support online chat system to get quick answers to basic questions or fast resolution to common issues. For more complicated issues, it is recommended to use the ticket system outlined above.

cloud-portal-knowledge-base Knowledge Base (Support Wiki)

Use the Codero Knowledge Base as your first line of support. Answers to most of your hosting and configuration issues can be found there. We recommend bookmarking useful pages so you can return again and again.

By admin on July 9, 2014 | ServerPortal | A comment?

How to create a Codero Cloud Account

This article is intended to assist potential new Codero clients with the steps required to create a cloud account. A cloud account is required to create a cloud instance and only costs $1.00 to get started.

 

Requirements:

A valid email address
A valid phone number where you can be reached
A valid credit card: $1.00 will be charged to your card for account verification.
Agree to the Terms of Service

 

Instructions

Log In

To begin, log into the cloud portal website at https://portal.codero.com

 

Personal Information

On the form enter the following information. After you have filled out each field, click Next ->
First Name: Enter your first name
Last Name: Enter your last name
Username: Enter a username. This username must be unique.
Email Address: Enter your email address
Confirm Email: Re-type your email address
Password: Enter a password.

Make sure it is difficult and at leat 8 characters long using a combination of Upper and Lower case characters, numbers and symbols.

Confirm Password: Re-type your password.

create-new-user

 

Business and Location Information

The screen will update now asking for your Business and Location Information. After you have completed the form, click Next ->

This form is asking information about your business. If you do not have a business, your your home address information

Company Name: Enter the name of your business. This field is optional.
Street Address: Enter the street address
City: Enter the street address
Postal Code: Enter the postal code (zip code).
Country: Select your country from the drop-down box
State: Select your state from the drop-down box
Phone: Enter a valid phone number

Failure to enter a valid phone number may result in cancelation of your order.

create-user-business-location

 

Billing Information

The final screen will ask you for your billing information. After filling out each field, click Create Cloud Account ->

Name On Credit Card: Enter the name on the credit card
Credit Card #: Enter the full credit card number, excluding any spaces.
Expiration: Select the number for the month and year for the expiration date from the drop-down boxes
CVV2/CID: Enter the 3 or 4 digit security code found on the back of the card.
[X] Agree to Terms of Service: Read the Terms of Service (TOS) and check the agreement box.

It is important that you read and understand the Terms Of Service for your cloud instance. You will be held legally accountable for all activity originating from your server.

create-user-billing-info

 

Locate Client ID

Congratulations! You have now successfully created a Codero Cloud account. Locate your name in the upper right corner of the Cloud Portal screen. In parenthesis, you will see a 5 digit number. This number is your new Client ID (CID). Please make a note of this number since you will be asked for it when requesting assistance from Codero support or sales.

cloud-portal-cid-underline

 

By admin on | ServerPortal | A comment?

How to use the nano command line editor in Linux

This article is designed to provide a few basic instructions for using the Linux nano command line editor. While nano does not offer the power of editors such as vi or vim, it works great for day to day editing where advanced features are not required.

Install nano

CentOS, Fedora, Redhat

sudo yum install nano

Ubuntu, Debian

sudo apt-get install nano

 

Start nano

nano /path/to/file/filename

 

Basic Editing

Using the nano editor is similar to most graphical editors you have used. Use the arrow keys to navigate the file, and type text as required. You can even use the Delete and Backspace buttons.

The keyboard is always in “insert” mode. You cannot de-select this to change to “over-strike” mode.

 

Keyboard shortcuts

Cancel: If you accidentally enter a command, you can cancel it anytime by pressing Ctrl+c to return to the editor.

 
Exit: Ctrl+x
If you have not saved your work, you will be promted to before exiting the program.

Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ?

Press y to save or n to exit without saving.

 
Save: Ctrl+o
To continue using the current file name, simply press Enter
To save to a new file name, enter the new name, then press Enter

 
Search: Ctrl+w
Enter the text you are searching for and press Enter
To search for additional instances of the same text, simply press Ctrl+w again followed by Enter

 
Search and Replace: Ctrl+\ (backslash)
Type the text to search for and press Enter.
Next type the text you are going to replace it with, then press Enter.
Before any text is replaced, the program will highlight the next intance it finds of the text to replace and will prompt you with the following question:

Replace this instance?

Press y to replace the displayed instance and move to the next.
Press n to skip and move to the next instance.
Press a to replace all instances found in the file.

By admin on July 5, 2014 | Linux | A comment?

How to apply an SSL Certificate in Plesk

This article applies to Plesk users that used the same server to create a CSR (Certficate Signing Request) and have purchased an SSL Certificate from a Trusted Provider. You should have a series of text files from your certificate provider.

If you have not yet created a CSR, you should read this article first:
http://www.howtowebhost.com/how-to-create-a-csr-in-plesk/

 

Open Advanced Domain Options

Open the Advanced Options for the domain you’re going to add SSL to.

How to view Advanced Domain Options

Advanced Domain Options are used to set the following settings:

Website Scripting and Security, PHP Settings, Web Server Settings, Applications, File Manager, Web Statistics, DNS Settings, Secure Your Sites (SSL), Password protecting directories, Website copying, Viewing Logs and creating web users along with information about how to move a site from development to productions and how to close a site from production to a development environment.

To access a Domain’s Advanced Settings:

From the Home screen, click “Domains” then click the link for the Domain name.

plesk-domains-domainname

 

Click the “Websites & Domains” tab, then scroll down the page until you locate the correct Domain.  (Unless you have added additional domains or subdomains to the subscription, this will be the only domain listed.)

At the bottom of the containing box, click the small arrow at the bottom center to display the advanced domain options.

advanced-settings-1

 

advanced-settings-2

 

Click “Secure Your Sites”

By admin on July 3, 2014 | Plesk | A comment?