你有没有注意到你的Ubuntu系统的性能变慢了?尽管Ubuntu 18.04(最新版本)是一个非常强大的Linux发行版,但随着时间的推移,您的安装可能会变得缓慢。
有多种因素会影响系统的速度,包括:
- 您已下载的程序数量
- 低虚拟内存
- 可用磁盘空间不足
- (Configuration)不是最佳的配置设置
以下是加快和优化安装的六种简单方法。
重启你的电脑(Restart Your Computer)
尽管这一步听起来很明显,但它并不适合普通的Linux用户。这样做的原因是通常不需要重新启动 Linux 系统(restart a Linux system)。
它以无需重新启动计算机即可长时间运行而闻名。但是,随着时间的推移,正在运行的进程可能会累积并降低您的速度。
与手动删除临时文件相比,重新启动计算机要容易得多。
如果您的系统速度减慢到无法访问系统菜单的程度,请按住电源按钮直至其关闭。
编辑自动启动应用程序(Edit Auto Startup Applications)
当您启动您的机器时,您有许多应用程序将在您的设备启动后启动。
但是,您真的需要将它们全部设置为自动启动吗?这会占用大量内存。
可以在“启动应用(Startup Applications)程序”实用程序中编辑重新启动时启动哪些应用程序。
过程很简单。
- 单击启动应用程序(Startup Applications)图标。
- 您将看到如上图所示的屏幕。
- 查看启动应用程序中列出了哪些项目。
- 选择添加、删除或编辑。
- 如果您不需要选择在启动时运行的任何应用程序,请单击删除(remove)。
仅包含您始终需要的最重要的软件或Ubuntu 应用程序(Ubuntu applications),并删除您不需要的软件或 Ubuntu 应用程序。
使用预加载(Use Preload)
Preload是一项后台服务,用于监控和跟踪您经常使用的应用程序。它会记住使用的二进制文件和库,并将它们缓存在内存中。
结果是您的应用程序加载速度将比不使用Preload时快得多。
例如,如果您在开始使用计算机时始终使用Firefox ,则文件会加载到内存中。(Firefox)因此,当您登录计算机时,Firefox的加载速度会更快。
并非所有Ubuntu发行版都默认安装Preload。它很容易安装。只需(Simply)运行以下命令:
sudo apt-get install preload
Preload将在您的系统后台运行并加快速度。如果您有大量内存,则速度的提升可能非常显着,从 20% to 60%.
Preload需要一点时间来了解您最常使用的应用程序。
释放磁盘空间(Free Up Disc Space)
清理系统存储中的杂物为新文件和程序腾出空间总是很有帮助的。如果您的存储容量有限,这一点最为重要。
即使Ubuntu是一个轻量级操作系统,它也可能会出现存储问题,( issue with storage)主要是因为它不会删除下载和安装的软件包。
清空垃圾桶(Empty Trash)
从您的计算机中删除临时文件和垃圾文件不仅可以删除您不需要的文件;它还可以释放硬盘空间。
打开文件管理器并右键单击垃圾桶图标。要永久删除这些文件,请选择“清空垃圾箱”选项。
删除临时文件(Delete Temporary Files)
您的计算机上有许多文件占用大量空间。例如,临时文件、浏览器历史记录和缓存。
删除这些文件将释放系统上的一些空间。在您的软件中心(Software Center)中查找名为BleachBit 的清理程序。(BleachBit.)
下载BleachBit后,您需要安装并运行它。它将释放磁盘空间并保护您的隐私。
分析您的磁盘使用情况(Analyze Your Disk Usage)
您可能拥有不需要占用太多空间的非常大的文件。Ubuntu Linux有一个名为Disk Usage Analyzer的工具。
它将扫描您的文件夹和文件,并向您显示哪些目录占用了最大空间的图形视图。
您可以通过Ubuntu仪表板访问此工具。
修改 Grub 配置(Modify Grub Configuration)
默认情况下,Grub 配置(Grub Configuration)提供 10 秒的延迟来选择您要引导的操作系统。
您可以进入该配置并将时间减少到 2 秒。这将为您节省 8 秒的重启时间。
要设置此命令,请更改:
“GRUB_TIMEOUT=10” to “GRUB_TIMEOUT=2”
软件更新镜像(Software Updates Mirror)
为Ubuntu(Ubuntu)选择最佳服务器以获取其更新。
- 转到应用程序抽屉。(Application Drawer.)
- 搜索软件和更新(Software & Update)。
- 选择Ubuntu 软件(Ubuntu Software)。
- 选择最佳服务器(Best Server)。
这对于互联网(Internet)连接速度较慢的用户尤其有用。您的系统将开始测试以搜索最近的服务器,以便在执行升级或更新时更快地访问更新文件。
这不仅会加速您的Ubuntu系统,而且还会安装任何缺少的所需驱动程序,并包含所有新的安全错误修复。
采取这六个步骤将加快您的 Ubuntu 安装速度。
6 Easy Ways To Speed Up Your Ubuntu Installation
Have you noticed your Ubuntu system’s performance has slowed down? Even though Ubuntu 18.04 (the most recent versiоn) is a verу powerful Lіnux distribution, over time, your inѕtallation can become sluggish.
There are a variety of factors that can affect the speed of your system, including:
- The number of programs you have downloaded
- Low virtual memory
- Not enough free disk space
- Configuration settings that are not optimal
Below are six easy ways to speed up and optimize your installation.
Restart Your Computer
Although this step might sound like an obvious one, it isn’t for regular Linux users. The reason for this is that generally there is no need to restart a Linux system.
It is well known for its ability to run for a long time without needing to reboot your computer. However, over time, the running processes may accumulate and drag down your speed.
Rather than manually deleting temporary files, it’s much easier to restart your computer.
If your system has slowed down to a point where you can’t access the system menu, hold the power button until it powers off.
Edit Auto Startup Applications
When you start your machine, you have many applications that are set to begin once your device has booted.
However, do you really need all of them set to auto-start? This takes up a lot of memory.
Which applications are launched when rebooting can be edited in the Startup Applications utility.
The process is simple.
- Click on the Startup Applications icon.
- You will see a screen like the one in the above image.
- See which items are listed in the startup application.
- Choose add, remove, or edit.
- If you don’t need any app selected to run at startup, click remove.
Only include the most important software or Ubuntu applications that you always need and remove the ones that you don’t.
Use Preload
Preload is a background service that monitors and keeps track of the applications you use frequently. It remembers the binaries and libraries used and caches them in memory.
The result is your apps will load much faster than they would without using Preload.
As an example, if you always use Firefox when you start working on your computer, the files are loaded into memory. So, when you log into your computer, Firefox will load faster.
Not all distributions of Ubuntu install Preload by default. It’s easy to install. Simply run the command below:
sudo apt-get install preload
Preload will run in the background of your system and speed it up. If you have a lot of memory, the increase in speed can be significant, anywhere from 20% to 60%.
It will take a little bit of time for Preload to learn which applications you use most frequently.
Free Up Disc Space
It is always helpful to clean up clutter in your system storage to make room for new files and programs. This is most important if you have limited storage capacity.
Even though Ubuntu is a light operating system, it may present an issue with storage mainly because it doesn’t delete downloaded and installed software packages.
Empty Trash
Removing temporary and trash files from your computer not only gets rid of files you don’t need; it also frees up hard drive space.
Open your file manager and right-click on the trash icon. To permanently delete these files, select the “empty trash” option.
Delete Temporary Files
There are many files on your computer that take up a lot of space. For example, temporary files, browser histories, and caches.
Deleting these files will free up some space on your system. Look in your Software Center for the cleanup program called BleachBit.
Once you have downloaded BleachBit, you need to install and run it. It will free up disk space and guard your privacy.
Analyze Your Disk Usage
It is possible that you have very large files that you don’t need taking up too much space. Ubuntu Linux has a tool called the Disk Usage Analyzer.
It will scan your folders and files and show you a graphical view of which directories are taking up the biggest chunk of space.
You can access this tool through your Ubuntu dashboard.
Modify Grub Configuration
By default, the Grub Configuration provides a delay of 10 seconds to choose from which operating system you want to boot.
You can go into that configuration and reduce the time to 2 seconds. This would save you 8 seconds to reboot.
To set this command, change:
“GRUB_TIMEOUT=10” to “GRUB_TIMEOUT=2”
Software Updates Mirror
Choose the best server for Ubuntu to get its updates.
- Go to Application Drawer.
- Search for Software & Update.
- Select Ubuntu Software.
- Choose Best Server.
This is especially helpful for those with a slower Internet connection. Your system will start a test in search of the closest server where it will access the update files faster when performing an upgrade or update.
Not only will this speed up your Ubuntu system, but it will also install any required drivers that are missing and include all new security bug fixes.
Taking these six steps will speed up your Ubuntu installation.