mirror of
https://github.com/LCTT/TranslateProject.git
synced 2026-08-23 04:03:29 +08:00
20140423-2 选题
This commit is contained in:
@@ -0,0 +1,107 @@
|
||||
How to download webcomics from the command line on Linux
|
||||
================================================================================
|
||||
Do you never miss a new strip from xkcd? Read webcomics regularly? Or would you like to back up all the strips of your favorite website? Hopefully, the open source community has the solution: a command line program to download all your favorite webcomics from your terminal.
|
||||
|
||||
Before we begin, remember that you should keep these downloaded strips for your personal use, and not broadcast them without permission. If you really like an author's work, support the comic by donating or buying some of the merchandise.
|
||||
|
||||
### Install Dosage on Linux ###
|
||||
|
||||
The open source program to download webcomics is called [dosage][1]. There are a couple of ways to install this webcomic downloader on your machine since it is written in Python. Today we will go with an easy way.
|
||||
|
||||
First, you will need to [install pip][2]. Also, make sure that you have at least Python 2.7.0 or Python 3.3 installed. Then use pip to install dosage as follows.
|
||||
|
||||
$ sudo pip install dosage
|
||||
|
||||
If pip cannot somehow find the package (like on Ubuntu 14.04), use the following command instead.
|
||||
|
||||
$ sudo pip install http://wummel.github.io/dosage/dist/dosage-2.13.tar.gz
|
||||
|
||||
dosage will automatically create a new folder called "Comics" in your home directory.
|
||||
|
||||
### Basic Usage of Dosage ###
|
||||
|
||||
dosage's basic usage can be described as follows. Using dosage, you can find webcomics in the database that you are interested in reading, download the strips, and easily fetch the latest strips as they come out. In a sense, you more or less subscribe to a webcomic, and dosage will take care of making sure that you never miss any unread strips.
|
||||
|
||||
To start downloading and reading offline your webcomics, begin by listing them with the command:
|
||||
|
||||
$ dosage -l
|
||||
|
||||
Right now, dosage has over 2000 comics in its database. My personal tip is if you are looking for a particular webcomic, use the syntax:
|
||||
|
||||
$ dosage -l | grep [keyword]
|
||||
|
||||
It will then return all the comics with title containing [keyword].
|
||||
|
||||
Once you decided which comic you wanted to subscribe to from the list, use this command to subsribe to the comic:
|
||||
|
||||
$ dosage [name of the webcomic]
|
||||
|
||||

|
||||
|
||||
Subscribing to a comic will automatically create a folder in the "Comics" directory, and download the latest strip of that webcomic.
|
||||
|
||||
If instead of downloading just the latest strip, you are interested in all the issues, use this command:
|
||||
|
||||
$ dosage -a [name of the comic]
|
||||
|
||||
Finally, once you subscribed to a couple of webcomics, you can easily download the latest strip of all of them in one shot with the simple command below:
|
||||
|
||||
$ dosage @
|
||||
|
||||
If you never want to miss your daily comics for example, you should run this command every day.
|
||||
|
||||
### Advanced Usage of Dosage ###
|
||||
|
||||
Past the first day playing around with dosage, you might want to get the most out of it. It entails knowing a bit more about the command's syntax and shortcuts.
|
||||
|
||||
If you tried to download some xkcd strips, you might have noticed that dosage refuses with the message:
|
||||
|
||||
use the --adult option to confirm your age
|
||||
|
||||

|
||||
|
||||
Because by default dosage will ignore any webcomic flagged for people over 18 (and for some reason xkcd is one of them). To bypass that, just do as it says:
|
||||
|
||||
$ dosage --adult xkcd
|
||||
|
||||
From a previous example, you may have noticed that the argument '@' is used to refer to all downloaded comics. A continuation is '@@' for all comics in dosage database.
|
||||
|
||||
$ dosage @@
|
||||
|
||||
The above command will download the latest strip of every comic that dosage knows about.
|
||||
|
||||
If you want to fetch the strips from the beginning of the series up to a particular day, you can do:
|
||||
|
||||
$ dosage -a [name of the comic]:[year-month-day]
|
||||
|
||||
For example, to see all of Calvin and Hobbes' strips from 2014 until its creation, run:
|
||||
|
||||
$ dosage -a calvinandhobbes:2014-01-01
|
||||
|
||||
Finally for all the developers out there who would like to do something of these strips for your personal use, dosage integrates the possibility of generating rss, json, and html log files while downloading strips:
|
||||
|
||||
$ dosage -o [type] [name of the comic]
|
||||
|
||||
In the above command, [type] is either rss, json, or html, and [name of the comic] can also be just '@'. For example, the "html" argument will create a nice HTML code to see all the strips downloaded:
|
||||
|
||||
The command below will download all the strips for Calvin and Hobbes, and then spit out an HTML code to view in your web browser all the strips in a nice webpage format.
|
||||
|
||||
$ dosage -o html -a calvinandhobbes
|
||||
|
||||

