CypherpunkArmory / UserLAnd

Main UserLAnd Repository
Other
3.55k stars 392 forks source link

Chromium browser,, #525

Open ankushlohiya001 opened 5 years ago

ankushlohiya001 commented 5 years ago

I've installed ubuntu with mate desktop environement, i'm using a lot of apps in it, almost all works well, but chromium browser only works with --no-sandbox command,, And firefox browser shows black screen only,,,

Marcus0086 commented 5 years ago

Apt remove firefox-esr and then use this link wget https://mirrors.ocf.berkeley.edu/kali/pool/main/f/firefox-esr/firefox-esr_52.6.0esr-2+b1_arm64.deb && apt install ./firefox-esr_52.6.0esr-2+b1_arm64.deb

Marcus0086 commented 5 years ago

Can u tell in brief how you started mate de from terminal. Is that startmate command.

ankushlohiya001 commented 5 years ago

I use mate-session for starting mate

HansLanger commented 5 years ago

How did you get chromium working ??

What version of chromium are you using?

This is what i did, using UserLAnd /debian ssh (headless):

I installed chromium version 65.0.3325.181 (the only one that allow me to install):

> wget https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/14482955/+files/chromium-codecs-ffmpeg_65.0.3325.181-0ubuntu0.14.04.1_armhf.deb; sudo dpkg -i chromium-codecs-ffmpeg_65.0.3325.181-0ubuntu0.14.04.1_armhf.deb
> wget https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/14482955/+files/chromium-browser_65.0.3325.181-0ubuntu0.14.04.1_armhf.deb; sudo dpkg -i chromium-browser_65.0.3325.181-0ubuntu0.14.04.1_armhf.deb
> sudo apt --fix-broken install

I run chromium-browser headless mode to take a screenshot of a site, and i get Segmentation Fault. If i use "sudo" is doesnt show any message and doesnt do anything.

> chromium-browser --headless --disable-gpu --screenshot https://www.chromestatus.com/
Segmentation Fault

When I debug Chromium if says something about code 182, I've google and didnt find any result.

> chromium-browser --debug
Reading symbols from /usr/lib/chromium-browser/chromium-browser...(no debugging symbols found)...done.
(gdb) run
"Starting program: /usr/lib/chromium-browser/chromium-browser --enable-pinch
During startup program exited with code 182.
(gdb) quit

I think the Segmentation Fault is something related with how UserLAnd works. there is a permission issue there.

Any idea?

ankushlohiya001 commented 5 years ago

i started chromium without sandbox,,by command.. chromium --no-sandbox

ankushlohiya001 commented 5 years ago

Sir, I installed chromium using Synaptic package manager,,,

carbonatedcaffeine commented 5 years ago

this firefox issue has been around for a while. But will hopefully be fixed soon.

HansLanger commented 5 years ago

Sir, I installed chromium using Synaptic package manager,,,

Could you please run this on a terminal and post it?, It will show the version of your chromium.

apt-cache policy chromium-browser

and then:

chromium-browser --version

ankushlohiya001 commented 5 years ago

I deleted ubuntu repo, now installed debian,, Here's your screenshot: @HansLanger ,, screenshot_2019-01-21-22-50-34-362_tech ula screenshot_2019-01-21-23-04-43-524_x org server

HansLanger commented 5 years ago

@ankushlohiya001 thank very much for your time! Why when you login into userLAnd there is no "Welcome to Debian in UserLAnd" message? mine always shows it.

I have installed the same version of chromium that you have, and when i run "chromium --version" still have the same "Segmentation Fault" error that I had with Chromium-browser. I don't use any desktop app, i just run everything from terminal.

I need to figure out what is the difference between your device and mine. Is your phone rooted?, its arm or arm64 ? please check your device config with this app https://play.google.com/store/apps/details?id=com.inkwired.droidinfo&hl=en_US

I have an old Alcatel Phone model A577VL, ARM architecture, non-rooted, with android 7.1.1. I wonder if the issue its because of the phone or userLAnd.

HansLanger commented 5 years ago

Ok, I have tried in a phone ARM64 and I get the same results as you, chromium ask me to run it --no-sandbox but it works. So basically, chromium doesnt work on userLAnd under ARM architecture, because I made it work on Raspberry PI 3 (ARM) with raspbian

0xba1a commented 4 years ago

I'm facing the same problem. I have two phones Honor-9-lite and Moto-G5. Honor is an aarch64 platform where chromium is running fine. But in Moto-G5 which is a armv7l, chromium throws Illegal Instruction or Segfault. It happens at very beginning that can't use any debugging method.

By the way I'm running arch Linux.

SpaceSaver commented 3 years ago

I'm facing the same problem. I have two phones Honor-9-lite and Moto-G5. Honor is an aarch64 platform where chromium is running fine. But in Moto-G5 which is a armv7l, chromium throws Illegal Instruction or Segfault. It happens at very beginning that can't use any debugging method.

By the way I'm running arch Linux.

Have you tried running Chromium from the terminal with the command chromium --no-sandbox? It would appear as if the Chromium sandbox installs to a location where real root access is required to install it, so it fails to install the sandbox. If this works, you can then either modify the .desktop file and add the --no-sandbox flag or just put a .sh file on your desktop with chromium --no-sandbox in it and just open chromium that way. If you chose the .sh file don't forget to add execution permission!

cunhaandre1979 commented 7 months ago

I'm facing the same problem. I have two phones Honor-9-lite and Moto-G5. Honor is an aarch64 platform where chromium is running fine. But in Moto-G5 which is a armv7l, chromium throws Illegal Instruction or Segfault. It happens at very beginning that can't use any debugging method. By the way I'm running arch Linux.

Have you tried running Chromium from the terminal with the command chromium --no-sandbox? It would appear as if the Chromium sandbox installs to a location where real root access is required to install it, so it fails to install the sandbox. If this works, you can then either modify the .desktop file and add the --no-sandbox flag or just put a .sh file on your desktop with chromium --no-sandbox in it and just open chromium that way. If you chose the .sh file don't forget to add execution permission!

Hello, How do I make that '.sh' file and with execution permission?

kotenok2000 commented 4 months ago

chmod +x file.sh