Eu estraguei os parâmetros do kernel e agora nenhum serviço, exceto o SSH, poderia ser iniciado, alguém sabe como restaurar essas redes ou parâmetros de kernel? Eu não quero reinstalar o sistema, graças antecipadamente.
I messed up the kernel parameters and now no services except SSH could be started, does anybody know how to restore those network or kernel parameter? I don't want to re-install the system, Thanks in advance.
Since you didn't specify which parameters you changed in sysctl.conf, it makes it somewhat difficult, but here's the basic method...
sudo mount -o rw,remount /
sudo pico /etc/sysctl.conf
Reinstalled Ubuntu. Sysctl.conf restored. System is fully operational.
It seems to me that your best chance is to install a fresh copy of /etc/sysctl.conf
You should be able to dig that out somehow from the distribution. When you have a copy of this file, then you need to copy it. THe easy way would be a USB stick, but maybe your system is too damaged to do that ? If so, you could make a bootable USB stick with the copy and mount the file systems of your damaged system and copy the file. I have in the past used the refind boot manager to do something like this. Once booted from the refind usb you need to do some chrooting and manual mounting to get to your system partitions. But it is doable. If you go down that path then I probably have written down the procedure somewhere for my own use if needed.
If you dont want to use refind, there are other ways to make a bootable ubuntu usb - e.g.. : https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu#0