Microsoft Edge browser Linux version (deb package)

Moderator: Forum moderators

Post Reply
User avatar
bigpup
Moderator
Posts: 6999
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

Microsoft Edge browser Linux version (deb package)

Post by bigpup »

Microsoft Edge browser for Linux

Download web site:
https://www.microsoft.com/en-us/edge/do ... orm=MM145U

Below the nice pictures for the other OS's it has:
Microsoft Edge is now available on Linux.
Click on Download for Linux (.deb) to get the deb package of it.

After installing it by clicking on the deb package that downloaded.

To run it from the menu entry in menu ->Internet

It requires running with command: --no-sandbox added to the exec command.

Navigate to /usr/share/applications
Open the microsoft edge.desktop file in a text editor.
Add --no-sandbox to the exec line so it looks like this:

Code: Select all

Exec=/usr/bin/microsoft-edge-stable %U --no-sandbox

save the change.

Now it should run by clicking on it's menu entry.

I just did this, so I have no info on how to use it or do anything with it.

I guess we will all learn together!

from help: Microsoft Edge
Version 120.0.2210.91 (Official build) (64-bit)
This browser is made possible by the Chromium open source project and other open source software.

Microsoft Edge

© 2023 Microsoft Corporation. All rights reserved.

Working for me installed in Bookworm Pup64 10.0.3
.
.

Screenshot(10).jpg
Screenshot(10).jpg (130.58 KiB) Viewed 2712 times
Last edited by bigpup on Sat Dec 23, 2023 5:20 am, edited 1 time in total.
Reason: added more info to subject of topic

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
mikewalsh
Moderator
Posts: 6163
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 795 times
Been thanked: 1983 times

Re: Microsoft Edge browser Linux version

Post by mikewalsh »

@bigpup :-

Erm; I hate to say it, Bigs, but.....you're a wee bit "late to the party" on this one. (Around 3 years too late, I believe...) :shock:

viewtopic.php?t=1150

Mind you, it's only in the last year or so it's finally started supporting Nvidia cards correctly under Linux. This is a function of some of MyCrudSoft's "custom" libraries they've bundled in with this; specifically written for some of Edge's 'special' (!!) features. These didn't play nice with the kernel for a long time....and the first two years-worth of Linux releases were strictly alpha/beta development builds, anyway.

It's probably fair to say it's been 'usable' as a daily browser for about 15 months, at this point. Do make sure you pay attention to the settings, and watch 'em like a hawk. M$ have a nasty habit of making the 'disable' for many functions 'enable' a bunch of other stuff you don't want, either! It's nearly as bad as the Yandex browser.......except instead of 'phoning home' to the KGB, you're 'phoning home' to the NSA instead..... :D

You really need to check the settings every time it updates.

(shrug...)

Mike. ;)

User avatar
rockedge
Site Admin
Posts: 6551
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2627 times
Contact:

Re: Microsoft Edge browser Linux version

Post by rockedge »

Tip:

To preserve the original .desktop file:
Copy /usr/share/applications/microsoft-edge.desktop to /root/.local/share/applications/microsoft-edge.desktop

In each section of the .desktop file modify the line with Exec= statements in /root/.local/share/applications/microsoft-edge.desktop with:

Code: Select all

Exec=/usr/bin/microsoft-edge-stable --no-sandbox

All .desktop files in /root/.local/share/applications/ take precedence and will not be over-written during any updates.

User avatar
bigpup
Moderator
Posts: 6999
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

Re: Microsoft Edge browser Linux version

Post by bigpup »

@mikewalsh

Well, nothing says we cannot have a topic for the one you can download from Microsoft and a topic for your portable version.

They are actually two different packages.
This one is a deb package.

I am sure someone is going to go to the Microsoft web site for Edge and try to do what I report in this topic.

With your post having a link to the other topic.

Seems all bases are covered.

Thanks for the info on using the settings!

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

MartilloG
Posts: 3
Joined: Wed Jan 31, 2024 11:57 am
Been thanked: 2 times

Re: Microsoft Edge browser Linux version (deb package)

Post by MartilloG »

Ese código lo usé por mucho tiempo, pero ya no funciona esa solución como antes.

:thumbdown: Code: Select all :!:

Code: Select all

Exec=/usr/bin/microsoft-edge-stable --no-sandbox

:thumbup: Las más adecuadas y sin errores, es desde una terminal escribir cualquiera de estas:

Code: Select all

run-as-spot /opt/microsoft/msedge/microsoft-edge

Code: Select all

run-as-spot /usr/bin/microsoft-edge-stable

Code: Select all

run-as-spot /usr/bin/microsoft-edge

Saludos

MartilloG
Posts: 3
Joined: Wed Jan 31, 2024 11:57 am
Been thanked: 2 times

Re: Microsoft Edge browser Linux version (deb package)

Post by MartilloG »

Yo acabo de hacer esto. En la ruta:
/usr/share/applications

Crear un archivo nuevo, o si gustan modificar el archivo que ya existe para edge ;)

Code: Select all

[Desktop Entry]
Version=1.0
Name=Microsoft Edge 01
GenericName=Web Browser 01
Comment=Access the Internet
Exec=run-as-spot /usr/bin/microsoft-edge-stable
StartupNotify=true
Terminal=false
Icon=microsoft-edge.png
Type=Application
Categories=WebBrowser

:thumbup2:

User avatar
trawglodyte
Posts: 257
Joined: Mon Dec 11, 2023 11:32 am
Location: my cave
Has thanked: 234 times
Been thanked: 77 times

Re: Microsoft Edge browser Linux version (deb package)

Post by trawglodyte »

MartilloG wrote: Wed Jan 31, 2024 12:03 pm

