Nextion Editor 0.53

Informations

Creator Message
klukonin

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 6903
Wine: 3.2-staging

Feedbacks

Description

Nextion Editor is a development software for Nextion HMI screen from ITEAD.

Note: HMI = Human Machine Interface.

Website. Appdb.winehq.org .

Screenshots

MiniatureMiniatureMiniatureMiniature

Source code

#!/bin/bash
# Date : (2018-05-02)
# Distribution used to test : Ubuntu 16.04 64 bit
# Author : Lukonin Kirill
# Authors email: klukonin@gmail.com
# Licence : GPLv3
# PlayOnLinux: 4.2.10
 
# CHANGELOG
# [Lukonin Kirill] (2018-05-02)
#   First script, for v0.43.
# [...]
#    ...
# [Dadu042] (2019-11-02)
#   - Disable feature 'install from download' (because the file get many updates).
#   - Add feature 'install from local'.
#   - Add POL_RequiredVersion
# [Dadu042] (2019-11-02 11:35)
#   - Forgot something.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
PREFIX="Nextion"
WINEVERSION="3.2-staging"
TITLE="Nextion Editor"
EDITOR="ITEAD Studio"
AUTHOR="Lukonin Kirill"
# LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
# MD5="182a2829ed88df6d53d54daa15b981b4"
 
#Initialization
POL_SetupWindow_Init
POL_Debug_Init
  
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
 
POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.\nThis script is tested with Nextion v0.53')" "$TITLE"
 
# Note: POL 4.2.12 support Wine up to 3.0.3 max (as of 2019-11)
POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
  
# Just a solution to install dotnet30 clearly
POL_SetupWindow_question \
"Nextion software is based on dotnet platform and requires Dotnet4.5 to be \
installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 \
and because of the issue with Dotnet3.0 installer on Linux, we need to play \
with ptrace_scope kernel parameter and make it through SUDO command \
'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. This parameter willl be \
changed to default after reboot so it is recommended to reboot your PC after \
installation. If you don't know about this issue, plesae click 'YES' and \
follow the instructions. If you know about this issue or did it already or you \
want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu"
if [ "$APP_ANSWER" == "TRUE" ]
        then
                POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
fi
  
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
Set_OS "win7"
  
# Component_inslallation
POL_Call POL_Install_corefonts
POL_Call POL_Install_dotnet45
Set_OS "winxp"
POL_Call POL_Install_ie8
  
# Installing software
POL_System_TmpCreate "$PREFIX"
mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
 
cd "$POL_System_TmpDir"
 
# POL_Download "$LINK" "$MD5"
# unzip nextion-setup-v*.zip -d NextionEditor
# mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
 
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file (.EXE) to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"

POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
  
# You need to add you current user to appropriate groups for normal work with USB serial adapters
POL_SetupWindow_question \
"It is necessary to give access rights and add your current user to the \
dialout/serial group for proper USB serial adapter work. If this is your first \
installation or you have no information about your user rights, please click \
'YES' and reboot your PC after installation. If you did this already or you \
want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' \
command, please click 'NO'" "USB serial adapter tuning"
if [ "$APP_ANSWER" == "TRUE" ]
        then
                POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit"
fi
  
POL_SetupWindow_message \
"You can see current 'COM' links by running \
'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \
command-line. If you want change existing configuration you can do it as \
described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \
"USB serial adapter tunung"
 
# Create Shortcuts
POL_Shortcut "NextionEditor.exe" "$TITLE"
 
# Delete TMP folder
POL_System_TmpDelete
 
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Saturday 2 November 2019 at 11:36
Dadu042

Information

This update has been approved by the team.

Differences

@@ -5,7 +5,7 @@
 # Authors email: klukonin@gmail.com
 # Licence : GPLv3
 # PlayOnLinux: 4.2.10
-
+ 
 # CHANGELOG
 # [Lukonin Kirill] (2018-05-02)
 #   First script, for v0.43.
@@ -15,30 +15,32 @@
 #   - Disable feature 'install from download' (because the file get many updates).
 #   - Add feature 'install from local'.
 #   - Add POL_RequiredVersion
- 
+# [Dadu042] (2019-11-02 11:35)
+#   - Forgot something.
+
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
- 
+  
 PREFIX="Nextion"
 WINEVERSION="3.2-staging"
 TITLE="Nextion Editor"
 EDITOR="ITEAD Studio"
 AUTHOR="Lukonin Kirill"
-# LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
+# LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
 # MD5="182a2829ed88df6d53d54daa15b981b4"
-
+ 
 #Initialization
 POL_SetupWindow_Init
 POL_Debug_Init
- 
+  
 # Presentation
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
-
+ 
 POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.\nThis script is tested with Nextion v0.53')" "$TITLE"
-
-# Note: POL 4.2.12 support Wine up to 3.0.3 max (as of 2019-11)
-POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
  
+# Note: POL 4.2.12 support Wine up to 3.0.3 max (as of 2019-11)
+POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+  
 # Just a solution to install dotnet30 clearly
 POL_SetupWindow_question \
 "Nextion software is based on dotnet platform and requires Dotnet4.5 to be \
@@ -54,31 +56,34 @@
         then
                 POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
 fi
- 
+  
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WINEVERSION"
 Set_OS "win7"
- 
+  
 # Component_inslallation
 POL_Call POL_Install_corefonts
 POL_Call POL_Install_dotnet45
 Set_OS "winxp"
 POL_Call POL_Install_ie8
- 
+  
 # Installing software
 POL_System_TmpCreate "$PREFIX"
 mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
-
+ 
 cd "$POL_System_TmpDir"
-
-# POL_Download "$LINK" "$MD5"
-# unzip nextion-setup-v*.zip -d NextionEditor
-# mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
-
+ 
+# POL_Download "$LINK" "$MD5"
+# unzip nextion-setup-v*.zip -d NextionEditor
+# mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+ 
 POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file (.EXE) to run')" "$TITLE"
 SETUP_EXE="$APP_ANSWER"
- 
+
+POL_Wine start /unix "$SETUP_EXE"
+POL_Wine_WaitExit "$TITLE"
+  
 # You need to add you current user to appropriate groups for normal work with USB serial adapters
 POL_SetupWindow_question \
 "It is necessary to give access rights and add your current user to the \
@@ -91,19 +96,19 @@
         then
                 POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit"
 fi
- 
+  
 POL_SetupWindow_message \
 "You can see current 'COM' links by running \
 'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \
 command-line. If you want change existing configuration you can do it as \
 described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \
 "USB serial adapter tunung"
-
+ 
 # Create Shortcuts
 POL_Shortcut "NextionEditor.exe" "$TITLE"
-
+ 
 # Delete TMP folder
 POL_System_TmpDelete
-
+ 
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-05-02)
# Distribution used to test : Ubuntu 16.04 64 bit
# Author : Lukonin Kirill
# Authors email: klukonin@gmail.com
# Licence : GPLv3
# PlayOnLinux: 4.2.10
 
