Nextion Editor 0.53
Informations
Creator | Message |
---|---|
klukonin
|
InformationThis installer has been approved by the team. InformationsPlatforms: Feedbacks3 1 DescriptionNextion Editor is a development software for Nextion HMI screen from ITEAD. Note: HMI = Human Machine Interface. ScreenshotsSource code#!/bin/bash # Date : (2018-05-02) # Distribution used to test : Ubuntu 16.04 64 bit # Author : Lukonin Kirill # Authors email: klukonin@gmail.com # Licence : GPLv3 # PlayOnLinux: 4.2.10 # CHANGELOG # [Lukonin Kirill] (2018-05-02) # First script, for v0.43. # [...] # ... # [Dadu042] (2019-11-02) # - Disable feature 'install from download' (because the file get many updates). # - Add feature 'install from local'. # - Add POL_RequiredVersion # [Dadu042] (2019-11-02 11:35) # - Forgot something. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" PREFIX="Nextion" WINEVERSION="3.2-staging" TITLE="Nextion Editor" EDITOR="ITEAD Studio" AUTHOR="Lukonin Kirill" # LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip" # MD5="182a2829ed88df6d53d54daa15b981b4" #Initialization POL_SetupWindow_Init POL_Debug_Init # Presentation POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX" POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.\nThis script is tested with Nextion v0.53')" "$TITLE" # Note: POL 4.2.12 support Wine up to 3.0.3 max (as of 2019-11) POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE" # Just a solution to install dotnet30 clearly POL_SetupWindow_question \ "Nextion software is based on dotnet platform and requires Dotnet4.5 to be \ installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 \ and because of the issue with Dotnet3.0 installer on Linux, we need to play \ with ptrace_scope kernel parameter and make it through SUDO command \ 'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. This parameter willl be \ changed to default after reboot so it is recommended to reboot your PC after \ installation. If you don't know about this issue, plesae click 'YES' and \ follow the instructions. If you know about this issue or did it already or you \ want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu" if [ "$APP_ANSWER" == "TRUE" ] then POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit" fi # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" Set_OS "win7" # Component_inslallation POL_Call POL_Install_corefonts POL_Call POL_Install_dotnet45 Set_OS "winxp" POL_Call POL_Install_ie8 # Installing software POL_System_TmpCreate "$PREFIX" mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion cd "$POL_System_TmpDir" # POL_Download "$LINK" "$MD5" # unzip nextion-setup-v*.zip -d NextionEditor # mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file (.EXE) to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" POL_Wine start /unix "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" # You need to add you current user to appropriate groups for normal work with USB serial adapters POL_SetupWindow_question \ "It is necessary to give access rights and add your current user to the \ dialout/serial group for proper USB serial adapter work. If this is your first \ installation or you have no information about your user rights, please click \ 'YES' and reboot your PC after installation. If you did this already or you \ want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' \ command, please click 'NO'" "USB serial adapter tuning" if [ "$APP_ANSWER" == "TRUE" ] then POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit" fi POL_SetupWindow_message \ "You can see current 'COM' links by running \ 'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \ command-line. If you want change existing configuration you can do it as \ described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \ "USB serial adapter tunung" # Create Shortcuts POL_Shortcut "NextionEditor.exe" "$TITLE" # Delete TMP folder POL_System_TmpDelete POL_SetupWindow_Close exit 0 |
Contributions
Filters:
ContributeMember | Message |
Dadu042 | Saturday 2 November 2019 at 11:36 |
Dadu042
|
InformationThis update has been approved by the team. Differences@@ -5,7 +5,7 @@ # Authors email: klukonin@gmail.com # Licence : GPLv3 # PlayOnLinux: 4.2.10 - + # CHANGELOG # [Lukonin Kirill] (2018-05-02) # First script, for v0.43. @@ -15,30 +15,32 @@ # - Disable feature 'install from download' (because the file get many updates). # - Add feature 'install from local'. # - Add POL_RequiredVersion - +# [Dadu042] (2019-11-02 11:35) +# - Forgot something. + [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" - + PREFIX="Nextion" WINEVERSION="3.2-staging" TITLE="Nextion Editor" EDITOR="ITEAD Studio" AUTHOR="Lukonin Kirill" -# LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip" +# LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip" # MD5="182a2829ed88df6d53d54daa15b981b4" - + #Initialization POL_SetupWindow_Init POL_Debug_Init - + # Presentation POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX" - + POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.\nThis script is tested with Nextion v0.53')" "$TITLE" - -# Note: POL 4.2.12 support Wine up to 3.0.3 max (as of 2019-11) -POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE" +# Note: POL 4.2.12 support Wine up to 3.0.3 max (as of 2019-11) +POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE" + # Just a solution to install dotnet30 clearly POL_SetupWindow_question \ "Nextion software is based on dotnet platform and requires Dotnet4.5 to be \ @@ -54,31 +56,34 @@ then POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit" fi - + # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" Set_OS "win7" - + # Component_inslallation POL_Call POL_Install_corefonts POL_Call POL_Install_dotnet45 Set_OS "winxp" POL_Call POL_Install_ie8 - + # Installing software POL_System_TmpCreate "$PREFIX" mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion - + cd "$POL_System_TmpDir" - -# POL_Download "$LINK" "$MD5" -# unzip nextion-setup-v*.zip -d NextionEditor -# mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion - + +# POL_Download "$LINK" "$MD5" +# unzip nextion-setup-v*.zip -d NextionEditor +# mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion + POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file (.EXE) to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" - + +POL_Wine start /unix "$SETUP_EXE" +POL_Wine_WaitExit "$TITLE" + # You need to add you current user to appropriate groups for normal work with USB serial adapters POL_SetupWindow_question \ "It is necessary to give access rights and add your current user to the \ @@ -91,19 +96,19 @@ then POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit" fi - + POL_SetupWindow_message \ "You can see current 'COM' links by running \ 'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \ command-line. If you want change existing configuration you can do it as \ described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \ "USB serial adapter tunung" - + # Create Shortcuts POL_Shortcut "NextionEditor.exe" "$TITLE" - + # Delete TMP folder POL_System_TmpDelete - + POL_SetupWindow_Close exit 0 \ No newline at end of file New source code#!/bin/bash # Date : (2018-05-02) # Distribution used to test : Ubuntu 16.04 64 bit # Author : Lukonin Kirill # Authors email: klukonin@gmail.com # Licence : GPLv3 # PlayOnLinux: 4.2.10 # CHANGELOG # [Lukonin Kirill] (2018-05-02) # First script, for v0.43. # [...] # ... # [Dadu042] (2019-11-02) # - Disable feature 'install from download' (because the file get many updates). # - Add feature 'install from local'. # - Add POL_RequiredVersion # [Dadu042] (2019-11-02 11:35) # - Forgot something. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" PREFIX="Nextion" WINEVERSION="3.2-staging" TITLE="Nextion Editor" EDITOR="ITEAD Studio" AUTHOR="Lukonin Kirill" # LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip" # MD5="182a2829ed88df6d53d54daa15b981b4" #Initialization POL_SetupWindow_Init POL_Debug_Init # Presentation POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX" POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.\nThis script is tested with Nextion v0.53')" "$TITLE" # Note: POL 4.2.12 support Wine up to 3.0.3 max (as of 2019-11) POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE" # Just a solution to install dotnet30 clearly POL_SetupWindow_question \ "Nextion software is based on dotnet platform and requires Dotnet4.5 to be \ installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 \ and because of the issue with Dotnet3.0 installer on Linux, we need to play \ with ptrace_scope kernel parameter and make it through SUDO command \ 'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. This parameter willl be \ changed to default after reboot so it is recommended to reboot your PC after \ installation. If you don't know about this issue, plesae click 'YES' and \ follow the instructions. If you know about this issue or did it already or you \ want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu" if [ "$APP_ANSWER" == "TRUE" ] then POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit" fi # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" Set_OS "win7" # Component_inslallation POL_Call POL_Install_corefonts POL_Call POL_Install_dotnet45 Set_OS "winxp" POL_Call POL_Install_ie8 # Installing software POL_System_TmpCreate "$PREFIX" mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion cd "$POL_System_TmpDir" # POL_Download "$LINK" "$MD5" # unzip nextion-setup-v*.zip -d NextionEditor # mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file (.EXE) to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" POL_Wine start /unix "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" # You need to add you current user to appropriate groups for normal work with USB serial adapters POL_SetupWindow_question \ "It is necessary to give access rights and add your current user to the \ dialout/serial group for proper USB serial adapter work. If this is your first \ installation or you have no information about your user rights, please click \ 'YES' and reboot your PC after installation. If you did this already or you \ want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' \ command, please click 'NO'" "USB serial adapter tuning" if [ "$APP_ANSWER" == "TRUE" ] then POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit" fi POL_SetupWindow_message \ "You can see current 'COM' links by running \ 'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \ command-line. If you want change existing configuration you can do it as \ described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \ "USB serial adapter tunung" # Create Shortcuts POL_Shortcut "NextionEditor.exe" "$TITLE" # Delete TMP folder POL_System_TmpDelete POL_SetupWindow_Close exit 0 Replies |
Dadu042 | Saturday 2 November 2019 at 11:33 |
Dadu042
|
WarningThis update has not been approved yet by the team. MessageSee changelog. Differences@@ -6,25 +6,39 @@ # Licence : GPLv3 # PlayOnLinux: 4.2.10 +# CHANGELOG +# [Lukonin Kirill] (2018-05-02) +# First script, for v0.43. +# [...] +# ... +# [Dadu042] (2019-11-02) +# - Disable feature 'install from download' (because the file get many updates). +# - Add feature 'install from local'. +# - Add POL_RequiredVersion + [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" - + PREFIX="Nextion" WINEVERSION="3.2-staging" TITLE="Nextion Editor" EDITOR="ITEAD Studio" AUTHOR="Lukonin Kirill" -LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip" -MD5="182a2829ed88df6d53d54daa15b981b4" +# LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip" +# MD5="182a2829ed88df6d53d54daa15b981b4" + #Initialization POL_SetupWindow_Init POL_Debug_Init - + # Presentation POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX" -POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE" +POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.\nThis script is tested with Nextion v0.53')" "$TITLE" +# Note: POL 4.2.12 support Wine up to 3.0.3 max (as of 2019-11) +POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE" + # Just a solution to install dotnet30 clearly POL_SetupWindow_question \ "Nextion software is based on dotnet platform and requires Dotnet4.5 to be \ @@ -37,29 +51,34 @@ follow the instructions. If you know about this issue or did it already or you \ want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu" if [ "$APP_ANSWER" == "TRUE" ] - then - POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit" + then + POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit" fi - + # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" Set_OS "win7" - + # Component_inslallation POL_Call POL_Install_corefonts POL_Call POL_Install_dotnet45 Set_OS "winxp" POL_Call POL_Install_ie8 - + # Installing software POL_System_TmpCreate "$PREFIX" mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion + cd "$POL_System_TmpDir" -POL_Download "$LINK" "$MD5" -unzip nextion-setup-v*.zip -d NextionEditor -mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion +# POL_Download "$LINK" "$MD5" +# unzip nextion-setup-v*.zip -d NextionEditor +# mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion + +POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file (.EXE) to run')" "$TITLE" +SETUP_EXE="$APP_ANSWER" + # You need to add you current user to appropriate groups for normal work with USB serial adapters POL_SetupWindow_question \ "It is necessary to give access rights and add your current user to the \ @@ -69,10 +88,10 @@ want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' \ command, please click 'NO'" "USB serial adapter tuning" if [ "$APP_ANSWER" == "TRUE" ] - then - POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit" + then + POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit" fi - + POL_SetupWindow_message \ "You can see current 'COM' links by running \ 'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \ @@ -80,11 +99,11 @@ described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \ "USB serial adapter tunung" -# Delete TMP folder -POL_System_TmpDelete - # Create Shortcuts POL_Shortcut "NextionEditor.exe" "$TITLE" +# Delete TMP folder +POL_System_TmpDelete + POL_SetupWindow_Close exit 0 \ No newline at end of file New source code#!/bin/bash # Date : (2018-05-02) # Distribution used to test : Ubuntu 16.04 64 bit # Author : Lukonin Kirill # Authors email: klukonin@gmail.com # Licence : GPLv3 # PlayOnLinux: 4.2.10 # CHANGELOG # [Lukonin Kirill] (2018-05-02) # First script, for v0.43. # [...] # ... # [Dadu042] (2019-11-02) # - Disable feature 'install from download' (because the file get many updates). # - Add feature 'install from local'. # - Add POL_RequiredVersion [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" PREFIX="Nextion" WINEVERSION="3.2-staging" TITLE="Nextion Editor" EDITOR="ITEAD Studio" AUTHOR="Lukonin Kirill" # LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip" # MD5="182a2829ed88df6d53d54daa15b981b4" #Initialization POL_SetupWindow_Init POL_Debug_Init # Presentation POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX" POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.\nThis script is tested with Nextion v0.53')" "$TITLE" # Note: POL 4.2.12 support Wine up to 3.0.3 max (as of 2019-11) POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE" # Just a solution to install dotnet30 clearly POL_SetupWindow_question \ "Nextion software is based on dotnet platform and requires Dotnet4.5 to be \ installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 \ and because of the issue with Dotnet3.0 installer on Linux, we need to play \ with ptrace_scope kernel parameter and make it through SUDO command \ 'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. This parameter willl be \ changed to default after reboot so it is recommended to reboot your PC after \ installation. If you don't know about this issue, plesae click 'YES' and \ follow the instructions. If you know about this issue or did it already or you \ want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu" if [ "$APP_ANSWER" == "TRUE" ] then POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit" fi # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" Set_OS "win7" # Component_inslallation POL_Call POL_Install_corefonts POL_Call POL_Install_dotnet45 Set_OS "winxp" POL_Call POL_Install_ie8 # Installing software POL_System_TmpCreate "$PREFIX" mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion cd "$POL_System_TmpDir" # POL_Download "$LINK" "$MD5" # unzip nextion-setup-v*.zip -d NextionEditor # mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file (.EXE) to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" # You need to add you current user to appropriate groups for normal work with USB serial adapters POL_SetupWindow_question \ "It is necessary to give access rights and add your current user to the \ dialout/serial group for proper USB serial adapter work. If this is your first \ installation or you have no information about your user rights, please click \ 'YES' and reboot your PC after installation. If you did this already or you \ want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' \ command, please click 'NO'" "USB serial adapter tuning" if [ "$APP_ANSWER" == "TRUE" ] then POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit" fi POL_SetupWindow_message \ "You can see current 'COM' links by running \ 'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \ command-line. If you want change existing configuration you can do it as \ described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \ "USB serial adapter tunung" # Create Shortcuts POL_Shortcut "NextionEditor.exe" "$TITLE" # Delete TMP folder POL_System_TmpDelete POL_SetupWindow_Close exit 0 Replies |
Heikoho | Sunday 20 October 2019 at 22:40 |
Heikoho
|
MessageHi, a great THANK YOU. But can you please tell me, how i can update the Nextion Editor from 0.53 to 0.58. Thanks
Heiko Replies |
stewartad1 | Friday 12 July 2019 at 19:19 |
stewartad1
|
MessageHi everyone, when installing nextion 0.53, it fails when it gets to installing internet explorer 8, it says it cannot install as there is a newer version of IE already installed. Do you have any suggestion? I figured I’d post this request here since it is bundled in the nextion install but I could see this also belonging under the IE8 forum. Thanks in advance! Replies |
c0rvux | Saturday 11 May 2019 at 15:00 |
c0rvux
|
WarningThis update has not been approved yet by the team. MessageHi! Have some problems with installation on Fedora 29 x86_64. So I made several script edits:
Differences@@ -5,12 +5,12 @@ # Authors email: klukonin@gmail.com # Licence : GPLv3 # PlayOnLinux: 4.2.10 - + [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" - + PREFIX="Nextion" -WINEVERSION="1.8-staging" +WINEVERSION="3.2-staging" TITLE="Nextion Editor" EDITOR="ITEAD Studio" AUTHOR="Lukonin Kirill" @@ -19,67 +19,72 @@ #Initialization POL_SetupWindow_Init POL_Debug_Init - + # Presentation POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX" - + POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE" - + # Just a solution to install dotnet30 clearly -POL_SetupWindow_question "Nextion software is based on dotnet platform and requires Dotnet4.5 to be installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 and because of the issue with Dotnet3.0 installer on Linux, we need to play with -ptrace_scope kernel parameter and make it through SUDO command 'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. -This parameter willl be changed to default after reboot so it is recommended to reboot your PC after installation. -If you don't know about this issue, plesae click 'YES' and follow the instructions. If you know about this issue or did it already or you want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu" - if [ "$APP_ANSWER" == "TRUE" ] - then - POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit" - fi - +POL_SetupWindow_question \ +"Nextion software is based on dotnet platform and requires Dotnet4.5 to be \ +installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 \ +and because of the issue with Dotnet3.0 installer on Linux, we need to play \ +with ptrace_scope kernel parameter and make it through SUDO command \ +'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. This parameter willl be \ +changed to default after reboot so it is recommended to reboot your PC after \ +installation. If you don't know about this issue, plesae click 'YES' and \ +follow the instructions. If you know about this issue or did it already or you \ +want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu" +if [ "$APP_ANSWER" == "TRUE" ] + then + POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit" +fi + # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" Set_OS "win7" - + # Component_inslallation POL_Call POL_Install_corefonts POL_Call POL_Install_dotnet45 Set_OS "winxp" POL_Call POL_Install_ie8 - - + # Installing software POL_System_TmpCreate "$PREFIX" mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion cd "$POL_System_TmpDir" POL_Download "$LINK" "$MD5" -unzip nextion-setup-v*.zip -mv -f Nextion\ Editor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion - +unzip nextion-setup-v*.zip -d NextionEditor +mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion + # You need to add you current user to appropriate groups for normal work with USB serial adapters - -POL_SetupWindow_question "It is necessary to give access rights and add your current user to the dialout/serial group for proper USB serial adapter work. If this is your first installation or you have no information about your user rights, please click 'YES' and reboot your PC after installation. -If you did this already or you want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' command, please click 'NO'" "USB serial adapter tuning" +POL_SetupWindow_question \ +"It is necessary to give access rights and add your current user to the \ +dialout/serial group for proper USB serial adapter work. If this is your first \ +installation or you have no information about your user rights, please click \ +'YES' and reboot your PC after installation. If you did this already or you \ +want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' \ +command, please click 'NO'" "USB serial adapter tuning" if [ "$APP_ANSWER" == "TRUE" ] - then - POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial `whoami`" + then + POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit" fi - -# Making USB_Serial to work. 7 adapters ought to be enough for anybody =))) -ln -s /dev/ttyS0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com10 -ln -s /dev/ttyS1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com11 -ln -s /dev/ttyUSB0 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com1 -ln -s /dev/ttyUSB1 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com2 -ln -s /dev/ttyUSB2 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com3 -ln -s /dev/ttyUSB3 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com4 -ln -s /dev/ttyUSB4 ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com5` - - +POL_SetupWindow_message \ +"You can see current 'COM' links by running \ +'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \ +command-line. If you want change existing configuration you can do it as \ +described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \ +"USB serial adapter tunung" + # Delete TMP folder POL_System_TmpDelete - + # Create Shortcuts -POL_Shortcut "Nextion Editor.exe" "$TITLE" - +POL_Shortcut "NextionEditor.exe" "$TITLE" + POL_SetupWindow_Close exit 0 \ No newline at end of file New source code#!/bin/bash # Date : (2018-05-02) # Distribution used to test : Ubuntu 16.04 64 bit # Author : Lukonin Kirill # Authors email: klukonin@gmail.com # Licence : GPLv3 # PlayOnLinux: 4.2.10 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" PREFIX="Nextion" WINEVERSION="3.2-staging" TITLE="Nextion Editor" EDITOR="ITEAD Studio" AUTHOR="Lukonin Kirill" LINK="http://nextion.itead.cc/download/nextion-setup-v053.zip" MD5="182a2829ed88df6d53d54daa15b981b4" #Initialization POL_SetupWindow_Init POL_Debug_Init # Presentation POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX" POL_SetupWindow_message "$(eval_gettext 'IMPORTANT: This program may work not well on Linux. Be careful.')" "$TITLE" # Just a solution to install dotnet30 clearly POL_SetupWindow_question \ "Nextion software is based on dotnet platform and requires Dotnet4.5 to be \ installed. However, Dotnet4.5 installation is possible only after Dotnet3.0 \ and because of the issue with Dotnet3.0 installer on Linux, we need to play \ with ptrace_scope kernel parameter and make it through SUDO command \ 'echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope'. This parameter willl be \ changed to default after reboot so it is recommended to reboot your PC after \ installation. If you don't know about this issue, plesae click 'YES' and \ follow the instructions. If you know about this issue or did it already or you \ want to do this yourself, please click 'NO'" "Ptrace tuning for debian/ubuntu" if [ "$APP_ANSWER" == "TRUE" ] then POL_Call POL_Function_RootCommand "echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope; exit" fi # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" Set_OS "win7" # Component_inslallation POL_Call POL_Install_corefonts POL_Call POL_Install_dotnet45 Set_OS "winxp" POL_Call POL_Install_ie8 # Installing software POL_System_TmpCreate "$PREFIX" mkdir ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion cd "$POL_System_TmpDir" POL_Download "$LINK" "$MD5" unzip nextion-setup-v*.zip -d NextionEditor mv -f NextionEditor ~/.PlayOnLinux/wineprefix/$PREFIX/drive_c/Nextion # You need to add you current user to appropriate groups for normal work with USB serial adapters POL_SetupWindow_question \ "It is necessary to give access rights and add your current user to the \ dialout/serial group for proper USB serial adapter work. If this is your first \ installation or you have no information about your user rights, please click \ 'YES' and reboot your PC after installation. If you did this already or you \ want to do it yourself with 'sudo usermod -aG dialout,serial $(whoami)' \ command, please click 'NO'" "USB serial adapter tuning" if [ "$APP_ANSWER" == "TRUE" ] then POL_Call POL_Function_RootCommand "sudo usermod -aG dialout,serial $(whoami); exit" fi POL_SetupWindow_message \ "You can see current 'COM' links by running \ 'ls -al ~/.PlayOnLinux/wineprefix/Nextion/dosdevices/com*' in the \ command-line. If you want change existing configuration you can do it as \ described here: 'https://wiki.winehq.org/index.php?title=Wine_User%27s_Guide&oldid=2519#Serial_and_Parallel_Ports'" \ "USB serial adapter tunung" # Delete TMP folder POL_System_TmpDelete # Create Shortcuts POL_Shortcut "NextionEditor.exe" "$TITLE" POL_SetupWindow_Close exit 0 RepliesMonday 8 July 2019 at 1:27
Monday 8 July 2019 at 6:14
Monday 8 July 2019 at 6:33
Monday 8 July 2019 at 12:26
Monday 8 July 2019 at 14:15
Monday 8 July 2019 at 14:16
Monday 8 July 2019 at 21:31
|
v3xX | Tuesday 20 November 2018 at 11:57 |
v3xX
|
MessageI 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 RepliesEdited by Dadu042 |
Chassa | Tuesday 5 June 2018 at 7:54 |
Chassa
|
MessageHi, 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
|
WarningThis update has not been approved yet by the team. MessageFix. 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
|
WarningThis update has not been approved yet by the team. MessageSome 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
|
WarningThis update has not been approved yet by the team. MessageRepost 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 |
klukonin | Monday 5 February 2018 at 7:40 |
klukonin
|
WarningThis update has not been approved yet by the team. Message1) 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 |
klukonin | Thursday 1 February 2018 at 13:15 |
klukonin
|
WarningThis update has not been approved yet by the team. MessageSome 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 |
klukonin | Wednesday 31 January 2018 at 13:06 |
klukonin
|
WarningThis update has not been approved yet by the team. 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 |
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com