Categories
Life hack

How to manage startup applications in ubuntu 14.04

How to manage startup applications in ubuntu 14.04

If you’ve installed a lot of applications in Ubuntu, you may have noticed that takes longer for your system to boot up. Some applications are automatically run when you boot up your Ubuntu system and this process uses up resources as Ubuntu boots.

However, you can control which applications run when you boot up Ubuntu and also specify a time delay for each application, so you don’t have every startup application running at boot time. The time delay can be used to stagger when the startup applications run, saving your resources.

NOTE: When we say to type something in this article and there are quotes around the text, DO NOT type the quotes, unless we specify otherwise.

Click the Search button at the top of the Unity bar.

Start typing “startup applications” in the Search box. Items that match what you type start displaying below the Search box. When the Startup Applications tool displays, click the icon to open it.

How to manage startup applications in ubuntu 14.04

To prevent a program from automatically running when you boot up Ubuntu, select the check box next to that program in the Additional startup programs list so there is NO check mark in the box.

How to manage startup applications in ubuntu 14.04

To set a time delay for a startup program so it runs at a later time, select the program (not the check box for the program) in the Additional startup programs list and click Edit.

How to manage startup applications in ubuntu 14.04

On the Edit Startup Program dialog box, in the Command edit box, enter “sleep XX;” at the beginning of the command to run the program. Replace “XX” with the number of seconds before which the program should run when you boot. So, in our example below, the command “dropbox start –I” becomes “sleep 20; dropbox start –I”, where Dropbox will run 20 seconds after booting.

How to manage startup applications in ubuntu 14.04

To close the Startup Applications Preferences dialog box, click Close.

How to manage startup applications in ubuntu 14.04

Your boot process may take too long to complete if a lot of services and applications load automatically whenever you turn on your computer. Thankfully, Ubuntu allows us to easily manage the startup applications and disable anything we deem unnecessary from automatically loading. Let’s see how.

The Two Startups

The boot process of most Linux distributions is split into two separate parts.

The first part starts when the Linux kernel loads and lasts up until we reach the login screen. A startup service – usually systemd – loads all services necessary for basic functionality. Those might include a Bluetooth stack, the audio subsystem, etc.

The second part starts when you log in and consists of desktop applications, usually like Slack or Skype.

It’s easy to control both, but, as we’ll see, we’ll have to use different tools for each job.

Systemd Startup

Most modern Linux distributions, including Ubuntu, rely on systemd to automatically start any needed services. Systemd comes with useful tools that can help us check this initial startup process. We can use them to see the impact of everything that loads automatically and disable anything we consider useless.

To check how much times systemd took to load everything, type systemd-analyze in the terminal and press Enter.

How to manage startup applications in ubuntu 14.04

Systemd-analyze will check systemd’s logs and show you how much time it took for your computer’s startup sequence to finish. That’s good to know but not helpful. If your startup sequence is slow, there must be something that takes too long to load, something to blame. That’s precisely what systemd-analyze allows you to do: find who’s to blame. Try it out with:

How to manage startup applications in ubuntu 14.04

This will show a list of everything systemd loaded, starting from the most impactful entry and progressively moving toward the lightest one.

Tips: If you have a long list of entries, you can export the list to a text file with the command:

It is easier to analyze the text file than the entries in the terminal.

Why have a printer service running if you don’t even have a printer? If you find some services useless, you can easily disable them. Just use:

You should be sure they are useless, though, and that you will never need them. That’s why it’s worth checking what relies on them with:

Managing Your Startup Applications

The second part of the startup process relies on the desktop environment itself. Depending on your distribution and desktop environment, you can use different tools to control it. On Ubuntu, you can find that tool by visiting your app menu and typing startup . Select the Startup Applications entry that will show up.

How to manage startup applications in ubuntu 14.04

The Startup Applications Preferences window will appear, showing you all applications that load automatically after you log in.

How to manage startup applications in ubuntu 14.04

To disable an app’s automatic loading but keep its entry in case you want to re-enable it in the future, untick the checkbox on its left.