|
||||
|
||||
To conclude, I invite you to read the [manual page][3] for more information. dosage is a really neat tool, and I know that it will be of great use to any fans of webcomics out there. I'm very curious to know what can come out of the fancier options like creating a json file out of downloaded strips.
|
||||
|
||||
Do you have an alternative to dosage? Or are you actually a fan of the latter and use it regularly? Let us know in the comments.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://xmodulo.com/2014/04/download-webcomics-command-line-linux.html
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://wummel.github.io/dosage/
|
||||
[2]:http://ask.xmodulo.com/install-pip-linux.html
|
||||
[3]:http://wummel.github.io/dosage/dosage.1.html
|
||||
@@ -0,0 +1,39 @@
|
||||
Install Terminator – Multiple GNOME terminals in one window
|
||||
================================================================================
|
||||
Terminator is a program that allows users to set up flexible arrangements of GNOME terminals. It is aimed at those who normally arrange lots of terminals near each other, but don’t want to use a frame based window manager.
|
||||
|
||||
### Features ###
|
||||
|
||||
- Multiple Terminals in one window
|
||||
- Works with your default shell (Bash/zsh/etc)
|
||||
- Colored active and inactive terminal title backgrounds.
|
||||
|
||||
### Installation ###
|
||||
|
||||
Debian/Ubuntu/Linux Mint/ Elementary OS:
|
||||
|
||||
% sudo apt-get install terminator
|
||||
|
||||

|
||||
|
||||
*Fig 1. Terminator on Linux Mint 16*
|
||||
|
||||
Fedora/Cent OS:
|
||||
|
||||
% sudo yum install terminator
|
||||
|
||||

|
||||
|
||||
*Fig 2. Terminator on Fedora 20*
|
||||
|
||||
See **$ man terminator** for more options and usage.
|
||||
|
||||
Enjoy!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.unixmen.com/install-terminator-multiple-gnome-terminals-one-window/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
@@ -0,0 +1,98 @@
|
||||
Ubuntu After Install – Automate the Installation of all popular softwares On Ubuntu 14.04/13.10/13.04/12.10/12.04
|
||||
================================================================================
|
||||
So you have just upgraded or installed a new Ubuntu desktop, and want to add some extra useful and essential applications on it? Good. But, you should put some extra effort to find and install all those applications to get a near perfect Ubuntu desktop. What are you going to do? Are you going to manually search and install each applications by downloading the respective **.deb** packages or by adding some PPA repositories and install all of the essential apps? I bet it’s a quite time consuming process, and also someone may not know even what applications they should install to get a perfect desktop.
|
||||
|
||||
Well, what if a single tool can do this all for you with a couple of mouse clicks? Yeah, you got my point now. There is an interesting and a very important tool is available that can be used to install all essential and popular applications with a single or couple of mouse clicks? I know you’re getting curious to know. That tool is called “**Ubuntu After Install**”.
|
||||
|
||||
**Ubuntu After Install** is a tool that can be used to install some of the best and essential software after installing the Ubuntu desktop. It has a bunch of useful applications, and will automate the installation process on a newly installed machine to get near perfect desktop. I would not say a complete desktop for all users, but a near perfect desktop. This tool saves your time and effort, and installs all latest versions of softwares by automatically adding the respective PPA’s to keep the installed softwares up to date on your Ubuntu system.
|
||||
|
||||
The complete list of applications that can be installed using Ubuntu After Install is given below:
|
||||
|
||||
- **Ubuntu Restricted Extras**: video codecs and Flash Plugin
|
||||
- **libdvdcss** to enable DVD playback
|
||||
- **Unity Tweak Tool** to tweak your desktop settings
|
||||
- **Variety** is a feature rich wallpaper changer for Ubuntu
|
||||
- **Google Chrome** is arguably the best browser available
|
||||
- **LibreOffice** is the complete open source Office software replacement
|
||||
- **Skype** offers text, voice and video chat
|
||||
- **Grive Tools** will sync your Google Drive to your computer
|
||||
- **DropBox** will sync your DropBox cloud storage
|
||||
- **VLC** will play any video file you can imagine
|
||||
- **XBMC** is a complete home media center experience
|
||||
- **Radio Tray** will stream online radio to your desktop
|
||||
- **GIMP** is powerful image editing software
|
||||
- **Darktable** allows photographers to process RAW files
|
||||
- **Inkscape** is vector based illustration and graphics editor
|
||||
- **Scribus** professional quality desktop publishing software
|
||||
- **Samba** allows for windows network sharing
|
||||
- **PDF Tools** to merge, cut, append and edit PDF documents
|
||||
- **OpenShot** is a great video editor ideal for most users
|
||||
- **Kdenlive** for more advanced video editing
|
||||
- **Handbrake** to convert DVD’s and videos for mobile devices
|
||||
- **Audacity** for music and sound editing
|
||||
- **Steam** gaming platform for unlimited gaming joy on Linux
|
||||
- **KeePass** to store all your passwords securely
|
||||
- **Shutter** allows you to do easy screenshots
|
||||
- **FileZilla** for FTP file upand downloads
|
||||
- **p7zip** adds the powerful 7zip file compression and decompression
|
||||
- And many yet to come
|
||||
|
||||
### Install ‘Ubuntu After Install’ On Ubuntu 12.04 and newer ###
|
||||
|
||||
Add the ‘Ubuntu After Install’ PPA and install it as shown below.
|
||||
|
||||
sudo add-apt-repository ppa:thefanclub/ubuntu-after-install
|
||||
sudo apt-get update
|
||||
sudo apt-get install ubuntu-after-install
|
||||
|
||||
Alternatively, you can download the .deb file [here][1], and manually install it yourself.
|
||||
|
||||
### Usage ###
|
||||
|
||||
After installing Ubuntu-After-Install, launch it either from Unity Dash or Menu.
|
||||
|
||||

