Login Page - Create Account

Support Board


Date/Time: Thu, 10 Oct 2024 01:00:37 +0000



[User Discussion] - Linux

View Count: 80032

[2023-07-09 12:02:07]
VLiviu - Posts: 223
Mint here :)
imageSC_mint.png / V - Attached On 2023-07-09 12:02:02 UTC - Size: 512.72 KB - 210 views
[2023-07-09 12:42:58]
VLiviu - Posts: 223
Actually works nice , in vmware now but I think worth a try removing my win11 in favor of Linux Mint
imageNASDAQ.png / V - Attached On 2023-07-09 12:42:54 UTC - Size: 517.15 KB - 184 views
[2023-07-16 11:29:18]
User921987 - Posts: 234
I am using custom studies which I have compiled by the following script:


!/bin/bash
name=ms
dll=${name}_64.dll
old_dll="headers/../Data/${dll}"

x86_64-w64-mingw32-c++ -D _WINDOWS -D _USRDLL -D _WINDLL -w -m64 -march=native -std=c++17 -static -shared -I ./headers "${name}.cpp" -o "${dll}"

if [[ ! -z $1 ]]; then
./setdll "${old_dll}" 0
sleep 2.0
cp "${dll}" "${old_dll}"
./setdll "${old_dll}" 1
fi

The generated DLL code works fine, except for some reason the two functions scsf_Mid() and scsf_VWC() are not found (see https://imgur.com/nRLaKB2.png).

I purposely didn't publish the code because I think the problem is in the compilation script. The code works fine if I compile it by SierraChart's Remote Compile function OR in native Windows 10.

Any idea what's wrong with my script or should I use another compiler ?
Date Time Of Last Edit: 2023-07-16 13:41:33
[2023-07-18 14:38:36]
VLiviu - Posts: 223
Anyone who uses wine on mint linux and have network issues, I've found this:


10.3.4 Failed to use ICMP (network ping), this requires special permissions
On *NIX systems ICMP ping requires use of raw sockets, which is limited to super user (root) only. And running Wine as root is a bad idea. Fortunately newer versions of Linux allow granular permission control to grant only required permissions to specified files.

To allow Wine opening raw sockets run this command:

sudo setcap cap_net_raw+epi /usr/bin/wine-preloader
Note: This works with default binary Wine install only on most distros. WineHQ packages install Wine to /opt/wine-stable, /opt/wine-devel/, or /opt/wine-staging. Self-compiled Wine will be located under /usr/local/bin. The 64-Bit name is wine64-preloader. Third party Wine wrappers (such as PlayOnLinux) might keep Wine binary in other places. You will need to rerun the command after updating Wine.

To remove the permissions use:

sudo setcap -r /usr/bin/wine-preloader
Tango-style info icon.svg Beginning with Wine 5.7, the WineHQ Debian and Ubuntu packages have an optional debconf setting to enable CAP_NET_RAW to allow applications that need to send and receive raw IP packets to do so. This is disabled by default because it carries a potential security risk, and the vast majority of applications do not need that capability. Users of applications that do need it can enable CAP_NET_RAW after installing Wine by running

dpkg-reconfigure wine-<branch>-amd64 wine-<branch> wine-<branch>-i386
and answering yes to the three questions. (Substitute devel, staging, or stable for <branch> in the above command.)

Tried but no luck, I cant run ping in wine:


liviu  bobdenaut  ~  wine cmd
Microsoft Windows 6.1.7601

Z:\home\liviu>ping www.google.com
Pinging www.google.com [142.250.180.196] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 142.250.180.196
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)

Z:\home\liviu>


Help anyone?
Thanks
[2023-07-19 12:39:53]
ertrader - Posts: 670
I'm not having network issues but did test pinging under wine. You can see where your version of wine is installed by typing the following at the command line:

which wine

Below is the command that I used based on the FAQ:
https://wiki.winehq.org/FAQ#Failed_to_use_ICMP_.28network_ping.29.2C_this_requires_special_permissions

sudo setcap cap_net_raw+epi /opt/wine-devel/bin/wine64-preloader

Then:
wine ping www.google.com

I tested both from wine and outside of wine to make sure it was truly working.
Date Time Of Last Edit: 2023-07-19 12:45:09
[2023-07-19 12:42:19]
ertrader - Posts: 670
@User921987 I only use SC's remote compiler so I'm unable to help.
[2023-07-19 20:35:18]
VLiviu - Posts: 223
mine show something else:

liviu  bobdenaut  ~  which wine
/usr/bin/wine


so cant run the command
also, I run SC with bottles...
how did u install wine-devel?
[2023-07-19 20:53:47]
VLiviu - Posts: 223
and btw, if you ask me, there is nothing wrong with wine/bottles.
in the attached, I run speedtest from bottles and the DL/UL speeds are just fine.
maybe it has to do with SC
imageScreenshot from 2023-07-19 16-48-07.png / V - Attached On 2023-07-19 20:53:43 UTC - Size: 718.82 KB - 157 views
[2023-07-19 21:30:50]
ertrader - Posts: 670
so then the command would be:

sudo setcap cap_net_raw+epi /usr/bin/wine64-preloader