# CHANGELOG
# [Lukonin Kirill] (2018-05-02)
#   First script, for v0.43.
# [...]
#    ...
# [Dadu042] (2019-11-02)
#   - Disable feature 'install from download' (because the file get many updates).
#   - Add feature 'install from local'.
#   - Add POL_RequiredVersion
# [Dadu042] (2019-11-02 11:35)
#   - Forgot something.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
PREFIX="Nextion"
WINEVERSION="3.2-staging"
TITLE="Nextion Editor"
EDITOR="ITEAD Studio"
AUTHOR="Lukonin Kirill"
# LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
# MD5="182a2829ed88df6d53d54daa15b981b4"
 
#Initialization
POL_SetupWindow_Init
POL_Debug_Init
  
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
 
POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.\nThis script is tested with Nextion v0.53')" "$TITLE"
 
# Note: POL 4.2.12 support Wine up to 3.0.3 max (as of 2019-11)
POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
  
# Just a solution to install dotnet30 clearly
POL_SetupWindow_question \
"Nextion software is based on dotnet platform and requires Dotnet4.5 to be \
installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 \
and because of the issue with Dotnet3.0 installer on Linux, we need to play \
with ptrace_scope kernel parameter and make it through SUDO command \
'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. This parameter willl be \
changed to default after reboot so it is recommended to reboot your PC after \
installation. If you don't know about this issue, plesae click 'YES' and \
follow the instructions. If you know about this issue or did it already or you \
want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu"
if [ "$APP_ANSWER" == "TRUE" ]
        then
                POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
fi
  
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
Set_OS "win7"
  
# Component_inslallation
POL_Call POL_Install_corefonts
POL_Call POL_Install_dotnet45
Set_OS "winxp"
POL_Call POL_Install_ie8
  
# Installing software
POL_System_TmpCreate "$PREFIX"
mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
 
cd "$POL_System_TmpDir"
 
# POL_Download "$LINK" "$MD5"
# unzip nextion-setup-v*.zip -d NextionEditor
# mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
 
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file (.EXE) to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"

POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
  
# You need to add you current user to appropriate groups for normal work with USB serial adapters
POL_SetupWindow_question \
"It is necessary to give access rights and add your current user to the \
dialout/serial group for proper USB serial adapter work. If this is your first \
installation or you have no information about your user rights, please click \
'YES' and reboot your PC after installation. If you did this already or you \
want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' \
command, please click 'NO'" "USB serial adapter tuning"
if [ "$APP_ANSWER" == "TRUE" ]
        then
                POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit"
fi
  
POL_SetupWindow_message \
"You can see current 'COM' links by running \
'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \
command-line. If you want change existing configuration you can do it as \
described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \
"USB serial adapter tunung"
 
# Create Shortcuts
POL_Shortcut "NextionEditor.exe" "$TITLE"
 
# Delete TMP folder
POL_System_TmpDelete
 
POL_SetupWindow_Close
exit 0

Replies

Anonymous
Monday 10 August 2020 at 23:09
Hello, I'm having some issues with the serial port whenever I don't use a physical port. I have a PTY serial port I created using SOCAT which I can access fine using putty inside the same wineprefix but I get an error when trying to use it on the Editor. I think it might be something related to .NET Framework. Here is the erro message:

"The given port name is invalid. It may be a valid port, but not a serial port. Parameter name: portName"
Anonymous
Monday 10 August 2020 at 23:57
I needed this because I am using qemu to emulate my MCU and it outputs its serial comms on PTY
Dadu042 Saturday 2 November 2019 at 11:33
Dadu042

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

See changelog.

Differences

@@ -6,25 +6,39 @@
 # Licence : GPLv3
 # PlayOnLinux: 4.2.10
 
+# CHANGELOG
+# [Lukonin Kirill] (2018-05-02)
+#   First script, for v0.43.
+# [...]
+#    ...
+# [Dadu042] (2019-11-02)
+#   - Disable feature 'install from download' (because the file get many updates).
+#   - Add feature 'install from local'.
+#   - Add POL_RequiredVersion
+ 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 PREFIX="Nextion"
 WINEVERSION="3.2-staging"
 TITLE="Nextion Editor"
 EDITOR="ITEAD Studio"
 AUTHOR="Lukonin Kirill"
-LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
-MD5="182a2829ed88df6d53d54daa15b981b4"
+# LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
+# MD5="182a2829ed88df6d53d54daa15b981b4"
+
 #Initialization
 POL_SetupWindow_Init
 POL_Debug_Init
-
+ 
 # Presentation
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
 
-POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"
+POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.\nThis script is tested with Nextion v0.53')" "$TITLE"
 
+# Note: POL 4.2.12 support Wine up to 3.0.3 max (as of 2019-11)
+POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+ 
 # Just a solution to install dotnet30 clearly
 POL_SetupWindow_question \
 "Nextion software is based on dotnet platform and requires Dotnet4.5 to be \
@@ -37,29 +51,34 @@
 follow the instructions. If you know about this issue or did it already or you \
 want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu"
 if [ "$APP_ANSWER" == "TRUE" ]
-	then
-		POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
+        then
+                POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
 fi
-
+ 
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WINEVERSION"
 Set_OS "win7"
-
+ 
 # Component_inslallation
 POL_Call POL_Install_corefonts
 POL_Call POL_Install_dotnet45
 Set_OS "winxp"
 POL_Call POL_Install_ie8
-
+ 
 # Installing software
 POL_System_TmpCreate "$PREFIX"
 mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+
 cd "$POL_System_TmpDir"
-POL_Download "$LINK" "$MD5"
-unzip nextion-setup-v*.zip -d NextionEditor
-mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
 
+# POL_Download "$LINK" "$MD5"
+# unzip nextion-setup-v*.zip -d NextionEditor
+# mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+
+POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file (.EXE) to run')" "$TITLE"
+SETUP_EXE="$APP_ANSWER"
+ 
 # You need to add you current user to appropriate groups for normal work with USB serial adapters
 POL_SetupWindow_question \
 "It is necessary to give access rights and add your current user to the \
@@ -69,10 +88,10 @@
 want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' \
 command, please click 'NO'" "USB serial adapter tuning"
 if [ "$APP_ANSWER" == "TRUE" ]
-	then
-		POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit"
+        then
+                POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit"
 fi
-
+ 
 POL_SetupWindow_message \
 "You can see current 'COM' links by running \
 'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \
@@ -80,11 +99,11 @@
 described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \
 "USB serial adapter tunung"
 
-# Delete TMP folder
-POL_System_TmpDelete
-
 # Create Shortcuts
 POL_Shortcut "NextionEditor.exe" "$TITLE"
 
+# Delete TMP folder
+POL_System_TmpDelete
+
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-05-02)
# Distribution used to test : Ubuntu 16.04 64 bit
# Author : Lukonin Kirill
# Authors email: klukonin@gmail.com
# Licence : GPLv3
# PlayOnLinux: 4.2.10

# CHANGELOG
# [Lukonin Kirill] (2018-05-02)
#   First script, for v0.43.
# [...]
#    ...
# [Dadu042] (2019-11-02)
#   - Disable feature 'install from download' (because the file get many updates).
#   - Add feature 'install from local'.
#   - Add POL_RequiredVersion
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="Nextion"
WINEVERSION="3.2-staging"
TITLE="Nextion Editor"
EDITOR="ITEAD Studio"
AUTHOR="Lukonin Kirill"
# LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
# MD5="182a2829ed88df6d53d54daa15b981b4"

