Close ports that start when switching on the system

Asked

Viewed 25 times

0

Good morning,

I am using Ubuntu 20.10, I have the problem that whenever I start the computer, it is starting with certain open ports, such as ssh, http, postgresql and ipp. Are there any settings that don’t allow them to start at the beginning? (I think when I started them, they became permanent, but I don’t know why it’s so direct.). I can only close them by hand, IE, giving a stop at the service of each, these I ended up opening at certain times to use, but I do not want to always be open when I start the pc. I know I can create a script to close roughly but I don’t think it’s the most recommended solution, anyway, someone can help?

  • Welcome to Sopt, your question is not directly related to programming and is not appropriate for this site, there is another web site that can help you, the Ask Ubuntu

1 answer

0


To put it another way, it seems to me that what you want is to prevent certain services (or daemons) from automatically incitizing. If you don’t use these services often, in fact, that’s a good idea. To select the services you want to disable, you can:

Graphic Mode

Press the Super (or Windows) key and type "Applications". The shortcut to the "Session Apps" app should already appear (or, if the installation is in English, look for "Startup Applications" or something like that). In this application, you can select what you would like to start along with system boot or not.

Dio Linux wrote an article about it, too:

https://diolinux.com.br/tutoriais/desative-servicos-que-inicializam-junto.html

Text Mode

There are similar applications for the same task in text mode. One of them is rcconf. I haven’t used it for a long time, but I believe it is still available in the Ubuntu repository. To install and run it, open the terminal application (or switch to a virtual console using CTRL+ALT+F1 to F6) and type:

sudo apt-get install rcconf
sudo rcconf

Obs.: the command sudo will ask you to enter your user password, to allow the installation and execution of the application.

I hope this helps.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.