From d56333f89cf1902d32dc47985708a761487c7f47 Mon Sep 17 00:00:00 2001 From: NearTan Date: Thu, 21 Nov 2013 01:37:47 +0800 Subject: [PATCH 1/4] =?UTF-8?q?neartan=E5=8D=A0=E5=9D=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/How to install Ghost blogging platform on Linux.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/How to install Ghost blogging platform on Linux.md b/sources/How to install Ghost blogging platform on Linux.md index 1819e1d520..eb9861d2fb 100644 --- a/sources/How to install Ghost blogging platform on Linux.md +++ b/sources/How to install Ghost blogging platform on Linux.md @@ -1,3 +1,5 @@ + neartan占坑 + How to install Ghost blogging platform on Linux ================================================================================ [Ghost][1] is a relatively new blog publishing platform which started out as a [£25,000 Kickstarter project][2]. While WordPress is still the dominant blogging tool on the web, it has now evolved into a general content management platform with tons of third party developed features, and over time has become increasingly cumbersome and complex to maintain. On the other hand, now only a couple of months old, Ghost promises to remain as a pure blogging platform with slick user-centric publishing interface. From 0174db93b83a8938334aa15a3009f324825c692e Mon Sep 17 00:00:00 2001 From: NearTan Date: Sat, 23 Nov 2013 00:38:35 +0800 Subject: [PATCH 2/4] =?UTF-8?q?NearTan=E5=8D=A0=E5=9D=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...tu Tips – Get Geary, A Lightweight Email Reader In Ubuntu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Daily Ubuntu Tips – Get Geary, A Lightweight Email Reader In Ubuntu.md b/sources/Daily Ubuntu Tips – Get Geary, A Lightweight Email Reader In Ubuntu.md index 3326324418..a4cf76cac9 100644 --- a/sources/Daily Ubuntu Tips – Get Geary, A Lightweight Email Reader In Ubuntu.md +++ b/sources/Daily Ubuntu Tips – Get Geary, A Lightweight Email Reader In Ubuntu.md @@ -1,4 +1,4 @@ - NearTan占坑 + NearTan占坑。 Daily Ubuntu Tips – Get Geary, A Lightweight Email Reader In Ubuntu ================================================================================ As you may already know, Ubuntu comes with its own email client called Thunderbird that allows you to setup email accounts to send and receive emails. It also support IMAP protocol which services like Gmail, Yahoo Mail and Microsoft Outlook support. From 0ccb441011ba4a15e8765be21d0fff4960bc1f9f Mon Sep 17 00:00:00 2001 From: NearTan Date: Sat, 23 Nov 2013 00:55:13 +0800 Subject: [PATCH 3/4] new --- ...nstall Ghost blogging platform on Linux.md | 95 ------------------- 1 file changed, 95 deletions(-) delete mode 100644 sources/How to install Ghost blogging platform on Linux.md diff --git a/sources/How to install Ghost blogging platform on Linux.md b/sources/How to install Ghost blogging platform on Linux.md deleted file mode 100644 index e2b25147e0..0000000000 --- a/sources/How to install Ghost blogging platform on Linux.md +++ /dev/null @@ -1,95 +0,0 @@ - - neartan占坑 - -======= -翻译中 by Linux-pdz ->>>>>>> 8aaeae6b88050a64fdfc96886a70ee0f3224b744 -How to install Ghost blogging platform on Linux -================================================================================ -[Ghost][1] is a relatively new blog publishing platform which started out as a [£25,000 Kickstarter project][2]. While WordPress is still the dominant blogging tool on the web, it has now evolved into a general content management platform with tons of third party developed features, and over time has become increasingly cumbersome and complex to maintain. On the other hand, now only a couple of months old, Ghost promises to remain as a pure blogging platform with slick user-centric publishing interface. - -In this tutorial, I will describe **how to set up Ghost blogging platform on Linux**. - -### Install Ghost on Linux ### - -Ghost is powered by Node.js. Therefore, first [install Node.js][3] on your Linux system. Make sure that the version of Node.js is 0.10 or higher. - -Next, log in to [http://ghost.org][1] (sign-up needed), and download the source code of Ghost. Then follow the procedure below to install Ghost. - - $ sudo mkdir -p /var/www/ghost - $ sudo unzip ghost-0.3.3.zip -d /var/www/ghost - $ cd /var/www/ghost - $ sudo npm install --production - -### Configure Ghost Before Launching ### - -Before launching Ghost, create its configuration file located at /var/www/ghost/config.js as follows. Replace "YOUR_IP" with the IP address of your host. - - $ cd /var/www/ghost - $ sudo cp config.example.js config.js - $ sudo sed -i 's/127.0.0.1/YOUR_IP/g' config.js - -### Test-Run Ghost in Development Mode ### - -At this point, you are ready to launch Ghost. - -Note that Ghost can run in two different modes: "development" and "production" modes. For safety, Ghost maintains configuration info of two modes separately in its configuration file (/var/www/ghost/config.js). For example, the two different modes use different database files (i.e., ghost-dev.db and ghost.db located in /var/www/ghost/content/data). - -Use the following commands to launch Ghost. Ghost runs in development mode by default. - - $ cd /var/www/ghost - $ sudo npm start - -If Ghost is launched successfully, you should see the following output in the terminal, indicating that Ghost is running on :2368. - -[![](http://farm8.staticflickr.com/7317/10881189204_d714f11321_z.jpg)][4] - -Go to http://:2368 on your web browser, and verify that you can see the following initial Ghost page. - -[![](http://farm4.staticflickr.com/3750/10881348733_f77d220de6_z.jpg)][5] - -### Launch Ghost in Production Mode ### - -After you have verified that Ghost runs okay, stop Ghost in development mode by pressing Ctrl+C. Now it is time to launch Ghost in production mode. - -When you run Ghost in production mode, you can use Node.js module called forever, which allows you to daemonize Ghost, and run it as a background process. - -To install forever module: - - $ sudo npm install forever -g - -Finally, launch Ghost in production mode as follows: - - $ cd /var/www/ghost - $ sudo NODE_ENV=production forever start index.js - -Verify that Ghost's database is successfully created in production mode (/var/www/ghost/content/data/ghost.db). - -You can also check a list of active forever processes. - - $ sudo forever list - -> info: Forever processes running -> data: uid command script forever pid logfile uptime -> data: [0] cH0O /usr/bin/nodejs index.js 15355 15357 /home/dev/.forever/cH0O.log 0:0:0:37.741 - -If you see output like the above, it means that Ghost is running in the background successfully. - -To stop Ghost daemon, run the following command. - - $ cd /var/www/ghost - $ sudo forever stop index.js - --------------------------------------------------------------------------------- - -via: http://xmodulo.com/2013/11/install-ghost-blogging-platform-linux.html - -译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 - -[1]:https://ghost.org/ -[2]:http://www.kickstarter.com/projects/johnonolan/ghost-just-a-blogging-platform -[3]:http://ask.xmodulo.com/install-node-js-linux.html -[4]:http://www.flickr.com/photos/xmodulo/10881189204/ -[5]:http://www.flickr.com/photos/xmodulo/10881348733/ From a5f17b9d6baa9c7f663395d264b7eeb8d57a2289 Mon Sep 17 00:00:00 2001 From: NearTan Date: Sat, 23 Nov 2013 00:58:53 +0800 Subject: [PATCH 4/4] translated --- ...tu Tips – Get Geary, A Lightweight Email Reader In Ubuntu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Daily Ubuntu Tips – Get Geary, A Lightweight Email Reader In Ubuntu.md b/sources/Daily Ubuntu Tips – Get Geary, A Lightweight Email Reader In Ubuntu.md index a4cf76cac9..3326324418 100644 --- a/sources/Daily Ubuntu Tips – Get Geary, A Lightweight Email Reader In Ubuntu.md +++ b/sources/Daily Ubuntu Tips – Get Geary, A Lightweight Email Reader In Ubuntu.md @@ -1,4 +1,4 @@ - NearTan占坑。 + NearTan占坑 Daily Ubuntu Tips – Get Geary, A Lightweight Email Reader In Ubuntu ================================================================================ As you may already know, Ubuntu comes with its own email client called Thunderbird that allows you to setup email accounts to send and receive emails. It also support IMAP protocol which services like Gmail, Yahoo Mail and Microsoft Outlook support.