#Initialization
POL_SetupWindow_Init
POL_Debug_Init
 
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"

POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.\nThis script is tested with Nextion v0.53')" "$TITLE"

# Note: POL 4.2.12 support Wine up to 3.0.3 max (as of 2019-11)
POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
 
# Just a solution to install dotnet30 clearly
POL_SetupWindow_question \
"Nextion software is based on dotnet platform and requires Dotnet4.5 to be \
installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 \
and because of the issue with Dotnet3.0 installer on Linux, we need to play \
with ptrace_scope kernel parameter and make it through SUDO command \
'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. This parameter willl be \
changed to default after reboot so it is recommended to reboot your PC after \
installation. If you don't know about this issue, plesae click 'YES' and \
follow the instructions. If you know about this issue or did it already or you \
want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu"
if [ "$APP_ANSWER" == "TRUE" ]
        then
                POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
fi
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
Set_OS "win7"
 
# Component_inslallation
POL_Call POL_Install_corefonts
POL_Call POL_Install_dotnet45
Set_OS "winxp"
POL_Call POL_Install_ie8
 
# Installing software
POL_System_TmpCreate "$PREFIX"
mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion

cd "$POL_System_TmpDir"

# POL_Download "$LINK" "$MD5"
# unzip nextion-setup-v*.zip -d NextionEditor
# mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion

POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file (.EXE) to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
 
# You need to add you current user to appropriate groups for normal work with USB serial adapters
POL_SetupWindow_question \
"It is necessary to give access rights and add your current user to the \
dialout/serial group for proper USB serial adapter work. If this is your first \
installation or you have no information about your user rights, please click \
'YES' and reboot your PC after installation. If you did this already or you \
want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' \
command, please click 'NO'" "USB serial adapter tuning"
if [ "$APP_ANSWER" == "TRUE" ]
        then
                POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit"
fi
 
POL_SetupWindow_message \
"You can see current 'COM' links by running \
'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \
command-line. If you want change existing configuration you can do it as \
described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \
"USB serial adapter tunung"

# Create Shortcuts
POL_Shortcut "NextionEditor.exe" "$TITLE"

# Delete TMP folder
POL_System_TmpDelete

POL_SetupWindow_Close
exit 0

Replies

Heikoho Sunday 20 October 2019 at 22:40
Heikoho Anonymous

Message

Hi,

a great THANK YOU.
All ist running well (Ubuntu 18.04).

But can you please tell me, how i can update the Nextion Editor from 0.53 to 0.58.
I made thome Code but runs on the 0.58 Editor. So i can't edit in in 0.53.
 

Thanks

 

Heiko

Replies

stewartad1 Friday 12 July 2019 at 19:19
stewartad1 Anonymous

Message

Hi everyone, when installing nextion 0.53, it fails when it gets to installing internet explorer 8, it says it cannot install as there is a newer version of IE already installed. Do you have any suggestion? I figured I’d post this request here since it is bundled in the nextion install but I could see this also belonging under the IE8 forum. Thanks in advance!

Replies

c0rvux Saturday 11 May 2019 at 15:00
c0rvux Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Hi! Have some problems with installation on Fedora 29 x86_64. So I made several script edits:

  • Changed WINEVERSION value to "3.2-staging", because in Wine 1.8-staging there are problems with freetype fonts
  • Removed 'com*' links creation, because since version 2.8 Wine removes manually created links
  • Zip archive with Nextion Editor has changed therefore the installation process has changed too
  • Removed trailing whitespaces

 

 

Differences

@@ -5,12 +5,12 @@
 # Authors email: klukonin@gmail.com
 # Licence : GPLv3
 # PlayOnLinux: 4.2.10
-       
+
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-       
+
 PREFIX="Nextion"
-WINEVERSION="1.8-staging"
+WINEVERSION="3.2-staging"
 TITLE="Nextion Editor"
 EDITOR="ITEAD Studio"
 AUTHOR="Lukonin Kirill"
@@ -19,67 +19,72 @@
 #Initialization
 POL_SetupWindow_Init
 POL_Debug_Init
-       
+
 # Presentation
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
-         
+
 POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"
-     
+
 # Just a solution to install dotnet30 clearly
-POL_SetupWindow_question "Nextion software is based on dotnet platform and requires Dotnet4.5 to be installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 and because of the issue with Dotnet3.0 installer on Linux, we need to play with 
-ptrace_scope kernel parameter and make it through SUDO command 'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. 
-This parameter willl be changed to default after reboot so it is recommended to reboot your PC after installation.
-If you don't know about this issue, plesae click 'YES' and follow the instructions. If you know about this issue or did it already or you want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu"
-    if [ "$APP_ANSWER" == "TRUE" ]
-        then
-            POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
-    fi
-     
+POL_SetupWindow_question \
+"Nextion software is based on dotnet platform and requires Dotnet4.5 to be \
+installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 \
+and because of the issue with Dotnet3.0 installer on Linux, we need to play \
+with ptrace_scope kernel parameter and make it through SUDO command \
+'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. This parameter willl be \
+changed to default after reboot so it is recommended to reboot your PC after \
+installation. If you don't know about this issue, plesae click 'YES' and \
+follow the instructions. If you know about this issue or did it already or you \
+want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu"
+if [ "$APP_ANSWER" == "TRUE" ]
+	then
+		POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
+fi
+
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WINEVERSION"
 Set_OS "win7"
-       
+
 # Component_inslallation
 POL_Call POL_Install_corefonts
 POL_Call POL_Install_dotnet45
 Set_OS "winxp"
 POL_Call POL_Install_ie8
-       
-       
+
 # Installing software
 POL_System_TmpCreate "$PREFIX"
 mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
 cd "$POL_System_TmpDir"
 POL_Download "$LINK" "$MD5"
-unzip nextion-setup-v*.zip
-mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
-    
+unzip nextion-setup-v*.zip -d NextionEditor
+mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+
 # You need to add you current user to appropriate groups for normal work with USB serial adapters
-  
-POL_SetupWindow_question "It is necessary to give access rights and add your current user to the dialout/serial group for proper USB serial adapter work. If this is your first installation or you have no information about your user rights, please click 'YES' and reboot your PC after installation.
-If you did this already or you want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' command, please click 'NO'" "USB serial adapter tuning"
+POL_SetupWindow_question \
+"It is necessary to give access rights and add your current user to the \
+dialout/serial group for proper USB serial adapter work. If this is your first \
+installation or you have no information about your user rights, please click \
+'YES' and reboot your PC after installation. If you did this already or you \
+want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' \
+command, please click 'NO'" "USB serial adapter tuning"
 if [ "$APP_ANSWER" == "TRUE" ]
-        then
-            POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial `whoami`"
+	then
+		POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit"
 fi