|
||||
|
||||
This is how Ubuntu-after-install looked after launching it.
|
||||
|
||||

|
||||
|
||||
As you see in the above screenshot, it will display all useful softwares. The softwares that already has been installed will not be selected by default and marked with green colour dot. If particular software is not available for your Ubuntu version, then it will be marked with Red colour dot. And, the softwares marked in orange colour will be re-installed/upgraded. Clear?
|
||||
|
||||
Now, select the softwares that you want to install and hit the button **Install Now**. The PPA of the selected softwares will added automatically and the respective softwares will be installed on your system. Sounds good, isn’t it?
|
||||
|
||||
For example, here I want to install only the p7zip compression utility on my ubuntu 14.04 system. So i selected p7zip package, and unchecked all of others. To begin the installation, just hit the **Install Now** button.
|
||||
|
||||

|
||||
|
||||
Now, the install will automatically add the PPA of p7zip on your system and install it. Everything will be done automatically on background. So you don’t need anything to do. Just, be relax and watch the installation.
|
||||
|
||||

|
||||
|
||||
If the software has been successfully installed, it will be marked as green colour dot. Please keep in mind that installing all applications at once will take a while to complete depending upon your Internet connection speed, and it is highly not advisable to interrupt the install process once it has begun.
|
||||
|
||||
### Conclusion ###
|
||||
|
||||
We have featured the [Ubuntu Tweak][2] tool a couple of days before. **Ubuntu Tweak** and **Ubuntu After Install** tools do the same job, but Ubuntu Tweak has a lot of features over Ubuntu After Install. Ubuntu After Tool is only intended to install all best and daily usage softwares on your machine, whereas Ubuntu Tweak tool will do couple extra stuffs such as customizing your Ubuntu desktop and more.
|
||||
|
||||
Stop wasting your precious time by searching “things to do after installing Ubuntu” related stuffs on the web. Ubuntu Tweak and Ubuntu After Install are both definitely will help for those who are searching for things to do after installing Ubuntu desktop. Go, get it and do things more quickly and precisely. Good luck!
|
||||
|
||||
That’s all for now. Hope it helps.
|
||||
|
||||
Cheers!
|
||||
|
||||
Source & Reference:
|
||||
|
||||
- [The Fan Club Website][3]
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.unixmen.com/ubuntu-install-automate-installation-popular-softwares-ubuntu-14-0413-1013-0412-1012-04/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.thefanclub.co.za/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://www.thefanclub.co.za/sites/default/files/public/downloads/ubuntu-after-install_2.4_all.deb&nid=121
|
||||
[2]:http://www.unixmen.com/after-a-fresh-install-of-ubuntu-1010-maverick-meerkat-configuration-made-easy-with-ubuntu-tweak/
|
||||
[3]:http://www.thefanclub.co.za/how-to/ubuntu-after-install
|
||||
Reference in New Issue
Block a user