Setup WordPress using SSH

There are many choices available to setup WordPress on a server. This post talks about setting up WordPress over a secure Secure Shell(SSH). Setting up WordPress over SSH is actually easier than one may think.

First make sure you have access to the server and login using SSH. Go to the directory you want to install WordPress. Then type in the following on your servers terminal:

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

tar -xzvf latest.tar.gz

This will download the latest version of WordPress and extract the contents of the tar.gz. Next you might want to move the content of the WordPress directory to the root of the your web server(www or some other location you have chosen).

To move the contents from the WordPress directory to your root you could do the following:

mv * wordpress public_html (change public_html to reflect to your server)

Beware if you are using the mutlisite feature, you cannot put WordPress into its own directory and declare it in your index.php file, mutlisite will not work. For mutlisite to work, WordPress needs to be stored in the root of your server which could be, www or some other directory you have chosen and setup already.

Although, if you are using just the normal WordPress without mutlisite, you can hide the WordPress directory. You do not have to do this, but it gives you a clean root folder.

You can do this by, just moving WordPress’ index.php file in to the root directory (public_html or whatever) and then declare to WordPress where it should look for its files and content.

You could rename the contents of the WordPress directory;

mv wordpress something_random

Move the index.php from the orginal directory to the root of your server;

cd into the something_random(wordpress directory)

cp index.php ../public_html (your root directory)

rm index.php (remove index.php from wordpress directory)

Then:

cd .. back to public_html (or whatever your directory is)

nano index.php (open index.php)

Look for:

require(‘./wp-blog-header.php’);

Change to:

require(‘./the-name-you-gave-the-directory-here/wp-blog-header.php’);

…and Save the file, then your done.

Then go to your domain and you would be able to follow WordPress’ installer instructions from there. Hope this helps, remember any comments or questions are welcome, just please keep them friendly.

You can print this post in a printable format here.

Send Documents from Google Docs Directly To Your Kindle

If you have a Kindle an want to send your documents from Google Docs directly to it, it is a really simple process. Google Docs allows you to email your documents directly from the Google Docs interface. You can get Amazon to convert the documents from Google Docs directly into a Kindle format too.

You first need your Kindle email address. You can find it on your kindle device:

Home > Settings > Second Page > Under Send-to-Kindle Email

Once you have your Kindle email. Use the; @free.kindle.com and not @kindle.com is best, that way you will not get charged by Amazon, if you are using Wi-Fi (3G it will not work and you have to use the non-free email).

Now you have your email address, go back to the Google Docs interface and open the document you want to send to your kindle. Once you have opened the document go to:

File > Send as an Attachment

I found if sending the document in “.pdf” format directly from Google Docs to Amazon even if you add Convert to the subject line, Amazon does not convert it and it stays as a “.pdf” instead of the kindle format. As Amazon will not convert it from “.pdf” format, it can be hard to read on the kindle.

I found the best work around was to send the document directly from Google Docs, as a “Word” document format. Amazon then converts it to a kindle format and its becomes easy to read.

So it is really up to you, which format you choose to use, but some formats may remove some of the kindle features and make it a hard to read. I found the “Word” format to convert and work best – surprisingly.

So once you done the above, next;

Attach as > Choose your format (pdf, word) > Add email, your kindle email > Send.

After a few minutes you should see the new document appear on your kindle device and in your library. Any comments or questions are welcome, please keep them friendly.

You can print this post in a printable format here.

My Thoughts on Google Docs

Google Docs is a great alternative to using, Microsoft office products or other operating system based products for creating and editing documents. Although you will be putting all your Documents at the mercy of Google and allowing Google to look after them (cough… privacy, cough… advertising) is questionable, but Google Docs does have many advantages.

Google Docs allows you to create and edit documents on line in a very nicely styled editor. All your Documents are stored within the cloud and therefore you can access them from anywhere with a Internet connection and keep them all in sync (as long as your browser is supported by Google Docs).

My Problem Before Using Google Docs

Before Google Docs, I used either Microsoft Office or LibreOffice depending where I was working and the operating system. I normally would write a document and save it to a USB stick and then use it between computers. I would normally also save a copy to my desktop hard drive as well for backup.

As you know Microsoft Office has lots of features especially on the newest version. As soon as you start to use these and try to open and edit in LibreOffice, you soon find formatting problems arise. Compatibility is a real issue between them both. I cannot use just one because if, I am at home I use Linux and when, I use other computers – normally they are Windows.

The next problem was remembering which was the up to date and latest version of the document. When I saved a copy on my hard drive and on my USB, it was easy to get confused or forget to update one. The documents soon became out of sync and became a big mess.

Neither Microsoft Office nor LibreOffice made writing or editing documents fun. They both have a heavy cluttered interface with too many features I would never even use (my thoughts).

So I went looking for an alternative and found Google Docs. After trying Google Docs, I find it prefect for my solution. One place to create and edit documents. One place to store and keep all documents in sync. Nice clean interface, easy to use and with just enough features. Prefect for my needs.

Why I decided to Use Google Docs

