Nextion Editor 0.53

Informations

Créateur Messages
klukonin Anonymous

Attention

This installer is a beta script. It means that it might not work as expected

Informations

Plate-formes :
Téléchargements : 365
Wine: 3.2-staging

Retours d'expérience

Description

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

 

Note: HMI = Human Machine Interface.

Website.

Captures d'écran

MiniatureMiniatureMiniatureMiniature

Code source

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

Contributions

Filters:

Contribuer
Membre Messages
stewartad1 Vendredi 12 Juillet 2019 à 19:19
stewartad1 Anonymous

Messages

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!

Réponses

c0rvux Samedi 11 Mai 2019 à 15:00
c0rvux Anonymous

Information

Cette mise à jour a été acceptée par l'équipe

Messages

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

Nouveau code source

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

Réponses

Anonymous
Lundi 8 Juillet 2019 à 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?

 

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

Messages

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

Réponses

Edité par Dadu042

Chassa Mardi 5 Juin 2018 à 7:54
Chassa Anonymous

Messages

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 !

 

Réponses

klukonin Samedi 17 Février 2018 à 12:16
klukonin Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

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

Nouveau code source

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

Réponses

klukonin Samedi 17 Février 2018 à 8:40
klukonin Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

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

Nouveau code source

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

Réponses

Tutul Lundi 12 Février 2018 à 15:25
Tutul
Modérateur

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

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

Nouveau code source

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

Réponses

Lundi 12 Février 2018 à 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
Mardi 13 Février 2018 à 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 Lundi 5 Février 2018 à 7:40
klukonin Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

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

Nouveau code source

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

Réponses

Lundi 5 Février 2018 à 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"
Lundi 5 Février 2018 à 15:28
You don't show any code, juste execute it.
Anonymous
Lundi 12 Février 2018 à 9:31
Sorry. I forgot about "yes/no" choice.
Anonymous
Lundi 12 Février 2018 à 9:33
This code will be shown in the sudo terminal after "YES" answer. So I think it's fine. Am I right?
Lundi 12 Février 2018 à 15:29
Your next post was bad, so I repost it for you, see my message
klukonin Jeudi 1 Février 2018 à 13:15
klukonin Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

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

Nouveau code source

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

Réponses

Jeudi 1 Février 2018 à 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
Jeudi 1 Février 2018 à 14:56
Thank you for another remark.
I'll rework this script with yes/no choise for sudo commands.
Anonymous
Jeudi 1 Février 2018 à 14:57
And with dynamic $PREFIX also =)
Dimanche 4 Février 2018 à 17:41
Btw I patch the POL/POM corefonts function so now it should work fine
Dimanche 4 Février 2018 à 17:43
When your rework is here, I'll valid it as testing
Anonymous
Lundi 5 Février 2018 à 7:41
Ok. Just commited required changes.
klukonin Mercredi 31 Janvier 2018 à 13:06
klukonin Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

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

Nouveau code source

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

Réponses

Mercredi 31 Janvier 2018 à 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
Jeudi 1 Février 2018 à 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
Jeudi 1 Février 2018 à 9:51

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