Archive for Web Hosting

Useful Vi Editor Commands (Visual Editor)

The vi editor also named as Visual Editor is one of the oldest screen-based editor and older version of vim editor used by many Unix/Linux users. It can be used from any unix based terminal interfacing. Since, the vi editor is not as a WYSIWYG, a user doesn’t have formatting capabilities such as creating paragraphs, changing fonts, line centering, etc…

Here, in this article, I have mentioned only those vi editor commands that are standard and most useful. It states, Starting vi, moving around with vi commands, editing files with vi editing commands, and colon “:” commands:

Opening a file using vi editor:

Simply enter the following command at the terminal command line to open single or multiple files:

vi myfileone myfiletwo

where myfileone and myfiletwo are the names of the files which you want to open.

Moving around with the vi editor commands:

Moving around is one of the challenging tasks for beginners in vi editor. In order to do so, place the vi editor in command mode simply by pressing the “Esc” key. Following are the commands that can move the cursor in vi editor.

Commands Actions
h or ← Moves the cursor to left
l or → Moves the cursor to right
j or Moves the cursor down
k or Moves the cursor up
^F or PageDown Moves screen one page down
^B or PageUp Moves screen one page up
^U Moves screen half a page up.
^D Moves screen half a page down
^E Moves the screen one line down
^Y Moves the screen one line up
+ Sends to the beginning of the next line
- Sends to the beginning of the previous line
0 (zero) Sends to the beginning of the current line
$ Sends to the end of the current line
} Sends to the next blank line
{ Sends to the previous blank line
[[ Sends to the beginning of the file
]] Sends to the end of the file
Switch you between beginning of file and current line
b Sends punctuation mark or one word back
B Sends one word back , including punctuation marks
e Sends to the end of the next word or punctuation mark
E Goes to the end of the next word, including punctuation marks
gg Goes to the top of the file
G Goes to the end of the file
^H Goes one character back, including newlines
H Goes to the top of the current page
^P Goes one line up
L Goes to the bottom of the current page
w Goes to the beginning of the next word or punctuation mark
W Goes to the beginning of the next word, including punctuation marks
^Z Suspends the vi; You can use the “fg” command to resume
ZZ Save the file and exit.

Editing files using vi editor commands:

To edit a file in vi editor, simply place the editor into a command mode. In order to edit a file in vi, place the editor into command mode.

back-space Removes the character before the cursor
del Removes the character mentioned under the cursor
i Inserts text under the cursor
I Inserts text under the cursor starting from the beginning of the current line
a Inserts text starting after current character
A Inserts text starting at the end of the line after the last character
cc Removes the whole line and moves into insert mode
cw Removes the current word and moves into insert mode.
C Deletes to the end of line and moves to insert mode.
Y Yank, copy current line to buffer
dd Removes the current line
dw Removes the current word
D Removes current line (but leave the newline)
J Joins the next line with the current line
o Inserts after the current line
O Inserts before the current line
p Pastes the lines in the buffer (from Y, dd, or x) after the current line
P Pastes the lines in the buffer before the current line
rc Overwrites with the character c, or replaces the current character
R Change to overwrite mode
s Removes the current character and moves into insert mode
S Removes the current line and moves into insert mode
u Undo the last activity
U Switch you between undoing and redoing the last edit
v Visual: starts the selection for a “d” (delete) or “Y” (yank). Simply move in the direction using movement keys after typing “v” to see the selection
V Visual line: selects the current line for deletion or Yank
x Removes the character under the cursor
X Removes the character after the cursor
~ Capitalize the current character
== Unindents the current line by typing the equal sign two times
. Repeats the last command
F1 Shows online help

Using colon “:” vi commands: 

:w Writes to the file; If file name is not given on the command line, it will complain
:w file-name Saves the file to specified filename
:q Quit. In vim editor, also exits from help.
:q! Quits without saving.
:wq Writes to the file and quit (same as “ZZ” command)

cPanel Hosting UK

Related Posts:

  • No Related Posts

Most Common Service Names and Their Port Numbers

Generally, the services and its port numbers are used to differentiate between various services that execute over transport protocols such as TCP/IP, UDP, DCCP, and SCTP. The service names were assigned on a first-come, first served process and in different ways, based on three ranges:

  • System Ports (0-1023)
  • User Ports (1024-49151)
  • Dynamic / Private Ports (49152-65535)

However, with the growth of Windows and single-user Linux systems, the port model that were trusted no longer works.

The most common Service names and their Ports are mentioned below:

Service Name Port Number
FTP 20, 21
SSH 22
Telnet 23
SMTP 25
DNS 53
DHCP 67, 68
TFTP 69
HTTP 80
POP3 110
NNTP 119
NTP 123
IMAP4 143
LDAP 389
HTTPS 443
IMAPS 993
RADIUS 1812
AIM 5190

On Linux machines, the following file consists all the list of port assignments for the specific machine:

/etc/services

Whereas, on Windows machines, the following file describes the service names using port numbers with protocols:

C:windows\system32\drivers\etc\services

Related Posts:

  • No Related Posts

Rebuild / Recover the Httpd.conf file in cPanel via Shell Command

The httpd.conf file is a very important part and a configuration file which is utilized by the Apache HTTP server. Basically, the httpd.conf file is used to store data on several functions of the server, which is editable by adding or removing the “#” sign in the opening of the line.

In case if your httpd.conf file is damaged, probably you will have to create a new one of apache configuration in your cPanel. Creating a fresh new httpd.conf file will make your lose your existing configuration. With the following shell command you can easily rebuid the httpd.conf file.

Steps to Rebuild / Recover the httpd.conf file:

Step 1: Log-in to the SSH as a Root user.

Step 2: Enter the following command to recover the stable httpd.conf file, which will be created automatically via the cPanel shell script.

/scripts/rebuildhttpdconf

[Note: The httpd.conf file should be rebuilt only when it is edited in a wrong way due to which your apache web server have been prevented from starting.]

Related Posts:

  • No Related Posts

eNlight Cloud – Cloud Computing as it should be. Auto Scaling and Completely Cost-Effective

Today, eUKhost Ltd. introduces an entirely new cloud computing product called “eNlight Cloud” – a cost-effective, auto-scaling, pay-per-use cloud hosting solution. While “pay-per-use” sounds daunting, with eNlight Cloud, it allows you to pay only for the resources you may need and only pay for what you use, and so you will only be charged for what resources you use on your virtual machine. And eNlight will intelligently auto-scale resources to meet the demand and needs of your eNlight Virtual Machine up to the maximum resources that you have allocated to pay for, in the event that those resources are required; for example in the event of peak traffic to your business or online website(s). It is “pay-per-use” done right. With eNlight Cloud, you are always in control so no nasty surprises at the end of your billing period.

How does eNlight Cloud work?

“eNlight” is an intelligent cloud computing platform that works on the hardware virtualisation technique, with eNlight residing between the system hardware and the operating system of virtual machines. Resources (such as CPU and RAM) are automatically loaded as per the requirements of your virtual machine, with the resource scaling done automatically which is incredibly cost-effective, meaning eNlight Cloud will turn out to be a much more affordable solution to a dedicated or virtual private server.

The eNlight Cloud platform is powered with metering tools, which allows “pay per use” billing for eNlight Cloud customers, with resource usage statistics recorded every minute.

eNlight can intelligently detect when your virtual machine requires more capacity and resources, and will de-scale resources accordingly as required. This equates to a complete hosting solution while being cheaper than a virtual private or dedicated server, as for a large majority of server customers, not all the resources are used at any one time while a server is online, so you are not paying for resources you aren’t using unlike a virtual private or dedicated server.

eNlight Cloud comes with full root/administrator access.

Like a dedicated and virtual private server, eNlight Cloud comes with full root/administrator access, meaning you have full control over your eNlight Cloud VM while giving you the convenience of a ‘managed server’ solution by our in-house technicians, as do our VPS and Dedicated Server hosting customers enjoy. While you have full control over your eNlight VM, you can also ask our technicians to install any necessary services or software you may require on your eNlight VM at any time.

eNlight comes with the eNlight Control Panel, which provides server management of your eNlight VM. eNlight is like a standalone virtual server and so you can easily go ahead and install cPanel or Plesk if you wish by choosing the CentOSCP template when setting up a new VM upon after ordering your eNlight, for the management of web-based applications and data, while having the benefits of the eNlight Cloud scaling technology.

There are no contract periods with eNlight.

eNlight comes with absolutely no time-bound contracts, which equates to greater flexibility and freedom on the duration of your eNlight Cloud service. You can shut down your eNlight Virtual Machine at any time and only pay for what you have used.

eNlight is a cloud environment.

With centralised storage and backup servers in the case of hardware failure, with eNlight, we are able to offer a 100% uptime guarantee for your eNlight VM which is represented in our 100% uptime Service Level Agreement (SLA). This is the power of a centralised cloud hosting infrastructure.

eNlight Control Panel.

The eNlight Control Panel allows you to create and manage multiple virtual machines while leveraging the eNlight Cloud scaling technology with the power of a centralised cloud hosting infrastructure.

You can purchase multiple virtual machines running under eNlight right within the eNlight Control Panel.

What is eNlight suitable for?

eNlight is a perfect replacement for virtual private or dedicated server customers that are looking for a cloud computing alternative, with the benefits of our auto-scaling technology with the inherent cost-savings as a result.

You can easily have cPanel or Plesk as the control panel environment for website management on your virtual machine(s). If you are a web hosting provider, your customers being hosted on your servers with the eNlight backend will enjoy continuous speed and reliability irregardless of the resource requirements of your server. You can always ensure your eNlight service has adequate resources for any eventuality, for example in the event of a new product launch with your business.

Differences between eNlight and a standalone server?

eNlight is much like a virtual private server, using virtualisation techniques. Your eNight Cloud will consist of “virtual machines” and the resources of these virtual machines are managed automatically by eNlight in the background. Like a virtual private or dedicated server, you will have full (root) access to your virtual servers allowing you to the same control and customisability as you’d expect on a standard virtual private or dedicated server from us or any other web hosting provider. And of course, eNlight is fully managed too, so you can contact our senior technicians to install, update or upgrade any software or package you require on your virtual machines at any time.

How do I purchase eNlight Cloud or get further information?

You will find more information via our eNlight Cloud section of our company website, which is where you can also buy eNlight Cloud hosting. You can customise the resources you may need at any time throughout the lifespan of your eNlight VM on the page, prior to ordering (which are the maximum values of your VM). You can also change the maximum values of your VM (such as RAM and CPU) at any time.

If you have any questions, please contact our sales department. You can contact us via the client area, over the phone or talk to us over live chat.

Sales (Tel.) : 0808 262 0255

Sales (E-mail) : sales@eukhost.com

Related Posts:

  • No Related Posts

Web alternatives to desktop applications for web development, blogging, e-mail and more

Google is really pushing the “web-centric” future in regards to web applications that can essentially replace the need for any sort of desktop applications, considering a lot of our time on our computers is used being on the Web. Let’s face it, a lot of the time without Internet access your computer is useless.

There are many web “apps” that can replace our trusty desktop applications; some you may have heard of before, others probably not so.

Productivity and Web Development

Office

google docs 300x187For Office, there’s the trusty Google Docs service. It allows you to create and edit documents via the web app. As well as standard word documents, you can also create presentation documents and spreadsheet documents.

It’s a great alternative than having to purchase Microsoft Office, and of course, it is completely free to use and is part of Google’s overall ecosystem of services.

It supports Microsoft Office documents pretty well and will export to Microsoft Office format, alongside PDF and the OpenDocument Text format, which is used by OpenOffice (now defunct – which has been forked to the LibreOffice project led by the The Document Foundation).

Features include:

  • Headings and other basic features such as colours, fonts, font sizes, etc etc (such as subscript text, superscript text, strike-through/line-through text);
  • Table of Contents;
  • Page numbers and page count;
  • Bookmarks, headers and footers;
  • Page breaks;
  • Non-professional translation of document to other languages (presumably using Google Translate service);
  • Tables;
  • Insertion of images, comments, links, drawings and horizontal lines

Microsoft Office Web Apps

Microsoft also introduced their Office Web Apps, which are basic substitutions for the Office desktop productivity suite that they sell for Windows and Mac OS X systems.

However, the Web Apps are very limited, and you can tell it is because Microsoft does not want it to be an adequate replacement to the Office productivity software for Windows and Mac OS X. There is Microsoft’s Office 365 service, but it appears they are advertising it as for professionals, small businesses, enterprises and education customers. However, it starts at £4 a month. Over a year, however, that is nearly the cost of a Office license that you can use essentially indefinitely.

That said, the Office Web Apps have purposely a lack of important features so I would recommend Google Docs for productivity office work.

E-mail

An e-mail client on the web?! As the Apple saying goes, there’s an app for that. Web app at least. Smampi is a free web e-mail client. You can add multiple e-mail accounts to your Smampi account. However, since your e-mails are going to be kept in the cloud, I do recommend (as I have) to look over their Terms and Conditions and especially their Privacy Policy. It takes 5 minutes of your time, yes, but it makes sure you know what they are doing with anything they store in the cloud (or more to the point, on their servers). This is the main issue people have with embracing cloud-based computing; the fact that a lot of your data and information will be kept in the cloud. Documents, files, e-mail, you name it.

Web Development and FTP

There’s a web app called ShiftEdit that is essentially a text editor and FTP client in one. It’s really cool, and works surprisingly well. It also has syntax highlighting for  various languages, including:

editor 300x187

  • HTML
  • CSS
  • JavaScript
  • PHP
  • Python
  • Perl
  • Ruby
  • Java

 

And more, including JSON!

It’s free. There are some limitations for the free version, including up to one website being added and edited at once. So you have to delete your site from your ShiftEdit account in order to be able to add a new site to edit. Overall, very good editor!

Picnik

Want to be able to make basic adjustments to your photos, screenshots or images? Use Picnik. It requires Flash, however, so it won’t work on an iPad or any other device that does not have Flash installed. That said, it’s free and works incredibly well. Definitely recommend you try it out.

my qr code

QR Creator

Want to be able to create QR codes? There’s a web app for that. QR codes are used primarily on mobile devices to scan a QR code. It may take you to an app within a smartphone store such as the App Store on iOS or the Marketplace on Android, or may simply contain text or even a URL to a web page.

Social and Chatting

IRC Chat Clients

Yes, there are web-based IRC chat clients.

irc 300x165

Mibbit

Nothing really to say. Works well, and allows you to select from a predefined list of IRC channels, or connect to a server manually with any relevant authentication information, such as NickServ, Server Pass, etc etc.

 

 

 

Send Files

Using web instant messaging clients, or can’t transfer files via your IM client? Use Just Beam It. It allows you to upload files and send a URL to your recipient in order to download the file in question. Works well.

URL Droplet

Can’t download something to upload to your Dropbox folder? Use URL Droplet. It will download the file and subsequently upload it to your Dropbox account.

Good browsers for web apps

Of course, web apps aren’t  useful on older or less-supported browsers with the latest web standards, such as CSS3 which, as of yet, hasn’t really gone that far as of now. But that’s to be expected with a large organisation like the W3c, probably working with many, many organisations and bodies to come up with the best specifications for the upcoming CSS3 and HTML5 standards.

Some good browsers include:

Google Chrome

Chrome is a great browser, supports HTML5 video and quite a bunch of HTML5 spec so works great with HTML5/JS games you may find around the web you may want to try out. Chrome is also the browser used with Google’s somewhat experimental Chrome Operating System. It’s quite experimental not from a technical perspective but from an implementation perspective; it’s a big shift in the way you do things on your computer, as everything is web-based (Chrome OS is just a Chrome browser, essentially).

Mozilla Firefox

Another great browser, widely used as well. Now has great features such as Firefox Sync for synchronisation of bookmarks, history, passwords, etc and Pinned Tabs, etc.

Internet Explorer 9

Microsoft is really having to play catch up in the browser space, and they have (mostly), with Internet Explorer 9. A huge improvement on standards support, supporting quite a bit of the HTML5 and CSS3 spec as well as a better and more up to date, modern and appealing user interface. IE8′s UI looked very clunky compared to every other modern browser out there.

Opera

Another great browser that needn’t be forgotten. Very standards compliant and a modern user interface. It has a very low market share compared to every other major browser listed above, but it is still one to recommend.

Related Posts:

« Previous entries Next Page » Next Page »