- 
-# Making USB_Serial to work. 7 adapters ought to be enough for anybody =)))
-ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
-ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
-ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
-ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
-ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
-ln -s /dev/ttyUSB3 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com4
-ln -s /dev/ttyUSB4 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com5`
 
-     
-     
+POL_SetupWindow_message \
+"You can see current 'COM' links by running \
+'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \
+command-line. If you want change existing configuration you can do it as \
+described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \
+"USB serial adapter tunung"
+
 # Delete TMP folder
 POL_System_TmpDelete
-       
+
 # Create Shortcuts
-POL_Shortcut "Nextion Editor.exe" "$TITLE"
-              
+POL_Shortcut "NextionEditor.exe" "$TITLE"
+
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-05-02)
# Distribution used to test : Ubuntu 16.04 64 bit
# Author : Lukonin Kirill
# Authors email: klukonin@gmail.com
# Licence : GPLv3
# PlayOnLinux: 4.2.10

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="Nextion"
WINEVERSION="3.2-staging"
TITLE="Nextion Editor"
EDITOR="ITEAD Studio"
AUTHOR="Lukonin Kirill"
LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
MD5="182a2829ed88df6d53d54daa15b981b4"
#Initialization
POL_SetupWindow_Init
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"

POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"

# Just a solution to install dotnet30 clearly
POL_SetupWindow_question \
"Nextion software is based on dotnet platform and requires Dotnet4.5 to be \
installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 \
and because of the issue with Dotnet3.0 installer on Linux, we need to play \
with ptrace_scope kernel parameter and make it through SUDO command \
'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. This parameter willl be \
changed to default after reboot so it is recommended to reboot your PC after \
installation. If you don't know about this issue, plesae click 'YES' and \
follow the instructions. If you know about this issue or did it already or you \
want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu"
if [ "$APP_ANSWER" == "TRUE" ]
        then
                POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
fi

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
Set_OS "win7"

# Component_inslallation
POL_Call POL_Install_corefonts
POL_Call POL_Install_dotnet45
Set_OS "winxp"
POL_Call POL_Install_ie8

# Installing software
POL_System_TmpCreate "$PREFIX"
mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
cd "$POL_System_TmpDir"
POL_Download "$LINK" "$MD5"
unzip nextion-setup-v*.zip -d NextionEditor
mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion

# You need to add you current user to appropriate groups for normal work with USB serial adapters
POL_SetupWindow_question \
"It is necessary to give access rights and add your current user to the \
dialout/serial group for proper USB serial adapter work. If this is your first \
installation or you have no information about your user rights, please click \
'YES' and reboot your PC after installation. If you did this already or you \
want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' \
command, please click 'NO'" "USB serial adapter tuning"
if [ "$APP_ANSWER" == "TRUE" ]
        then
                POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit"
fi

POL_SetupWindow_message \
"You can see current 'COM' links by running \
'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \
command-line. If you want change existing configuration you can do it as \
described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \
"USB serial adapter tunung"

# Delete TMP folder
POL_System_TmpDelete

# Create Shortcuts
POL_Shortcut "NextionEditor.exe" "$TITLE"

POL_SetupWindow_Close
exit 0

Replies

Anonymous
Monday 8 July 2019 at 1:27
Hi, this is my first time using PlayOnMac, when trying to install Nextion Editor 0.53, it gets stuck trying to install IE8. The error is, Install Windows Internet Explorer 8, setup cannot continue because a more recent version of internet explorer has been detected on this computer. Any suggestions?

 

 
Monday 8 July 2019 at 6:14
Perfect work, c0rvux!
Monday 8 July 2019 at 6:33
Could you provide 2 or 3 screenshot of this app please ?
Monday 8 July 2019 at 12:26
Sure
https://drive.google.com/drive/folders/1qi6NUvUm5XswA9aItVFA9zUvwTNDkxK2?usp=sharing
Monday 8 July 2019 at 14:15
These screenshots are for the latest version of script. With all changes made by c0rvux.
Monday 8 July 2019 at 14:16
Tested on Ubuntu 18.04.
Working OK.
Anonymous
Monday 8 July 2019 at 21:31
Any ideas what I can do for my Internet Explorer Error?
v3xX Tuesday 20 November 2018 at 11:57
v3xX Anonymous

Message

I wanted to upgrade from 0.42 to 0.53.

Your script for the older versions works perfect, but with version 0.53 I get an MD5 Mismatch error.

 

Is there a new version on the Checksum

MD5 in file: 182a2829ed88df6d53d54daa15b981b4

My local number: 70461da8b94c6ca5d2fda3260c5a8c3b

 

I am using Playonlinux, Wine1.8, Ubuntu 16.04

Replies

Edited by Dadu042

Chassa Tuesday 5 June 2018 at 7:54
Chassa Anonymous

Message

Hi, hopefully you can suggest an answer as the install on my Mac failed during the Nextion editor load with the error

Error in POL_Download_Resource

MD5 sum mismatch !

 

Replies

klukonin Saturday 17 February 2018 at 12:16
klukonin

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Fix. latest YES/NO section.

Differences

@@ -0,0 +1,85 @@
+#!/bin/bash
+# Date : (2018-05-02)
+# Distribution used to test : Ubuntu 16.04 64 bit
+# Author : Lukonin Kirill
+# Authors email: klukonin@gmail.com
+# Licence : GPLv3
+# PlayOnLinux: 4.2.10
+       
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+       
+PREFIX="Nextion"
+WINEVERSION="1.8-staging"
+TITLE="Nextion Editor"
+EDITOR="ITEAD Studio"
+AUTHOR="Lukonin Kirill"
+LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
+MD5="182a2829ed88df6d53d54daa15b981b4"
+#Initialization
+POL_SetupWindow_Init
+POL_Debug_Init
+       
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
+         
+POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"
+     
+# Just a solution to install dotnet30 clearly
+POL_SetupWindow_question "Nextion software is based on dotnet platform and requires Dotnet4.5 to be installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 and because of the issue with Dotnet3.0 installer on Linux, we need to play with 
+ptrace_scope kernel parameter and make it through SUDO command 'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. 
+This parameter willl be changed to default after reboot so it is recommended to reboot your PC after installation.
+If you don't know about this issue, plesae click 'YES' and follow the instructions. If you know about this issue or did it already or you want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu"
+    if [ "$APP_ANSWER" == "TRUE" ]
+        then
+            POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
+    fi
+     
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+Set_OS "win7"
+       
+# Component_inslallation
+POL_Call POL_Install_corefonts
+POL_Call POL_Install_dotnet45
+Set_OS "winxp"
+POL_Call POL_Install_ie8
+       
+       
+# Installing software
+POL_System_TmpCreate "$PREFIX"
+mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+cd "$POL_System_TmpDir"
+POL_Download "$LINK" "$MD5"
+unzip nextion-setup-v*.zip
+mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+    
+# You need to add you current user to appropriate groups for normal work with USB serial adapters
+  
+POL_SetupWindow_question "It is necessary to give access rights and add your current user to the dialout/serial group for proper USB serial adapter work. If this is your first installation or you have no information about your user rights, please click 'YES' and reboot your PC after installation.
+If you did this already or you want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' command, please click 'NO'" "USB serial adapter tuning"
+if [ "$APP_ANSWER" == "TRUE" ]
+        then
+            POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit"
+fi
+ 
+# Making USB_Serial to work. 7 adapters ought to be enough for anybody =)))
+ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
+ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
+ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
+ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
+ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
+ln -s /dev/ttyUSB3 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com4
+ln -s /dev/ttyUSB4 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com5`
+
+     
+     
+# Delete TMP folder
+POL_System_TmpDelete
+       
+# Create Shortcuts
+POL_Shortcut "Nextion Editor.exe" "$TITLE"
+              
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-05-02)
# Distribution used to test : Ubuntu 16.04 64 bit
# Author : Lukonin Kirill
# Authors email: klukonin@gmail.com
# Licence : GPLv3
# PlayOnLinux: 4.2.10
       
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
       
