View previous topic :: View next topic |
Author |
Message |
enrico3791 Tux's lil' helper
Joined: 03 Sep 2010 Posts: 77
|
Posted: Sat Dec 31, 2022 12:37 pm Post subject: No network in Gnome |
|
|
I think I 'successfully' completed a Gentoo installation from the minimal_CD followed by the installation of the Gnome environment. But I have serveral problems. One of them is the network.
The computer is connected to network via cable over enp2s0 (eth0). In Gnome environment I have no network even NetworkManger reports the network is connected and shows a correct IP address, ...
If I boot in "recovery mode" , I have no network as well, but with the following command I can manage to establish a working connection:
ifconfig -a
dhcpcd enp2s0
How can I get a working connection in Gnome?
Please note one of the other problem I have, it is that Terminal app in Gnome is not working at all. The only way I have to access the terminal is via the recovery_mode. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3948
|
Posted: Sat Dec 31, 2022 4:59 pm Post subject: |
|
|
Dhcpcd does not work well with NM.
Plz disable and stop dhcpcd and run
Code: |
nmcli con show
nmcli con del <all-connections>
nmcli con add type ethernet autoconnect yes con-name eth0 ifname enp2s0
nmcli con up eth0
|
Quote: |
Please note one of the other problem I have, it is that Terminal app in Gnome is not working at all. The only way I have to access the terminal is via the recovery_mode.
|
What happens when you click on the terminal icon?
This sounds serious... _________________
|
|
Back to top |
|
|
enrico3791 Tux's lil' helper
Joined: 03 Sep 2010 Posts: 77
|
Posted: Sun Jan 01, 2023 7:25 pm Post subject: |
|
|
First of all the easy question: the Terminal in Gnome. I simply double click on the icon and then nothing happen. I even re-emerged gnome-terminal, but no improvement.
Concernig the network, Shall I have to stop or disable dhcpcd? So systemctl stop dhcpcd or systemctl disable dhcpcd?
I will have a try but I'm not expecting any better, since at the first reboot after minimal installation (before installing gnome, just blackscreen and command line) I was without any network and I had to start and enable dhcpcd. |
|
Back to top |
|
|
enrico3791 Tux's lil' helper
Joined: 03 Sep 2010 Posts: 77
|
Posted: Mon Jan 02, 2023 2:44 pm Post subject: |
|
|
The only way to access a command line is via the recovery mode. I stop dhcpcd with systemctl stop dhcpcd and then systemctl disable dhcpcd.
Then I typed the command nmcli con show, but I have the error message "Impossible to create the object NMClient"
Typing the command systemctl list-unit-files | grep enabled I have:
NetworkManager-dispatcher.service enabled disabled
NetworkManager-wait-online.services enabled disabled
NetworkManager.service enabled disabled |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3948
|
Posted: Tue Jan 03, 2023 10:20 am Post subject: |
|
|
Try
Code: |
systemctl enable NetworkManager
systemctl start NetworkManager
nmcli.....................
.
.
|
As for the terminal issue try setting the locale.
Edit /etc/locale.gen
Code: |
en_US ISO-8859-1
en_US.UTF-8 UTF-8
|
followed by running
If not working still go to gnome language settings and set language to English or whatever.
OR
use localectl
https://man7.org/linux/man-pages/man1/localectl.1.html _________________
|
|
Back to top |
|
|
enrico3791 Tux's lil' helper
Joined: 03 Sep 2010 Posts: 77
|
Posted: Wed Jan 04, 2023 2:37 pm Post subject: |
|
|
Network problem
successfully enter command systemctl start NerworkManager
nmcli con show return an ethernet connection on enp2s0
nmcli con del <all-connections> return a 'syntax error near unexpected token 'newline' '
nmcli con add type ethernet autoconnect yes con-name eth0 ifname enp2s0 returns 'Connection 'eth0' ... successfully made'
nmcli con up eth0 return error 'Connection activation failed: No suitable device found for this connection (device enp2s0 not available becuase profile is not compatible with device (mismatching interface name)).'
No Terminal in Gnome
Changed /etc/locale.gen. Just: en_US ISO -8859-1 and en_US.UTF-8 UTF 8 are without #
regenerated the locales with locale-gen
made sure the selection is correct with eselect locale list and eselect locale set. Locale is set to en_US
No improvement from Gnome Terminal. it try to open but it fail to open the windows. |
|
Back to top |
|
|
enrico3791 Tux's lil' helper
Joined: 03 Sep 2010 Posts: 77
|
Posted: Thu Jan 05, 2023 9:59 am Post subject: |
|
|
At the end network is working. The system is configured with systemd, so I stopped/disabled the network services of systemd.
systemctl stop systemd-networkd.service
systemctl disable systemd-networkd.service
systemctl stop systemd-networkd-wait-online.service
systemctl disable systemd-networkd-wait-online.service
Then I start and enabled NetworkManager.
This way it works. Probably there was a conflict among all the services.
Sorting out the issue I created a new one. now NetworkManager can create a connection in Gnome, but I do not have anymore connection in recovery mode, which is the only way I have to access the terminal. |
|
Back to top |
|
|
|