2
0
mirror of https://github.com/LCTT/TranslateProject.git synced 2025-03-24 02:20:09 +08:00

Merge pull request from martin2011qi/patch-1

Patch 1
This commit is contained in:
martin qi 2015-02-11 20:37:09 +08:00
commit af9ff8fe75
3 changed files with 224 additions and 222 deletions

View File

@ -0,0 +1,186 @@
如何在Linux命令行中创建以及展示演示稿
================================================================================
你在准备一场演讲的时候脑海可能会先被图文并茂、形象华丽的演示图稿所占据。诚然没有人会否认一份生动形象的演讲稿所带来的积极作用。然而并非所有的演讲都需要TED Talk的质量。更多时候演讲稿只为传达特定的信息。 而这个使用文本信息足以完成。在这种情况下你的时间可以更好的花在信息的搜集和核实上面而不是在谷歌图片搜索Google Image上寻找好看的图片。
在Linux的世界里有几个不同的方式供你选择来做演讲。比如带有大量多媒体展示、视觉冲击效果极佳的[Impress.js][1]专为LaTex用户提供的Beamer等等。而如果你苦于寻找一种简单的方式来创建并且展示文本演示稿[mdp][2] 就能帮你实现。
### 什么是Mdp ###
mdp是Linux下一款基于ncurses的命令行演示工具。我喜欢mdp在于它对[markdown][3]的支持使得我很容易以熟悉的markdown格式来创建幻灯片。自然它还可以很轻松地用HTML格式来发布幻灯片。另一个好处是它支持UTF-8字符编码这让非英语字符如希腊或西里尔字母的展示也变得很方便。
### 在Linux中安装Mdp ###
mdp的依赖需求很少如 ncursesw这使得安装非常简单。
#### Debian、Ubuntu或者它们的衍生版 ####
$ sudo apt-get install git gcc make libncursesw5-dev
$ git clone https://github.com/visit1985/mdp.git
$ cd mdp
$ make
$ sudo make install
#### Fedora或者CentOS/RHEL ####
$ sudo yum install git gcc make ncurses-devel
$ git clone https://github.com/visit1985/mdp.git
$ cd mdp
$ make
$ sudo make install
#### Arch Linux ####
Arch Linux可以通过[AUR][4]轻松安装mdp。
### 在命令行中创建演示稿 ###
安装mdp完毕你可以使用你喜欢的文本编辑器来轻松创建一个演示稿。如果你熟悉markdown的话很快就可以驾驭mdp。而对于那些不熟悉markdown的人来说学习mdp最好的方式就是从一个实例着手。
这里有一份6页的演示稿样本可供参考。
%title: Sample Presentation made with mdp (Xmodulo.com)
%author: Dan Nanni
%date: 2015-01-28
-> This is a slide title <-
=========
-> mdp is a command-line based presentation tool with markdown support. <-
*_Features_*
* Multi-level headers
* Code block formatting
* Nested quotes
* Nested list
* Text highlight and underline
* Citation
* UTF-8 special characters
-------------------------------------------------
-> # Example of nested list <-
This is an example of multi-level headers and a nested list.
# first-level title
second-level
------------
- *item 1*
- sub-item 1
- sub-sub-item 1
- sub-sub-item 2
- sub-sub-item 3
- sub-item 2
-------------------------------------------------
-> # Example of code block formatting <-
This example shows how to format a code snippet.
1 /* Hello World program */
2
3 #include <stdio.h>
4
5 int main()
6 {
7 printf("Hello World");
8 return 0;
9 }
This example shows inline code: `sudo reboot`
-------------------------------------------------
-> # Example of nested quotes <-
This is an example of nested quotes.
# three-level nested quotes
> This is the first-level quote.
>> This is the second-level quote
>> and continues.
>>> *This is the third-level quote, and so on.*
-------------------------------------------------
-> # Example of citations <-
This example shows how to place a citation inside a presentation.
This tutorial is published at [Xmodulo](http://xmodulo.com)
You are welcome to connect with me at [LinkedIn](http://www.linkedin.com/in/xmodulo)
Pretty cool, huh?
-------------------------------------------------
-> # Example of UTF-8 special characters <-
This example shows UTF-8 special characters.
ae = ä, oe = ö, ue = ü, ss = ß
alpha = ?, beta = ?, upsilon = ?, phi = ?
Omega = ?, Delta = ?, Sigma = ?
???????????
?rectangle?
???????????
### 在命令行中展示演示稿 ###
当你把以上代码保存为slide.md的文本文件后你可以运行以下命令来展示演示稿
$ mdp slide.md
你可以通过按键 回车/空格/下翻页/向下光标键 (下一张幻灯)、回退/上翻页/向上光标键 (上一张幻灯)、Home (幻灯首页)、 End (幻灯末页)或者 数字N (第N页幻灯)来操作你的演示稿。
演示稿的标题将在每页幻灯的顶部展示,而你的名字和页码则会出现在幻灯的底部。
![](https://farm9.staticflickr.com/8637/16392457702_ec732d0094_c.jpg)
这是嵌套列表和多层次标题的实例效果。
![](https://farm9.staticflickr.com/8567/16367397606_29be7df633_c.jpg)
这是代码片段和内联代码的实例效果。
![](https://farm9.staticflickr.com/8682/15770926144_0f982b0863_b.jpg)
这是嵌套引用的实例效果。
![](https://farm9.staticflickr.com/8587/16393383115_0865c8b89b_c.jpg)
这是放置引文的实例效果。
![](https://farm8.staticflickr.com/7409/16392457712_ed36c14bc2_c.jpg)
这是UTF-8编码特殊字符支持的实例效果。
![](https://farm9.staticflickr.com/8648/16205981560_7fa3debc75_c.jpg)
### 总结 ###
在本教程中我演示了在命令行中如何使用mdp来创建并且展示一个演示稿。mdp的markdown兼容性让我们省去了学习其它新格式的麻烦这相对于另一种名为[tpp][5]的演示工具来说是一个优势。拘于mdp的局限性它可能无法作为你的默认演示工具。但是值得肯定的是它一定能在某个场合下派上用场。你觉得mdp怎么样呢你还喜欢其它的什么东西吗
--------------------------------------------------------------------------------
via: http://xmodulo.com/presentation-command-line-linux.html
作者:[Dan Nanni][a]
译者:[soooogreen](https://github.com/soooogreen)
校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[a]:http://xmodulo.com/author/nanni
[1]:http://bartaz.github.io/impress.js/
[2]:https://github.com/visit1985/mdp
[3]:http://daringfireball.net/projects/markdown/
[4]:https://aur.archlinux.org/packages/mdp-git/
[5]:http://www.ngolde.de/tpp.html

View File

@ -1,187 +0,0 @@
translating by soooogreen
How to create and show a presentation from the command line on Linux
================================================================================
When you prepare a talk for audience, the first thing that will probably come to your mind is shiny presentation charts filled with fancy diagrams, graphics and animation effects. Fine. No one can deny the power of visually charming presentation. However, not all presentations need to be Ted talk quality. Often times, the purpose of a presentation is to convey specific information, which can easily be done with textual messages. In such cases, your time can be better spent on gathering information and checking facts, rather than searching for good-looking graphics from Google Image.
In the world of Linux, you can do presentation in several different ways, e.g., Impress for multimedia-rich content, [Impress.js][1] for stunning visualization, Beamer for hardcore LaTex users, and so on. If you are looking for a simple means to create and show a textual presentation, look no further. [mdp][2] can get the job done for you.
### What is Mdp? ###
mdp is an ncurses-based command-line presentation tool for Linux. What I like about mdp is its [markdown][3] support, which makes it easy to create slides with familiar markdown format. Naturally, it becomes painless to publish the slides in HTML format as well. Another plus is its support for UTF-8 character encoding, which comes in handy when showing non-English characters (e.g., Greek or Cyrillic alphabets).
### Install Mdp on Linux ###
Installation of mdp is mostly painless due to its light dependency requirement (i.e., ncursesw).
#### Debian, Ubuntu or their derivatives ####
$ sudo apt-get install git gcc make libncursesw5-dev
$ git clone https://github.com/visit1985/mdp.git
$ cd mdp
$ make
$ sudo make install
#### Fedora or CentOS/RHEL ####
$ sudo yum install git gcc make ncurses-devel
$ git clone https://github.com/visit1985/mdp.git
$ cd mdp
$ make
$ sudo make install
#### Arch Linux ####
On Arch Linux, you can easily install mdp from [AUR][4].
### Create a Presentation from the Command Line ###
Once you installed mdp, you can easily create a presentation by using your favorite text editor. If you are familiar with markdown, it will take no time to master mdp. For those of you who are not familiar with markdown, starting with an example is the best way to learn mdp.
Here is a 6-page sample presentation for your reference.
%title: Sample Presentation made with mdp (Xmodulo.com)
%author: Dan Nanni
%date: 2015-01-28
-> This is a slide title <-
=========
-> mdp is a command-line based presentation tool with markdown support. <-
*_Features_*
* Multi-level headers
* Code block formatting
* Nested quotes
* Nested list
* Text highlight and underline
* Citation
* UTF-8 special characters
-------------------------------------------------
-> # Example of nested list <-
This is an example of multi-level headers and a nested list.
# first-level title
second-level
------------
- *item 1*
- sub-item 1
- sub-sub-item 1
- sub-sub-item 2
- sub-sub-item 3
- sub-item 2
-------------------------------------------------
-> # Example of code block formatting <-
This example shows how to format a code snippet.
1 /* Hello World program */
2
3 #include <stdio.h>
4
5 int main()
6 {
7 printf("Hello World");
8 return 0;
9 }
This example shows inline code: `sudo reboot`
-------------------------------------------------
-> # Example of nested quotes <-
This is an example of nested quotes.
# three-level nested quotes
> This is the first-level quote.
>> This is the second-level quote
>> and continues.
>>> *This is the third-level quote, and so on.*
-------------------------------------------------
-> # Example of citations <-
This example shows how to place a citation inside a presentation.
This tutorial is published at [Xmodulo](http://xmodulo.com)
You are welcome to connect with me at [LinkedIn](http://www.linkedin.com/in/xmodulo)
Pretty cool, huh?
-------------------------------------------------
-> # Example of UTF-8 special characters <-
This example shows UTF-8 special characters.
ae = ä, oe = ö, ue = ü, ss = ß
alpha = ?, beta = ?, upsilon = ?, phi = ?
Omega = ?, Delta = ?, Sigma = ?
???????????
?rectangle?
???????????
### Show a Presentation from the Command Line ###
Once you save the above code as slide.md text file, you can show the presentation by simply running:
$ mdp slide.md
You can navigate the presentation by pressing Enter/Space/Page-Down/Down-Arrow (next slide), Backspace/Page-Up/Up-Arrow (previous slide), Home (first slide), End (last slide), or numeric-N (N-th slide).
The title of the presentation appears on top of each slide, and your name and page number are shown at the bottom.
![](https://farm9.staticflickr.com/8637/16392457702_ec732d0094_c.jpg)
This is an example of a nested list and multi-level headers.
![](https://farm9.staticflickr.com/8567/16367397606_29be7df633_c.jpg)
This is an example of a code snippet and inline code.
![](https://farm9.staticflickr.com/8682/15770926144_0f982b0863_b.jpg)
This is an example of nested quotes.
![](https://farm9.staticflickr.com/8587/16393383115_0865c8b89b_c.jpg)
This is an example of placing citations.
![](https://farm8.staticflickr.com/7409/16392457712_ed36c14bc2_c.jpg)
This is an example of UTF-8 special characters.
![](https://farm9.staticflickr.com/8648/16205981560_7fa3debc75_c.jpg)
### Summary ###
In this tutorial, I showed you how to use mdp to create and show a presentation from the command line. Its markdown compatibility saves us the trouble and hassle of having to learn any new formatting, which is an advantage compared to [tpp][5], another command-line presentation tool. Due to its limitations, mdp may not qualify as your default presentation tool, but there should be definitely a use case for that. What do you think of mdp? Do you prefer something else?
--------------------------------------------------------------------------------
via: http://xmodulo.com/presentation-command-line-linux.html
作者:[Dan Nanni][a]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[a]:http://xmodulo.com/author/nanni
[1]:http://bartaz.github.io/impress.js/
[2]:https://github.com/visit1985/mdp
[3]:http://daringfireball.net/projects/markdown/
[4]:https://aur.archlinux.org/packages/mdp-git/
[5]:http://www.ngolde.de/tpp.html

View File

@ -1,88 +1,91 @@
Install the Gnome Flashback classical desktop on Ubuntu 14.10/Linux Mint 17
在Ubuntu14.10/Mint7上安装Gnome Flashback classical桌面
================================================================================
The [Gnome Flashback][1] desktop environment is a simple and great way to get back the old style classical desktop if you do not like Unity desktop, like many.
如果你不喜欢现在的Unity桌面[Gnome Flashback][1] 桌面环境是一个简单的并且很棒的选择,让你能找回曾经经典的桌面。
Gnome Flashback is based on GTK 3 and provides a desktop interface visually similar to the old gnome desktop.
Gnome Flashback基于GTK3并提供与原先gnome桌面视觉上相似的界面。
Another alternative to gnome flashback is the MATE desktop from linux mint and XFCE desktop, but both of them are based on gtk 2.
gnome flashback的另一个改变是采用了源自mint和xface的MATE桌面但无论mint还是xface都是基于gtk2的。
### Install Gnome Flashback ###
### 安装 Gnome Flashback ###
Install the following package on your Ubuntu system and you are done.
在你的ubuntu上安装以下包即可
$ sudo apt-get install gnome-session-flashback
Now logout and at the login screen press the settings button on the box that asks for password. There would be 2 options, Gnome Flashback (Metacity) and Gnome Flashback (Compiz).
然后注销到达登录界面单击密码输入框右上角的徽标型按钮即可选择桌面环境。可供选择的有Gnome Flashback (Metacity) 会话模式和Gnome Flashback (Compiz)会话模式。
Metacity is lighter and faster, whereas Compiz gets you the more fancy desktop effects. Here is a screenshot of my gnome flashback desktop.
Metacity更轻更快而Compiz则能带给你更棒的桌面效果。下面是我使用gnome flashback桌面的截图。
It uses a wallpaper from elementary OS and also Plank dock with no bottom panel. This tutorial explains every bit of it.
桌面采用了elementary OS的壁纸和Plank dock并且移除了底部面板。这些都会在这篇教程中涉及到。
![ubuntu gnome flashback](http://www.binarytides.com/blog/wp-content/uploads/2015/02/ubuntu-gnome-flashback.png)
After installing Gnome Flashback desktop you need to do a couple of more things to finetune it.
在安装好gnome flashback桌面以后也许你对效果还不满意这样你可能需要执行接下来的一系列操作来对它进行微调。
### 1. Install Gnome Tweak Tool ###
### 1. 安装 Gnome Tweak Tool ###
The Gnome Tweak Tool allows you to customize things like fonts, themes etc, that are otherwise difficult or impossible with the "unity-control-center" tool of Unity desktop.
Gnome Tweak Tool能够帮助你定制比如字体、主题等那些在Unity桌面的控制中心十分困难或是不可能完成的任务。
$ sudo apt-get install gnome-tweak-tool
Find it in Applications > System Tools > Preferences > Tweak Tool
启动按步骤 应用程序 > 系统工具 > 首选项 > Tweak Tool
### 2. Add applets to panel ###
### 2. 在面板上添加小应用 ###
By default right clicking on the panels would not have any effect. Press the Alt+Super (windows) key on your keyboard while you right click on the panels and you would get the relevant options to customize the panel.
默认的右键点击面板是没有效果的。你可以尝试在右键点击面板的同时按住键盘上的Alt+Super (win)键,这样定制面板的相关选项将会出现。
You can modify the panel, remove it and also add applets to it. In this example we shall remove the bottom panel and replace it with Plank dock.
你可以修改或删除面板并在上面添加些小应用。在这个例子中我们移除了底部面板并用Plank dock来代替它的位置。
Add a datetime applet on the top panel at the middle. Configure it to display the date time and weather conditions.
在顶部面板的中间添加一个显示时间的小应用。通过配置使它显示时间和天气。
Also add a workspace switcher applet to the top panel and create as many workspaces as you need.
同样的添加一个工作空间切换器到顶部面板,并创建合适个数的工作空间。
### 3. Take window title bar buttons to the right ###
### 3. 将窗口标题栏的按钮右置 ###
On Ubuntu the minimise, maximise and close buttons on the window title bar are on the left by default. It needs a small hack to get them to the right.
在ubuntu中最小化、最大化和关闭按钮默认实在标题栏的左侧的。需要稍作手脚才能让他们乖乖回到右边去。
To take the window buttons to the right use the following command, which I found at askubuntu.
想让窗口的按钮到右边可以使用下面的命令这是我在askubuntu上找到的。
$ gsettings set org.gnome.desktop.wm.preferences button-layout 'menu:minimize,maximize,close'
### 4. Install Plank dock ###
### 4.安装 Plank dock ###
The plank dock sits at the bottom and holds launchers for applications and window launchers for running applications. It hides itself when not necessary and shows up again when needed. Its the same dock as used by elementary OS.
plank dock位于屏幕底部用于启动应用和切换打开的窗口。会在必要的时间隐藏自己并在需要的时候出现。elementary OS使用的dock就是plank dock。
Run the following commands
运行以下命令安装:
$ sudo add-apt-repository ppa:ricotz/docky -y
$ sudo apt-get update
$ sudo apt-get install plank -y
Find it in Applications > Accessories > Plank. To configure it to start automatically with the system, go to System Tools > Preferences > Startup Applications and add the "plank" command to the list.
现在启动 应用程序 > 附件 > Plank。若想让它开机自动启动找到 应用程序 > 系统工具 > 首选项 > 启动应用程序 并将“plank”的命令加到列表中。
### 5. Install Conky system monitor ###
### 5. 安装 Conky 系统监视器 ###
Conky is a nice way to decorate your desktop with system statistics like cpu and memory usage. It is lightweight and works most of the time without any hassles.
Conky非常酷它用系统的中如CPU和内存使用率的统计值来装饰桌面。它不太占资源并且运行的大部分时间都不惹麻烦。
Run the following commands -
运行如下命令安装:
$ sudo apt-add-repository -y ppa:teejee2008/ppa
$ sudo apt-get update
$ sudo apt-get install conky-manager
Now launch Applications > Accessories > Conky Manager and select the widget you want to display on your desktop. Conky Manager also allows you to configure it to launch at system startup.
现在启动 应用程序 > 附件 > Conky Manager 选择你想在桌面上显示的部件。Conky Manager同样可以配置到启动项中。
### 6. Install CompizConfig Settings Manager ###
### 6. 安装CCSM ###
If you wish to use Gnome Flashback (Compiz) session then it would be useful to use the compiz settings manager to configure desktop effects. Install it with the following command
如果你更愿意使用Gnome Flashback (Compiz)那么CCSM将是你配置桌面特效的得力助手。
运行以下命令安装:
$ sudo apt-get install compizconfig-settings-manager
Now launch it from System Tools > Preferences > CompizConfig Settings Manager.
启动按步骤 应用程序 > 系统工具 > 首选项 > CompizConfig Settings Manager.
> It so happened inside Virtualbox that, in the compiz session window decorations went missing. To fix it, launch Compiz settings and enable the "Copy to texture" plugin and then logout and login back. It should be fixed.
However the Compiz session is slower than the Metacity session.
>在虚拟机中经常会发生compiz会话中装饰窗口消失。可以通过启动Compiz设置在打开"Copy to texture",注销后重新登录即可。
不过值得一提的是Compiz 会话会比Metacity慢。
--------------------------------------------------------------------------------
@ -95,4 +98,4 @@ via: http://www.binarytides.com/install-gnome-flashback-ubuntu/
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[a]:https://plus.google.com/117145272367995638274/posts
[1]:https://wiki.gnome.org/action/show/Projects/GnomeFlashback?action=show&redirect=GnomeFlashback
[1]:https://wiki.gnome.org/action/show/Projects/GnomeFlashback?action=show&redirect=GnomeFlashback