How to manage startup applications in ubuntu 14.04

To fully remove an entry, click on it to select it and then click on Remove on the right.

If some entries aren’t crucial for using your desktop, you can delay loading them so that the rest of the applications load faster. To do that, you must edit their entries and add an extra command before the one that launches them, manually introducing a delay. You can do this as follows:

How to manage startup applications in ubuntu 14.04

The sleep 60; command will add a 60-second delay to the startup application.

Adding an application to the startup list

This is also the spot from which you can add your own applications to the startup sequence. You can do this by clicking the Add button on the right.

Enter any name you wish for the startup item in the “Name” field and type your command in the aptly named “Command” field. Alternatively, you can click on the “Browse … ” button on the field’s right and select an executable file from the pop-up file dialog.

How to manage startup applications in ubuntu 14.04

Finally, if you wish, enter a comment and click “Add” to add the command to the startup list.

Now that you have cleaned up your startup application list, you may want to have it automatically empty the trash to free up storage space or hide the top bar to free up screen real estate.

Related:

OK’s real life started at around 10, when he got his first computer – a Commodore 128. Since then, he’s been melting keycaps by typing 24/7, trying to spread The Word Of Tech to anyone interested enough to listen. Or, rather, read.

How to manage startup applications in Ubuntu – manage startup services. Ubuntu CLI command to show Startup services list. How to Ubuntu: remove service from Startup Applications – disable service startup on Ubuntu Systems. Also learn how to add/remove the “hidden” startup applications on Linux Ubuntu Systems.

Startup Applications are the applications/software that starts automatically every time Ubuntu system is started/boot in. These startup applications are also called start up programs and sometime they slows the system startup. Thus by controlling startup applications, one can make the Ubuntu faster and more responsive. Let us see how can we edit and manage startup applications.

Manage Startup Applications in Ubuntu

Startup Applications utility tool can be used to control and manage startup applications. To open the Startup Applications tool, go to Unity Dash and type startup applications and click on its icon to open. (see screenshot)

Once the Startup Applications is open, you can use it to add, remove or edit the startip applications on the Ubuntu System.

Remove Startup Applications in Ubuntu

The most basic task that one would like to do is to remove startup applications in Ubuntu that are useless and no longer needed during the system startup.

To remove Startup Applications in Ubuntu:

  • Open Startup Applications tool from Ubuntu Dash.
  • Under the list of service, select the applications you wish to remove. Click the service to select it.
  • Click remove to remove the startup program from startup applications list.
  • Click close.

Note: Removing applications from Startup Applications in Ubuntu doesn’t uninstall the program. It will simply remove the program from the startup list and the program will not start automatically during system startup.

Similarly you can also add Startup Applications to the existing list of applications:

Delay Startup Applications in Ubuntu

If you do not want to remove programs, you can simply delay it. This method enables to delay a program from the startup list. When a prorgam is delayed it will not get started during the system startup. Instead, it will get delayed for a specified amount of time.

To delay Startup Applications in Ubuntu:

  • Open Startup Applications tool from Ubuntu Dash.
  • Under the list of service, select the applications you wish to delay. Click the service to select it.
  • Select a program and click Edit.
  • This will open the “Edit startup program” window.
  • In the command box, enter the following command at the beginning:
    sleep XX;
  • The substitute “XX” denotes the number of seconds by which the program will be delayed.
  • Click “Save” and exit.

See Hidden Startup Applications in Ubuntu

Normally you don’t see the complete list of the Startup Applications. Many applications are kept hidden. To see such hidden applications, run the following command in Terminal:

