Merge pull request #5187 from ucasFL/master

translated
This commit is contained in:
Flynn 2017-02-25 00:32:47 +08:00 committed by GitHub
commit 0dc2142024
2 changed files with 79 additions and 76 deletions

View File

@ -1,76 +0,0 @@
ucasFL translating
# [Tips To Improve Ubuntu Speed][4]
[
![Tips To Improve Ubuntu Speed](http://www.linuxandubuntu.com/uploads/2/1/1/5/21152474/tips-to-improve-ubuntu-speed_orig.jpg)
][2]Chances are that your Ubuntu desktop will run so smooth. You will wonder why you did not switch from those other slow loading desktop operating systems (looking at you Windows). Ubuntu runs smoothly on most modern machines and older machines using variants such as Lubuntu, Xubuntu and [Ubuntu MATE][6] are going to be impressive as well. Very few times, your experience can get poorer on your Ubuntu desktop. On the off chance that your Ubuntu PC is not running as smoothly as you would like, there are a few things you could do to improve your system performance and response.But why is my computer running slow in the first place? Let me enumerate a few
1. Computer is getting old
2. You have too many application installed
3. Something is broken in your system
4. Many more…..
Now let us take a look at a few of this hacks.
### 1\. Swappiness
If you have a system with a Swap partition, this is for you (NOTE: Swap partitions are not recommended for Solid State Drives as they reduce the lifespan of the drive). Swap partitions aid systems especially ones with low RAM installed to manage your system memory. Writing data to Swap (hard disk) is slower compared to RAM, so you can reduce the swappiness value to limit how often data is written to your Swap partition. By default, Ubuntus swappiness is set to 60 percent so you can reduce to say 10 percent with the following command.
sudo bash -c "echo 'vm.swappiness = 10' >> /etc/sysctl.conf"
### 2\. Stop Indexing
Indexing aims to speed up search results, but on the other hand, can cause systems with old configuration. To stop indexing, enter the following command to remove the indexing tool.sudo apt-get purge apt-xapian-index
### 3\. Manage your startup applications
Startup applications can have a huge impact on the performance of your system. Some applications you install will add their startup entries to have them started at boot but you can remove some of these applications to improve your system performance. Open “Startup Applications” by typing searching in Unity launcher. Most of autostart entries will be hidden so enter the following command in terminal to make the visiblesudo sed -i "s/NoDisplay=true/NoDisplay=false/g" /etc/xdg/autostart/*.desktop[
![ubuntu startup application](http://www.linuxandubuntu.com/uploads/2/1/1/5/21152474/ubuntu-startup-application_orig.jpg)
][3]
### 4\. Try Preload
Preload is a daemon or a background service that monitors your application use on your system and the preloads the required binaries libraries ahead of time into memory so the applications start faster. Install preload with the following terminal command.sudo apt-get install preload
### 5\. Choose Lighter Applications
So what applications are you using on your Ubuntu desktop? Are there lighter alternatives available? If YES, then switch to them if they can meet your feature set. LibreOffice will give you the best office experience but an alternative like Abiword could very much improve your system performance.
### 6\. Switch to a lighter DE
Are you using Ubuntu with Unity or KDE? These desktop environments can be quite demanding on your system. Instead, you can switch to LxQt or XFCE by installing it along your current DE or switching to a different variant of Ubuntu like Lubuntu or Xubuntu for a more faster experienc.
### 7\. Clean out junk from your system
Ubuntu PCs do not get as slower with time as do Windows PC but they do get slower nonetheless. Cleaning unneeded files from your system can help improve your performance. Try the computer Janitor tool available with Ubuntu Tweak tool to clean up your system. There is also the Bleachbit tool available for cleaning your system.
### 8\. Try a clean Install
Sometimes, something might just be broken and cleaning out junk or most of the other options mentioned already might not help. Your only option therefore, is to backup your files and try a clean install.
Also read - [Bleachbit An Alternative To CCleaner][1]
### 9\. Upgrade your hardware
The last one on my list is upgrading your hardware. This might be possible on most situations, but if it is, it could very much improve your system performance. You could increase your installed RAM, switch from a traditional disk to a Solid State Drive or upgrade your processor especially if youre running on a desktop PC.
### Conclusion
I hope these simple tips will go a long way in having your Ubuntu desktop run at an **impressive speed**. Note you dont need to do all these, just try out the ones that are applicable to your situation and find out how your system responds. Do you know any other way of improving your Ubuntu systems performance? Share with us in the comments. |
--------------------------------------------------------------------------------
via: http://www.linuxandubuntu.com/home/tips-to-improve-ubuntu-speed
作者:[linuxandubuntu.com][a]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:http://www.linuxandubuntu.com/home/tips-to-improve-ubuntu-speed
[1]:http://www.linuxandubuntu.com/home/bleachbit-an-alternative-to-ccleaner-on-linux
[2]:http://www.linuxandubuntu.com/home/tips-to-improve-ubuntu-speed
[3]:http://www.linuxandubuntu.com/uploads/2/1/1/5/21152474/ubuntu-startup-application_orig.jpg
[4]:http://www.linuxandubuntu.com/home/tips-to-improve-ubuntu-speed
[5]:http://www.linuxandubuntu.com/home/tips-to-improve-ubuntu-speed#comments
[6]:http://www.linuxandubuntu.com/home/linuxandubuntu-distro-review-of-the-week-ubuntu-mate-1610

View File

@ -0,0 +1,79 @@
# [一些给 Ubuntu 系统加速的技巧][4]
[
![Tips To Improve Ubuntu Speed](http://www.linuxandubuntu.com/uploads/2/1/1/5/21152474/tips-to-improve-ubuntu-speed_orig.jpg)
][2]
你的 Ubuntu 系统有机会可以运行得很顺畅。你将会想知道为什么你没有去使用那些加载桌面很慢的操作系统(比如 Windows 系统。Ubuntu 在大多数现代化的机器上都能够很顺畅的运行,一些更老的机器使用 Ubuntu 系统的一些变种版本,比如 Lubuntu、Xubuntu 和 [Ubuntu MATE][6],它们同样给人留下了深刻印象。很多时候,你对 Ubuntu 桌面的使用体验会越来越糟。因为你的 Ubuntu 系统并没有像你所希望的那样运行得很顺畅。但是你可以通过做一些事情来提高系统性能和响应。不过首先我们来看一看为什么电脑会运行得很慢。下面是我列举的一些原因:
1. 电脑变旧
2. 安装了太多的应用
3. 系统里的一些东西坏了
4. 还有更多的原因...
现在让我们来看一些改善这个问题的技巧。
### 1\. 交换值
如果你有一个交换分区的系统,那么这个技巧对你是最适合的(注:交换分区不建议为固态驱动器,因为这样会缩短驱动器的使用寿命)。交换分区可以改善系统,特别是安装有低速 RAM 来管理内存的系统。将数据写入交换分区(硬盘)比写入 RAM 要慢一些,所以你可以通过减少‘交换’值来限制数据多久写入分区一次。默认情况下, Ubuntu 的‘交换’值是 60% 所以你可以通过下面的命令将它减至 10%
sudo bash -c "echo 'vm.swappiness = 10' >> /etc/sysctl.conf"
### 2\. 停止索引
索引的目的是加快搜索结果,但另一方面,索引会导致系统还原为旧的配置。为了停止索引,输入下面的命令来移除索引工具:
sudo apt-get purge apt-xapian-index
### 3\. 管理启动应用
启动应用会对系统性能造成很大的影响。当你安装一些应用以后,这些应用会添加启动项,从而当你启动系统的时候它们也跟着启动,但你可以移除这些应用以提高系统性能。通过在 Unity 窗口搜索打开 “启动应用”。绝大多数自启动选项都会被隐藏,所以在终端输入下面的命令使它们可见:
sudo sed -i "s/NoDisplay=true/NoDisplay=false/g" /etc/xdg/autostart/\*.desktop[
![ubuntu startup application](http://www.linuxandubuntu.com/uploads/2/1/1/5/21152474/ubuntu-startup-application_orig.jpg)
][3]
### 4\. 尝试 Preload
Preload 是一个后台进程或隐藏服务,它可以监控系统上使用的应用程序。 Preload 要求二进制库提前加载到内存,所以应用程序启动得更快。在终端输入下面的命令安装 Preload:
sudo apt-get install preload
### 5\. 选择更加轻量型的应用
所以你在 Ubuntu 桌面上使用什么应用程序呢?有更轻量的替代品吗?如果有,就替换成它们,如果它们也能满足你的需求的话。 LibreOffice 能够给你最好的办公体验,但是它的替代品比如 Abiword 能够很大程度的提高系统性能。
### 6\. 切换到一个更加轻量型的桌面
你在 Ubuntu 系统上使用的桌面环境是 Unity 或 KDE 吗?这些桌面环境对系统的要求很高。相反,你可以在当前桌面环境的基础上同时安装一个 LxQt 或者 XFCE 环境然后切换到它们。或者,你也可以切换到 Ubuntu 的不同变种版本,比如 Lubuntu 或 Xubuntu ,从而享受更快的体验。
### 7\. 清理系统垃圾
尽管 Ubuntu 系统不会变得像 Windows 系统那么慢,但它还是会变慢。清除系统里不需要的文件可以提高系统性能。尝试使用计算机管理员工具和 Ubuntu Tweak 工具来清理系统。还有 Bleachbit 工具也可用来清理系统。
### 8\. 尝试清洁安装
有时,一些东西可能坏了,清理垃圾或者使用上面提到的大多数技巧都没用。这时,你唯一的选择就是备份文件,然后尝试清洁安装。
同时请阅读 - [Bleachbit - CCleaner 的一个替代品][1]
### 9\. 升级硬件
我列表上的最后一个技巧是升级硬件。在绝大多数情况下,这是可以的。如果可以这样做,那将极大的提高系统性能。你可以增加已安装的 RAM 从传统磁盘切换到固态驱动器或者升级你的处理器,特别是如果你在台式电脑上运行 Ubuntu 系统,这将极大提高系统性能。
### 结论
我希望这些技巧能够陪伴你走很长的一段路,让你的 Ubuntu 桌面以一个**令人印象深刻的速度**运行。注意,你不需要尝试所有的技巧,只需要找到一个适合你的情况的技巧,然后观察系统响应如何变化。你还知道其他提高 Ubuntu 系统性能的技巧吗?请在评论里分享给我们。
--------------------------------------------------------------------------------
via: http://www.linuxandubuntu.com/home/tips-to-improve-ubuntu-speed
作者:[linuxandubuntu.com][a]
译者:[ucasFL](https://github.com/ucasFL)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:http://www.linuxandubuntu.com/home/tips-to-improve-ubuntu-speed
[1]:http://www.linuxandubuntu.com/home/bleachbit-an-alternative-to-ccleaner-on-linux
[2]:http://www.linuxandubuntu.com/home/tips-to-improve-ubuntu-speed
[3]:http://www.linuxandubuntu.com/uploads/2/1/1/5/21152474/ubuntu-startup-application_orig.jpg
[4]:http://www.linuxandubuntu.com/home/tips-to-improve-ubuntu-speed
[5]:http://www.linuxandubuntu.com/home/tips-to-improve-ubuntu-speed#comments
[6]:http://www.linuxandubuntu.com/home/linuxandubuntu-distro-review-of-the-week-ubuntu-mate-1610