SMath in Linux

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

#1 Posted: 1/25/2022 11:56:46 AM
leopold

leopold

0 likes in 12 posts.

Group: 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 Posted: 1/25/2022 12:29:55 PM
overlord

overlord

547 likes in 1330 posts.

Group: 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 Posted: 1/25/2022 1:08:56 PM
leopold

leopold

0 likes in 12 posts.

Group: 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 Posted: 1/25/2022 1:13:05 PM
overlord

overlord

547 likes in 1330 posts.

Group: 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 Posted: 1/25/2022 1:28:42 PM
leopold

leopold

0 likes in 12 posts.

Group: 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 Posted: 1/25/2022 3:30:52 PM
overlord

overlord

547 likes in 1330 posts.

Group: 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 users liked this post
sergio 1/27/2022 5:56:00 AM
#7 Posted: 1/25/2022 5:45:20 PM
overlord

overlord

547 likes in 1330 posts.

Group: 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 users liked this post
Andrey Ivashov 1/25/2022 8:02:00 PM, leopold 1/26/2022 2:16:00 AM, sergio 1/25/2022 5:47:00 PM
#8 Posted: 1/26/2022 10:35:43 AM
leopold

leopold

0 likes in 12 posts.

Group: 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 Posted: 3/6/2022 11:37:08 AM
Paulo Malta

Paulo Malta

0 likes in 2 posts.

Group: 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 Posted: 3/6/2022 7:22:53 PM
overlord

overlord

547 likes in 1330 posts.

Group: 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 Posted: 6/15/2022 3:24:45 PM
Int16

Int16

0 likes in 9 posts.

Group: User

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

usamakhan

3 likes in 75 posts.

Group: 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

Show Spoiler


#13 Posted: 11/30/2023 3:21:33 AM
overlord

overlord

547 likes in 1330 posts.

Group: Moderator

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

usamakhan

3 likes in 75 posts.

Group: 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?

Show Spoiler

#15 Posted: 12/1/2023 12:37:19 AM
usamakhan

usamakhan

3 likes in 75 posts.

Group: 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 Posted: 12/1/2023 12:59:49 AM
overlord

overlord

547 likes in 1330 posts.

Group: Moderator

Plugins and settings are stored in $HOME/.config/SMath
#17 Posted: 12/2/2023 9:16:02 AM
overlord

overlord

547 likes in 1330 posts.

Group: 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 Posted: 12/14/2023 12:39:01 AM
grelkin2

grelkin2

14 likes in 65 posts.

Group: 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 users liked this post
usamakhan 12/15/2023 4:56:00 AM
#19 Posted: 12/15/2023 4:57:03 AM
usamakhan

usamakhan

3 likes in 75 posts.

Group: 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 Posted: 12/15/2023 8:23:04 AM
overlord

overlord

547 likes in 1330 posts.

Group: 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
  • New Posts New Posts
  • No New Posts No New Posts