How do I turn on networking using bash commands if I've accidentally disabled networking within the GUI shell?


Myron
 Share

1 1

Recommended Posts

Yes, I managed to do this. Luckily I managed to re-enable the GDM3 graphical console on-start-up by using the debug serial port and then using the GUI through the TV to put the tick back to enable networking.  Yep, very much a noob mistake.

So, the question is when networking is disabled so eth0 and wlan0 disappear, leaving only lo, how do I get eth0 and wlan0 back just using the command line?  I can't easily find how to do this. I've looked, I've searched and now ....   help!  :-)

 

(I do also have the ability to put the MicroSD card into my laptop, so maybe it would be simpler to do that and change some configuration files to re-enable networking?)

 

This would be very useful information for anyone else who gets stuck in the same situation.

Link to post
Share on other sites

Donate and support the project!

Unfortunately, it depends on what you did to disable networking?

 

By default, I think that networking services are managed by NetworkManager. You can check to see if the service is disabled with:

 

$ systemctl status NetworkManager 

 

If it's disabled, you can re-enable with:

 

$ sudo systemctl enable NetworkManager
$ sudo systemctl start NetworkManager

 

If you touched one of the network configurations, You can manually poke at the configs like this:

 

$ sudo -i
# cd /etc/NetworkManager/system-connections
# ls
my_connection
# nano -w my_connection

<Hit Control-O, Enter, then Control-X when done>

 

Link to post
Share on other sites

It does look like nmcli.  I thought maybe the interfaces were brought down and configured somewhere to stay down using ifconfig.  Now I have to study nmcli which I didn't know about.  I certainly will ask at the xfce forum.

Thank-you.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

1 1