20140307-1 选题

This commit is contained in:
DeadFire 2014-03-07 14:48:41 +08:00
parent 014347d30c
commit babe08195c
3 changed files with 402 additions and 0 deletions

View File

@ -0,0 +1,189 @@
10 ssh options for a Secure shell for Safe Data Communication
================================================================================
A system administrator may have managed more than 1 servers. Then those servers may located in different places. Visiting the servers one by one may not the best way to manage them. Then a remote method can be an effective way to manage them. One of the common aplication for remote activity is **SSH**.
### What is SSH ###
**SSH or Secure Shell** is a cryptographic network protocol. The data through this protocol will be encrypted to ensure that no one can read if the data leaked in the middle. To use SSH, the destination machine should have a SSH server application installed because **SSH is a client-server model**. SSH is usually used when you want to remote hosts in a secure way over the insecure network such as the Internet.
### Installing SSH ###
Modern Linux should have installed SSH by default. If its not, we can install it manually. The easiest way to install SSH is through your Linux package manager.
### On Debian / Ubuntu Linux based : ###
#### Install ssh-client ####
$ sudo apt-get install openssh-client
#### Install ssh-server ####
$ sudo apt-get install openssh-server
### On RedHat / CentOS Linux based : ###
# yum install openssh-server openssh-clients
Once SSH is installed we can check it by typing **ssh** from your Linux console.
![An ssh client](http://linoxide.com/wp-content/uploads/2014/02/ssh_client.png)
### Using SSH ###
SSH provides a lot of options to be used. In this article we will cover some options that may useful in day-to-day operations.
#### 1. Run SSH without no options ####
A common way to use SSH is without any options. Just type “**ssh** ”. Heres a sample :
$ ssh 192.168.0.103
![SSH connecti confirmation](http://linoxide.com/wp-content/uploads/2014/02/ssh_ask_connect.png)
When the first time you connect to destination host, ssh will confirm you about the authenticity of the destination host. If you answer No****, then SSH will not continue while **if you said Yes**, SSH will continue.
![Connecting to SSH](http://linoxide.com/wp-content/uploads/2014/02/ssh_connect.png)
The next time you login into the same host, SSH will not ask you a confirmation. The authenticity oft the host by default is saved under /home/user/.ssh folder in every user.
#### 2. Specify a username for login ####
By default, ssh will try to connect using active user as a username. On the previous command, ssh will try to login into the server using a username named pungki. This is because user pungki on the client side, is running ssh client.
What about if in the destination host, there is no user named pungki? Then you must supply a username that exist in the destination host. To specify the username from the beginning, use -l option
$ ssh -l leni 192.168.0.103
![Ssh using -l option](http://linoxide.com/wp-content/uploads/2014/02/ssh_l.png)
We can also type like this :
$ ssh leni@192.168.0.0103
![Another way to supply username](http://linoxide.com/wp-content/uploads/2014/02/ssh_l_2.png)
#### 3. Specify the port ####
**SSH default port is 22**. Most of modern Linux are open port 22. If you run ssh without defining a port, then ssh will direct the request via port 22.
But some system administrator may changed the default SSH port. Let say that the port now is 1234. To contact that host, use **-p** option followed by SSH port.
$ ssh 192.168.0.103 -p 1234
To change the port number, we need to modify the **/etc/ssh/ssh_config**.
Find the line :
Port 22
Change it into another port, for example above, is 1234. Then restart the SSH service.
#### 4. Request compression on every data ####
With this option, all data which sent and received via SSH will be compressed. The data still encrypted. To use compression with SSH, use **-C** option.
$ ssh -C 192.168.0.103
This option will be useful if your connection is slow, such as using a modem. But when you are using a fast connection such as LAN or higher, than compression will be slow down your transfer rate.
The level of compression can be controlled using **-o** option followed by **CompressionLevel** option. But this option will only applied for SSH-1.
#### 5. Define a cipher algorithm ####
SSH provides some cipher algorithms to be used. These algorithms can be seen inside **/etc/ssh/ssh_config or ~/.ssh/config file** (if exist).
![SSH cipher configuration example](http://linoxide.com/wp-content/uploads/2014/02/ssh_cipher.png)
Let say you want to use **blowfish** algorithm for encrypting your SSH session. Then you can put this line into your **/etc/ssh/ssh_config or ~/.ssh/config** file :
Cipher blowfish
By default, SSH will use 3des algorithm
#### 6. Turn on debug mode ####
For some reason, we may want to debug the SSH connection that we want to create. SSH provides **-v** option to do this.
$ ssh -v 192.168.0.103
![debug ssh connection](http://linoxide.com/wp-content/uploads/2014/02/ssh_v.png)
#### 7. Bind source address ####
If your client has more than 2 IP Address, you might not know which IP Address is used to create a connection to the SSH server.
![More than 1 IP Address](http://linoxide.com/wp-content/uploads/2014/02/ifconfig.png)
To solve this situation, we can use -b option which will bind an IP Address to SSH connection. This IP Address will be used as the source address of the connection.
$ ssh -b 192.168.0.200 -l leni 192.168.0.103
On the server side, we can check the established connection to the server using netstat. We see that 192.168.0.200 connection is established.
![Bind address using SSH](http://linoxide.com/wp-content/uploads/2014/02/ssh_bind.png)
#### 8. Use other configuration file ####
By default, ssh will use a ssh configuration file which located in **/etc/ssh/ssh_config**. This file is applied to system wide. If you want to apply particular setting to specific user, you should put it in **~/.ssh/config** file. If you dont see it, you can create it.
Heres a sample of a custom **ssh_config**. This config is located in **/home/pungki directory**.
Host 192.168.0.*
ForwardX11 yes
PasswordAuthentication yes
ConnectTimeout 10
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
Protocol 2
HashKnownHosts yes
To use a specific config file, we can use **-F** option.
$ ssh -F /home/pungki/my_ssh_config 192.168.0.101
![Specify your ssh_config](http://linoxide.com/wp-content/uploads/2014/02/ssh_F.png)
### 9. Use SSH X11 Forwarding ###
For some reason, you may want to display a X11 application on the server into your client computer. SSH provides **-X** option to do this. But in order to enable this feature, we need some preparation. Heres the settings
On the server side, you need to enable line **ForwardX11 yes or X11Forward yes** in **/etc/ssh/ssh_config**. Then restart your SSH server.
Then on the client side, type **ssh -X user@host** :
$ ssh -X leni@192.168.0.101
Once you have logged on, you can check it by typing :
$ echo $DISPLAY
You should see something like
localhost:10:0
Then to run an application, just type the command of the application. Let say you want to run xclock application. Then type :
$ xclock
![Use X11 Formading](http://linoxide.com/wp-content/uploads/2014/02/ssh_Y.png)
When it run, actually you are running the xclock application on the remote system, but display it on your local system.
![xclock](http://linoxide.com/wp-content/uploads/2014/02/xclock.png)
#### 10. Trusted X11 Forwading ####
If you pretty sure that your network is secure, then you may want to use **Trusted X11 Forwarding**. This mean that the remote X11 clients will have full access to the original X11 display. To use this option, we can use **-Y** option.
$ ssh -Y leni@192.168.0.101
![SSH _Y for trusted connection](http://linoxide.com/wp-content/uploads/2014/02/ssh_Y1.png)
### Conclusion ###
We believe that SSH is used in wide-range area. Security and flexibility is one of the SSH offer to the user. As usual we can always type **man ssh** and **man ssh_config** to display its manual pages and explore more detail.
--------------------------------------------------------------------------------
via: http://linoxide.com/linux-command/learn-ssh-connection-options/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,51 @@
Interesting facts about Raspberry Pi
================================================================================
Raspberry Pi celebrated its second birthday last week. Since its debut on February 29, 2012, Raspberry Pi has ushered in a whole new generation of tiny, inexpensive, single-board computers. Numerous Raspberry Pi based DIY project ideas are popping up over the web, and there are many use cases of Raspberry Pi as low-cost learning media in the developing world. Celebrating its second birthday, I am going to share in this post several **interesting facts about Raspberry Pi**.
![](http://farm3.staticflickr.com/2207/12961865855_b022bf59dd_z.jpg)
1. [100,000 Raspberry Pi boards][1] were sold on the first day of launch, and more than [2.5 million units][2] of them have been sold so far worldwide.
2. Initial batches of Raspberry Pi boards were made in Taiwan and China, but now all Raspberry Pi boards being sold are [manufactured in the UK][3].
3. Raspberry Pi is overclockable (by entering so-called [turbo mode][4]). You can change [overclocking/overvolting options][5] either at run-time with raspi-config tool, or at boot-time by editing boot-time parameters in /boot/config.txt. Changing overclocking/overvolting options does not void your warranty.
4. Raspberry Pi does not come with MPEG-2 decoder. Adding a blanket license for MPEG-2/VC-1 codecs to Raspberry Pi would [increase its board price by 10%][6]. Instead, you can [purchase MPEG-2/VC-1 license keys][7] only if you need to. Purchased licenses are tied to individual Raspberry Pi boards.
5. You [cannot run Windows 8][8] on Raspberry Pi (ARMv6) as Windows 8 requires an ARMv7 or higher processor. Likewise, you cannot run Ubuntu on Raspberry Pi as Ubuntu only supports [ARMv7 or higher][9].
6. [Origin][10] of the name Rapberry Pi: "Raspberry" originates from the fruit-based naming tradition for microcomputers in old days. "Pi" refers to "Python" because Python was one of the first programs ported to run on Raspberry Pi.
7. Raspberry in the [Raspberry Pi logo][11] is actually 3D [Buckminsterfullerene][12] (or bucky-ball) which has a total of 32 faces. 11 of them are visible in the logo. Co-incidentally, Raspberry Pi has a 32-bit ARM11 processor on board.
8. Methematica, a popular computational software program commercially available, [comes bundled for free][13] on Rapsberry Pi.
9. (thanks to garry grant) The biggest Kickstarter project which is based on Raspberry Pi is [Kano][14], where the goal is to delivery a computer/coding kit which can help people of all ages make a computer themselves. The project has garnered $1,522,160 from 13,387 backers.
10. According to [Rastrack.co.uk][15], the country where RaspberryPi is the most popular is UK.
That is all. If you know any interesting fact about Raspberry Pi, feel free to chime in.
--------------------------------------------------------------------------------
via: http://xmodulo.com/2014/03/interesting-facts-raspberry-pi.html
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.zdnet.com/we-thought-wed-sell-1000-the-inside-story-of-the-raspberry-pi-7000009718/
[2]:http://www.raspberrypi.org/archives/6299
[3]:http://www.raspberrypi.org/archives/5016
[4]:http://www.raspberrypi.org/archives/2008
[5]:http://elinux.org/RPi_config.txt#Overclocking_options
[6]:http://www.raspberrypi.org/archives/1839
[7]:http://www.raspberrypi.com/
[8]:http://www.gamesindustry.biz/articles/digitalfoundry-inside-raspberry-pi
[9]:https://wiki.ubuntu.com/ARM
[10]:http://www.techspot.com/article/531-eben-upton-interview/
[11]:http://www.raspberrypi.org/archives/221
[12]:http://en.wikipedia.org/wiki/Buckminsterfullerene
[13]:http://blog.stephenwolfram.com/2013/11/putting-the-wolfram-language-and-mathematica-on-every-raspberry-pi/
[14]:https://www.kickstarter.com/projects/alexklein/kano-a-computer-anyone-can-make
[15]:http://www.rastrack.co.uk/

View File

@ -0,0 +1,162 @@
What is good video editing software on Linux?
================================================================================
A video editor allows you to handle various post-production video editing jobs which typically involve arranging, cutting, pasting, trimming, and otherwise enhancing (e.g., adding effects to) video clips through the timeline interface. In modern video editing software, things like multi-codec import/transcoding, non-linear video editing, or even HD video support are pretty much standard nowadays.
In this post, I am going to show **11 popular video editing software available on Linux**. I will not cover subjective merits such as usability or interface design, but instead highlight notable features of each video editor. If you have tried any particular video editor listed here, feel free to share your experience or opinion.
### 1. Avidemux ###
![](http://farm8.staticflickr.com/7452/12867967445_9848544802_z.jpg)
- License: GNU GPL
- Cross-platform (Linux, BSD, MacOS X, Windows)
- Supports both GUI and command-line modes
- Support for JavaScript (thanks to SpiderMonky JavaScript engine)
- Built-in subtitle processing
- Official website: [http://fixounet.free.fr/avidemux][1]
### 2. Blender ###
![](http://farm3.staticflickr.com/2038/12960698134_74c974064c_z.jpg)
- License: GNU GPL v3+
- Cross-platform (Linux, BSD, MacOS X, Windows)
- Specialized in creating 3D modeling and animation
- Support for image/video compositing
- Video/audio effects and transitions
- Official website: [http://www.blender.org][2]
### 3. Cinelerra-CV ###
![](http://farm3.staticflickr.com/2867/12867966335_9dd6032d43_z.jpg)
- License: GNU GPL
- Community edition of Cinelerra video editor
- Support for video compositing
- Drag and drop files from file manager
- OpenGL-driven GPU acceleration for video playback
- Video/audio effects and transitions
- Direct capture from camcorders
- Cross-platform (Linux and Windows)
- Official website: [http://cinelerra.org][3]
### 4. Flowblade ###
![](http://farm8.staticflickr.com/7384/12868043903_55798d69dc_z.jpg)
- License: GNU GPL v3
- Support for multiple file types based on FFmpeg
- Drag and drop files from file manager
- Support for video and image compositing
- Image and audio effects
- Automatic clip placement on the timeline
- Official website: [https://code.google.com/p/flowblade/][4]
### 5. Jahshaka ###
![](http://farm4.staticflickr.com/3675/12867967135_465d74cbd0_z.jpg)
- License: GNU GPL
- Cross-platform (Linux, MacOS X, Windows)
- Support for 2D/3D animation effects and video composting
- Support for collaborative editing (e.g., editing server and centralized database)
- Media/asset management
- GPU based effects
- Official website: [http://www.jahshaka.com][5]
### 6. Kdenlive ###
![](http://farm3.staticflickr.com/2828/12868395504_828564d3d4_z.jpg)
- License: GNU GPL v2+
- Video editor for the KDE desktop
- Support for multiple file types based on FFmpeg
- Video/audio effects and transitions
- Ability ot mix video, audio and still images from different sources
- Video capture from cameras, webcams, Video4Linux devices or X11 screen
- Export to Internet video sharing sites such as YouTube, Dailymotion or Vimeo
- Official website: [http://www.kdenlive.org][6]
### 7. Lightworks ###
![](http://farm8.staticflickr.com/7437/12868546774_368f267995_z.jpg)
- License: Freemium
- Cross-platform (Linux, BSD, MacOS X, Windows)
- Multi-language support
- GPU-accelerated real-time video effects and composting
- Official website: [http://www.lwks.com][7]
### 8.LiVES ###
![](http://farm8.staticflickr.com/7370/12868043753_ea9aaf4a97_z.jpg)
- License: GNU GPL
- Cross-platform (Linux, BSD, MacOS X, Solaris)
- Multi video formats via mplayer
- Extendable video/audio effects via plugins
- Support for remote control via OSC protocol
- Video capture from FireWire cameras and TV cards
- Lossless backup and crash recovery
- Support for clip import from YouTube
- Official website: [http://lives.sourceforge.net][8]
### 9. OpenShot ###
![](http://farm4.staticflickr.com/3674/12868395634_f33d7545b8_z.jpg)
- License: GNU GPL v3
- Support for multiple file types based on FFmpeg
- Drag and drop files from file manager
- Support for 2D titles (thanks to Inkscape) and 3D-animated titles (thanks to Blender)
- Digital zooming
- Animated video transition with preview
- Support for video compositing and watermark images
- Scrolling eding credits or texts
- Official website: [http://www.openshot.org][9]
### 10. Pitivi ###
![](http://farm8.staticflickr.com/7399/12868396354_d9796a378c_z.jpg)
- License: GNU LGPL
- Video import, conversion and rendering powered by GStreamer Editing Service
- Video/audio effects and transitions
- Support for keyframes and video compositing
- Detachable UI
- Multi-language support (thanks to GNOME integration)
- Official website: [http://www.pitivi.org][10]
### 11. Shotcut ###
![](http://farm4.staticflickr.com/3671/12867967295_7b3e5671ce_z.jpg)
- License: GNU GPL
- Cross-platform (Linux, MacOS X, Windows)
- Support for multiple file types based on FFmpeg
- Customizable UI via dockable panels
- Multi-format timeline (e.g., with different resolutions and frame rates)
- Video capture from webcam, HDMI, IP streams and X11 screen
- Drag and drop files from file manager
- GPU-assisted image processing with OpenGL
- Official website: [http://www.shotcut.org][11]
--------------------------------------------------------------------------------
via: http://xmodulo.com/2014/03/good-video-editing-software-linux.html
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://fixounet.free.fr/avidemux/
[2]:http://www.blender.org/
[3]:http://cinelerra.org/
[4]:https://code.google.com/p/flowblade/
[5]:http://www.jahshaka.com/
[6]:http://www.kdenlive.org/
[7]:http://www.lwks.com/
[8]:http://lives.sourceforge.net/
[9]:http://www.openshot.org/
[10]:http://www.pitivi.org/
[11]:http://www.shotcut.org/