mirror of
https://github.com/LCTT/TranslateProject.git
synced 2026-08-23 04:03:29 +08:00
@@ -0,0 +1,49 @@
|
||||
Pinta 1.6 Released! Install It In Ubuntu And Linux Mint
|
||||
================================================================================
|
||||

|
||||
|
||||
[Pinta][1] is a free and open source drawing application which is very popular among Linux users. It won’t be incorrect to term it as an **open source alternative to Microsoft Paint**. Pinta is available for all major platforms such as Linux, Windows and Mac OS X.
|
||||
|
||||
While Gimp is popular as full featured image editing software, Pinta is more of a paint and drawing tool. I have used it extensively in my tutorials for drawing arrows and curves on the screenshots and I can say that it’s my favorite drawing app in Linux.
|
||||
|
||||
### New features in Pinta 1.6 ###
|
||||
|
||||
After over an year, Pinta has released version 1.6, fixing over 50 bugs and introducing some new features. New features are as following:
|
||||
|
||||
- Line tool now supports drawing curves and arrows
|
||||
- Shapes can be edited even after being drawn
|
||||
- All shape tools now support drawing dashed lines
|
||||
- All selection tools now support the Union, Exclude, Xor, and Intersection modes
|
||||
- Add-in manager now consists of ‘add ins’
|
||||
- New options in command line usage
|
||||
|
||||
New version also fixes the annoying bug where you [cannot open a file with Pinta in right click menu option][2]. You can read all the changes in the [release note][3].
|
||||
|
||||
### Install Pinta 1.6 in Ubuntu and Linux Mint ###
|
||||
|
||||
Pinta 1.5 is available in Ubuntu 14.04, 14.10, Linux Mint 17, elementary OS. If you want to install the latest version 1.6, you can use the official PPA from Pinta team. Don’t worry if you have Pinta 1.5 installed already. Installing it again will upgrade the version.
|
||||
|
||||
Open a terminal and use the following commands:
|
||||
|
||||
sudo add-apt-repository ppa:pinta-maintainers/pinta-stable
|
||||
sudo apt-get update
|
||||
sudo apt-get install pinta
|
||||
|
||||
To download the source code or to get the installation files for Windows and Mac OS X, check the [download page of Pinta][4]. In a related post, you can also check out [best photo applications for Linux][5].
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://itsfoss.com/pinta-1-6-ubuntu-linux-mint/
|
||||
|
||||
作者:[Abhishek][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:http://itsfoss.com/author/abhishek/
|
||||
[1]:http://pinta-project.com/
|
||||
[2]:http://itsfoss.com/add-application-list-open-applications-ubuntu-1310/
|
||||
[3]:http://pinta-project.com/releases/1-6
|
||||
[4]:http://pinta-project.com/releases
|
||||
[5]:http://itsfoss.com/image-applications-ubuntu-linux/
|
||||
@@ -1,41 +0,0 @@
|
||||
Ubuntu 15.04 Finally Lets You Set Menus To ‘Always Show’
|
||||
================================================================================
|
||||
**If you hate the way that Unity’s global menus fade out of view after you mouse away, Ubuntu 15.04 has a little extra to win you around.**
|
||||
|
||||

|
||||
|
||||
The latest build of Unity for Ubuntu 15.04, currently sitting in the ‘proposed’ channel, offers an option to **make app menus visible in Ubuntu**.
|
||||
|
||||
No fading, no timeout, no missing menus.
|
||||
|
||||
The drawback for now is that it can currently only be enabled through a dconf switch and not a regular user-facing option.
|
||||
|
||||
I’d hope (if not expect) that an option to set the feature is added to the Ubuntu System Settings > Appearance section as development continues.
|
||||
|
||||
Right now, if you’re on Ubuntu 15.04 and have the “Proposed” update channel enabled, you should find this switch waiting in **com > canonical > unity >** ‘always show menus’.
|
||||
|
||||
### Better Late Than Never? ###
|
||||
|
||||
Developers plan to backport the option to Ubuntu 14.04 LTS in the next SRU (assuming nothing unexpected crops up during testing).
|
||||
|
||||
Locally Integrated Menus (LIM) debuted in Ubuntu 14.04 LTS to much appreciation, being widely seen as the best compromise between those who liked the simplicity of the “hidden” approach and those who disliked the mouse and trackpad aerobics using it required.
|
||||
|
||||
While locally integrated menus brought us half way to silencing the criticisms levelled at this aspect of Unity, the default “fade in/fade out” behaviour left an itch unscratched.
|
||||
|
||||
The past few releases of Ubuntu has seen proactive addressing of concerns and issues experienced by its earlier UX decisions. After several years on the ‘to do’ list [we finally got Locally Integrated Menus last year][1], as well as an unsupported [option to minimise and restore apps to the Unity Launcher][2] by clicking on their icon.
|
||||
|
||||
A year on from that we finally get an option to make application menus always show, no matter where our mouse is. Better late than never, right?
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.omgubuntu.co.uk/2015/01/ubuntu-15-04-always-show-menu-bar-option
|
||||
|
||||
作者:[Joey-Elijah Sneddon][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:https://plus.google.com/117485690627814051450/?rel=author
|
||||
[1]:http://www.omgubuntu.co.uk/2014/02/locally-integrated-menus-ubuntu-14-04
|
||||
[2]:http://www.omgubuntu.co.uk/2014/03/minimize-click-launcher-option-ubuntu-14-04
|
||||
@@ -1,207 +0,0 @@
|
||||
theo-l translating
|
||||
How to Monitor Network Usage with nload in Linux
|
||||
================================================================================
|
||||
nload is a free linux utility that can help the linux user or sysadmin to monitor network traffic and bandwidth usage in real time by providing two simple graphs: one per incoming traffic and one for outgoing traffic.
|
||||
|
||||
I really like to use **nload** to display information on my screen about the current download speed, the total incoming traffic, and the average download speed. The graphs reported by nload tool are very easy to interpret and what is the most important thing they are very helpful.
|
||||
|
||||
According to the manual pages it monitors all network devices by default, but you can easily specify the device you want to monitor and also switch between different network devices using the arrow keys. There are many options avaliable such as -t to determine refresh interval of the display in milliseconds (the default value of interval is 500), -m to show multiple devices at the same time(traffic graphs are not shown when this option is used), -u to set the type of unit used for the display of traffic numbers and many others that we are going to explore and practise in this tutorial.
|
||||
|
||||
### How to install nload on your linux machine ###
|
||||
|
||||
**Ubuntu** and **Fedora** users can easily install nload from the default repositories.
|
||||
|
||||
Install nload on Ubuntu by using the following command.
|
||||
|
||||
sudo apt-get install nload
|
||||
|
||||
Install nload on Fedora by using the following command.
|
||||
|
||||
sudo yum install nload
|
||||
|
||||
What about **CentOS** users? Just type the following command on your machine and you will get nload installed.
|
||||
|
||||
sudo yum install nload
|
||||
|
||||
The following command will help you to install nload on OpenBSD systems.
|
||||
|
||||
sudo pkg_add -i nload
|
||||
|
||||
A very effective way to install software on linux machine is to compile by source as you can download and install the latest version which usually means better performance, cool features and less bugs.
|
||||
|
||||
### How to install nload from source ###
|
||||
|
||||
The first thing you need to do before installing nload from source you need to download it and to do this I like to use the wget uility which is available by default on many linux machines. This free utility helps linux users to download files from the web in a non-interactive way and has support for the following protocols.
|
||||
|
||||
- HTTP
|
||||
- HTTPS
|
||||
- FTP
|
||||
|
||||
Change directory to **/tmp** by using the following command.
|
||||
|
||||
cd /tmp
|
||||
|
||||
Now type the following command in your terminal to download the latest version of nload on your linux machine.
|
||||
|
||||
wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
|
||||
|
||||
If you don't like to use the linux wget utility you can easily download it from the [official][1] source by just a mouse click.
|
||||
|
||||
The download will finish in no time as it is a small software. The next step is to untar the file you downloaded with the help of the **tar** utility.
|
||||
|
||||
The tar archiving utility can be used to store and extract files from a tape or disk archive. There are many options available in this tool but we need the followings to perform our operation:
|
||||
|
||||
1. **-x** to extract files from an archive
|
||||
1. **-v** to run in verbose mode
|
||||
1. **-f** to specify the files
|
||||
|
||||
For example:
|
||||
|
||||
tar xvf example.tar
|
||||
|
||||
Now that you learned how to use the tar utility I am very sure you know how to untar .tar archives from the commandline.
|
||||
|
||||
tar xvf nload-0.7.4.tar.gz
|
||||
|
||||
Then use the cd command to change directory to nload*.
|
||||
|
||||
cd nload*
|
||||
|
||||
It looks like this on my system.
|
||||
|
||||
oltjano@baby:/tmp/nload-0.7.4$
|
||||
|
||||
Now run the command
|
||||
|
||||
./configure
|
||||
|
||||
to to configure the package for your system.
|
||||
|
||||
./configure
|
||||
|
||||
Alot of stuff is going to be displayed on your screen. The following screenshot demonstrates how it is going to look like.
|
||||
|
||||

|
||||
|
||||
Then compile the nload with the following command.
|
||||
|
||||
make
|
||||
|
||||

|
||||
|
||||
And finally install nload on your linux machine with the following command.
|
||||
|
||||
sudo make install
|
||||
|
||||

|
||||
|
||||
Now that the installation of nload is finished it is time for you to learn how to use it.
|
||||
|
||||
### How to use nload ###
|
||||
|
||||
I like to explore so type the following command on your terminal.
|
||||
|
||||
nload
|
||||
|
||||
What do you see?
|
||||
|
||||
I get the following.
|
||||
|
||||

|
||||
|
||||
As you can see from the above screenshot I get information on:
|
||||
|
||||
### Incoming Traffic ###
|
||||
|
||||
#### Current download speed ####
|
||||
|
||||

|
||||
|
||||
#### Average download speed ####
|
||||
|
||||

|
||||
|
||||
#### Minimum download speed ####
|
||||
|
||||

|
||||
|
||||
#### Maximum download speed ####
|
||||
|
||||

|
||||
|
||||
#### Total incoming traffic in bytes by default ####
|
||||
|
||||

|
||||
|
||||
### Outgoing Traffic ###
|
||||
|
||||
The same goes for outgoing traffic.
|
||||
|
||||
#### Some useful options of nload ####
|
||||
|
||||
Use the option
|
||||
|
||||
-u
|
||||
|
||||
to set set the type of unit used for the display of traffic numbers.
|
||||
|
||||
The following command will help you to use the MBit/s unit.
|
||||
|
||||
nload -u m
|
||||
|
||||
The following screenshot shows the result of the above command.
|
||||
|
||||

|
||||
|
||||
Try the following command and see the results.
|
||||
|
||||
nload -u g
|
||||
|
||||

|
||||
|
||||
There is also the option **-U**. According to the manual pages it is same as the option -u but only for an amount of data. I tested this option and to be honest it very helpful when you want to check the total amount of traffic be it incoming or outgoing.
|
||||
|
||||
nload -U G
|
||||
|
||||

|
||||
|
||||
As you can see from the above screenshot the command **nload -U G** helps to display the total amount of data (incoming or outgoing) in Gbyte.
|
||||
|
||||
Another useful option I like to use with nload is the option **-t**. This option is used to refresh interval of display in milliseconds which is 500 by default.
|
||||
|
||||
I like to experiment a little by using the following command.
|
||||
|
||||
nload -t 130
|
||||
|
||||
So what the above command does is that it sets the display to refresh every 130 milliseconds. It is recommended to no specify refresh intervals shorter than about 100 milliseconds as nload will generate reports with mistakes during the calculations.
|
||||
|
||||
Another option is **-a**. It is used when you want to set the length in seconds of the time window for average calculation which is 300 seconds by default.
|
||||
|
||||
What if you want to monitor a specific network device? It is very easy to do that, just specify the device or the list of devices you want to monitor like shown below.
|
||||
|
||||
nload wlan0
|
||||
|
||||

|
||||
|
||||
The following syntax can help to monitor specific multiple devices.
|
||||
|
||||
nload [options] device1 device2 devicen
|
||||
|
||||
For example use the following command to monitor eth0 and wlan0.
|
||||
|
||||
nload wlan0 eth0
|
||||
|
||||
And if you run the command nload without any option it will monitor all auto-detected devices, you can display graphs for each one of them by using the right and left arrow keys.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://linoxide.com/monitoring-2/monitor-network-usage-nload/
|
||||
|
||||
作者:[Oltjano Terpollari][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:http://linoxide.com/author/oltjano/
|
||||
[1]:http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
|
||||
@@ -1,3 +1,5 @@
|
||||
Translating
|
||||
|
||||
Linux Basics: How To Find Maximum Supported RAM By Your System
|
||||
================================================================================
|
||||

|
||||
@@ -693,4 +695,4 @@ via: https://www.unixmen.com/linux-basics-how-to-find-maximum-supported-ram-by-y
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:https://www.unixmen.com/author/sk/
|
||||
[a]:https://www.unixmen.com/author/sk/
|
||||
|
||||
@@ -0,0 +1,174 @@
|
||||
How to Setup lftp - A Simple Command line FTP Program
|
||||
================================================================================
|
||||
Hi everyone, this article is about Lftp and how we can install Lftp in our Linux Operating System. [Lftp][1] is a command line based File Transfer Software also known as FTP Client which was developed by Alexander Lukyanov and was distributed as GNU General Public License. Besides FTP, it also supports FTPS, HTTP, HTTPS, HFTP, FISH, and SFTP. The program also supports FXP, allowing for data transfers between two FTP servers bypassing the client machine.
|
||||
|
||||
It has some awesome advanced features such as recursively mirroring entire directory trees and resuming downloads. Transfers can be scheduled for execution at a later time, bandwidth can be throttled, transfer queues can be created, and Unix shell-like job control is supported. The client can also be used interactively or automated with scripts.
|
||||
|
||||
### Installing Lftp ###
|
||||
|
||||
Before we try to run lftp, we have make sure that it is properly installed in our Linux Distribution. Here are some commands mentioned for installing lftp in the list common distribution of Linux.
|
||||
|
||||
**On Ubuntu 14.04 LTS**
|
||||
|
||||
In Ubuntu 14.04 LTS and its derivatives, we can install lftp using apt manager. So, to install it, we'll need to run the following commands in a shell or a terminal under sudo privilege.
|
||||
|
||||
$ sudo apt-get install lftp
|
||||
|
||||

|
||||
|
||||
**On CentOS/Fedora/RHEL**
|
||||
|
||||
As lftp is also available in the repository of Fedora, CentOS and RHEL, we can use **yum** manager to install it.
|
||||
|
||||
$ sudo yum install lftp
|
||||
|
||||

|
||||
|
||||
**On Arch Linux**
|
||||
|
||||
It is also available in Arch Linux Package Repository so, we can simply use pacman to install it.
|
||||
|
||||
$ sudo pacman -S lftp
|
||||
|
||||

|
||||
|
||||
**On OpenSuse**
|
||||
|
||||
Zypper, package management software for OpenSuse can be used to install lftp. Here is the command with which one can install it on their OpenSuse machine.
|
||||
|
||||
$ sudo zypper install lftp
|
||||
|
||||

|
||||
|
||||
### Logging in ###
|
||||
|
||||
To login to a ftp server or sftp server, we'll first need to know about the required credential for the login like username, password, ports.
|
||||
|
||||
After that, we'll want to login using lftp client as basic usage.
|
||||
|
||||
$ lftp ftp://linoxide@localhost
|
||||
|
||||

|
||||
|
||||
If we need to point a port to the login then, we'll need to add port as shown below.
|
||||
|
||||
$ lftp ftp://linoxide@localhost:21
|
||||
|
||||

|
||||
|
||||
### Navigation ###
|
||||
|
||||
We can use **ls** to list files and directories, **cd** to enter into a directory.
|
||||
|
||||

|
||||
|
||||
### Uploading and Download Files ###
|
||||
|
||||
We can use **pget** for downloading files from the remote server.
|
||||
|
||||
> pget linspeed.svg
|
||||
|
||||

|
||||
|
||||
We can use **put** for uploading files to the remote server.
|
||||
|
||||
> put linoxide.tar
|
||||
|
||||

|
||||
|
||||
To resume partially downloaded files/directories, we will use the -c switch:
|
||||
|
||||
> mirror -c Directory
|
||||
|
||||
>pget -c linoxide.tar
|
||||
|
||||
> put -c upload.tar
|
||||
|
||||
### Using Mirror ###
|
||||
|
||||
We can use mirror to download the whole directory pointed as the source.
|
||||
|
||||
> mirror remote local
|
||||
|
||||

|
||||
|
||||
There is also reverse mirror (mirror -R) which uploads or updates a directory tree on server.
|
||||
|
||||
> mirror -R local remote
|
||||
|
||||

|
||||
|
||||
To resume partially downloaded files/directories, we will use the -c switch:
|
||||
|
||||
> mirror -c Directory
|
||||
|
||||
### To Queue Items to Download ###
|
||||
|
||||
We can use queue option with lftp so that we can download selected files in a queue one by one as there is an option in GUI based clients to select and download in a queue. Here's an example on it.
|
||||
|
||||
To prevent queue from auto transferring while you add to it :
|
||||
|
||||
> queue stop
|
||||
|
||||
Now, we'll add them into queue.
|
||||
|
||||
> queue mirror "directory"
|
||||
|
||||
> queue pget "file.tar"
|
||||
|
||||
After the queue has been added, we should run queue start command.
|
||||
|
||||
> queue start
|
||||
|
||||
To remove the entire queue run the following command.
|
||||
|
||||
> queue -d
|
||||
|
||||
### Segmented Downloading ###
|
||||
|
||||
Here, in this example we are segmenting files into 3 segments, one can change it according to their own need.
|
||||
|
||||
A pget command using segmentation is **pget -n 3 file.tar**, where 3 is the number of segments.
|
||||
|
||||
> pget -n 3 file.tar
|
||||
|
||||
A mirror command using segmentation is **mirror --use-pget-n=3 directory**, where 3 is the number of segments.
|
||||
|
||||
> mirror --use-pget-n=3 linxoxide
|
||||
|
||||
We can use jobs -v to see the speeds of the individual segments as well as the total speed.
|
||||
|
||||
### To Stop, Resume or Kill a Transfer ###
|
||||
|
||||
To cancel a transfer we can press Ctrl+c . And to resume a download we can use the -c (--continue) switch as shown below.
|
||||
|
||||
> mirror -c directory
|
||||
|
||||
And to kill an active transfer we should run **kill** and to kill and delete all we'll need to run **kill all** as shown below.
|
||||
|
||||
> kill
|
||||
|
||||
> kill all
|
||||
|
||||
### Exiting ###
|
||||
|
||||
To quit from lftp, we should run exit command in the terminal or inside lftp interface.
|
||||
|
||||
> exit
|
||||
|
||||
### Conclusion ###
|
||||
|
||||
Hurray! We have successfully installed lftp and learned some basic major ways to use it. lftp is an awesome command line ftp client which supports a lot of additional functionality and cool features. It has a lot stuffs more than the other common ftp client. So, if you have any questions, suggestions, feedback please write them in the comment box below. Thank you ! Enjoy lftp :-)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://linoxide.com/linux-how-to/setup-lftp-command-line-ftp/
|
||||
|
||||
作者:[Arun Pyasi][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:http://linoxide.com/author/arunp/
|
||||
[1]:http://lftp.yar.ru/
|
||||
41
sources/tech/20150306 Nmap--Not Just for Evil.md
Normal file
41
sources/tech/20150306 Nmap--Not Just for Evil.md
Normal file
@@ -0,0 +1,41 @@
|
||||
Nmap—Not Just for Evil!
|
||||
================================================================================
|
||||
If SSH is the Swiss Army knife of the system administration world, Nmap is a box of dynamite. It's really easy to misuse dynamite and blow your foot off, but it's also a very powerful tool that can do jobs that are impossible without it.
|
||||
|
||||
When most people think of Nmap, they think of scanning servers, looking for open ports to attack. Through the years, however, that same ability is incredibly useful when you're in charge of the server or computer in question. Whether you're trying to figure out what kind of server is using a specific IP address in your network or trying to lock down a new NAS device, scanning networks is incredibly useful.
|
||||
|
||||
Figure 1 shows a network scan of my QNAP NAS. The only thing I use the unit for is NFS and SMB file sharing, but as you can tell, it has a ton of ports wide open. Without Nmap, it would be difficult to figure out what the machine was running.
|
||||
|
||||

|
||||
|
||||
### Figure 1. Network Scan ###
|
||||
|
||||
Another incredibly useful way to use Nmap is to scan a network. You don't even have to have root access for that, and it's as simple as specifying the network block you want to scan. For example, typing:
|
||||
|
||||
nmap 192.168.1.0/24
|
||||
|
||||
will scan the entire range of 254 possible IP addresses on my local network and let me know which are pingable, along with which ports are open. If you've just plugged in a new piece of hardware, but don't know what IP address it grabbed via DHCP, Nmap is priceless. For example, the above command revealed this on my network:
|
||||
|
||||
Nmap scan report for TIVO-8480001903CCDDB.brainofshawn.com (192.168.1.220)
|
||||
Host is up (0.0083s latency).
|
||||
Not shown: 995 filtered ports
|
||||
PORT STATE SERVICE
|
||||
80/tcp open http
|
||||
443/tcp open https
|
||||
2190/tcp open tivoconnect
|
||||
2191/tcp open tvbus
|
||||
9080/tcp closed glrpc
|
||||
|
||||
This not only tells me the address of my new Tivo unit, but it also shows me what ports it has open. Thanks to its reliability, usability and borderline black hat abilities, Nmap gets this month's Editors' Choice award. It's not a new program, but if you're a Linux user, you should be using it!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.linuxjournal.com/content/nmap%E2%80%94not-just-evil
|
||||
|
||||
作者:[Shawn Powers][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:http://www.linuxjournal.com/users/shawn-powers
|
||||
@@ -0,0 +1,42 @@
|
||||
Ubuntu 15.04 最终实现你可以设置你的菜单 ‘始终可见’
|
||||
================================================================================
|
||||
**如果你不喜欢 Unity 的全局菜单在你的鼠标离开后就淡出你的视野, Ubuntu 15.04 有一些额外附加去实现这点.**
|
||||
|
||||

|
||||
|
||||
最新的Ubuntu 15.04的Unity界面通过在提议通道提供了一个选项**使应用程序菜单在Ubuntu中可见**.
|
||||
|
||||
不时尚, 不过时, 没有丢失的菜单.
|
||||
|
||||
最大的缺点是它目前只能通过dconf来控制,而不是常规的面向用户的选项设置。
|
||||
|
||||
我希望(如果不是期望)能有一个设置这个特性的选项被加入到Ubuntu的【系统设置】>【外观】部分的开发仍在继续。
|
||||
|
||||
现在,如果你使用的是Ubuntu15.04,并启用“建议”的更新通道后,你会发现这个开关存在于在COM>规范>Unity>“始终显示菜单”。
|
||||
|
||||
|
||||
### 迟到总比没有要好? ###
|
||||
|
||||
开发者计划在Ubuntu14.04 LTS的下一个SRU中反向移植这个选项(假设在测试阶段没有任何意外发生)。
|
||||
|
||||
本地集成菜单(LIM)在Ubuntu 14.04 LTS 首次获得了欣赏,被广泛认为在那些喜欢隐藏方式的和那些不喜欢必须使用鼠标和触摸板的人之间的最佳的折衷方法
|
||||
|
||||
虽然本地集成菜单给我们带来了半路上沉默的批评在统一方面,默认的“淡入/淡出”行为给我们留下了令人发痒的伤痕
|
||||
|
||||
在Ubuntu 过去的几个版本中已经能够看到积极的去解决早期UX的经历过的关切的问题。在经过几年“打算去做”的列表[我们去年终于得到了本地集成菜单][1],以及不支持的通过点击图标实现[减少和恢复Unity启动程序中不支持的应用程序的选项]。
|
||||
|
||||
一年以来我们终于得到一个选项以使应用程序菜单始终显示,无论我们的鼠标在哪里。迟来总比没有好,对不对?
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.omgubuntu.co.uk/2015/01/ubuntu-15-04-always-show-menu-bar-option
|
||||
|
||||
作者:[Joey-Elijah Sneddon][a]
|
||||
译者:[JeffDing](https://github.com/JeffDing)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:https://plus.google.com/117485690627814051450/?rel=author
|
||||
[1]:http://www.omgubuntu.co.uk/2014/02/locally-integrated-menus-ubuntu-14-04
|
||||
[2]:http://www.omgubuntu.co.uk/2014/03/minimize-click-launcher-option-ubuntu-14-04
|
||||
@@ -0,0 +1,196 @@
|
||||
在linux中如何通过nload来监控网络使用情况
|
||||
================================================================================
|
||||
nload 是一个免费的linux工具,通过提供两个简单的图形化界面来帮助linux用户和系统管理员来实时监控网络流量以及宽带使用情况:一个作为进入流量,一个作为流出流量.
|
||||
|
||||
我是真的很喜欢用**nload**来在屏幕上显示当前的下载速度,总的流入量和平均下载速度等信息。nload工具的报告图非常容易理解,最重要的是这些信息真的非常有用。
|
||||
|
||||
|
||||
|
||||
在使用手册上说到,在默认情况下会监控所有网络设备。但是你可以轻松地指定你想要监控的设备,而且可以可以通过方向键头在不同的网络设备之间进行转换。另外还有很多的选项可用,例如 ‘-r’选项确定以毫秒来刷新显示时间间隔(默认时间间隔值是500毫秒),‘-m’选项用来实时显示多个设备(流量图在使用该选项时不会显示), ‘-u’选项用来设置显示流量数字的单元类型,另外还有许多其他的选项将会在该教程中探索和练习。
|
||||
|
||||
### 如何将 nload安装到你的linux机器上 ###
|
||||
|
||||
**Ubuntu** 和 **Fedora** 用户可以从默认的软件仓库中容易地安装。
|
||||
|
||||
在Ubuntu上使用以下命令进行安装。
|
||||
|
||||
sudo apt-get install nload
|
||||
|
||||
在Fedora上使用以下命令进行安装。
|
||||
|
||||
sudo yum install nload
|
||||
|
||||
**CentOS**用户该怎么办呢? 只需要在你的机器上输入以下命令,通用能够达到相同的结果--殊途同归。
|
||||
|
||||
sudo yum install nload
|
||||
|
||||
以下的命令会帮助你在OpenBSD系统中安装nload.
|
||||
|
||||
sudo pkg_add -i nload
|
||||
|
||||
linux机器上的另外一个非常有效的安装软件的方式就是编译源代码,通过下载并安装最新的版本意味着能够获得更好地性能,更酷的特性以及越少的bug数。
|
||||
|
||||
### 如何通过源代码安装nload ###
|
||||
|
||||
在从源代码安装nload之前,你需要首先下载源代码。 我通常使用wget工具来进行下载--该工具在许多linux机器上默认可用。该免费工具帮助用户以非交互式的方式从网络上下载文件,并支持以下协议:
|
||||
|
||||
- HTTP
|
||||
- HTTPS
|
||||
- FTP
|
||||
|
||||
通过以下命令来进入到**/tmp**目录中。
|
||||
|
||||
cd /tmp
|
||||
|
||||
然后在你的终端中输入以下命令就可以将最新版本的nload下载到你的linux机器上了。
|
||||
|
||||
wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
|
||||
|
||||
如果你不喜欢使用wget工具,也可以通过简单的一个鼠标点击轻松地从[官网][1]上下载源代码。
|
||||
|
||||
由于该软件非常轻巧,其下载过程几乎在瞬间就会完成。接下来的步骤就是通过**tar**工具来将下载的源代码包进行解压。
|
||||
|
||||
tar归档工具可以用来从磁带或硬盘文档中存储或解压文件,该工具具有许多可用的选项,但是我们只需要下面的几个选项来执行我们的操作。
|
||||
|
||||
1. **-x** to extract files from an archive
|
||||
1. **-x** 从文档中解压文件
|
||||
1. **-v** to run in verbose mode
|
||||
1. **-v** 使用繁琐模式运行--用来输入详细信息
|
||||
1. **-f** to specify the files
|
||||
1. **-f** 用来指定文件
|
||||
|
||||
例如:
|
||||
|
||||
tar xvf example.tar
|
||||
|
||||
现在你学会了如何使用tar工具,我可以非常肯定你会知道如何从命令行中解压.tar文档。
|
||||
|
||||
tar xvf nload-0.7.4.tar.gz
|
||||
|
||||
之后使用cd命令来进入到nload*目录中
|
||||
|
||||
cd nload*
|
||||
|
||||
在我的系统上看起来是这样的
|
||||
|
||||
oltjano@baby:/tmp/nload-0.7.4$
|
||||
|
||||
然后运行下面这个命令来为你的系统配置包
|
||||
|
||||
./configure
|
||||
|
||||
此时会有一大波僵尸会在你的屏幕上显示出来,下面的一个屏幕截图描述了它的样子。
|
||||
|
||||

|
||||
|
||||
在上述命令完成之后,通过下面的命令来编译nload。
|
||||
|
||||
make
|
||||
|
||||

|
||||
|
||||
好了,终于....,下载通过以下命令可以将nload安装在你的机器上了。
|
||||
|
||||
sudo make install
|
||||
|
||||

|
||||
|
||||
安装好nload之后就是时间来让你学习如何使用它了。
|
||||
|
||||
###如何使用nload###
|
||||
|
||||
我喜欢探索,所以在你的终端输入以下命令.
|
||||
|
||||
nload
|
||||
|
||||
看到了什么?
|
||||
|
||||
我得到了下面的结果。
|
||||
|
||||

|
||||
|
||||
如上述截图可以看到,我得到了以下信息:
|
||||
### 流入量###
|
||||
|
||||
#### 当前下载速度####
|
||||

|
||||
|
||||
#### 平均下载速度####
|
||||

|
||||
|
||||
#### 最小下载速度####
|
||||

|
||||
|
||||
#### 最大下载速度####
|
||||

|
||||
|
||||
#### 总的流入量按字节进行显示####
|
||||

|
||||
|
||||
### 流出量 ###
|
||||
|
||||
类似的同样适用于流出量
|
||||
#### 一些nload有用的选项####
|
||||
|
||||
使用选项
|
||||
-u
|
||||
|
||||
用来设置显示流量单元的类型.
|
||||
|
||||
下面的命令会帮助你使用MBit/s显示单元
|
||||
nload -u m
|
||||
|
||||
下面的屏幕截图显示了上述命令的结果.
|
||||

|
||||
|
||||
尝试以下命令然后看看有什么结果.
|
||||
|
||||
nload -u g
|
||||
|
||||

|
||||
|
||||
同时还有一个**-U**选项.根据手册描述,该选项基本上与-u选项类似,只是用在合计数据. 我测试了这个命令,老实说,当你需要检查总的流入与流出量时非常有用.
|
||||
|
||||
nload -U G
|
||||
|
||||

|
||||
|
||||
从上面的截图中可以看到,**nload -U G** 使用Gbyte来显示数据总量.
|
||||
|
||||
另外一个我喜欢使用的有用选项是 **-t**. 该选项用来设置刷新显示事件间隔为毫秒,默认值为500毫秒.
|
||||
|
||||
我会通过下面的命令做一些小的实验.
|
||||
nload -t 130
|
||||
|
||||
那么上述命令做了什么呢,它讲刷新显示时间间隔设置为130毫秒. 通常推荐不要讲该时间间隔值设置为小于100毫秒,因为nload在计算过程中可能会生成带错的报告.
|
||||
|
||||
另外的一个选项为 **-a**. 在你想要设置计算平均值的时间窗口秒数长度时使用,默认该值为300秒.
|
||||
|
||||
那么当你想要监控指定的网络设备该如何呢? 非常容易, 想下面这样简单地指定设备或者列出想要监控的设备列表.
|
||||
|
||||
nload wlan0
|
||||
|
||||

|
||||
|
||||
下面的语法可帮助你监控指定的多个设备.
|
||||
|
||||
nload [options] device1 device2 devicen
|
||||
|
||||
例如,使用下面的命令来监控eth0和eth1.
|
||||
|
||||
nload wlan0 eth0
|
||||
|
||||
如果不带选项来运行nload,那么它会监控监控所有自动检测到的设备,你可以通过左右方向键来显示其中的任何一个设备的信息.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://linoxide.com/monitoring-2/monitor-network-usage-nload/
|
||||
|
||||
作者:[Oltjano Terpollari][a]
|
||||
译者:[theo-l](https://github.com/theo-l)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:http://linoxide.com/author/oltjano/
|
||||
[1]:http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
|
||||
@@ -1,45 +1,45 @@
|
||||
Linux Basics: How To Fix “E: /var/cache/apt/archives/ subprocess new pre-removal script returned error exit status 1″ In Ubuntu
|
||||
Linux 基础:如何修复Ubuntu上“E: /var/cache/apt/archives/ subprocess new pre-removal script returned error exit status 1 ”的错误
|
||||
================================================================================
|
||||

|
||||
|
||||
Today, I got a problem while updating VirtualBox to the latest version.
|
||||
今天,我在更新VirtualBox新版本的时候遇到了一个问题。
|
||||
|
||||
> E: /var/cache/apt/archives/ subprocess new pre-removal script returned error exit status 1
|
||||
|
||||

|
||||
|
||||
### Solution: ###
|
||||
### 解决: ###
|
||||
|
||||
I googled a bit and found the solution. Here is what I did to solve the problem.
|
||||
我google了以下并找到了方法。下面是我解决的方法。
|
||||
|
||||
sudo apt-get clean
|
||||
sudo apt-get update && sudo apt-get upgrade
|
||||
|
||||
This will almost fix the problem.
|
||||
这样几乎可以修复这个问题了。
|
||||
|
||||
If you still end up with the same error, then try the following commands:
|
||||
如果你仍然有问题,那就试试下面的命令:
|
||||
|
||||
sudo dpkg --configure -a
|
||||
sudo apt-get -f install
|
||||
|
||||
Or, you can manually download the latest version from [Oracle VirtualBox][1] site and install it as shown below.
|
||||
或者你可以按照下面的方法从[Oracle VirtualBox][1]官网下载最新版本并安装。
|
||||
|
||||
sudo apt-get update
|
||||
sudo dpkg -i virtualbox-4.3_4.3.24-98716~Ubuntu~raring_amd64.deb
|
||||
sudo apt-get -f install
|
||||
sudo apt-get autoclean && sudo apt-get autoremove
|
||||
|
||||
Cheers!
|
||||
干杯!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.unixmen.com/linux-basics-how-to-fix-e-varcacheaptarchives-subprocess-new-pre-removal-script-returned-error-exit-status-1-in-ubuntu/
|
||||
|
||||
作者:[SK][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:https://www.unixmen.com/author/sk/
|
||||
[1]:https://www.virtualbox.org/wiki/Downloads
|
||||
[1]:https://www.virtualbox.org/wiki/Downloads
|
||||
Reference in New Issue
Block a user