mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-02-28 01:01:09 +08:00
20130927-2 选题
This commit is contained in:
parent
ab3a194c6f
commit
ec711730e5
73
sources/Removing Applications Using Terminal in Ubuntu.md
Normal file
73
sources/Removing Applications Using Terminal in Ubuntu.md
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
Removing Applications Using Terminal in Ubuntu
|
||||||
|
================================================================================
|
||||||
|
You are a Linux user (Ubuntu). You always install applications from the terminal using **apt-get** install.
|
||||||
|
|
||||||
|
Even though you can add and remove applications using GUI (Synaptic Package Manager), it is always said that the command line is power. After installing a whole lot of applications both small and large in size. You now need disk space for other applications or you no longer want to see such applications on your system.
|
||||||
|
|
||||||
|
Most Ubuntu users, beginners specifically can install from the terminal after searching for how to install it. It becomes very difficult removing it. I also went through this.
|
||||||
|
|
||||||
|
This is a simple tutorial to guide you through how to remove packages installed.
|
||||||
|
|
||||||
|
1. Open Terminal (ctrl + alt + t)
|
||||||
|
|
||||||
|
2. Type
|
||||||
|
|
||||||
|
$ dpkg --list
|
||||||
|
|
||||||
|
(this displays all installed packages at a go)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
OR
|
||||||
|
|
||||||
|
$ dpkg --list | less
|
||||||
|
|
||||||
|
(to easily navigate using the user keys)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
OR
|
||||||
|
|
||||||
|
If you know the package name, you can pipe it with **grep** command to locate it using the syntax below:
|
||||||
|
|
||||||
|
$ dpkg --list|grep -i 'packagename'
|
||||||
|
|
||||||
|
Example for **VLC** player.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
3. Locate the name of the package to be removed. Here am going to use **sox**.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
4. To remove only a package use:
|
||||||
|
|
||||||
|
$ sudo apt-get remove <packagename>
|
||||||
|
|
||||||
|
For example to remove package called **sox** , enter:
|
||||||
|
|
||||||
|
$ sudo apt-get remove sox
|
||||||
|
|
||||||
|
Type y for Yes to uninstall.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
5. To remove a package with it’s configuration files, enter:
|
||||||
|
|
||||||
|
$ sudo apt-get --purge remove <packagename>
|
||||||
|
|
||||||
|
For example removing a package called sox and all configuration files:
|
||||||
|
|
||||||
|
$ sudo apt-get --purge remove sox
|
||||||
|
|
||||||
|
|
||||||
|
via: http://www.unixmen.com/removing-applications-using-terminal-ubuntu/
|
||||||
|
|
||||||
|
本文由 [LCTT][] 原创翻译,[Linux中国][] 荣誉推出
|
||||||
|
|
||||||
|
译者:[译者ID][] 校对:[校对者ID][]
|
||||||
|
|
||||||
|
[LCTT]:https://github.com/LCTT/TranslateProject
|
||||||
|
[Linux中国]:http://linux.cn/portal.php
|
||||||
|
[译者ID]:http://linux.cn/space/译者ID
|
||||||
|
[校对者ID]:http://linux.cn/space/校对者ID
|
@ -0,0 +1,41 @@
|
|||||||
|
VLC 2.1 released with new features and 1000 bug fixes
|
||||||
|
================================================================================
|
||||||
|
VLC is a powerful, versatile and advanced media player, containing a massive amount of functionalities and support for almost all existent codecs and video formats, permitting a hassle-free content-digesting experience.
|
||||||
|
|
||||||
|
**VLC 2.1 "Rincewind"** has been [released][1], bringing a significant amount of fixes, optimizations and improvements, among which:
|
||||||
|
|
||||||
|
rewritten audio core with improved volume handling
|
||||||
|
rewritten audio modules paired with the new audio core
|
||||||
|
4k video support
|
||||||
|
hardware decoding via VDPAU
|
||||||
|
support for fragmented MP4 files
|
||||||
|
increased support for MKV, MJPEG and AVI streams
|
||||||
|
relevant enhancements on Blu-Ray inputs
|
||||||
|
strengthened seeking for MKV
|
||||||
|
improved metadata and subtitle support in MKV files
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
VLC 2.1 brings approximately **1000 bug fixes**, thus solidly strengthening the handy media player, taking its previous version on a new highly-enhanced ground of stability, speed and reliability.
|
||||||
|
|
||||||
|
How do we **install** VLC 2.1?
|
||||||
|
Add the following **official** PPA (Ubuntu 13.10)
|
||||||
|
|
||||||
|
sudo add-apt-repository ppa:videolan/stable-daily
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install vlc
|
||||||
|
|
||||||
|
|
||||||
|
via: http://iloveubuntu.net/vlc-21-released-new-features-and-1000-bug-fixes
|
||||||
|
|
||||||
|
本文由 [LCTT][] 原创翻译,[Linux中国][] 荣誉推出
|
||||||
|
|
||||||
|
译者:[译者ID][] 校对:[校对者ID][]
|
||||||
|
|
||||||
|
[LCTT]:https://github.com/LCTT/TranslateProject
|
||||||
|
[Linux中国]:http://linux.cn/portal.php
|
||||||
|
[译者ID]:http://linux.cn/space/译者ID
|
||||||
|
[校对者ID]:http://linux.cn/space/校对者ID
|
||||||
|
|
||||||
|
[1]:http://www.videolan.org/vlc/releases/2.1.0.html
|
152
sources/rtorrent – A Powerful Command Line Bit Torrent Client.md
Normal file
152
sources/rtorrent – A Powerful Command Line Bit Torrent Client.md
Normal file
@ -0,0 +1,152 @@
|
|||||||
|
rtorrent – A Powerful Command Line Bit Torrent Client
|
||||||
|
================================================================================
|
||||||
|
If you avoid using a CLI based torrent client because you think that it might be very complex to use. Think again. I believe that CLI based bit torrent clients are far more addictive once you are used to any of them — you can start and monitor the progress from within your terminal window and that too very easily . In this article, we will discuss a powerful command line bit torrent client — **rtorrent**.
|
||||||
|
|
||||||
|
**NOTE** – All the examples and instructions presented in this article are tested on Ubuntu 13.04.
|
||||||
|
|
||||||
|
## rtorrent – Command Line Bit Torrent Client ##
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**A Brief Tutorial**
|
||||||
|
|
||||||
|
rtorrent is a BitTorrent client for command line (ncurses based) that can be used for downloading files easily. Once this torrent client is installed, it can be executed by running the following command :
|
||||||
|
|
||||||
|
rtorrent
|
||||||
|
|
||||||
|
Here is a snapshot of rtorrent window when it is executed :
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Well, I agree that the main window is not very eye pleasing and the information displayed is a bit confusing. Don’t worry, just press enter from your keyboard and a prompt should appear at the bottom of the window.
|
||||||
|
|
||||||
|
Here is the snapshot :
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Observe that a prompt load.normal> appeared on the screen. The next step is to just type the name of the torrent file. For example in my case, the torrent file name was **Fedora-20-Alpha-x86_64-DVD.torrent**.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Note that you just have to write the torrent file name (or complete path, if not in current directory). You can easily use bash short cuts like [TAB] to complete file names and paths. Once done, just press enter again.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
So you can see that the torrent file is loaded now but you need to activate it and start the download. For this, first press the down arrow key. This should display \*\*stars\*\* before the loaded file details.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Observe that \*\*stars\*\* were displayed in the beginning of torrent file related information. Now, press Ctrl+s to start the download.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Observe that rtorrent has started downloading the actual file now. Use **Ctrl+d** to stop the download process and another **Ctrl+d** to remove the torrent i.e., unload it. To quit, use **Ctrl+q**.
|
||||||
|
|
||||||
|
So you can see that despite of being command line based, it’s actually not very difficult to operate rtorrent utility.
|
||||||
|
|
||||||
|
**Download/Install**
|
||||||
|
|
||||||
|
Here are some of the important links related to rtorrent utility :
|
||||||
|
|
||||||
|
- Home page
|
||||||
|
- Download Link
|
||||||
|
|
||||||
|
Ubuntu users can download rtorrent utility from Ubuntu Software Centre. The version used for this review was 0.9.2.
|
||||||
|
|
||||||
|
Once rtorrent is downloaded and installed, you have to set-up a resource file — **.rtorrent.rc**. The utility will not start functioning properly until this file is in place. This was what I got when I executed rtorrent without setting up **~/.rtorrent.rc** :
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
So you can see that the utility displayed an error that it could not read the specified resource file. To set-up this resource file, first download the [resource file template][1] and make necessary changes.
|
||||||
|
|
||||||
|
Note – I mentioned the above link just because it is official download link. The file .rtorrent.rc is a bit different in my case.
|
||||||
|
|
||||||
|
Here is the resource file in my case :
|
||||||
|
|
||||||
|
# For temporary downloaded files
|
||||||
|
directory = ~/rTempDownloadFiles
|
||||||
|
|
||||||
|
# Directory to save and resume torrent sessions
|
||||||
|
session = ~/rSession
|
||||||
|
|
||||||
|
# Other Tunables
|
||||||
|
upload_rate = 30
|
||||||
|
download_rate = 200
|
||||||
|
peer_exchange = yes
|
||||||
|
|
||||||
|
# DHT enabled
|
||||||
|
dht = auto
|
||||||
|
|
||||||
|
# custom throttles
|
||||||
|
throttle_up = low,10
|
||||||
|
throttle_down = low,10
|
||||||
|
throttle_up = med,20
|
||||||
|
throttle_down = med,20
|
||||||
|
|
||||||
|
# Watch a directory for new torrents, restart torrents that have been
|
||||||
|
# copied back and stop those that have been deleted.
|
||||||
|
|
||||||
|
schedule = watch_directory,0,10,load_start=~/rWatch/*.torrent
|
||||||
|
schedule = tied_directory,10,10,start_tied=
|
||||||
|
schedule = untied_directory,10,10,close_untied=
|
||||||
|
|
||||||
|
# Enable the default ratio group
|
||||||
|
ratio.enable=
|
||||||
|
|
||||||
|
# Change the limits, the defaults should be sufficient.
|
||||||
|
ratio.min.set=50
|
||||||
|
ratio.max.set=150
|
||||||
|
ratio.upload.set=20M
|
||||||
|
|
||||||
|
# Changing the command triggered when the ratio is reached.
|
||||||
|
system.method.set = group.seeding.ratio.command, d.close=, d.erase=
|
||||||
|
|
||||||
|
# Move finished torrents to completed
|
||||||
|
system.method.set_key = event.download.finished,rm_torrent,”execute=rm,$d.get_tied_to_file=”
|
||||||
|
system.method.set_key = event.download.finished,move_complete,”execute=mv,-u,$d.get_base_path=,~/rFullDownloadFiles/ ;d.set_directory=~/rFullDownloadFiles/”
|
||||||
|
|
||||||
|
Note – The resource file was referenced from [this link][2].
|
||||||
|
|
||||||
|
To use the this resource file as it is, don’t forget to run following set of commands (to create certain directories mentioned in resource file) :
|
||||||
|
|
||||||
|
mkdir /home/<your-username>/rTempDownloadFiles
|
||||||
|
mkdir /home/<your-username>/rFullDownloadFiles
|
||||||
|
mkdir /home/<your-username>/rSession
|
||||||
|
mkdir /home/<your-username>/rWatch
|
||||||
|
|
||||||
|
Replace <your-username> with user name of your account. Also, make sure that the resource file-name is **.rtorrent.rc** (with leading dot) and not **rtorrent.rc** and save it in your home directory (/home/himanshu in my case).
|
||||||
|
|
||||||
|
To know more about using rtorrent, read its [UserGuide][3]. Also, do go through this [detailed tutorial][4] on rtorrent utility.
|
||||||
|
|
||||||
|
**Pros**
|
||||||
|
|
||||||
|
- Feature rich
|
||||||
|
- Lots of customizable options
|
||||||
|
|
||||||
|
**Cons**
|
||||||
|
|
||||||
|
- Requires a bit of effort in initial configuration
|
||||||
|
- A user might take time to get used to it.
|
||||||
|
|
||||||
|
**Conclusion**
|
||||||
|
|
||||||
|
rtorrent is for those who would like to have a command line alternative to GUI based BitTorrent clients. Though it requires some initial configuration effort and a bit of practice to get used to, but the effort is worth it. Do give it a try, It will definitely impress you.
|
||||||
|
|
||||||
|
*Do you use any CLI based bit torrent client? What are the pros and cons of it? Share your experience with us.*
|
||||||
|
|
||||||
|
|
||||||
|
via: http://mylinuxbook.com/rtorrent-bit-torrent-client/
|
||||||
|
|
||||||
|
本文由 [LCTT][] 原创翻译,[Linux中国][] 荣誉推出
|
||||||
|
|
||||||
|
译者:[译者ID][] 校对:[校对者ID][]
|
||||||
|
|
||||||
|
[LCTT]:https://github.com/LCTT/TranslateProject
|
||||||
|
[Linux中国]:http://linux.cn/portal.php
|
||||||
|
[译者ID]:http://linux.cn/space/译者ID
|
||||||
|
[校对者ID]:http://linux.cn/space/校对者ID
|
||||||
|
|
||||||
|
[1]:http://libtorrent.rakshasa.no/export/1170/trunk/rtorrent/doc/rtorrent.rc
|
||||||
|
[2]:http://ankursinha.fedorapeople.org/misc/rtorrentconf/rtorrent.rc
|
||||||
|
[3]:http://libtorrent.rakshasa.no/wiki/RTorrentUserGuide
|
||||||
|
[4]:http://fsk141.com/rtorrent-the-complete-guide/
|
Loading…
Reference in New Issue
Block a user