I found Google Docs fixed my problems of compatibility issues because, I can create a document in Google Docs and if need be still save it as a Word document or a PDF document. Although, I only use Google Docs for creating and editing documents now, its nice to know you can export your documents and are not locked into Google Docs once you create documents there.

I have found the Google Docs interface (the new one) to be very clear and easy to use. They do away with all the unnecessary features and really make it a nice editor to use.

You can access the Google Docs from any computer with a browser (as long as the browser is supported by Google Docs). All documents are kept synchronised and keep up to date, no more trying to find the latest version.

You can also see a revision of all your previous saved versions and see all the changes that have been made since. This is very useful if you delete parts of your documents and later want to check something you deleted from a previous version for example.

You can download the documents in many formats, noticeably; a Word compatible version or PDF version is on the list. Or you can even print the document straight from the Google Docs page – so you do not have to even download the document. Another great feature is you can send the document as a attachment by email – and its really simple, just add their email address and click send.

You can also comment on parts of your document, for your own notes. You might want to create a comment for example saying; need to add more details to here. That part of text then gets highlighted to show that.

Sharing is easy within Google Docs. You can share your documents with other people you choose, easily by a click on a button. Once you have shared the document with them they can, edit the document, comment and you can even chat. Imagine you have to create some notes about something, you can both write them together and see and discuss what each other is writing.

That is just some of the reasons I am using it. That is why I decided to write a post because I have found Google Docs so useful. But one thing to remember, Google is ‘looking after’ your documents, so caution is needed in my opinion.

Some Problems Related to Google Docs That I Have Experienced:

I have used Google Docs on Firefox, Linux fine. Some versions of Internet Explorer on Windows (yes I have to use it sometimes when studying) have caused Google Docs problems, although installing the, ‘Chrome Frame‘ normally fixes it.

If you upload the latest Word ‘.docx’ format it caused me editing and formatting problems within Google Docs, I tend to create and edit all my documents in Google Docs now anyway. But for others this may be a problem.

Conclusion

I no longer even carry a USB stick, because most of my documents are stored on the Google Docs cloud now. Although, I still download an make a backup copy for finished documents and save these else where.

Google Docs is great for editing and creating documents and gives you a great platform to store them and keep them organised. But remember Google is watching everything you do and is your new Big Brother. Google Docs is fine for writing up essays and assignments but creating and storing sensitive documents there is a no no for me.

Any comments or questions are welcome, please keep them friendly. What are your thoughts?

You can print this post in a printable format here.

Introduction

Welcome to my Blog! Here is an introduction to my Blog. This blog will be about my interests, somewhere to upload my notes and to offload my random thoughts. Often when scrolling around the Internet, I come across many different and interesting topics – this is where I will write about them. When I learn new things and when I have a interest in something, I will write about it here.

I was actually going to start blogging using a different domain name. But after I started to use the other domain name, I found out that twitter and other accounts had the name registered already. So to avoid confusion, I am going to use this domain and redirect the other domain here instead.

I decided to use WordPress.com after looking around at many different platforms including, self-hosted WordPress and in different programming languages such as Ruby. After weighting up the pros and cons, WordPress.com seemed the best fit – but that changed!

I found WordPress.com to restricted even with paid add-ons. So I decided to self-host this blog with a few others on a server an use the multi-site feature, WordPress has instead in the end.

This allows me to use whatever themes, plugins and to make any customisations I want. It would have been great if WordPress.com (the hosted version) allows you to add your own themes and plugins – but it does not, at least for now anyway!

So after looking around I was thinking about Linode, they are a great web host and I have used them before there support it the best I have ever seen, you can expect a response in minutes (I am not joking). But I wanted to stay away from hosting my sites in the U.S this time if possible (for my own reasons).

I know, I am still using a ‘.com’ domain name. Although I have registered; .co.uk and .eu – for if there is need to change.

I found a web host in France called, Gandi.net and they offer, hosting and domain name registration services and host some big names such as; The Electronic Frontier Foundation, Creative Commons, Gnome, Debian and many more. So I decided to try them and there service and support seems so far very good.

Another reason I choose them was for there domain registration service, they have a really solid platform and there terms and conditions are very clear and easy to understand. They even offer, for free with each transfer or new domain;

Private domain registration,
Free email hosting and
SSL certificate  (for one year).

So I have a few domains with a few different domain registrars and have been looking to consolidate them to one place for a while and after reading the GoDaddy and SOPA discussions, it gave me a push to start transferring my domain names. Although, I only have one domain with GoDaddy the rest was with other domain registrars – anyway.

To give GoDaddy credit where due, they was experiencing high rates of, transfers out of their service at the time. When I transfered my domain out, they was helpful and the service was fast. Although I did have to produce, photo I.D but you can look at that two ways; Producing photo I.D is a pain but at least they do care about security.

So that is pretty much it for the introduction. I was using WordPress.com but now I switched to self hosted WordPress for more flexibility and tried to move away from hosting my sites in the U.S. So if you are looking to do the same, Gandi.net is a good place to go.

I am looking forward to adding much content here over time, so keep checking back to find it. This is a personal blog, my thoughts and opinions, I am no expert and get things wrong but I welcome all comments and discussions – just keep them friendly!

You can print this post in a printable format here.