SMath in Linux

SMath in Linux - smath can only be started as sudo - Messaggi

#1 Pubblicato: 25/01/2022 11:56:46
leopold

leopold

0 apprezzamenti in 12 post.

Gruppo: User

Tried it in Ubuntu 20.04 and Manjaro as well: smath can only be started by doing it as root via executing as sudo? Any hints how to fix it?
#2 Pubblicato: 25/01/2022 12:29:55
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Wrote

Tried it in Ubuntu 20.04 and Manjaro as well: smath can only be started by doing it as root via executing as sudo? Any hints how to fix it?


Switch to another distro (swh)
Beside the joke, all ubuntu or debian based distros have this problem.
This is not SMath's bug, it is caused by not properly updated lts mono libraries.
And this bug is not caused by user, their repositories have this problem.
Contrary to popular belief, LTS releases creates more issues sometimes.

Arch, Fedora, Void, Solus, etc don't need root to run.

Regards
#3 Pubblicato: 25/01/2022 13:08:56
leopold

leopold

0 apprezzamenti in 12 post.

Gruppo: User

Thanks. But Manjaro is arch-based.

regards

P.S.: My initial post was no complaint about smath's behaviour itself. It was a simple question, if anybody knows a solution - maybe by fixing some os-specific libraries.
#4 Pubblicato: 25/01/2022 13:13:05
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Wrote

Thanks. But Manjaro is arch-based.regards


Yes, but it doesn't use arch repositories.
I used to know it updates from their own repos.
If this is not changed recently.

Wrote

P.S.: My initial post was no complaint about smath's behaviour itself. It was a simple question, if anybody knows a solution - maybe by fixing some os-specific libraries.


Try to update Mono libraries, from another source or from arch repository.
Maybe this would help to make mono work as it should be, maybe not.
I will download latest Manjaro XFCE iso and try to pinpoint a solution for your issue.

Regards
#5 Pubblicato: 25/01/2022 13:28:42
leopold

leopold

0 apprezzamenti in 12 post.

Gruppo: User

Wrote

Wrote

Thanks. But Manjaro is arch-based.regards


Yes, but it doesn't use arch repositories.
I used to know it updates from their own repos.
If this is not changed recently.

Wrote

P.S.: My initial post was no complaint about smath's behaviour itself. It was a simple question, if anybody knows a solution - maybe by fixing some os-specific libraries.


Try to update Mono libraries, from another source or from arch repository.
Maybe this would help to make mono work as it should be, maybe not.
I will download latest Manjaro XFCE iso and try to pinpoint a solution for your issue.

Regards



Dear overlord, I would be much more glad about a solution fpr Ubuntu. Because Manjaro runs as virtual machine. And until a week ago smath worked in there.
#6 Pubblicato: 25/01/2022 15:30:52
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Manjaro livecd can run SMath without sudo when started on hardware.
I just installed mono with sudo pacman -Sy mono, nothing more done.
No need to be root for Manjaro when PC started from livecd installed on usb.

I will burn Ubuntu 20.04 iso to usb and try with it now.
I shall post how it went after I try it.

Click to Enlarge
1 utenti hanno apprezzato questo post
sergio 27/01/2022 05:56:00
#7 Pubblicato: 25/01/2022 17:45:20
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

I tried Ubuntu 20.04 with qemu.
Followed instructions on mono website.
Installed mono, tried to run SMath.

At first it run perfectly, I installed some plugins too.
Second time, it didn't. Gave the _XRead error.
I didn't understand what happened.
Then tried to re-run, same thing.

After entering ./smathstudio_desktop_mono couple of times, it run again.
I did all this process without using sudo.

SMath apparently can run without sudo, but mono gives error most time.
I will try to dig further what is going on.

Regards

Click to Enlarge
3 utenti hanno apprezzato questo post
Andrey Ivashov 25/01/2022 20:02:00, leopold 26/01/2022 02:16:00, sergio 25/01/2022 17:47:00
#8 Pubblicato: 26/01/2022 10:35:43
leopold

leopold

0 apprezzamenti in 12 post.

Gruppo: User

Dear overloard,

a solution would be great! Thanks for your investigation and work! If I can support you in any way - let me know!

greetings Leopold
#9 Pubblicato: 06/03/2022 11:37:08
Paulo Malta

Paulo Malta

0 apprezzamenti in 2 post.

Gruppo: User

I use Smath in Win10 without any problem but I am migrating to Linux
I am running Linux Mint 20.3 with mono-complete version 6.12.0.122-0xamain1+ubuntu2004b1
When I try to open SMathStudio_Desktop.exe with Mono Runtime (right mouse button) it crashes during loading, when I execute it as Administrator, it opens an extra window, Terminal (sudo) but runs.
I already tried to remove and intall again Smath and Mono but remain the same
#10 Pubblicato: 06/03/2022 19:22:53
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Wrote

I use Smath in Win10 without any problem but I am migrating to Linux
I am running Linux Mint 20.3 with mono-complete version 6.12.0.122-0xamain1+ubuntu2004b1
When I try to open SMathStudio_Desktop.exe with Mono Runtime (right mouse button) it crashes during loading, when I execute it as Administrator, it opens an extra window, Terminal (sudo) but runs.
I already tried to remove and intall again Smath and Mono but remain the same


