1

What comes after the second CHROMIUM_FLAGS= in gedit?

I did the wrong thing when trying to install pepper flash. i went by confusing instructions and now i want to just return this file to normal, i get an error in terminal when i edit it if i dont get it right. here's my file:

# Default settings for chromium-browser. This file is sourced by /bin/sh from 
# /usr/bin/chromium-browser 

# Options to pass to chromium-browser 
CHROMIUM_FLAGS="" 

# part for pepperflashplugin-nonfree : begin 

flashso="/usr/lib/pepperflashplugin-non... 

if [ -f $flashso ] 
then 
flashversion=`strings $flashso|grep ^LNX|sed -e "s/^LNX //"|sed -e "s/,/./g"` 
CHROMIUM_FLAGS=". /usr/lib/pepflashplugin-installer/pepfla... 
fi 

# part for pepperflashplugin-nonfree : end 
. /usr/lib/pepflashplugin-installer/pepfla... 

The file is called *default ( in /etc/chromium-browser) and the line after CHROMIUM_FLAGS= is where i messed up but i saved it without knowing, what goes after?

heemayl
  • 91,753
  • By default /etc/chromium-browser/default has only the line CHROMIUM_FLAGS="" . You have messed it up while editing it. – heemayl Apr 06 '15 at 19:04
  • It had something there before, i erased it – A1_Brownies Apr 06 '15 at 21:06
  • is there a way to reset the file? – A1_Brownies Apr 06 '15 at 21:08
  • Yes, go to the /etc/chromium-browser directory, rename the current file as something else than default e.g. default.bak, then create a file named default having only the line CHROMIUM_FLAGS="" – heemayl Apr 06 '15 at 21:18
  • I cant rename the file, i dont have permission to? – A1_Brownies Apr 06 '15 at 21:50
  • Use sudo at the start i.e. sudo mv default default.bak – heemayl Apr 06 '15 at 21:51
  • ok, i re named default, now how do i save this new one? i opened gedit and typed CHROMIUM_FLAGS="" but i cant save it to the same folder. perms again o-o' – A1_Brownies Apr 06 '15 at 22:00
  • use sudo again....as this directory is owned by root..you need to impersonate root by using sudo to create a file or edit a file..open the file like sudo gedit default – heemayl Apr 06 '15 at 22:02
  • It saved. should i worry about the error in terminal?: – A1_Brownies Apr 06 '15 at 22:03
  • (gedit:9549): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files – A1_Brownies Apr 06 '15 at 22:03
  • Nope, you don't need to worry....check now.... – heemayl Apr 06 '15 at 22:05
  • I'm still having problems with Chromium, Google Hangouts keeps crashing and when i go to a site like Gmail the Aww Snap! error page pops up no matter how many times i refresh. Should I make a new post for that? – A1_Brownies Apr 06 '15 at 22:09
  • Oh... now YouTube just started too. Aww Snap error page – A1_Brownies Apr 06 '15 at 22:10
  • Whats the error? – heemayl Apr 06 '15 at 22:10
  • For some reason the error stopped with YouTube, but with Gmail the blue screen pops up that says: – A1_Brownies Apr 06 '15 at 22:14
  • Aww Snap! Something went wrong wile displaying this webpage. To continue reload or go to another webpage. – A1_Brownies Apr 06 '15 at 22:14
  • Disable pepper flash or any incompatible plugin, Restart the computer and then check.. – heemayl Apr 06 '15 at 22:19
  • Same is happening but there is no flash player now in plugins – A1_Brownies Apr 06 '15 at 22:36
  • Ok..i think some other configuration files also get edited in the process causing this not to be fixed.....Now one solution to purge the browser first and then install again..sync your bookmarks and other stuffs.....then run sudo apt-get purge chromium-browser && sudo apt-get install chromium-browser – heemayl Apr 06 '15 at 22:41
  • It doesnt seem to have changed... I purged then installed and even restarted my computer after :( – A1_Brownies Apr 07 '15 at 01:29
  • Should I have some type of flash player in plugins? Because since i tinkered with pepper then removed it there is no longer a flash player in my plugin list. – A1_Brownies Apr 07 '15 at 01:30
  • yes, you need to have a flash plugin..you can install adobe flash plugin by sudo apt-get install adobe-flashplugin – heemayl Apr 07 '15 at 09:30
  • Package adobe-flashplugin is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

    E: Package 'adobe-flashplugin' has no installation candidate

    – A1_Brownies Apr 07 '15 at 15:45
  • That's what i got – A1_Brownies Apr 07 '15 at 16:31
  • Run sudo apt-get install flashplugin-installer – heemayl Apr 07 '15 at 17:18
  • Or you can check this post http://askubuntu.com/q/11/216503 – heemayl Apr 07 '15 at 17:27
  • No change, and after i installed it it still didnt show in my plugin list for Chromium – A1_Brownies Apr 07 '15 at 17:49
  • Now youtube and other google sites still have earlier problem? – heemayl Apr 07 '15 at 17:51
  • Yes. it seems to be only some Youtube videos but it's constant with google sites and bing – A1_Brownies Apr 07 '15 at 17:53
  • by bing i mean the hompage – A1_Brownies Apr 07 '15 at 17:53
  • Ok..i think thats need a in depth diagnosis of chromium....i am not very good at in depth analysis of browsers or most GUI tools..i am gonna put the steps i mentioned earlier as an answer as those solved the initial query....please ask the current chromium status as a new question, somebody with a deep knowledge on that will surely help you.... – heemayl Apr 07 '15 at 17:56
  • Ok, thank you very much for your time. I appreciate it :) – A1_Brownies Apr 07 '15 at 18:04
  • No problem..i have given the answer to the initial issue..please select it as accepted by clicking the tick mark on the left of the answer so that the initial problem can be marked as solved....Also ask a new question regarding the current issue.. – heemayl Apr 07 '15 at 18:07

1 Answers1

2

You can go back to the default state by removing changes made to the file /etc/chromium-browser/default.

If you want to keep the current file /etc/chromium-browser/default, then rename the file as something else than default e.g. default.bak. Now create a file named default having nothing or only the line CHROMIUM_FLAGS="".

To summarize:

sudo mv /etc/chromium-browser/default /etc/chromium-browser/default.bak
echo 'CHROMIUM_FLAGS=""' | sudo tee -a /etc/chromium-browser/default
heemayl
  • 91,753