sudo sed -i ‘s/NoDisplay=true/NoDisplay=false/g’ /etc/xdg/autostart/*.desktop

Once done, re open the Startup Applications window and you will see the list of all hidden programs.

How to manage startup applications in ubuntu 14.04

Many applications automatically set themselves to start when you sign into your Linux desktop. You might want to add your own favorite programs to the startup process, too. Here’s how to control what Ubuntu starts when you sign in.

We ran through this process on Ubuntu 20.04 LTS with its default GNOME desktop. The steps will be similar on other Linux distributions with a GNOME desktop, but you might need to use a different configuration tool on other desktop environments.

How to Launch GNOME’s Startup Manager

To launch the startup manager, open the applications list by clicking the “Show Applications” button on the dash at the bottom-left corner of your screen. Search for and launch the “Startup Applications” tool.

How to manage startup applications in ubuntu 14.04

You can also press Alt+F2 to open the Run a Command dialog and run the following command:

How to manage startup applications in ubuntu 14.04

If the Startup Tools tool doesn’t appear in your application menu for some reason, you can open a Terminal window and use the following command to launch it:

How to manage startup applications in ubuntu 14.04

How to Stop Programs From Starting Automatically on Ubuntu

The Startup Applications Preferences window will open. You’ll see a list of programs that automatically start when you sign into your graphical desktop. Each application has a name and, optionally, a description.

To stop a program from starting automatically, just uncheck the checkbox to the program’s left. Unchecked programs won’t be loaded at startup.

You can also click select a program and click “Remove” to remove it from the list here, but unchecking the program accomplishes the same thing—and will let you more easily re-enable the startup program in the future, if you like.

How to manage startup applications in ubuntu 14.04

If you’re not sure what a program is, you can search for its name on the web. For example, if you search im-launch , you’ll find that this is the command that launches any input methods you need.

You can also select a program and click “Edit” to see the full command that is run when you sign in.

How to manage startup applications in ubuntu 14.04

How to Add Your Own Startup Programs on Ubuntu

To add a startup program, you’ll want to know its full path. You can find this with the which command in a Terminal window.

For example, let’s say you want to run Firefox. First, launch a Terminal window and run the following command:

You’ll be told that the firefox binary is located at /usr/bin/firefox . This is the path you must enter in the Command field in the Add Startup Program window.

How to manage startup applications in ubuntu 14.04

Click the “Add” button in the Startup Applications Preferences window and enter the full path to the program you want to launch in the Command field.

You should also type a name for the program and, optionally, a comment. Both of these fields will only be displayed in the Startup Applciations Preferences window.

How to manage startup applications in ubuntu 14.04

When you’re done, click “Add.” You’ll see your custom startup program displayed here. As long as it has a checkbox and appears in this list, the GNOME desktop will launch it every time you sign into Ubuntu.

How to manage startup applications in ubuntu 14.04

By the way, many applications that launch at startup offer a built-in option to change this. For example, you can stop Dropbox from auto-starting on Linux by using its options window, just as you can on Windows and Mac.

However, the Startup Application Preferences tool lets you see everything your desktop automatically opens and control it from one place.

Is there a ‘Startup applications’ app for lubuntu? Or how do I add apps to startup? I attempted a tutorial to add entries to

/.config/autostart , but it did not work. Isn’t there an easy way? Any ideas please?

5 Answers 5

There is a default application for this on the Lubuntu. Check it out:

  1. Press the Lubuntu icon on the bottom left;
  2. Select “Preferences” >“Default applications for LXSession”;
  3. In the opened window, select the option “Autostart”;
  4. Now you can enable or disable the autostarted applications, check/uncheck one in the listm or set manually on the field and pressing the “Add” button.

You can install the programm lxsession-edit from the software center. It will give you an interface like the “startup applications” app.

Or you can add programs by editing the file /etc/xdg/lxsession/LXDE/autostart . (In new Lubuntu is path /etc/xdg/lxsession/Lubuntu/autostart )
To do this press Alt + F2 and type gksu gedit .

Or the cleanest way (that didn’t work for you) adding .desktop files to /home/username/.config/autostart and make sure they’re marked as executables.

Here is a default syntax for a .desktop file with some of the most important entries.

Example:

For applications that have their binaries in /usr/bin , you don’t have to put the full path, just the name of the executable.

Save as YOUR_APPNAME.desktop in

Log out and back in and it should have worked.

How to manage startup applications in ubuntu 14.04

We’ve recently showed you how to manage startup applications in Ubuntu 14.04, just like you can in Windows. However, when you access the Startup Applications Preferences tool not all startup applications are listed. Some are hidden. We’ll show you how to reveal these hidden applications.

For example, these are the startup applications we see when we open the Startup Applications Preferences tool.

How to manage startup applications in ubuntu 14.04

To show the hidden startup applications, press Ctrl + Alt + T to open the Terminal window. Type the following command at the prompt and press Enter.

sudo sed –i ‘s/NoDisplay=true/NoDisplay=false/g’ /etc/xdg/autostart/*.desktop

NOTE: Copying and pasting the above command would be easier and ensure accuracy.

Type the password when prompted and press Enter.

To open the Startup Applications Preferences tool, click the Search button at the top of the Unity bar.

Start typing “startup applications” in the Search box. Items that match what you type start displaying below the Search box. When the Startup Applications tool displays, click the icon to open it.

How to manage startup applications in ubuntu 14.04

You will now see all the startup applications that were previously hidden. Make any changes you want and click Close to close this tool.

How to manage startup applications in ubuntu 14.04

To not display the hidden startup applications again, type (or copy and paste) the following command at the prompt and press Enter.

sudo sed –i ‘s/NoDisplay=false/NoDisplay=true/g’ /etc/xdg/autostart/*.desktop

How to manage startup applications in ubuntu 14.04

To close the Terminal window, click the X in the upper-left corner of the window, or type “exit” (without the quotes) and press Enter.

How to manage startup applications in ubuntu 14.04

Geoffrey_Carr

How to manage startup applications in ubuntu 14.04

Jika Anda sudah menginstal banyak aplikasi di Ubuntu, Anda mungkin telah memperhatikan bahwa waktu yang lebih lama untuk sistem Anda untuk boot. Beberapa aplikasi secara otomatis berjalan ketika Anda boot sistem Ubuntu Anda dan proses ini menggunakan sumber daya sebagai boot Ubuntu.

Namun, Anda dapat mengontrol aplikasi mana yang berjalan saat Anda mem-boot Ubuntu dan juga menentukan penundaan waktu untuk setiap aplikasi, sehingga Anda tidak memiliki setiap aplikasi startup yang dijalankan pada saat boot. Penundaan waktu dapat digunakan untuk sempoyongan saat aplikasi startup berjalan, menghemat sumber daya Anda.

CATATAN: Saat kami mengatakan untuk mengetik sesuatu di artikel ini dan ada kutipan di sekitar teks, JANGAN ketik tanda kutip, kecuali kami menentukan sebaliknya.

Klik tombol Cari di bagian atas bilah Persatuan.

Mulai ketik “aplikasi startup” di kotak Pencarian. Item yang sesuai dengan apa yang Anda ketik mulai ditampilkan di bawah kotak Pencarian. Saat alat Aplikasi Pengaktifan ditampilkan, klik ikon untuk membukanya.

How to manage startup applications in ubuntu 14.04

Untuk mencegah program berjalan secara otomatis ketika Anda boot Ubuntu, pilih kotak centang di sebelah program itu di daftar program startup tambahan sehingga tidak ada tanda centang di kotak.

How to manage startup applications in ubuntu 14.04

Untuk mengatur penundaan waktu untuk program startup sehingga berjalan di lain waktu, pilih program (bukan kotak centang untuk program) di daftar program startup tambahan dan klik Edit.

How to manage startup applications in ubuntu 14.04

Pada kotak dialog Edit Startup Program, di kotak edit Perintah, masukkan “sleep XX;” di awal perintah untuk menjalankan program. Ganti “XX” dengan jumlah detik sebelum program dijalankan ketika Anda boot. Jadi, dalam contoh kita di bawah ini, perintah “dropbox mulai –I” menjadi “sleep 20; dropbox start –I ”, di mana Dropbox akan berjalan 20 detik setelah boot.

Untuk menutup kotak dialog Preup Applications Preferences, klik Close.

How to manage startup applications in ubuntu 14.04

Kami juga menunjukkan kepada Anda cara mengelola aplikasi startup di Windows 8 dan cara menonaktifkan program startup di Windows 7 dan 8.

How to manage startup applications in ubuntu 14.04

If you’re using some apps every time you log in to your desktop, you can avoid having to run them manually every time by adding them to the startup list. However, if you set too many apps to autostart, your initial login to your desktop will lag significantly. All apps will be fighting for the same resources while trying to get to your desktop. Thankfully, there’s a solution: add a delay to startup applications.

In this tutorial, we show how to optimally delay startup applications in Ubuntu. We do this by adding a delay timer so that it doesn’t run automatically after login. Let’s see how you can do it for the apps you use.

Startup Applications

Some apps are helpful when they’re always available. However, some apps, in this case Plank, don’t autostart by default when you login. The solution is to add it to the list of other apps that start automatically whenever you log in to your desktop.

How to manage startup applications in ubuntu 14.04

Visit your apps menu, search for the Startup Applications app, and run it.

How to manage startup applications in ubuntu 14.04

The Startup Application Preferences dialog will show you a list of all the apps that load automatically whenever you log in.

How to manage startup applications in ubuntu 14.04

Note: some system-related apps are hidden by default in the Startup Applications Preferences list. However, we ignore them for this tutorial, since they don’t affect what we want to do.

Add New Startup Entry with Delay

Let’s add an entry to the Startup Applications Preferences list for an app that we’d like to run automatically whenever we log in. In our case, that’s the Plank launcher. You can use any other app instead, like Gedit, Blender, Visual Studio Code, etc., by defining its path instead.

1. Click on the “Add” button on the right of the Startup Applications Preferences window to create a new entry. Enter a name for it in the appropriate field.

How to manage startup applications in ubuntu 14.04

2. Type the command for the app you want to autostart in the Command field; you’ll have to enter the full path for those that aren’t included in your default Path variable. Alternatively, click on the Browse button on the right and locate its executable. For Plank, in our example, it was:

How to manage startup applications in ubuntu 14.04

3. Click “Add.” Your app will autostart the next time you log in to your desktop.

4. Edit the same entry. Now add bash -c “sleep AMOUNT_OF_TIME_IN_SECONDS && before your command. For our case with the Plank launcher and a delay of 30 seconds, this would look like:

How to manage startup applications in ubuntu 14.04

5. If you’d like, add a comment that explains what your entry’s all about in the Comment field.

How to manage startup applications in ubuntu 14.04

6. Lastly, click on the Add button on the bottom right to add your entry to the startup applications list.

How to manage startup applications in ubuntu 14.04

6. Log out or restart your computer.

How to manage startup applications in ubuntu 14.04

7. Your application will autostart after the delayed time.

How to manage startup applications in ubuntu 14.04

That is how to delay startup applications in the latest versions of Ubuntu. Are you using a different approach for auto-starting your apps? You can also learn the shortcut keys for Ubuntu so you can access your applications faster.

Related:

OK’s real life started at around 10, when he got his first computer – a Commodore 128. Since then, he’s been melting keycaps by typing 24/7, trying to spread The Word Of Tech to anyone interested enough to listen. Or, rather, read.

Cách quản lý các ứng dụng khởi động trong Ubuntu – quản lý các dịch vụ khởi động. Lệnh Ubuntu CLI để hiển thị danh sách dịch vụ Khởi động. Cách Ubuntu: xóa dịch vụ khỏi Ứng dụng khởi động – vô hiệu hóa khởi động dịch vụ trên Hệ thống Ubuntu. Ngoài ra, hãy tìm hiểu cách thêm / xóa các ứng dụng khởi động ẩn ẩn của Cameron trên Linux Ubuntu Systems.

Ứng dụng khởi động là các ứng dụng / phần mềm khởi động tự động mỗi khi khởi động / khởi động hệ thống Ubuntu. Các ứng dụng khởi động này còn được gọi là chương trình khởi động và đôi khi chúng làm chậm quá trình khởi động hệ thống. Do đó, bằng cách kiểm soát các ứng dụng khởi động, người ta có thể làm cho Ubuntu nhanh hơn và phản ứng nhanh hơn. Hãy cho chúng tôi xem làm thế nào chúng ta có thể chỉnh sửa và quản lý các ứng dụng khởi động.

Quản lý ứng dụng khởi động trong Ubuntu

Công cụ tiện ích Startup Application có thể được sử dụng để kiểm soát và quản lý các ứng dụng khởi động. Để mở công cụ Ứng dụng khởi động, hãy truy cập Unity Dash và nhập ứng dụng khởi động và nhấp vào biểu tượng của nó để mở. (xem ảnh chụp màn hình)

Khi Ứng dụng khởi động được mở, bạn có thể sử dụng nó để thêm, xóa hoặc chỉnh sửa các ứng dụng khởi động trên Hệ thống Ubuntu.

Xóa ứng dụng khởi động trong Ubuntu

Nhiệm vụ cơ bản nhất mà người ta muốn làm là loại bỏ các ứng dụng khởi động trong Ubuntu vô dụng và không còn cần thiết trong quá trình khởi động hệ thống.

Để xóa ứng dụng khởi động trong Ubuntu:

  • Mở công cụ ứng dụng khởi động từ Ubuntu Dash.
  • Trong danh sách dịch vụ, chọn ứng dụng bạn muốn xóa. Nhấp vào dịch vụ để chọn nó.
  • Nhấp vào loại bỏ để xóa chương trình khởi động khỏi danh sách ứng dụng khởi động.
  • Bấm đóng.

Lưu ý: Xóa ứng dụng khỏi Ứng dụng khởi động trong Ubuntu sẽ không gỡ cài đặt chương trình. Nó chỉ đơn giản là sẽ xóa chương trình khỏi danh sách khởi động và chương trình sẽ không tự động khởi động trong quá trình khởi động hệ thống.

Tương tự, bạn cũng có thể thêm Ứng dụng khởi động vào danh sách ứng dụng hiện có:

Trì hoãn các ứng dụng khởi động trong Ubuntu

Nếu bạn không muốn xóa chương trình, bạn chỉ cần trì hoãn chương trình. Phương pháp này cho phép trì hoãn một chương trình từ danh sách khởi động. Khi một prorgam bị trì hoãn, nó sẽ không được khởi động trong quá trình khởi động hệ thống. Thay vào đó, nó sẽ bị trì hoãn trong một khoảng thời gian xác định.

Để trì hoãn các ứng dụng khởi động trong Ubuntu:

  • Mở công cụ ứng dụng khởi động từ Ubuntu Dash.
  • Trong danh sách dịch vụ, chọn ứng dụng bạn muốn trì hoãn. Nhấp vào dịch vụ để chọn nó.
  • Chọn một chương trình và nhấp vào Chỉnh sửa.
  • Thao tác này sẽ mở cửa sổ chương trình khởi động Chỉnh sửa trực tuyến.
  • Trong hộp lệnh, nhập lệnh sau vào đầu:
    ngủ XX;
  • Sự thay thế của XX XX biểu thị số giây mà chương trình sẽ bị trì hoãn.
  • Nhấp vào Save Save Lưu và thoát.

Xem các ứng dụng khởi động ẩn trong Ubuntu

Thông thường, bạn không thấy danh sách đầy đủ các Ứng dụng khởi động. Nhiều ứng dụng được giữ kín. Để xem các ứng dụng ẩn như vậy, hãy chạy lệnh sau trong Terminal:

sudo sed -i ‘s/NoDisplay=true/NoDisplay=false/g’ /etc/xdg/autostart/*.desktop

Sau khi hoàn tất, hãy mở lại cửa sổ Ứng dụng khởi động và bạn sẽ thấy danh sách tất cả các chương trình ẩn.