PREFIX="Nextion"
WINEVERSION="1.8-staging"
TITLE="Nextion Editor"
EDITOR="ITEAD Studio"
AUTHOR="Lukonin Kirill"
LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
MD5="182a2829ed88df6d53d54daa15b981b4"
#Initialization
POL_SetupWindow_Init
POL_Debug_Init
       
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
         
POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"
     
# Just a solution to install dotnet30 clearly
POL_SetupWindow_question "Nextion software is based on dotnet platform and requires Dotnet4.5 to be installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 and because of the issue with Dotnet3.0 installer on Linux, we need to play with 
ptrace_scope kernel parameter and make it through SUDO command 'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. 
This parameter willl be changed to default after reboot so it is recommended to reboot your PC after installation.
If you don't know about this issue, plesae click 'YES' and follow the instructions. If you know about this issue or did it already or you want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu"
    if [ "$APP_ANSWER" == "TRUE" ]
        then
            POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
    fi
     
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
Set_OS "win7"
       
# Component_inslallation
POL_Call POL_Install_corefonts
POL_Call POL_Install_dotnet45
Set_OS "winxp"
POL_Call POL_Install_ie8
       
       
# Installing software
POL_System_TmpCreate "$PREFIX"
mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
cd "$POL_System_TmpDir"
POL_Download "$LINK" "$MD5"
unzip nextion-setup-v*.zip
mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
    
# You need to add you current user to appropriate groups for normal work with USB serial adapters
  
POL_SetupWindow_question "It is necessary to give access rights and add your current user to the dialout/serial group for proper USB serial adapter work. If this is your first installation or you have no information about your user rights, please click 'YES' and reboot your PC after installation.
If you did this already or you want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' command, please click 'NO'" "USB serial adapter tuning"
if [ "$APP_ANSWER" == "TRUE" ]
        then
            POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit"
fi
 
# Making USB_Serial to work. 7 adapters ought to be enough for anybody =)))
ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
ln -s /dev/ttyUSB3 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com4
ln -s /dev/ttyUSB4 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com5`

     
     
# Delete TMP folder
POL_System_TmpDelete
       
# Create Shortcuts
POL_Shortcut "Nextion Editor.exe" "$TITLE"
              
POL_SetupWindow_Close
exit 0

Replies

klukonin Saturday 17 February 2018 at 8:40
klukonin

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Some question changes.

Differences

@@ -0,0 +1,85 @@
+#!/bin/bash
+# Date : (2018-05-02)
+# Distribution used to test : Ubuntu 16.04 64 bit
+# Author : Lukonin Kirill
+# Authors email: klukonin@gmail.com
+# Licence : GPLv3
+# PlayOnLinux: 4.2.10
+       
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+       
+PREFIX="Nextion"
+WINEVERSION="1.8-staging"
+TITLE="Nextion Editor"
+EDITOR="ITEAD Studio"
+AUTHOR="Lukonin Kirill"
+LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
+MD5="182a2829ed88df6d53d54daa15b981b4"
+#Initialization
+POL_SetupWindow_Init
+POL_Debug_Init
+       
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
+         
+POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"
+     
+# Just a solution to install dotnet30 clearly
+POL_SetupWindow_question "Nextion software is based on dotnet platform and requires Dotnet4.5 to be installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 and because of the issue with Dotnet3.0 installer on Linux, we need to play with 
+ptrace_scope kernel parameter and make it through SUDO command 'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. 
+This parameter willl be changed to default after reboot so it is recommended to reboot your PC after installation.
+If you don't know about this issue, plesae click 'YES' and follow the instructions. If you know about this issue or did it already or you want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu"
+    if [ "$APP_ANSWER" == "TRUE" ]
+        then
+            POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
+    fi
+     
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+Set_OS "win7"
+       
+# Component_inslallation
+POL_Call POL_Install_corefonts
+POL_Call POL_Install_dotnet45
+Set_OS "winxp"
+POL_Call POL_Install_ie8
+       
+       
+# Installing software
+POL_System_TmpCreate "$PREFIX"
+mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+cd "$POL_System_TmpDir"
+POL_Download "$LINK" "$MD5"
+unzip nextion-setup-v*.zip
+mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+    
+# You need to add you current user to appropriate groups for normal work with USB serial adapters
+  
+POL_SetupWindow_question "It is necessary to give access rights and add your current user to the dialout/serial group for proper USB serial adapter work. If this is your first installation or you have no information about your user rights, please click 'YES' and reboot your PC after installation.
+If you did this already or you want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' command, please click 'NO'" "USB serial adapter tuning"
+if [ "$APP_ANSWER" == "TRUE" ]
+        then
+            POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial `whoami`"
+fi
+ 
+# Making USB_Serial to work. 7 adapters ought to be enough for anybody =)))
+ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
+ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
+ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
+ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
+ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
+ln -s /dev/ttyUSB3 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com4
+ln -s /dev/ttyUSB4 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com5`
+
+     
+     
+# Delete TMP folder
+POL_System_TmpDelete
+       
+# Create Shortcuts
+POL_Shortcut "Nextion Editor.exe" "$TITLE"
+              
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-05-02)
# Distribution used to test : Ubuntu 16.04 64 bit
# Author : Lukonin Kirill
# Authors email: klukonin@gmail.com
# Licence : GPLv3
# PlayOnLinux: 4.2.10
       
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
       
PREFIX="Nextion"
WINEVERSION="1.8-staging"
TITLE="Nextion Editor"
EDITOR="ITEAD Studio"
AUTHOR="Lukonin Kirill"
LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
MD5="182a2829ed88df6d53d54daa15b981b4"
#Initialization
POL_SetupWindow_Init
POL_Debug_Init
       
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
         
POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"
     
# Just a solution to install dotnet30 clearly
POL_SetupWindow_question "Nextion software is based on dotnet platform and requires Dotnet4.5 to be installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 and because of the issue with Dotnet3.0 installer on Linux, we need to play with 
ptrace_scope kernel parameter and make it through SUDO command 'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. 
This parameter willl be changed to default after reboot so it is recommended to reboot your PC after installation.
If you don't know about this issue, plesae click 'YES' and follow the instructions. If you know about this issue or did it already or you want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu"
    if [ "$APP_ANSWER" == "TRUE" ]
        then
            POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
    fi
     
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
Set_OS "win7"
       
# Component_inslallation
POL_Call POL_Install_corefonts
POL_Call POL_Install_dotnet45
Set_OS "winxp"
POL_Call POL_Install_ie8
       
       
# Installing software
POL_System_TmpCreate "$PREFIX"
mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
cd "$POL_System_TmpDir"
POL_Download "$LINK" "$MD5"
unzip nextion-setup-v*.zip
mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
    
# You need to add you current user to appropriate groups for normal work with USB serial adapters
  
