× Discussions for CodeTyphon Studio Installation and Setup.

Question Install CT 7.70 on OpenSUSE Tumbleweed

  • Sergey Olenev
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 weeks 1 day ago #17003 by Sergey Olenev
Install CT 7.70 on OpenSUSE Tumbleweed was created by Sergey Olenev
Hello!

I installation CT on OpenSUSE Tumbleweed according to instructions:
www.pilotlogic.com/sitejoom/index.php/wi...ation-for-linux.html

And despite the fact that the local user was a member of the "sudo" group, the installation resulted in an error:

Current user can NOT run the sudo command
To correct this problem:
1) Install sudo
2) Add current user to sudo list
  with root privileges

By opening the install.sh file i saw this code there:

CAN_RUN_SUDO=$(sudo -n uptime 2>&1|grep "load"|wc -l)
if ! [ ${CAN_RUN_SUDO} -gt 0 ]
then

The script didn't see that my local user was already in the "sudo" group.  And then I changed the code in the script, removed the "!", it turned out like this:

CAN_RUN_SUDO=$(sudo -n uptime 2>&1|grep "load"|wc -l)
if [ ${CAN_RUN_SUDO} -gt 0 ]
then

The installation worked, and CT was installed. Did I do right? Why didn't the "if ! [ ${CAN_RUN_SUDO} -gt 0 ]" condition in the script see that the user belongs to the "sudo" group?

 

Please Log in or Create an account to join the conversation.

More
4 weeks 1 day ago - 4 weeks 1 day ago #17004 by Matis A.
Replied by Matis A. on topic Install CT 7.70 on OpenSUSE Tumbleweed
Your local user is in the "sudo" group, but can NOT run "sudo" command. 

CT installation script ask "sudo" if current user can run FULL sudo command
CAN_RUN_SUDO=$(sudo -n uptime 2>&1|grep "load"|wc -l)
if [ ${CAN_RUN_SUDO} -gt 0

For this reason, we suggest to add the installation user, to "sudo" group with full and passwordless privileges.
"user ALL = (ALL) NOPASSWD: ALL"

PS:  Look and this installation

PilotLogic Core Programmer
Last edit: 4 weeks 1 day ago by Matis A..

Please Log in or Create an account to join the conversation.

  • Sergey Olenev
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 weeks 1 day ago #17005 by Sergey Olenev
Replied by Sergey Olenev on topic Install CT 7.70 on OpenSUSE Tumbleweed
I did it:
user ALL = (ALL) NOPASSWD: ALL

I have read the instructions:

www.pilotlogic.com/sitejoom/index.php/wi...ation-for-linux.html
www.pilotlogic.com/sitejoom/index.php/wi...suse-tumbleweed.html
pilotlogic.com/sitejoom/index.php/wiki?id=545
pilotlogic.com/sitejoom/index.php/forum/...stallation-s-failure

and did exactly as it says.

The string "osv ALL = (ALL) NOPASSWD: ALL" has been added. But the error

"Current user can NOT run the sudo command
To correct this problem:
1) Install sudo
2) Add current user to sudo list
  with root privileges"

still occurred.

Please Log in or Create an account to join the conversation.

More
4 weeks 1 day ago #17006 by Matis A.
Replied by Matis A. on topic Install CT 7.70 on OpenSUSE Tumbleweed
I don't know, your OS installed correct ?

PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

  • Sergey Olenev
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 weeks 1 day ago #17007 by Sergey Olenev
Replied by Sergey Olenev on topic Install CT 7.70 on OpenSUSE Tumbleweed
I think yes, this is a fresh installation OpenSUSE Tumbleweed on a virtual machine VirtualBox.

Please Log in or Create an account to join the conversation.

  • Sergey Olenev
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 weeks 8 hours ago - 4 weeks 8 hours ago #17014 by Sergey Olenev
Replied by Sergey Olenev on topic Install CT 7.70 on OpenSUSE Tumbleweed
Everything worked out! My locale was set to Russian. And the script in the "sudo" check line checks for the term "load".
CAN_RUN_SUDO=$(sudo -n uptime 2>&1|grep "load"|wc -l)

The output of the sudo -n uptime command is
osv@localhost:~> sudo -n uptime
22:54:51  в работе  0:04,  3 пользователя, средняя загруженность: 1,51, 0,89, 0,36

And for the check to pass, it must be:
osv@osv-VirtualBox:~$ sudo -n uptime  
22:49:40 up 5 min,  1 user,  load average: 2,39, 0,90, 0,38

load <> загруженность

Script terminates on command "exit", and throws an error.
Last edit: 4 weeks 8 hours ago by Sergey Olenev.

Please Log in or Create an account to join the conversation.

More
4 weeks 8 hours ago #17015 by Matis A.
Replied by Matis A. on topic Install CT 7.70 on OpenSUSE Tumbleweed
Thanks
we must make some LAB tests for this...

PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.