LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-23-2011, 09:07 AM   #1
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 20 Cinnamon
Posts: 589

Rep: Reputation: 49
My Chromium (not google chrome) browser closes after launching but not when 'root'


Hello:

Out of the blue, my Chromium browser closes immediately after it starts!

I used pkgtool to remove it, cd to /tmp and then did:
Code:
bash-4.1# ./chromium-8.0.558.0-i486-1_SBo.tgz
This did not fix the problem.


Important, I think: If I restart my computer and login as user 'root', Chromium works perfectly.

Firefox still works properly.

This may be related, I don't know: For some reason, all the 'groups' for user 'rob' were 'unchecked' - I did not, knowingly, do this! I have never used the 'Kuser' application until yesterday when my sound stopped working and a poster here asked if user 'rob' was included in the 'audio' group - 'rob' wasn't. That's when I noticed that user 'rob' was not included in any group. I added: audio cdrom floppy plugdev video power netdev groups to user 'rob'.

Do you think that I should login as 'root' and then remove user 'rob' using 'userdel rob' (not 'userdel -r rob') and then recreate 'rob' using adduser? Would this help?


Any suggestions would be appreciated.

Last edited by Robert.Thompson; 02-23-2011 at 09:41 AM.
 
Old 02-23-2011, 10:47 AM   #2
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Rep: Reputation: 69
Robert, do a little experiment please. Open the terminal and, as root, type
Code:
adduser
Then you do this: the questions it is going to ask you are:
Login name: Pick any name.
User ID. Just press enter.
Initial group [ users ]. Just press enter.
Additional UNIX groups. At this moment, there will be a note telling you about some security implications.

DO NOT PRESS ENTER YET!!!

Press the UP arrow on your keyboard. That will add a list of groups:
Quote:
audio cdrom floppy plugdev video power netdev
Now you press enter.
After that, it's safe to just go pressing enter. Give a password to that user.

In the end, end your current session and login as the new user. I bet more than half your problems will have magically disappeared.
 
1 members found this post helpful.
Old 02-23-2011, 11:11 AM   #3
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 20 Cinnamon
Posts: 589

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by bonixavier View Post
In the end, end your current session and login as the new user. I bet more than half your problems will have magically disappeared.
Hi bonixavier!

Thank you, you were correct! I created a user 'robert' and there were no problems with Chromium.

Can I now, 'deluser -r robert', 'deluser rob' and then 'adduser rob'? If so, what do I do when adduser asks about creating the 'home/rob' directory?

Thanks,
 
Old 02-23-2011, 12:34 PM   #4
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Why not just run :
Code:
su -c "usermod -a -G users,floppy,dialout,audio,video,cdrom,plugdev,netdev rob"
su -c "userdel -r robert"
That will add rob to the correct groups and remove robert.
 
1 members found this post helpful.
Old 02-23-2011, 12:49 PM   #5
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 20 Cinnamon
Posts: 589

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by bgeddy View Post
Why not just run :
Code:
su -c "usermod -a -G users,floppy,dialout,audio,video,cdrom,plugdev,netdev rob"
su -c "userdel -r robert"
That will add rob to the correct groups and remove robert.
Thanks bgeddy.

I did the 'usermod' part and then logged in as 'rob' but the chromium browser opens and then, immediately closes.
 
Old 02-23-2011, 01:11 PM   #6
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
I did the 'usermod' part and then logged in as 'rob' but the chromium browser opens and then, immediately closes.
Hmm - well it seems to be something in rob's home directory messing up Chrome. Possbily something in /home/rob/.cache/google-chrome/ so you could try "rm -R /home/rob/.cache/google-chrome/*" and if still no joy perhaps
"rm -R /home/rob/.config/google-chrome/*" - be careful of the last one - it may delete saved bookmarks and other stuff - I'm not sure exactly what Chrome stores there.
 
