You are here    Supported software    Nextion Editor 0.53 nl sv ru pl es de fr

Nextion Editor 0.53

Informations

Creator Message
klukonin Anonymous

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

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

Source code

				

Contributions

Filters:

Contribute
Member Message
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 Anonymous

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 Anonymous

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
Moderator

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!
Anonymous
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 Anonymous

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.
Anonymous
Monday 12 February 2018 at 9:31 -
Sorry. I forgot about "yes/no" choice.
Anonymous
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 Anonymous

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 ?
Anonymous
Thursday 1 February 2018 at 14:56 -
Thank you for another remark.
I'll rework this script with yes/no choise for sudo commands.
Anonymous
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
Anonymous
Monday 5 February 2018 at 7:41 -
Ok. Just commited required changes.
klukonin Wednesday 31 January 2018 at 13:06
klukonin Anonymous

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 ?
Anonymous
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
Anonymous
Thursday 1 February 2018 at 9:51 -

Why do you think $PREFIX/drive_c/Nextion is better?
klukonin Wednesday 31 January 2018 at 13:05
klukonin Anonymous

Message

#!/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