mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
20131119-1 选题
This commit is contained in:
parent
f6946e99e3
commit
481a5d6991
@ -0,0 +1,41 @@
|
||||
Daily Ubuntu Tips – Create Virtual Network Cards In Ubuntu Linux
|
||||
================================================================================
|
||||
This tutorial is for users who want to experiment a bit with Ubuntu Linux. It not for everyone, especially those with machines that are used in production.
|
||||
|
||||
If you know a thing or two about networking and IP networks, then you know that in most cases, each network card will only be assigned one IP address. It’s a one to one thing and that’s what we’re used to.
|
||||
|
||||
The thing with one network card and one IP address is, you can only host or run in single network service/port on a machine with one nic card and IP address. For example, if you wish to run a web server, on port 80, only one web server will listen on that one IP address and that port #. That’s how it’s designed to work.
|
||||
|
||||
So, instead of the one-to-one relation with network cards and IP addresses, you can create virtual network cards that can be assigned individual IP addresses. So, a single physical network card can host unlimited sub-nic cards or virtual nic. Each can then be assigned their own IP addresses with assigned ports.
|
||||
|
||||
This brief tutorial is going to show you how to do that in Ubuntu. It’s a great way to run and test multiple network services with single port # on a single computer with one network card.
|
||||
|
||||
To get started, run the commands to open the network interfaces file.
|
||||
|
||||
sudo gedit /etc/network/interfaces
|
||||
|
||||
Then add as many virtual network cards as you want by following the steps in the picture below. By default, Linux machine assigned eth0 name to the first network card. So if your machine has one network card, it will be named eth0.
|
||||
|
||||
To add virtual network cards, create more static cards and name them eth0:1, eth0:2, eth0:3, etc. (eth0 followed by colon and a number).
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2013/11/virtualnetworkcardubuntu.png)
|
||||
|
||||
Also, for each network card you create, make sure each network is in a separate subnet.. this is networking 101.
|
||||
|
||||
When you’re done, save the file and reset the networking service by running the commands below.
|
||||
|
||||
sudo service networking restart
|
||||
|
||||
That’s it!
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2013/11/virtualnetworkcardubuntu1.png)
|
||||
|
||||
Enjoy!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.liberiangeek.net/2013/11/daily-ubuntu-tips-create-virtual-network-cards-in-ubuntu-linux/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
@ -0,0 +1,35 @@
|
||||
Daily Ubuntu Tips–Like GNOME Classic Menu? Get Classic Menu Indicator
|
||||
================================================================================
|
||||
Daily Ubuntu Tips–Like GNOME Classic Menu? Get Classic Menu Indicator
|
||||
|
||||
For those who have been following Ubuntu OS from the beginner, they’ve seen almost if not all the changes Ubuntu have gone through. There have been a lot of changes, especially on the desktop side. From the classic GNOME desktop environment to Unity, Ubuntu have completely been redesigned.
|
||||
|
||||
For some new users, all they know is the Unity desktop environment and just a few have heard of or seen the original GNOME desktop environment that powered Ubuntu previously. Ubuntu is completely different from what it used to be and some are having hard time coping with the way things have changed.
|
||||
|
||||
If you’re an old timer who wish to get back GNOME Classic Menu in Ubuntu Unity, installing Classic Menu Indicator will do the trick. This nifty package get installed in the notification area of the top panel and brings back GNOME Classic Menu experience in Ubuntu.
|
||||
|
||||
Like the classic GNOME Menu, it includes all the applications and structure of the classic menu. It’s easy to navigate and access applications for those who are used to it. For new users, it’s also easy to catch on.
|
||||
|
||||
This brief tutorial is going to show you how install this package in Ubuntu.
|
||||
|
||||
To get started, press **Ctrl – Alt – T** on your keyboard to open the terminal. When it opens, run the commands below to add its PPA archive.
|
||||
|
||||
sudo apt-add-repository ppa:diesch/testing
|
||||
|
||||
Next, run the commands below to install it.
|
||||
|
||||
sudo apt-get update && sudo apt-get install classicmenu-indicator
|
||||
|
||||
After installing it, go and launch the application from Unity Dash. It’s called Classic Menu Indicator. When you launch it, it will automatically dock at the top panel as shown below.
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2013/11/classic-menu-indicator.png)
|
||||
|
||||
That’s it, use it and enjoy!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.liberiangeek.net/2013/11/daily-ubuntu-tipslike-gnome-classic-menu-get-classic-menu-indicator/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
89
sources/How to install Ghost blogging platform on Linux.md
Normal file
89
sources/How to install Ghost blogging platform on Linux.md
Normal file
@ -0,0 +1,89 @@
|
||||
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 <YOUR_IP>:2368.
|
||||
|
||||
[![](http://farm8.staticflickr.com/7317/10881189204_d714f11321_z.jpg)][4]
|
||||
|
||||
Go to http://<YOUR_IP>: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/
|
Loading…
Reference in New Issue
Block a user