【阳光飞狐__与财富同行】
标题:
如何在Linux 执行飞狐 (foxtrader)
[打印本页]
作者:
ycng
时间:
2019-8-11 15:56
标题:
如何在Linux 执行飞狐 (foxtrader)
以
win10
下载
linuxmint 19.2 cinnamon (
本年
7
月发布
),
烧录成安装光碟
Installinglinux mint Cinnamon 19.2 (
选简体中文
)
Boot
光碟后
,
开始安装前先连结网路
== = = = = = =
SetupDialer :
$sudo pppoeconf
deleteusername and key-in xx
电信帐号
key-inpass : *********
== = = = = = =
安装好第一次重新开机载入
mintCinnamon 19.2
后
,
先连结网路
(
第一次载入只做一次
)
SetupDialer :
$sudo pppoeconf
deleteusername and key-in xx
电信帐号
key-inpass : *********
== = = = = = =
更新
DoUpdate and upgrade :
$sudo apt update
$sudo apt upgrade
== = = =
installchinese language:
安装中文语言输入法
install
输入法
-- >
选单
-- >
输入法
-- >
安装
(
通常用
ibus
输入法
)
-- - - - - - - - - - - - -
设定下列环境配置
:
显示器
(
二台
lcd
上下合并
)
莹幕保护程式
(neverturn on screensaver, never lock)
字型选择
A(choose 11 for all fonts or use “ctrl + -” to change font size )
面板设定
(changepanel size)
系统设定
-- - >
面板小程式
-- - >
视窗列表
-- - > ‘+’ key
加入
/ ‘restore’ key
恢复
/ ‘-’ key
移除
== = = = = = = =
安装设定中文字形
$sudo mkdir /usr/share/fonts/fireflysung
下载并复制字形档至
/usr/share/fonts/fireflysung
Copy/Sp30_A/font/bkai00mp.ttf to //usr/share/fonts/fireflysung
Copy/Sp30_A/font/fireflysung.ttf to //usr/share/fonts/fireflysung
Copy/Sp30_A/font/uming.ttf to //usr/share/fonts/fireflysung
Copy/Sp30_A/font/ukai.ttf to //usr/share/fonts/fireflysung
($nemo)
($sudo nemo) (
复制时用
sudonemo
升级权限
)
档案总管
- - >
用
mouseright click
任一目录
-- >
以根帐号开启
,
再浏览你所要的目录
-- -
打开
linuxterminal or ctrl + T
$cd /usr/share/fonts/fireflysung
$sudo chmod 644 bkai00mp.ttf
$sudo chmod 644 fireflysung.ttf
$sudo chmod 644 uming.ttf
$sudo chmod 644 ukai.ttf
$sudo mkfontscale
$sudo mkfontdir
$sudo fc-cache /usr/share/fonts/fireflysung
安装
wine4.1 (
执行
windows
程式
)
$ sudo dpkg --add-architecture i386
$ wget -nc
https://dl.winehq.org/wine-builds/winehq.key
&& sudo apt-key add winehq.key
$ sudo apt-add-repository 'deb
https://dl.winehq.org/wine-builds/ubuntu/
bionic main'
$ sudo apt-get update
$ sudo apt-get install --install-recommends winehq-stable
== = = = = = = = =
(
安
装
64bit wine
执
行容器
)
$ export WINEARCH=win64 && export WINEPREFIX="/home/cheng888/.wine464"
$ winecfg
$wine64 uninstaller
(
解除安
装
,
必要
时
才做
)
安
装
一些必要的
dll,
例如在台股要看元大的
yeswin
盘
中看
盘软体
就
须
用到
windows
的
framework
环
境
$winetricks
corefontsmfc42 riched20 riched30 dotnet4.0 msxml3 msxml4 vb6run
或
$winetricks
先
选
安
装应
用程式
,
取消
,
再
选
安
装
dll
打勾
corefontsmfc42 riched20 riched30 dotnet4.0 msxml3 msxml4 vb6run
等
dll
安
装
riched20riched30
后
,
飞
狐才能正常
编辑
指
标
公式
(
注意安
装
mfc42.dll
使安
装
64bits mfc42.dll + mfc42u.dll
到
/
home/
user/.wine464/drive_c/windows\syswow64
或
/~/.wine464/drive_c/windows\syswow64 )
winecfg
会产
生
/
home/
user/.wine464
目
录
每次
电脑开机后
,
要
执
行
飞
狐
(foxtrader)
前
,
先
执
行下列命令
$ export WINEARCH=win64 && export WINEPREFIX="/home/cheng888/.wine464"
因为
wine
的
default
目录是
/home/user/.wine,user=
你的安装用户名
复制
/foxtrader
目录到
/
home/
user/.wine464/drive_c/foxtrader
执行飞狐前
修改
system.reg,user.reg
及
wine.inf(
看
后
面
说
明
)
执行飞狐
$wine64 explorer /desktop=name,3840x2100 "C:\Foxtrader\FoxTrader.exe"
$wine64 explorer /desktop=name,7500x2100 "C:\Foxtrader\FoxTrader.exe" (
两台
lcd
左右并排
)
Linuxwine
是执行 飞狐最好的作业系统
,
执行时飞狐从不当机
,
两台
43
寸
lcd
可以完美合并成一台
86
寸
lcd,
移动飞狐绘图画面时
,
速度快速无碍
,
使用
linux
至今还未遇过网路病毒
其中
c:\
=
/
home/
user/.wine464/drive_c
== = = = = = = = =
(
安
装
32bit wine
执
行容器
)
$ export WINEARCH=win32 && export WINEPREFIX="/home/cheng888/.wine432"
$ winecfg
$winetricks
corefontsmfc42 riched20 riched30 dotnet4.0 msxml3 msxml4 vb6run
(
注意安
装
mfc42.dll
是安
装
32bits mfc42.dll + mfc42u.dll
到
/
home/
user/.wine432/drive_c/windows\system32
或
/~/.wine432/drive_c/windows\system32)
winecfg
会产
生
/
home/
user/.wine432
目
录
每次
电脑开机后
,
要
执
行
飞
狐
(foxtrader)
前
,
先
执
行下列命令
$ export WINEARCH=win32 && export WINEPREFIX="/home/cheng888/.wine432"
执行 飞狐前
修改
system.reg,user.reg
及
wine.inf(
看
后
面
说
明
)
执
行
飞
狐
$wine explorer /desktop=name,3840x2100 "C:\Foxtrader\FoxTrader.exe"
其中
c:\
=
/
home/
user/.wine432/drive_c
== = = = = = = = =
修改
/
home/
user/.wine464/drive_c/system.regor /
home/
user/.wine432/drive_c/system.reg
system.reg
[Software\\Microsoft\\WindowsNT\\CurrentVersion\\FontSubstitutes] 1550447192
#
=1d4c71b02e9fdc6
"Arial"="AR PL KaitiM Big5"
"ArialBaltic,186"="AR PL KaitiM Big5,186"
"ArialCE,238"="AR PL KaitiM Big5,238"
"ArialCYR,204"="AR PL KaitiM Big5,204"
"ArialGreek,161"="AR PL KaitiM Big5,161"
"ArialTUR,162"="AR PL KaitiM Big5,162"
"ArialUnicode MS"="Arial"
"Batang"="NanumMyeongjo"
"CourierNew"="AR PL KaitiM Big5 "
"CourierNew Baltic,186"="AR PL KaitiM Big5,186"
"CourierNew CE,238"="AR PL KaitiM Big5,238"
"CourierNew CYR,204"="AR PL KaitiM Big5,204"
"CourierNew Greek,161"="AR PL KaitiM Big5,161"
"CourierNew TUR,162"="AR PL KaitiM Big5,162"
"Dotum"="NanumGothic"
"FixedSys"="ARPL KaitiM Big5"
"Gulim"="NanumGothic"
"Helv"="ARPL KaitiM Big5"
"Helvetica"="ARPL KaitiM Big5"
"MingLiU"="AR PL KaitiM Big5"
"MSGothic"="VL Gothic Regular"
"MSMincho"="IPAMincho"
"MSPGothic"="VL Gothic Regular"
"MSPMincho"="IPAPMincho"
"MSSans Serif"="AR PL KaitiM Big5"
"MSShell Dlg"="PMingLiU"
"MSShell Dlg 2"="AR PL KaitiM Big5"
"MSUI Gothic"="VL Gothic Regular"
"PMingLiU"="ARPL KaitiM Big5"
"SimSun"="ARPL KaitiM Big5"
"System"="ARPL KaitiM Big5"
"Tahoma"="ARPL KaitiM Big5"
"Times"="ARPL KaitiM Big5"
"TimesNew Roman"="AR PL KaitiM Big5 "
"TimesNew Roman Baltic,186"="Times New Roman,186"
"TimesNew Roman CE,238"="Times New Roman,238"
"TimesNew Roman CYR,204"="Times New Roman,204"
"TimesNew Roman Greek,161"="Times New Roman,161"
"TimesNew Roman TUR,162"="Times New Roman,162"
"TmsRmn"="MingLiU"
其中把
"AR PL KaitiM Big5 "
改成你自己的
简体
字型
以根帐号开启档案总管
/opt/wine-stable/share/wine/wine.inf
属
性改
为
你的
帐号
名所
拥
有
以文字
编辑
器
编辑
/opt/wine-stable/share/wine/wine.inf
加入
[Fonts]
HKLM,%FontSubStr%,"ArialBaltic,186",,"AR PL KaitiM Big5,186"
HKLM,%FontSubStr%,"ArialCE,238",,"AR PL KaitiM Big5,238"
HKLM,%FontSubStr%,"ArialCYR,204",,"AR PL KaitiM Big5,204"
HKLM,%FontSubStr%,"ArialGreek,161",,"AR PL KaitiM Big5,161"
HKLM,%FontSubStr%,"ArialTUR,162",,"AR PL KaitiM Big5,162"
HKLM,%FontSubStr%,"CourierNew Baltic,186",,"AR PL KaitiM Big5,186"
HKLM,%FontSubStr%,"CourierNew CE,238",,"AR PL KaitiM Big5,238"
HKLM,%FontSubStr%,"CourierNew CYR,204",,"AR PL KaitiM Big5,204"
HKLM,%FontSubStr%,"CourierNew Greek,161",,"AR PL KaitiM Big5,161"
HKLM,%FontSubStr%,"CourierNew TUR,162",,"AR PL KaitiM Big5,162"
HKLM,%FontSubStr%,"Helv",,"ARPL KaitiM Big5"
HKLM,%FontSubStr%,"Helvetica",,"ARPL KaitiM Big5"
HKLM,%FontSubStr%,"MSShell Dlg 2",,"AR PL KaitiM Big5"
HKLM,%FontSubStr%,"Times",,"ARPL KaitiM Big5"
HKLM,%FontSubStr%,"TimesNew Roman Baltic,186",,"Times New Roman,186"
HKLM,%FontSubStr%,"TimesNew Roman CE,238",,"Times New Roman,238"
HKLM,%FontSubStr%,"TimesNew Roman CYR,204",,"Times New Roman,204"
HKLM,%FontSubStr%,"TimesNew Roman Greek,161",,"Times New Roman,161"
HKLM,%FontSubStr%,"TimesNew Roman TUR,162",,"Times New Roman,162"
HKLM,System\CurrentControlSet\HardwareProfiles\Current\Software\Fonts,"LogPixels",0x10003,0x00000075
HKCU,Software\Wine\Fonts\Replacements,"SimSun",,"ARPL KaitiM Big5"
HKCU,Software\Wine\Fonts\Replacements,"PMingLiU",,"ARPL KaitiM Big5"
HKCU,Software\Wine\Fonts\Replacements,"MSGothic",,"VL Gothic Regular"
HKCU,Software\Wine\Fonts\Replacements,"MSPGothic",,"VL Gothic Regular"
HKCU,Software\Wine\Fonts\Replacements,"MSUI Gothic",,"VL Gothic Regular"
HKCU,Software\Wine\Fonts\Replacements,"MSMincho",,"IPAMincho"
HKCU,Software\Wine\Fonts\Replacements,"MSPMincho",,"IPAPMincho"
HKCU,Software\Wine\Fonts\Replacements,"Batang",,"NanumMyeongjo"
HKCU,Software\Wine\Fonts\Replacements,"Dotum",,"NanumGothic"
HKCU,Software\Wine\Fonts\Replacements,"Gulim",,"NanumGothic"
HKCU,Software\Wine\Fonts\Replacements,"ArialUnicode MS",,"Arial"
其中把
"AR PL KaitiM Big5 "
改成你自己的
简体
字型
修改
/
home/
user/.wine464/drive_c/user.regor /
home/
user/.wine432/drive_c/user.reg
[Software\\Wine\\Fonts]1525328915
[url=https://www.facebook.com/hashtag/
?source=note]
#time
[/url]
=1d3e2a7f72a82ce
"Codepages"="950,950"
"LogPixels"=dword:00000075
("LogPixels"=dword:00000060- - - > "LogPixels"=dword:00000075)
注意
:!!!!!!!!!!!!!!!!!!!!!
修改
system.reg,user.reg
及
wine.inf
后
,
重新
开机
才生效
另外
,
飞
狐最
强
的地方是他的
参数
表
,
比
较
一些
国
外
软
件如
amibroker,metastock
等
,
没发现
有
软
件能像
飞
狐
参数
表那
强
,
我只要改
变
波浪
数
字
参数
位就可以改
变画图
位置
,
图
例若用
国
外
软
件便做不到
[attach]113319[/attach]
[attach]113320[/attach]
[
本帖最后由 ycng 于 2019-8-11 15:58 编辑
]
欢迎光临 【阳光飞狐__与财富同行】 (http://bbs.88158.cn/)
Powered by Discuz! X3.2