The scenario : installation CentOS 7 64 bit on VirtualBox (on a Mac)
- yum update
After installation yum update is not working
Yum returns an error like : "Cannot find a valid baseurl for repo".
Could be a connection problem and a configuration problem.
Let try to issue the command : sudo dhclient
If it solve the problem (i.e. if Yum works as expected) edit the file /etc/sysconfig/network-scripts/ifcfg-enp0s3.
Change the line ONBOOT=No in ONBOOT=Yes.
Save.
Reboot
Is possible sudo command will not work (see sudoers below) - Gnome GUI
Installation of the iso (tested on DVD.iso) does not have a GUI.
To install Gnome : - yum update
- yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
- ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
- reboot
- Sudoers
Add the user in the sudoers list.
Assuming to be logged as user, go in the root account using for example ssh. - ssh root@localhost
- If the first time type Yes to the request to add the localhost key.
Then enter the root password - Use the command visudo to edit the sudoers list.
Locate the root and add below the user with the same levels of access - save
No comments:
Post a Comment