:thumbup: Las más adecuadas y sin errores, es desde una terminal escribir cualquiera de estas:

Code: Select all

Exec=run-as-spot /usr/bin/microsoft-edge-stable
Exec=/usr/bin/microsoft-edge-stable --no-sandbox

I've tested both "run-as-spot" and "--no-sandbox" with Brave browser and Vivaldi. Good to know Microsoft Edge can be hacked this way too. Pros and cons to either method. It seems to me the browser "complains" a bit with --no-sandbox, but the benefit is you can use it with your root account and have instant access to folders and files for upload/download at /root/. @MartilloG is correct that "run-as-spot" seems more error-free, less glitchy. But I went to upload a file this way and realized of course I can't reach my files at /root/ straight-away, (I'm sure people who do run-as-spot have ways to address this). But, yah, as far as browsers that don't launch when you install as root user, seems either hack will make them launch and either is good depending on what you want.

¡Saludos!

low-bar learner

MartilloG
Posts: 3
Joined: Wed Jan 31, 2024 11:57 am
Been thanked: 2 times

Re: Microsoft Edge browser Linux version (deb package)

Post by MartilloG »

Exec=/usr/bin/microsoft-edge-stable --no-sandbox

he intentado en diferentes instalaciones y Edge ya no inicia con ese comando, aunque anteriormente si iniciaba. Por eso recomendé el código nuevo ;)

cumaron
Posts: 15
Joined: Fri Jun 07, 2024 3:13 pm
Has thanked: 5 times

Re: Microsoft Edge browser Linux version (deb package)

Post by cumaron »

Hello, I added the '--no-sandbox' to every Exec line in the .desktop file, restarted the XWindow system, but it did not work. There was simply no reaction when starting Microsoft Edge from the menu.

When I tried the terminal window, it started ok. What is the problem?
Many thanks

FossaPup64 version 9.6, released Mar 2023

User avatar
rockedge
Site Admin
Posts: 6551
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2627 times
Contact:

Re: Microsoft Edge browser Linux version (deb package)

Post by rockedge »

@cumaron Copy the /usr/share/applications/microsoft-edge.desktop to /root/.local/share/applications/microsoft-edge.desktop

Open /root/.local/share/applications/microsoft-edge.desktop with geany and make the change here ->

Code: Select all

Exec=/usr/bin/microsoft-edge-stable --no-sandbox %U

and save it. Now run fixmenus from a terminal or from the menu. This should work if the .deb installed correctly

If it does not, make sure the symlink to the binary is in /usr/bin

sonny
Posts: 725
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 486 times
Been thanked: 173 times

Re: Microsoft Edge browser Linux version (deb package)

Post by sonny »

rockedge wrote: Fri Jun 07, 2024 6:32 pm

@cumaron Copy the /usr/share/microsoft-edge.desktop to /root/.local/share/applications/microsoft-edge.desktop

Open /root/.local/share/applications/microsoft-edge.desktop with geany and make the change here ->

Code: Select all

Exec=/usr/bin/microsoft-edge-stable --no-sandbox %U

and save it. Now run fixmenus from a terminal or from the menu. This should work if the .deb installed correctly

If it does not, make sure the symlink to the binary is in /usr/bin

Not to this one?

Code: Select all

/home/spot/.local/share
User avatar
rockedge
Site Admin
Posts: 6551
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2627 times
Contact:

Re: Microsoft Edge browser Linux version (deb package)

Post by rockedge »

@sonny yes, also in /home/spot/.local/share/applications but with the --no-sandbox parameter omitted.

cumaron
Posts: 15
Joined: Fri Jun 07, 2024 3:13 pm
Has thanked: 5 times

Re: Microsoft Edge browser Linux version (deb package)

Post by cumaron »

Thank you!! It works now.

AQUAR
Posts: 46
Joined: Fri Jun 25, 2021 12:09 pm
Has thanked: 26 times
Been thanked: 10 times

Re: Microsoft Edge browser Linux version (deb package)

Post by AQUAR »

I downloaded the latest .deb being Version 127.0.2651.86 (Official build) (64-bit).
The last exec line in the .desktop file has an extra inprivate flag see below (I added the --no-sandbox)
Viz Exec=/usr/bin/microsoft-edge-stable --inprivate --no-sandbox

Is the inprivate flag a new one?
Also Edge complained that --no-sandbox is an unsupported flag - is it still needed?

Despite the questions, edge seems to run fine on fossapup64 (but I never really used it before so time will tell).

Hopefully it won't freeze like firefox whilst navigating a particular banks web site.

What is the %U for that is shown sometimes after the --no-sandbox flag?

The other option to run as spot also worked for me (and without the --no-sandbox flag edge doesn't complain about unsupported flags).

Running the script in the opt directory (just following sym links here) tells you it can't run without the --no-sandbox option - find it interesting in learning these bit and pieces.

User avatar
rockedge
Site Admin
Posts: 6551
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2627 times
Contact:

Re: Microsoft Edge browser Linux version (deb package)

Post by rockedge »

What is the %U for that is shown sometimes after the --no-sandbox flag?

It's a parameter for the Exec key in .desktop files (defined in the Desktop Entry Specification) that describes how arguments to the program (from the file manager/program launcher, e.g. multiple selected files) should be handled:

  • %u A single URL. Local files may either be passed as file: URLs or as file path.

  • %U A list of URLs. Each URL is passed as a separate argument to the executable program. Local files may either be passed as file: URLs or as file path.

So, e.g., /usr/share/applications/gedit.desktop contains:

Exec=gedit %U

which means that arguments to gedit will be treated as a list of URLs (or local files).

Post Reply

Return to “Browsers and Internet”