Ubuntu Usage Record

Source: Internet
Author: User

Ubuntu Usage Record
使用Ubuntu有一段时间了,也重装了好一次,server也用的是Ubuntu,也重新部署过几次,记录下一些需要的东西,以后可以按照流程走下来,不至于用到什么再去搜索安装。
Update source
首先安装好系统后要更新源,使用国内的一些源,下载源文件,或者自己搜索添加一些国内的源,更新源文件,然后update/upgrade即可。可以从这里直接下载源文件:https://gitee.com/youdias/UseUbuntu/blob/master/sources.list
Desktop view real-time speed
对于桌面版,可以通过安装indicator-sysmonitor实时监控网速:

···
sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor
sudo apt-get update

sudo apt-get install Indicator-sysmonitor
Indicator-sysmonitor &
···
Can be activated at the start of network monitoring, while also monitoring the use of Cpu/mem, by right-click to set the boot, by adding net:{net} to see the speed of real-time
Reference Link: 24489031/

Server Edition speed limit
对于server,流量是很宝贵的,为了防止有些人扫描代理等窃用,可以通过软件对网速进行限制,当自己在使用时取消网速限制,当不用时开启限制,即使连上来了也不至于造成太大的损失,对于云服务器如AWS来说,甚至可以更激进一点,设置一个禁止任何链接的安全组,当不用时候网络采用该安全组,进一步保护server流量。首先需要安装软件wondershaper:

···
sudo apt-get install Wondershaper
···
Easy to use, open limit:
···
$ sudo wondershaper eth0 100 20//Set download speed 100kb/s, upload speed 20kb/s
···
Cancellation Restrictions:
···
$ sudo wondershaper clear em1
···
The interface name can be obtained using Ubuntu AutoComplete, such as input tcpdump-i e +tab, which automatically complements the full interface name, or is viewed through ifconfig.
More convenient, you can write the opening/cancellation limit of two SH script, only need to run, you can download directly here in Https://gitee.com/youdias/UseUbuntu/tree/master/NetControll, Put it in the right place in the server
Add execute permissions, and then you can set the speed by scripting.
Reference: 44787249

Ubuntu Usage Record

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.