LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2020, 04:13 AM   #1
Saberrei
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Rep: Reputation: Disabled
Gnome does not start properly


Hi,
today I restarted my computer and found that the gnome surface is not starting properly. I have a black screen with trash and home directory icon, which work and skype is opening but the 'start' field is not showing up.
Entering the console via Alt+Strg+F2 I can access everything.
One possible reason I thought of was that I tried to deinstall python2.7 in order to install python3. I know now that this is idiotic and by doing that I probably deinstalled something important. Nevertheless, as far as I can see, python2.7 still works and I don't understand what might be the issue? I already reinstalled python, but it said that there is nothing to do.
I also tried
yum -y groups install "GNOME Desktop"
but it says that there are no packages in any group available for installing or updating.
Can you please help me?
I have a Centos 7, 64 kernel system.
 
Old 06-24-2020, 07:34 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Try yum distro-sync.
 
Old 06-24-2020, 08:05 AM   #3
Saberrei
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
To do this, I have to use --skip-broken since there are unresolved dependencies. If I do so, it has to skip nux-desktop but then the panel is back. Nevertheless, this is only if I enter it as a root user. How can I keep it also for 'normal' user?
Thanks!
 
Old 06-24-2020, 10:37 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
You enter what as root user? GNOME? Don't do this. After logging once into GUI as root you may get all sorts of permissions problems as regular user afterwards. Quite often, it manifests itself as .ICEAuthority permission/ownership problem. Google for it. Or search here on LQ.
 
1 members found this post helpful.
Old 06-24-2020, 11:17 AM   #5
Saberrei
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
To do 'yum disto-sync' I have to be root user. Otherwise it doesn't work. If I then enter the GUI, I have the panel and everything else back. But if I then switch to normal user, it is gone and I get black screen with some icons.
 
Old 06-24-2020, 11:53 AM   #6
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Open a terminal as a normal user and su to root. You should never login to a GUI as root, as mentioned earlier.
 
Old 06-24-2020, 12:14 PM   #7
Saberrei
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
Ok but what can I do now?

Obviously, "yum distro-sync" helps but not for the user. How can I apply this for the user?
Just to be clear:
I login to the user account: black screen and some icons appear but no panel.
Then I enter a shell via "Strg+Alt+F2",
login>> user
Password>> password
user@linux>> su
root@linux>> yum distro-sync
(if I would do: root@linux>> startx #gives panel, otherwise...)
root@linux>> exit
user@linux>> startx #->Still black screen and some icons.
 
Old 06-24-2020, 12:20 PM   #8
Saberrei
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
Creating another user gives me the GUI for that user.
But it would be nice to restore the GUI for that first user still.
 
Old 06-24-2020, 12:22 PM   #9
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
As root do
Code:
chown user:user -R /home/user
Then start X as regular user.

Last edited by shruggy; 06-24-2020 at 12:23 PM.
 
Old 06-24-2020, 12:27 PM   #10
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Quote:
Originally Posted by Saberrei View Post
Ok but what can I do now?

Obviously, "yum distro-sync" helps but not for the user. How can I apply this for the user?
Just to be clear:
I login to the user account: black screen and some icons appear but no panel.
Then I enter a shell via "Strg+Alt+F2",
login>> user
Password>> password
user@linux>> su
root@linux>> yum distro-sync
(if I would do: root@linux>> startx #gives panel, otherwise...)
root@linux>> exit
user@linux>> startx #->Still black screen and some icons.
yum distro-sync is for the OS, not the user. Those command are run as root and have nothing to do with any user.
 
Old 06-24-2020, 04:15 PM   #11
Saberrei
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
SOLVED

I could solve it by creating another user (adduser) and copying
.local/share/gnome-settings-daemon/ and
.local/share/gnome-shell/
from its home directory to the home directory of the old user.

Quote:
As root do
Code: chown user:user -R /home/user
Then start X as regular user.
This was not the problem. It was the user's directory, not root.

Quote:
yum distro-sync is for the OS, not the user. Those command are run as root and have nothing to do with any user.
I know but I did not understand why the configs did not stay for the users. I've understood now, that the reason of the error were local configs and yum distro-sync does not touch them.

Thanks
 
Old 06-24-2020, 04:51 PM   #12
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Exactly. User configurations are always in /home and have nothing to do with the operating system, only the user. The command you ran was for the package management system and was for the OS only.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 15 Gnome 3 gnome-shell does not start fred1234 Linux - Desktop 1 06-23-2011 11:42 AM
11.04 does not start properly today53 Ubuntu 17 05-21-2011 05:45 AM
mysql server does not start properly JimOrJoe Linux - Software 5 04-30-2008 10:28 AM
auto-generated firewall does not start up properly nass Slackware 13 05-28-2007 06:22 AM
Gnome icons does not display properly rahulnsoni Linux - Newbie 1 02-09-2004 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration