Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to manage the boot entry of Ubuntu system

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to manage the boot item of the Ubuntu system". In the daily operation, I believe that many people have doubts about how to manage the boot item of the Ubuntu system. The editor consulted all kinds of materials and sorted out a simple and easy-to-use operation method. I hope it will be helpful to answer the doubt of "how to manage the boot item of the Ubuntu system". Next, please follow the editor to study!

Have you ever considered managing boot applications in Ubuntu? If your Ubuntu system starts very slowly at boot time, then you need to consider this.

Every time you boot into an operating system, a series of applications will start automatically. These applications are referred to as' boot applications'or 'boot programs'. Over time, when you install enough applications in your system, you will find that too many boot apps start automatically at boot time, eating up a lot of system resources and slowing your system down. This may make you feel stuttered, which I don't think is what you want.

One of the ways to make Ubuntu faster is to control these boot applications. Ubuntu provides you with a GUI tool that allows you to find these boot apps and then completely disable or delay their startup so that each app does not run at the same time.

In this article, we will see how to control boot startup applications in Ubuntu, how to make an application boot at boot time, and how to find hidden boot apps. The guidance provided here applies to all Ubuntu versions, such as Ubuntu 12.04, Ubuntu 14.04, and Ubuntu 15.04.

Manage Boot Boot applications in Ubuntu

By default, Ubuntu provides a Startup Applications tool for you to use, and you no longer have to install it. Just go to the Unity panel to find the tool.

Click it to start. Here's what my Startup Applications looks like:

Remove Boot Boot Application in Ubuntu

Now it's up to you to find out which program is of little use to you. For me, it's Caribou, which is an on-screen keyboard program that is of no use at startup, so I want to remove it from the startup program list.

You can choose to prevent a program from starting at boot time, and leave this option in the boot programs list for later activation. Click the close button to keep your preferences.

To remove a program from the boot program list, select the appropriate option and click the remove button from the panel on the right of the window to keep your preferences.

It is important to note that this does not uninstall the program, just so that the program no longer starts automatically every time it boots up. You can do similar things to all the programs you don't like.

Delay the startup of the boot program

If you don't want to remove the program from the boot list, but are worried about system performance, all you need to do is add a delayed startup command to the program so that all programs don't start at the same time.

Select a program and click the edit button.

This will show the commands required to run this particular program.

All you need to do is add a sleep XX; before the program runs the command. This adds a XX second delay to the corresponding program that actually runs the command to start. For example, if I want to delay the startup of the Variety wallpaper management application by 2 minutes, I need to add sleep 120 before the command as follows

Save and close the settings. You will see the effect the next time you start.

Add a program to the boot application list

It takes a little skill for a novice. We know that there are commands at the bottom of Linux, and we saw in the previous section that these boot programs just run commands each time they boot. If you want to add a new program to the boot list, you need to know the commands needed to run the application.

Step 1: how do I find the commands needed to run a program?

First go to the Unity Dash panel and search for Main Menu:

This will show all the programs you have installed under various categories. In the lower version of Ubuntu, you will see a similar menu that allows you to select and run applications.

Find the application you are looking for under various categories, and then click the Properties button to view the commands needed to run the application. For example, I want to run the Transmission Torrent client at boot time.

This will give me the command to run the Transmission application:

Next, I will use the same information to add the Transmission application to the boot list.

Step 2: add a program to the boot list

Go to the boot utility again and click the add button. This will allow you to enter the name of an application, the corresponding command and the related description. Among them, commands are the most important, and you can use any name and description you want. Use the command you got in the previous step and click the add button.

In this way, you will see that the program will run automatically the next time you boot. That's all you can do in Ubuntu about booting up the app.

So far, we have discussed the applications that can be seen at boot, but there are still more services, daemons and programs are not visible in the boot utility. In the next section, we'll see how to view these hidden boot loaders in Ubuntu.

View the hidden boot loader in Ubuntu

To see which services are running at boot time, open a terminal and use the following command:

The code is as follows:

Sudo sed-I's Universe NoDisplayfalseUniple g'/ etc/xdg/autostart/*.desktop

The above command is a quick find and replace command that changes NoDisplay=false to NoDisplay=true in all automatically started programs. Once you have executed this command, open the boot utility again, and now you should see more programs:

You can manage these boot apps as we discussed earlier. I hope this tutorial will help you control the boot loader in Ubuntu. Any questions or suggestions are always welcome.

Modify the boot waiting time

The startup waiting time of Ubuntu is 10 seconds by default, which takes a long time, so you have to press enter every time you start, so you want to modify the waiting time. We can find the Grub configuration file (/ boot/grub/grub.cfg) where we can personalize the configuration.

Backup configuration fil

The code is as follows:

$sudo cp / boot/grub/grub.cfg / boot/grub/grub.cfg.bak

View and modify the configuration file

The code is as follows:

$sudo vi / boot/grub/grub.cfg

Enter the following to quickly find location-related configuration information

The code is as follows:

: / timeout

Among them

The code is as follows:

Set timeout=10

The default wait time is 10 seconds (note: the unit is seconds).

We can change the waiting time to what we want. Such as:

The code is as follows:

Set timeout=3

Then, press Esc to exit edit mode, and type

The code is as follows:

: wq!

Force save and exit, and the next time you start the system, you will find that the waiting time has become the time you set.

At this point, the study on "how to manage the startup items of the Ubuntu system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report