SMath in Linux

SMath in Linux - smath can only be started as sudo - 消息

#1 已发布: 2022/1/25 11:56:46
leopold

leopold

0个赞,共12个帖子。

组: 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 已发布: 2022/1/25 12:29:55
overlord

overlord

600个赞,共1,381个帖子。

组: 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 已发布: 2022/1/25 13:08:56
leopold

leopold

0个赞,共12个帖子。

组: 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 已发布: 2022/1/25 13:13:05
overlord

overlord

600个赞,共1,381个帖子。

组: 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 已发布: 2022/1/25 13:28:42
leopold

leopold

0个赞,共12个帖子。

组: 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 已发布: 2022/1/25 15:30:52
overlord

overlord

600个赞,共1,381个帖子。

组: 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位用户喜欢此帖子
sergio 2022/1/27 05:56:00
#7 已发布: 2022/1/25 17:45:20
overlord

overlord

600个赞,共1,381个帖子。

组: 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位用户喜欢此帖子
Andrey Ivashov 2022/1/25 20:02:00, leopold 2022/1/26 02:16:00, sergio 2022/1/25 17:47:00
#8 已发布: 2022/1/26 10:35:43
leopold

leopold

0个赞,共12个帖子。

组: 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 已发布: 2022/3/6 11:37:08
Paulo Malta

Paulo Malta

0个赞,共2个帖子。

组: 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 已发布: 2022/3/6 19:22:53
overlord

overlord

600个赞,共1,381个帖子。

组: 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 已发布: 2022/6/15 15:24:45
Int16

Int16

0个赞,共9个帖子。

组: User

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

usamakhan

7个赞,共98个帖子。

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

显示剧透


#13 已发布: 2023/11/30 03:21:33
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

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

usamakhan

7个赞,共98个帖子。

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

显示剧透

#15 已发布: 2023/12/1 00:37:19
usamakhan

usamakhan

7个赞,共98个帖子。

组: 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 已发布: 2023/12/1 00:59:49
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

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

overlord

600个赞,共1,381个帖子。

组: 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 已发布: 2023/12/14 00:39:01
grelkin2

grelkin2

14个赞,共67个帖子。

组: 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位用户喜欢此帖子
usamakhan 2023/12/15 04:56:00
#19 已发布: 2023/12/15 04:57:03
usamakhan

usamakhan

7个赞,共98个帖子。

组: 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 已发布: 2023/12/15 08:23:04
overlord

overlord

600个赞,共1,381个帖子。

组: 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
  • 有新帖
  • 无新帖