POL_SetupWindow_question "It is necessary to give access rights and add your current user to the dialout/serial group for proper USB serial adapter work. If this is your first installation or you have no information about your user rights, please click 'YES' and reboot your PC after installation.
If you did this already or you want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' command, please click 'NO'" "USB serial adapter tuning"
if [ "$APP_ANSWER" == "TRUE" ]
        then
            POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial `whoami`"
fi
 
# Making USB_Serial to work. 7 adapters ought to be enough for anybody =)))
ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
ln -s /dev/ttyUSB3 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com4
ln -s /dev/ttyUSB4 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com5`

     
     
# Delete TMP folder
POL_System_TmpDelete
       
# Create Shortcuts
POL_Shortcut "Nextion Editor.exe" "$TITLE"
              
POL_SetupWindow_Close
exit 0

Replies

Tutul Monday 12 February 2018 at 15:25
Tutul

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Repost contribution from klukonin

Differences

@@ -0,0 +1,78 @@
+#!/bin/bash
+# Date : (2018-05-02)
+# Distribution used to test : Ubuntu 16.04 64 bit
+# Author : Lukonin Kirill
+# Authors email: klukonin@gmail.com
+# Licence : GPLv3
+# PlayOnLinux: 4.2.10
+      
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+      
+PREFIX="Nextion"
+WINEVERSION="1.8-staging"
+TITLE="Nextion Editor"
+EDITOR="ITEAD Studio"
+AUTHOR="Lukonin Kirill"
+LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
+MD5="182a2829ed88df6d53d54daa15b981b4"
+#Initialization
+POL_SetupWindow_Init
+POL_Debug_Init
+      
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
+        
+POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"
+    
+# Just a solution to install dotnet30 clearly
+POL_SetupWindow_question "Nextion software is based on dotnet platform. Dotnet30 installation process require sudo operation. Please follow the instructions. Use middle mouse button to copy-paste terminal text." "Ptrace tuning for debian/ubuntu"
+    if [ "$APP_ANSWER" == "TRUE" ]
+        then
+            POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
+    fi
+    
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+Set_OS "win7"
+      
+# Component_inslallation
+POL_Call POL_Install_corefonts
+POL_Call POL_Install_dotnet45
+Set_OS "winxp"
+POL_Call POL_Install_ie8
+      
+      
+# Installing software
+POL_System_TmpCreate "$PREFIX"
+mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+cd "$POL_System_TmpDir"
+POL_Download "$LINK" "$MD5"
+unzip nextion-setup-v*.zip
+mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+   
+# You need to add you current user to appropriate groups for normal work with USB serial adapters
+ 
+POL_SetupWindow_question "Please fix your user access rights with SUDO (if needed) for normal USB serial adapter work. Follow the instructions. Use middle mouse button to copy-paste terminal text. Rerboot after installation process" "Enable serial adapter"
+if [ "$APP_ANSWER" == "TRUE" ]
+        then
+            POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial `whoami`"
+fi
+
+# Making USB_Serial to work. 5 adapters ought to be enough for anybody =)))
+ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
+ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
+ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
+ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
+ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
+    
+    
+# Delete TMP folder
+POL_System_TmpDelete
+      
+# Create Shortcuts
+POL_Shortcut "Nextion Editor.exe" "$TITLE"
+             
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-05-02)
# Distribution used to test : Ubuntu 16.04 64 bit
# Author : Lukonin Kirill
# Authors email: klukonin@gmail.com
# Licence : GPLv3
# PlayOnLinux: 4.2.10
      
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
      
PREFIX="Nextion"
WINEVERSION="1.8-staging"
TITLE="Nextion Editor"
EDITOR="ITEAD Studio"
AUTHOR="Lukonin Kirill"
LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
MD5="182a2829ed88df6d53d54daa15b981b4"
#Initialization
POL_SetupWindow_Init
POL_Debug_Init
      
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
        
POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"
    
# Just a solution to install dotnet30 clearly
POL_SetupWindow_question "Nextion software is based on dotnet platform. Dotnet30 installation process require sudo operation. Please follow the instructions. Use middle mouse button to copy-paste terminal text." "Ptrace tuning for debian/ubuntu"
    if [ "$APP_ANSWER" == "TRUE" ]
        then
            POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
    fi
    
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
Set_OS "win7"
      
# Component_inslallation
POL_Call POL_Install_corefonts
POL_Call POL_Install_dotnet45
Set_OS "winxp"
POL_Call POL_Install_ie8
      
      
# Installing software
POL_System_TmpCreate "$PREFIX"
mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
cd "$POL_System_TmpDir"
POL_Download "$LINK" "$MD5"
unzip nextion-setup-v*.zip
mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
   
# You need to add you current user to appropriate groups for normal work with USB serial adapters
 
POL_SetupWindow_question "Please fix your user access rights with SUDO (if needed) for normal USB serial adapter work. Follow the instructions. Use middle mouse button to copy-paste terminal text. Rerboot after installation process" "Enable serial adapter"
if [ "$APP_ANSWER" == "TRUE" ]
        then
            POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial `whoami`"
fi

# Making USB_Serial to work. 5 adapters ought to be enough for anybody =)))
ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
    
    
# Delete TMP folder
POL_System_TmpDelete
      
# Create Shortcuts
POL_Shortcut "Nextion Editor.exe" "$TITLE"
             
POL_SetupWindow_Close
exit 0

Replies

Monday 12 February 2018 at 15:28
I'm just a bit surprise you need it for dot30 but install dot45 (not quite the same). And why other don't need it ? Where did you find that you NEED that ? As far as I know it's only at runtime that may be useful so you can just display a message to the user and don't do it. And the last POL_SetupWindow_question is bad. You need to ask if it's ok to use usermod. But you display a message about instructions that arn't here!
Tuesday 13 February 2018 at 8:47
Ok. I understand.
dot45 requires dot30 to be installed and call dotnet30 winetricks script. That's why I need to deal with dotnet30 installation process.


What do you think about this question?
" It is necessary to give access rights and add your current user to the dialout/serial group for proper USB serial adapter work. If this is your first installation or you have no information about your user rights, please click "YES" and follow the instructions.
If you did this already or you want to do it yourself with "sudo usermod -aG dialout,serial $(whoami)" command, please click "NO" "
klukonin Monday 5 February 2018 at 7:40
klukonin

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

1) Some Set_OS switch and PREFIX improvements according to Tutul recommandations.

2) Migration to the new download link.

 

Smoke testing shows that the script is OK.

Differences

@@ -0,0 +1,72 @@
+#!/bin/bash
+# Date : (2018-05-02)
+# Distribution used to test : Ubuntu 16.04 64 bit
+# Author : Lukonin Kirill
+# Authors email: klukonin@gmail.com
+# Licence : GPLv3
+# PlayOnLinux: 4.2.10
+     
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+     
+PREFIX="Nextion"
+WINEVERSION="1.8-staging"
+TITLE="Nextion Editor"
+EDITOR="ITEAD Studio"
+AUTHOR="Lukonin Kirill"
+LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
+MD5="182a2829ed88df6d53d54daa15b981b4"
+#Initialization
+POL_SetupWindow_Init
+POL_Debug_Init
+     
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
+       
+POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"
+POL_SetupWindow_message "$(eval_gettext 'Nextion software is based on dotnet platform. Dotnet30 installation process require sudo operation. Please follow the instructions. Use middle mouse button to copy-paste terminal text. ')" "$TITLE"
+   
+# Just a solution to install dotnet30 clearly
+POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
+     
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+Set_OS "win7"
+     
+# Component_inslallation
+POL_Call POL_Install_corefonts
+POL_Call POL_Install_dotnet45
+Set_OS "winxp"
+POL_Call POL_Install_ie8
+     
+     
+# Installing software
+POL_System_TmpCreate "$PREFIX"
+mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+cd "$POL_System_TmpDir"
+POL_Download "$LINK" "$MD5"
+unzip nextion-setup-v*.zip
+mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+  
+# You need to add you current user to appropriate groups for normal work with USB serial adapters
+ 
+POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: Please fix your user access rights with SUDO (if needed) for normal USB serial adapter work. Follow the instructions. Use middle mouse button to copy-paste terminal text.  ')" "$TITLE"
+POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial `whoami`"
+   
+# Making USB_Serial to work. 5 adapters ought to be enough for anybody =)))
+ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
+ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
+ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
+ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
+ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
+   
+   
+# Delete TMP folder
+POL_System_TmpDelete
+     
+# Create Shortcuts
+POL_Shortcut "Nextion Editor.exe" "$TITLE"
+            
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-05-02)
# Distribution used to test : Ubuntu 16.04 64 bit
# Author : Lukonin Kirill
# Authors email: klukonin@gmail.com
# Licence : GPLv3
# PlayOnLinux: 4.2.10
     
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
     
PREFIX="Nextion"
WINEVERSION="1.8-staging"
TITLE="Nextion Editor"
EDITOR="ITEAD Studio"
AUTHOR="Lukonin Kirill"
LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip"
MD5="182a2829ed88df6d53d54daa15b981b4"
#Initialization
POL_SetupWindow_Init
POL_Debug_Init
     
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
       
POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"
POL_SetupWindow_message "$(eval_gettext 'Nextion software is based on dotnet platform. Dotnet30 installation process require sudo operation. Please follow the instructions. Use middle mouse button to copy-paste terminal text. ')" "$TITLE"
   
# Just a solution to install dotnet30 clearly
POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
     
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
Set_OS "win7"
     
# Component_inslallation
POL_Call POL_Install_corefonts
POL_Call POL_Install_dotnet45
Set_OS "winxp"
POL_Call POL_Install_ie8
     
     
# Installing software
POL_System_TmpCreate "$PREFIX"
mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
cd "$POL_System_TmpDir"
POL_Download "$LINK" "$MD5"
unzip nextion-setup-v*.zip
mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
  
# You need to add you current user to appropriate groups for normal work with USB serial adapters
 
POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: Please fix your user access rights with SUDO (if needed) for normal USB serial adapter work. Follow the instructions. Use middle mouse button to copy-paste terminal text.  ')" "$TITLE"
POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial `whoami`"
   
# Making USB_Serial to work. 5 adapters ought to be enough for anybody =)))
ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
   
   
# Delete TMP folder
POL_System_TmpDelete
     
# Create Shortcuts
POL_Shortcut "Nextion Editor.exe" "$TITLE"
            
POL_SetupWindow_Close
exit 0

Replies

Monday 5 February 2018 at 15:27
POL_SetupWindow_message "$(eval_gettext 'Nextion software is based on dotnet platform. Dotnet30 installation process require sudo operation. Please follow the instructions. Use middle mouse button to copy-paste terminal text. ')" "$TITLE"

# Just a solution to install dotnet30 clearly
POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
Monday 5 February 2018 at 15:28
You don't show any code, juste execute it.
Monday 12 February 2018 at 9:31
Sorry. I forgot about "yes/no" choice.
Monday 12 February 2018 at 9:33
This code will be shown in the sudo terminal after "YES" answer. So I think it's fine. Am I right?
Monday 12 February 2018 at 15:29
Your next post was bad, so I repost it for you, see my message
klukonin Thursday 1 February 2018 at 13:15
klukonin

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Some modifications acording to Tutul remarks.

Differences

@@ -0,0 +1,73 @@
+#!/bin/bash
+# Date : (2018-31-01)
+# Distribution used to test : Ubuntu 16.04 64 bit
+# Author : Lukonin Kirill
+# Authors email: klukonin@gmail.com
+# Licence : GPLv3
+# PlayOnLinux: 4.2.9
+    
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+    
+PREFIX="Nextion"
+WINEVERSION="1.8-staging"
+TITLE="Nextion Editor"
+EDITOR="ITEAD Studio"
+AUTHOR="Lukonin Kirill"
+LINK="http://dl.itead.cc/Nextion/nextion-setup-v053.zip"
+MD5="182a2829ed88df6d53d54daa15b981b4"
+#Initialization
+POL_SetupWindow_Init
+POL_Debug_Init
+    
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
+      
+POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"
+POL_SetupWindow_message "$(eval_gettext 'Nextion software is based on dotnet platform. Dotnet30 installation process require sudo operation. Please follow the instructions. Use middle mouse button to copy-paste terminal text. ')" "$TITLE"
+  
+# Just a solution to install dotnet30 clearly
+POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
+    
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+Set_OS "win7"
+    
+# Component_inslallation
+POL_Call POL_Install_corefonts
+Set_OS "win7"
+POL_Call POL_Install_dotnet45
+Set_OS "winxp"
+POL_Call POL_Install_ie8
+    
+    
+# Installing software
+POL_System_TmpCreate "$PREFIX"
+mkdir ~/.PlayOnLinux/wineprefix/Nextion/drive_c/Nextion
+cd "$POL_System_TmpDir"
+POL_Download "$LINK" "$MD5"
+unzip nextion-setup-v*.zip
+mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
+ 
+# You need to add you current user to appropriate groups for normal work with USB serial adapters
+
+POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: Please fix your user access rights with SUDO (if needed) for normal USB serial adapter work. Follow the instructions. Use middle mouse button to copy-paste terminal text.  ')" "$TITLE"
+POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial `whoami`"
+  
+# Making USB_Serial to work. 5 adapters ought to be enough for anybody =)))
+ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
+ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
+ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
+ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
+ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
+  
+  
+# Delete TMP folder
+POL_System_TmpDelete
+    
+# Create Shortcuts
+POL_Shortcut "Nextion Editor.exe" "$TITLE"
+           
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-31-01)
# Distribution used to test : Ubuntu 16.04 64 bit
# Author : Lukonin Kirill
# Authors email: klukonin@gmail.com
# Licence : GPLv3
# PlayOnLinux: 4.2.9
    
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
PREFIX="Nextion"
WINEVERSION="1.8-staging"
TITLE="Nextion Editor"
EDITOR="ITEAD Studio"
AUTHOR="Lukonin Kirill"
LINK="http://dl.itead.cc/Nextion/nextion-setup-v053.zip"
MD5="182a2829ed88df6d53d54daa15b981b4"
#Initialization
POL_SetupWindow_Init
POL_Debug_Init
    
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
      
POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE"
POL_SetupWindow_message "$(eval_gettext 'Nextion software is based on dotnet platform. Dotnet30 installation process require sudo operation. Please follow the instructions. Use middle mouse button to copy-paste terminal text. ')" "$TITLE"
  
# Just a solution to install dotnet30 clearly
POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
    
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
Set_OS "win7"
    
# Component_inslallation
POL_Call POL_Install_corefonts
Set_OS "win7"
POL_Call POL_Install_dotnet45
Set_OS "winxp"
POL_Call POL_Install_ie8
    
    
# Installing software
POL_System_TmpCreate "$PREFIX"
mkdir ~/.PlayOnLinux/wineprefix/Nextion/drive_c/Nextion
cd "$POL_System_TmpDir"
POL_Download "$LINK" "$MD5"
unzip nextion-setup-v*.zip
mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion
 
# You need to add you current user to appropriate groups for normal work with USB serial adapters

POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: Please fix your user access rights with SUDO (if needed) for normal USB serial adapter work. Follow the instructions. Use middle mouse button to copy-paste terminal text.  ')" "$TITLE"
POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial `whoami`"
  
# Making USB_Serial to work. 5 adapters ought to be enough for anybody =)))
ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
  
  
# Delete TMP folder
POL_System_TmpDelete
    
# Create Shortcuts
POL_Shortcut "Nextion Editor.exe" "$TITLE"
           
POL_SetupWindow_Close
exit 0

Replies

Thursday 1 February 2018 at 14:43
Not every system need ptrace_scope hack and as I said, it disable important system protection for the all system (not just for that process). So I think it's better to ask before and let the user cancel the installation (http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_11:_List_of_Functions#POL_SetupWindow_question_.284.0.2B.29)

Ok for the hack if needed.

$PREFIX/drive_c/Nextion : Because if one day someone want to update script, change prefix for one or an other, It will be more easy to just change one line instead of all bash lines + prefix no ?
Thursday 1 February 2018 at 14:56
Thank you for another remark.
I'll rework this script with yes/no choise for sudo commands.
Thursday 1 February 2018 at 14:57
And with dynamic $PREFIX also =)
Sunday 4 February 2018 at 17:41
Btw I patch the POL/POM corefonts function so now it should work fine
Sunday 4 February 2018 at 17:43
When your rework is here, I'll valid it as testing
Monday 5 February 2018 at 7:41
Ok. Just commited required changes.
klukonin Wednesday 31 January 2018 at 13:06
klukonin

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,71 @@
+#!/bin/bash
+# Date : (2018-31-01)
+# Distribution used to test : Ubuntu 16.04 64 bit
+# Author : Lukonin Kirill
+# Authors email: klukonin@gmail.com
+# Licence : GPLv3
+# PlayOnLinux: 4.2.9
+   
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+   
+PREFIX="Nextion"
+WINEVERSION="1.8-staging"
+TITLE="Nextion Editor"
+EDITOR="ITEAD Studio"
+AUTHOR="Lukonin Kirill"
+LINK="http://dl.itead.cc/Nextion/nextion-setup-v053.zip"
+MD5="182a2829ed88df6d53d54daa15b981b4"
+#Initialization
+POL_SetupWindow_Init
+POL_Debug_Init
+   
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
+     
+POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.You also need to run command with SUDO. Please follow the instructions. Use middle mouse button to copy-paste terminal text')" "$TITLE"
+ 
+# Just a solution to install dotnet30 clearly
+POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
+   
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+Set_OS "win7"
+   
+# Component_inslallation
+POL_Call POL_Install_corefonts
+Set_OS "win7"
+POL_Call POL_Install_dotnet45
+Set_OS "winxp"
+POL_Call POL_Install_ie8
+   
+   
+# Installing software
+POL_System_TmpCreate "$PREFIX"
+mkdir ~/.PlayOnLinux/wineprefix/Nextion/drive_c/Nextion
+cd "$POL_System_TmpDir"
+POL_Download "$LINK" "$MD5"
+unzip nextion-setup-v*.zip
+mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/Nextion/drive_c/Nextion
+
+# You need to add you current user to appropriate groups for normal work with USB serial adapters
+POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: You need to fix your user access rights ')" "$TITLE"
+POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial `whoami`"
+ 
+# Making USB_Serial to work. 5 adapters ought to be enough for anybody =)))
+ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
+ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
+ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
+ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
+ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
+ 
+ 
+# Delete TMP folder
+POL_System_TmpDelete
+   
+# Create Shortcuts
+POL_Shortcut "Nextion Editor.exe" "$TITLE"
+          
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-31-01)
# Distribution used to test : Ubuntu 16.04 64 bit
# Author : Lukonin Kirill
# Authors email: klukonin@gmail.com
# Licence : GPLv3
# PlayOnLinux: 4.2.9
   
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
PREFIX="Nextion"
WINEVERSION="1.8-staging"
TITLE="Nextion Editor"
EDITOR="ITEAD Studio"
AUTHOR="Lukonin Kirill"
LINK="http://dl.itead.cc/Nextion/nextion-setup-v053.zip"
MD5="182a2829ed88df6d53d54daa15b981b4"
#Initialization
POL_SetupWindow_Init
POL_Debug_Init
   
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
     
POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.You also need to run command with SUDO. Please follow the instructions. Use middle mouse button to copy-paste terminal text')" "$TITLE"
 
# Just a solution to install dotnet30 clearly
POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit"
   
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
Set_OS "win7"
   
# Component_inslallation
POL_Call POL_Install_corefonts
Set_OS "win7"
POL_Call POL_Install_dotnet45
Set_OS "winxp"
POL_Call POL_Install_ie8
   
   
# Installing software
POL_System_TmpCreate "$PREFIX"
mkdir ~/.PlayOnLinux/wineprefix/Nextion/drive_c/Nextion
cd "$POL_System_TmpDir"
POL_Download "$LINK" "$MD5"
unzip nextion-setup-v*.zip
mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/Nextion/drive_c/Nextion

# You need to add you current user to appropriate groups for normal work with USB serial adapters
POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: You need to fix your user access rights ')" "$TITLE"
POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial `whoami`"
 
# Making USB_Serial to work. 5 adapters ought to be enough for anybody =)))
ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10
ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11
ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1
ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2
ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3
 
 
# Delete TMP folder
POL_System_TmpDelete
   
# Create Shortcuts
POL_Shortcut "Nextion Editor.exe" "$TITLE"
          
POL_SetupWindow_Close
exit 0

Replies

Wednesday 31 January 2018 at 16:48
I'm concern by disabling security system. ptrace_scope is there to avoid process to access other process that arn't child. Is it really required ? If yes, I suggest you to inform the user before and ask (yes / cancel). Same for updating user permission.

 

And it's strange to use win7 ton install dot40 and after going to winxp. I assume there are a good reason ?

 

Instead of using ~/.PlayOnLinux/wineprefix/Nextion/drive_c/Nextion, maybe you can use $PREFIX/drive_c/Nextion ?
Thursday 1 February 2018 at 9:50
Hello.
ptrace_scope is a hack for dotnet installation process.
Please see a comment in script before.
# Just a solution to install dotnet30 clearly

Switching to win7 is a trick to avoid some bugs in XP mode.

Why do you think
Thursday 1 February 2018 at 9:51

Why do you think $PREFIX/drive_c/Nextion is better?

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com