1 members found this post helpful.
Old 02-23-2011, 02:56 PM   #7
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 20 Cinnamon
Posts: 589

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by bgeddy View Post
Hmm - well it seems to be something in rob's home directory messing up Chrome. Possbily something in /home/rob/.cache/google-chrome/ so you could try "rm -R /home/rob/.cache/google-chrome/*" and if still no joy perhaps
"rm -R /home/rob/.config/google-chrome/*" - be careful of the last one - it may delete saved bookmarks and other stuff - I'm not sure exactly what Chrome stores there.
Hi bgeddy.

The path for chromium (not google chrome) is a little different so I did:
Code:
# rm -R /home/rob/.cache/chromium/Cache/*
but the problem remains.

The directory /home/rob/.config/chromium contains 3 sub directories as well as 7 files.

Before I do:
Code:
rm -R /home/rob/.config/chromium/*
I was wondering why my initial use of pkgtool to remove chromium didn't entirely remove chromium?

Is there a more thorough method of removing a SlackBuild from my system?

I am assuming that doing 'rm -R /home/rob/.config/chromium/*' will make chromium not work at all but I could easily be wrong. If it does, what would I do next?

Thanks for you patience,
 
Old 02-23-2011, 03:12 PM   #8
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by Robert.Thompson View Post
I was wondering why my initial use of pkgtool to remove chromium didn't entirely remove chromium?

Is there a more thorough method of removing a SlackBuild from my system?

I am assuming that doing 'rm -R /home/rob/.config/chromium/*' will make chromium not work at all but I could easily be wrong. If it does, what would I do next?

Thanks for you patience,
Removing Chromium with pkgtool removes every file that was installed from the package. When running Chromium it creates user-based configurations and cache data in your home directory (thus only affecting one user). Most programs work this way; the application itself has been removed, but user-specific data remains since it was created post-install by the program itself. Issuing that command will remove all Chromium user configuration from your home directory. It is still installed on the system, and it should work fine -- but browser history, bookmarks, and any browser configuration you did will be removed (so you'll be starting fresh, and new data will be created with default settings).
 
1 members found this post helpful.
Old 02-23-2011, 03:42 PM   #9
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
As T3slider has already said - removing a package will remove the files in the package but not anything the application creates. That's a bit like expecting removepkg vim to remove all the documents you have ever created with vim. The ~/ files the application creates are settings for the user created at run time. As a new user works and your rob user doesn't I suspect on of these user files may be at fault.
Quote:
I am assuming that doing 'rm -R /home/rob/.config/chromium/*' will make chromium not work at all but I could easily be wrong. If it does, what would I do next?
No - when you created the new user robert he did not automatically have a /home/robert/.config/chrome directory - Chrome created that when it first ran. I'm just trying to work through what could be making the Chrome application fail for ron but not robert (or any other user). That leads me to think it must be something in the application's settings it stores in the user's /home directory. Don't be scared to toy with these things - it's easy to remove and install packages - it's the settings a user has stored that are important - (like bookmarks in a browser).

On that note I can recommend a browser add-on called Xmarks that lets you store bookmarks, passwords and stuff on line so you can transfer them between machines and users. I use it a lot and trust it, (although obviously not with anything really secure - like my bank account login)!

Last edited by bgeddy; 02-23-2011 at 03:49 PM. Reason: Better sense
 
1 members found this post helpful.
Old 02-23-2011, 03:57 PM   #10
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 20 Cinnamon
Posts: 589

Original Poster
Rep: Reputation: 49
Hello:

Well, I ran:
Code:
rm -R /home/rob/.config/chromium/*
Then I rebooted and Ubuntu started!!!



Joke.


Chromium works perfectly now!


Thanks a lot for your help and explanations.
 
  


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
[SOLVED] google-chrome = chromium or? manu-tm Linux - Software 4 01-14-2011 05:54 AM
[SOLVED] This there a Slackware version of Google Chromium Browser? (not Google Chrome) Robert.Thompson Slackware 6 01-13-2011 05:27 AM
LXer: Why Can't We All Use Chromium Instead of Google Chrome? LXer Syndicated Linux News 1 05-22-2010 07:43 PM
Chromium/Google Chrome - can I get these features? cantab Linux - Software 16 01-29-2010 10:44 AM
Questions about Google Chrome/Chromium The_Seraphim Linux - Software 2 10-08-2009 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:57 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