Good to hear wine/bottles is working well... if it's working great, stay with it...the speedtest performance you show is really good! It's a personal choice for me to use WineHQ's default wine implementation. I simply installed it from the graphical software manager.
Date Time Of Last Edit: 2023-07-19 21:31:18
[2023-07-19 23:17:37]
VLiviu - Posts: 223
well, no, it doesnt work! in my attached pic in the left side, ping from wine doesnt work BUT running "speed test" from bottles shows full speed.
SC doesnt work for me using wine/bottles so yea, back to windows.
[2023-07-20 13:14:40]
ertrader - Posts: 670
Odd..not sure what would be the cause, SC under wine/Mint Linux is what I've been using for a few years now. Is it possibly a firewall issue? I've not had any issues with it running but maybe.
Date Time Of Last Edit: 2023-07-20 13:16:14
[2023-07-20 13:45:49]
VLiviu - Posts: 223
Nope, its OFF. Not using it.
SC connects, the bar is green but the download is soooo sloooow.
[2023-07-20 14:40:45]
ticinotrader - Posts: 388
@VLiviu

SC connects, the bar is green but the download is soooo sloooow.

The issue could be the same as what is discussed below:

CME group symbols are not updating in realtime
Slow data with v2524

It is related to Wine and the momentary fix is to roll back to an earlier SC version until a solution is provided by the SC team.
[2023-07-20 14:45:01]
ticinotrader - Posts: 388
@VLiviu

how did u install wine-devel?

For Mint the steps are here:
https://wiki.winehq.org/Ubuntu

On Arch, the package is in the multilib repo:
https://archlinux.org/packages/multilib/x86_64/wine/
[2023-07-20 14:47:22]
VLiviu - Posts: 223
appreciate it
[2023-07-22 11:15:20]
VLiviu - Posts: 223
@ticinotrader thanks, reinstalled the wine from scratch and now all is working just fine.
[2023-07-22 18:00:33]
User509533 - Posts: 49
<<<I have moved the following discussion from another thread>>>
@UnixManiac @VLiviu or others Can you please help with the following?


1) I have been using SC over Wine/Mint Linux for over a year. Every time I open my chart-book, many windows/charts open as blank/dark. To solve the problem, I
have to minimize those windows & select/non-minimize them to make them not blank. Have you seen similar issues? Do you have a better solution?

2) On the trading panel, sometimes, I cannot edit/delete the limit price. (maybe not Linux/Mint/wine specific).

3) A suggestion: Can we just modify the networking stack of Wine to make it faster for SC (as fast as the SierraChart_ARM64)?


Reply from @VLiviu (from the previous thread)

"sorry, never seen something like that before but I would do backup of all your charts (only charts) and settings.
Then I would get a clean zip file from sierrachart , move the charts and the settings from backup and run the exe from that clean folder.

Just an idea.
I've been testing mint, arch and Debian."
[2023-07-22 21:35:43]
Ed C. - Posts: 117
@ticinotrader:

For Mint the steps are here:
https://wiki.winehq.org/Ubuntu

On Arch, the package is in the multilib repo:
https://archlinux.org/packages/multilib/x86_64/wine/

Is there a recent link to the complete install process? I'm going to Iceland in September, and I'd rather trade from a Linux laptop rather than a Windows one - since Micro$oft has completely borked Windows 11 with the recent set of patches, I don't trust them to not do it again, especially on the eve of my trip.
[2023-07-24 01:24:36]
User509533 - Posts: 49
Just to let you guys know that all the issues (see above) with running Sierra on Linux Mint/Wine are gone as I have removed the limit on the memory under System Settings >> General. Not sure why Mint Linux defaulted to any low limit for a system with 128 GB memory.
imageSierra-Order-entry-slow.png / V - Attached On 2023-07-24 01:22:42 UTC - Size: 21.93 KB - 145 views
Attachment Deleted.
[2023-07-24 06:03:47]
VLiviu - Posts: 223
Not sure it has to do with our slow speed download.

The limit is for the desktop manager
Date Time Of Last Edit: 2023-07-24 06:05:05
[2023-07-24 06:49:11]
ticinotrader - Posts: 388
@Ed C.

Is there a recent link to the complete install process?

If you mean configuring Linux - you can surely find tutorials on Youtube for installing various distros.

For SC/Linux setup: I created a video in the past (installing on Debian), but have not updated it since years.

A more recent, but still old, collection of great tutorials are provided by Unixmaniac here:
https://www.youtube.com/@unixmaniac

Hope this helps.
[2023-07-24 07:09:48]
VLiviu - Posts: 223
the graphical installer is pretty straightforward, really.

I recommend Ubuntu/Mint/Debian.

Right now I am running Mint but I am thinking to move to Debian 12 which has kernel 6.x and I already have teste kernel 6.4.
Debian is also most stable .
[2023-07-24 08:22:16]
VLiviu - Posts: 223
@SierraChart , do you think that a linux kernel patched with "real time capabilities" is a plus to make SC more responsive?

Thanks!
Date Time Of Last Edit: 2023-07-24 08:22:30
[2023-07-25 23:59:11]
User509533 - Posts: 49
Not sure if I did something wrong, I had hard time making wine work on Ubuntu. It was easy on Mint Linux. Mint UI/UX is also better out of the box, IMO.
[2023-07-28 13:28:56]
VLiviu - Posts: 223
Guys, is SC working in linux+wine for anyone here? My charts download are bad, very bad.
@ticinotrader is it working for ya?

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account