[SOLVED] Google Chrome does not boot - custom install
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have Debian Stretch and I have installed some programs in a specific directory basically to have more control, one of them is google-chrome. I have made a small script for the customization of the installation, however when I finish installing chrome does not start; Only starts after restarting the machine.
Here the information:
ERROR_DISPLAYED
INSTALLATION_SCRIPT
Code:
# Ultima actualización: 20/08/2017
#!/bin/bash
cd /
#
# Se descarga Google Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -x google-chrome-stable_current_amd64.deb /tmp/
cd /tmp/
tar czvf google-chrome-stable_current_amd64.tar.gz opt/ usr/ etc/
cd /
mv /tmp/google-chrome-stable_current_amd64.tar.gz .
#
# Se confirma la existencia de dependencias necesarias
echo '>>> Ingresando a /usr/local/...'
cd /usr/local/
echo 'Instalando dependencias adicionales...'
apt-get install libindicator7 libdbusmenu-gtk4 libdbusmenu-glib4 libappindicator1
echo 'Dependencias instaladas...'
sleep 2
echo 'Se va a instalar en /usr/local/...'
read -p "Ingresa el nombre del directorio principal de instalacion, si no existe se creará: " DIRINST
if [ -d $DIRINST ];
then
echo 'El directorio ya existe...'
echo '>>> Ingresando...'
cd $DIRINST
else
echo 'El directorio no existe...'
echo 'Creando directorio...'
mkdir $DIRINST
echo 'Directorio creado...'
echo '>>> Ingresando...'
cd $DIRINST
fi
sleep 2
mkdir google_chrome
cd google_chrome/
mv /google-chrome-stable_current_amd64.tar.gz /usr/local/$DIRINST/google_chrome/
tar xzvf google-chrome-stable_current_amd64.tar.gz
cd ../
#
# El directorio tiene que ser propiedad de root para actuar sobre éste
# SUID adecuados sobre google-sandbox para poder ejecutar el binario
chown -R root:root google_chrome/
chmod -R +x google_chrome/
chmod g-s google_chrome/
chmod 4755 google_chrome/opt/google/chrome/chrome-sandbox
#
#App a Menú
cd /usr/share/applications/
touch google-chrome.desktop
echo '[Desktop Entry]' > google-chrome.desktop
echo 'Version=60.0.3112.101 empaquetado de .deb' >> google-chrome.desktop
echo 'Name=Google Chrome' >> google-chrome.desktop
echo 'Comment=Suite Navegador Web' >> google-chrome.desktop
echo 'Exec=/usr/local/'$DIRINST'/google_chrome/opt/google/chrome/google-chrome' >> google-chrome.desktop
echo 'Icon=/usr/local/'$DIRINST'/google_chrome/opt/google/chrome/product_logo_16.png' >> google-chrome.desktop
echo 'Categories=Network;' >> google-chrome.desktop
echo 'Terminal=false' >> google-chrome.desktop
echo 'Type=Application' >> google-chrome.desktop
cd /usr/local/$DIRINST/google_chrome/
#
#Remove
touch remove.sh
echo "#!/bin/bash" > remove.sh
echo "echo '------------------------------'" >> remove.sh
echo "echo 'Removiendo...'" >> remove.sh
echo 'apt-get remove libindicator7 libdbusmenu-gtk4 libdbusmenu-glib4 libappindicator1' >> remove.sh
echo "echo -ne '[===> ]( 8.33%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[=========> ](16.66%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[============> ](24.99%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[===============> ](33.32%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[==================> ](41.65%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[=====================> ](49.98%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[========================> ](58.31%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[===========================> ](66.64%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[==============================> ](74.97%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[=================================> ](83.30%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[====================================> ](91.64%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[=======================================>](100.00%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '\n'" >> remove.sh
echo 'cd /' >> remove.sh
echo 'rm -rf /usr/share/applications/google-chrome.desktop' >> remove.sh
echo 'rm -rf /usr/local/'$DIRINST'/google_chrome/' >> remove.sh
USR=`users`
echo 'rm -rf /home/'$USR'/.cache/google-chrome/' >> remove.sh
echo 'rm -rf /home/'$USR'/.config/google-chrome/' >> remove.sh
echo "echo 'Completado!'" >> remove.sh
echo "echo '------------------------------'" >> remove.sh
echo 'exit' >> remove.sh
chmod 744 remove.sh
#
#README
touch README.txt
echo 'Google Chrome' > README.txt
echo 'Idioma=es_MX' >> README.txt
echo 'Version=60.0.3112.101 empaquetado de .deb' >> README.txt
echo 'Arquitectura=x86_64' >> README.txt
echo 'Esta es una instalación no invasiva.' >> README.txt
echo 'Para desinstalar ejecute el fichero remove.sh como root.' >> README.txt
echo '' >> README.txt
echo 'https://www.google.com.mx/chrome/browser/desktop/index.html' >> README.txt
echo '' >> README.txt
echo 'xaxlm' >> README.txt
cd /
echo '------------------------------'
echo 'Limpiando...'
echo -ne '[===> ]( 8.33%)\r';sleep 0.2
echo -ne '[=========> ](16.66%)\r';sleep 0.2
echo -ne '[============> ](24.99%)\r';sleep 0.2
echo -ne '[===============> ](33.32%)\r';sleep 0.2
echo -ne '[==================> ](41.65%)\r';sleep 0.2
echo -ne '[=====================> ](49.98%)\r';sleep 0.2
echo -ne '[========================> ](58.31%)\r';sleep 0.2
echo -ne '[===========================> ](66.64%)\r';sleep 0.2
echo -ne '[==============================> ](74.97%)\r';sleep 0.2
echo -ne '[=================================> ](83.30%)\r';sleep 0.2
echo -ne '[====================================> ](91.64%)\r';sleep 0.2
echo -ne '[=======================================>](100.00%)\r';sleep 0.2
echo -ne '\n'
rm -rf /tmp/opt/
rm -rf /tmp/usr/
rm -rf /tmp/etc/
rm -rf /google-chrome-stable_current_amd64.deb
rm -rf /usr/local/$DIRINST/google_chrome/google-chrome-stable_current_amd64.tar.gz
if [ -d /home/$USR/.cache/google-chrome/ ];
then
rm -rf /home/$USR/.cache/google-chrome/
else
:
fi
if [ -d /home/$USR/.config/google-chrome/ ];
then
rm -rf /home/$USR/.config/google-chrome/
else
:
fi
echo 'Completado!'
echo '------------------------------'
exit
Note: Chrome worked without rebooting with Debian Jessie
I appreciate any help or suggestion.
I have Debian Stretch and I have installed some programs in a specific directory basically to have more control, one of them is google-chrome. I have made a small script for the customization of the installation, however when I finish installing chrome does not start; Only starts after restarting the machine.
Here the information:
ERROR_DISPLAYED when running google-chrome in /gogle_chrome/opt/google/chrome/google-chrome
Note: Chrome worked without rebooting with Debian Jessie
I appreciate any help or suggestion.
Hi xaxlm.
I can't comment on any of the info you have provided in your links as, for security reasons, I won't click on unknown links (we have no idea what's awaiting us on that Google drive). You could have pasted text or images directly into this thread rather than post links. Also, what happens in the future if you delete the information on your Google drive? - it could render this thread pretty useless indeed.
But anyway, what I can comment on is that you have used the directory /gogle_chrome/ which contains a spelling error. You should therefore check your installation of Chrome and your scripts for similar spelling errors just in case.
I can't comment on any of the info you have provided in your links as, for security reasons, I won't click on unknown links (we have no idea what's awaiting us on that Google drive). You could have pasted text or images directly into this thread rather than post links. Also, what happens in the future if you delete the information on your Google drive? - it could render this thread pretty useless indeed.
But anyway, what I can comment on is that you have used the directory /gogle_chrome/ which contains a spelling error. You should therefore check your installation of Chrome and your scripts for similar spelling errors just in case.
Good luck.
Hello, thank you for your suggestion, i have managed to solve it. Something happened with the permissions when unpacking the .de so I created a directory specifically to unpack and then pack in .tar.gz. Here the final code, can still be improved more:
Code:
#!/bin/bash
# Ultima actualización: 22/08/2017
cd /
#
# Se descarga Google Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
mkdir /tmp/google
chmod 755 /tmp/google/
dpkg -x google-chrome-stable_current_amd64.deb /tmp/google/
cd /tmp/google/
tar czvf google-chrome-stable_current_amd64.tar.gz opt/ usr/ etc/
#
# Se confirma la existencia de dependencias necesarias
echo '>>> Ingresando a /usr/local/...'
cd /usr/local/
echo 'Instalando dependencias adicionales...'
apt-get install libindicator7 libdbusmenu-gtk4 libdbusmenu-glib4 libappindicator1
echo 'Dependencias instaladas...'
sleep 2
echo 'Se va a instalar en /usr/local/...'
read -p "Ingresa el nombre del directorio principal de instalacion, si no existe se creará: " DIRINST
if [ -d $DIRINST ];
then
echo 'El directorio ya existe...'
echo '>>> Ingresando...'
cd $DIRINST
else
echo 'El directorio no existe...'
echo 'Creando directorio...'
mkdir $DIRINST
echo 'Directorio creado...'
echo '>>> Ingresando...'
cd $DIRINST
fi
sleep 2
mkdir google-chrome
cd google-chrome/
mv /tmp/google/google-chrome-stable_current_amd64.tar.gz .
tar xzvf google-chrome-stable_current_amd64.tar.gz
cd ../
#
# El directorio tiene que ser propiedad de root para actuar sobre éste
# SUID adecuados sobre google-sandbox para poder ejecutar el binario
chown -R root:root google-chrome/
chmod -R +x google-chrome/
chmod g-s google-chrome/
chmod 4755 google-chrome/opt/google/chrome/chrome-sandbox
#
#App a Menú
cd /usr/share/applications/
touch google-chrome.desktop
echo '[Desktop Entry]' > google-chrome.desktop
echo 'Version=60.0.3112.101 empaquetado de .deb' >> google-chrome.desktop
echo 'Name=Google Chrome' >> google-chrome.desktop
echo 'Comment=Suite Navegador Web' >> google-chrome.desktop
echo 'Exec=/usr/local/'$DIRINST'/google-chrome/opt/google/chrome/google-chrome' >> google-chrome.desktop
echo 'Icon=/usr/local/'$DIRINST'/google-chrome/opt/google/chrome/product_logo_16.png' >> google-chrome.desktop
echo 'Categories=Network;' >> google-chrome.desktop
echo 'Terminal=false' >> google-chrome.desktop
echo 'Type=Application' >> google-chrome.desktop
cd /usr/local/$DIRINST/google-chrome/
#
#Remove
touch remove.sh
echo "#!/bin/bash" > remove.sh
echo "echo '------------------------------'" >> remove.sh
echo "echo 'Removiendo...'" >> remove.sh
echo 'apt-get remove libindicator7 libdbusmenu-gtk4 libdbusmenu-glib4 libappindicator1' >> remove.sh
echo "echo -ne '[===> ]( 8.33%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[=========> ](16.66%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[============> ](24.99%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[===============> ](33.32%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[==================> ](41.65%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[=====================> ](49.98%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[========================> ](58.31%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[===========================> ](66.64%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[==============================> ](74.97%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[=================================> ](83.30%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[====================================> ](91.64%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '[=======================================>](100.00%)\r';sleep 0.2" >> remove.sh
echo "echo -ne '\n'" >> remove.sh
echo 'cd /' >> remove.sh
echo 'rm -rf /usr/share/applications/google-chrome.desktop' >> remove.sh
echo 'rm -rf /usr/local/'$DIRINST'/google-chrome/' >> remove.sh
USR=`users`
echo 'rm -rf /home/'$USR'/.cache/google-chrome/' >> remove.sh
echo 'rm -rf /home/'$USR'/.config/google-chrome/' >> remove.sh
echo "echo 'Completado!'" >> remove.sh
echo "echo '------------------------------'" >> remove.sh
echo 'exit' >> remove.sh
chmod 744 remove.sh
#
#README
touch README.txt
echo 'Google Chrome' > README.txt
echo 'Idioma=es_MX' >> README.txt
echo 'Version=60.0.3112.101 empaquetado de .deb' >> README.txt
echo 'Arquitectura=x86_64' >> README.txt
echo 'Esta es una instalación no invasiva.' >> README.txt
echo 'Para desinstalar ejecute el fichero remove.sh como root.' >> README.txt
echo '' >> README.txt
echo 'https://www.google.com.mx/chrome/browser/desktop/index.html' >> README.txt
echo '' >> README.txt
echo 'xaxlm' >> README.txt
cd /
echo '------------------------------'
echo 'Limpiando...'
echo -ne '[===> ]( 8.33%)\r';sleep 0.2
echo -ne '[=========> ](16.66%)\r';sleep 0.2
echo -ne '[============> ](24.99%)\r';sleep 0.2
echo -ne '[===============> ](33.32%)\r';sleep 0.2
echo -ne '[==================> ](41.65%)\r';sleep 0.2
echo -ne '[=====================> ](49.98%)\r';sleep 0.2
echo -ne '[========================> ](58.31%)\r';sleep 0.2
echo -ne '[===========================> ](66.64%)\r';sleep 0.2
echo -ne '[==============================> ](74.97%)\r';sleep 0.2
echo -ne '[=================================> ](83.30%)\r';sleep 0.2
echo -ne '[====================================> ](91.64%)\r';sleep 0.2
echo -ne '[=======================================>](100.00%)\r';sleep 0.2
echo -ne '\n'
rm -rf /tmp/google/
rm -rf /google-chrome-stable_current_amd64.deb
rm -rf /usr/local/$DIRINST/google-chrome/google-chrome-stable_current_amd64.tar.gz
if [ -d /home/$USR/.cache/google-chrome/ ];
then
rm -rf /home/$USR/.cache/google-chrome/
else
:
fi
if [ -d /home/$USR/.config/google-chrome/ ];
then
rm -rf /home/$USR/.config/google-chrome/
else
:
fi
echo 'Completado!'
echo '------------------------------'
exit
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.