This can occur on some other non-smath mono programs too.
I found this crash error on SMath can be overcome with sudo.
And I have read the solution about a different software, not smath.

Mint is Ubuntu based, Ubuntu is a Debian based linux distro as you would know.
All Debian based including pure Debian (both stable and testing) has this bug.
I know because I have tried majority of them to find how to run SMath on a Debian-based distro.
And I have failed, partially.

It runs without sudo, as I have mentioned in post#7.
You have to try to run it relentlessly if it fails to run.
Sometimes after 5-10 try it runs, but sometimes 20-30 trial fails.
Most of time it gives error, _xread error to be specific.
And this behavior is not caused by smath itself.
Debug says it is caused by a broken X extension library.
Errors are mostly on libc.so and libpthread.so.
Which are an essential package of system, libc6.
Maybe recompiling them from source code could corrects the bug.
But probably it will break the whole system.
So I wouldn't recommend it.

What I would humbly suggest is to try another distro family.
Arch or Manjaro, Fedora, Solus, Void can be candidates.

Regards
#11 Pubblicato: 15/06/2022 15:24:45
Int16

Int16

0 apprezzamenti in 9 post.

Gruppo: User

https://github.com/KSP-CKAN/CKAN/pull/2625/files
the same problem, maybe
#12 Pubblicato: 30/11/2023 03:17:09
usamakhan

usamakhan

7 apprezzamenti in 97 post.

Gruppo: User

Distributor ID: Pop
Description: Pop!_OS 22.04 LTS
Release: 22.04
Codename: jammy


I got this error while running AppImage

Error: "unable to find gdb or lldb"

I installed gdb & lsb but it still didnt work beyond start screen

Mostra spoiler


#13 Pubblicato: 30/11/2023 03:21:33
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Try to run with sudo.
If it runs, it is the mono runtime bug of debian based distros.
#14 Pubblicato: 30/11/2023 09:51:42
usamakhan

usamakhan

7 apprezzamenti in 97 post.

Gruppo: User

It runs in sudo mod & I installed some plugins. After I ran it one of the plugin fail to load. Now i don't know where APPImage (if run in sudo) stores data?

Mostra spoiler

#15 Pubblicato: 01/12/2023 00:37:19
usamakhan

usamakhan

7 apprezzamenti in 97 post.

Gruppo: User

I cannot find where APPIMAGE when ran in sudo store persistent settings so I followed this from APPIMAGE devs

Create x2 folders & 1 .sh file in the same location as APPIMAGE [these will store all downloaded plugins / settings which are persistent]
SMathStudioDesktop.1_0_8348.x86_64.ubuntu-22_04.glibc2.35.AppImage.config
SMathStudioDesktop.1_0_8348.x86_64.ubuntu-22_04.glibc2.35.AppImage.home
launcher.sh

.sh file contents

sh -c "zenity --password --title=\"sudo password prompt\" --timeout=10 2>/dev/null | sudo -S -H ~/Binaries/SMathStudioDesktop.1_0_8348.x86_64.ubuntu-22_04.glibc2.35.AppImage"


Create .desktop file with following contents. Place this is ~/.local/share/applications

[Desktop Entry]
Name=SMath
Comment=symbolic and numeric calculations
Exec=/home/ukhan/Binaries/Smath_launcher.sh
Icon=/home/ukhan/Binaries/smath.png
Type=Application
Terminal=false
Categories=Education;Math;Science;
Keywords=maths;cas;algebra;education;engineering;physics;
#16 Pubblicato: 01/12/2023 00:59:49
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Plugins and settings are stored in $HOME/.config/SMath
#17 Pubblicato: 02/12/2023 09:16:02
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Wrote

I cannot find where APPIMAGE when ran in sudo store persistent settings


Since you ran smath with sudo, setting are stored in root home folder.
It should be in /root/.config/SMath for most linux distributions.
#18 Pubblicato: 14/12/2023 00:39:01
grelkin2

grelkin2

14 apprezzamenti in 67 post.

Gruppo: User

Wrote

Tried it in Ubuntu 20.04 and Manjaro as well: smath can only be started by doing it as root via executing as sudo? Any hints how to fix it?


use
export MONO_WINFORMS_XIM_STYLE=disabled;./SMathStudioDesktop.1_0_8348.x86_64.ubuntu-22_04.glibc2.35.AppImage
1 utenti hanno apprezzato questo post
usamakhan 15/12/2023 04:56:00
#19 Pubblicato: 15/12/2023 04:57:03
usamakhan

usamakhan

7 apprezzamenti in 97 post.

Gruppo: User

There are some font missing on Linux system. Also is it possible to increase the side pane size. Its very small for my eyesight
smath.jpg
#20 Pubblicato: 15/12/2023 08:23:04
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Wrote

There are some font missing on Linux system. Also is it possible to increase the side pane size. Its very small for my eyesight


You do need Courier New font, Microsoft version.
It can be found under this post.

Regards

https://en.smath.com/forum/yaf_postsm66281_Missing-symbols-on-Ubuntu-20-mono.aspx#post66281
  • Nuovi post
  • Nessun nuovo post