Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Studio Installation and Setup.
  • Page:
  • 1

TOPIC:

Install CT 7.70 on OpenSUSE Tumbleweed 9 months 3 days ago #17003

  • Sergey Olenev
  • Sergey Olenev's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
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.

Install CT 7.70 on OpenSUSE Tumbleweed 9 months 3 days ago #17004

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 795
  • Thank you received: 81
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

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

Last edit: by Matis A..

Install CT 7.70 on OpenSUSE Tumbleweed 9 months 3 days ago #17005

  • Sergey Olenev
  • Sergey Olenev's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
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.

Install CT 7.70 on OpenSUSE Tumbleweed 9 months 3 days ago #17006

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 795
  • Thank you received: 81
I don't know, your OS installed correct ?
PilotLogic Core Programmer

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

Install CT 7.70 on OpenSUSE Tumbleweed 9 months 3 days ago #17007

  • Sergey Olenev
  • Sergey Olenev's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
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.

Install CT 7.70 on OpenSUSE Tumbleweed 9 months 2 days ago #17014

  • Sergey Olenev
  • Sergey Olenev's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
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.

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

Last edit: by Sergey Olenev.

Install CT 7.70 on OpenSUSE Tumbleweed 9 months 2 days ago #17015

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 795
  • Thank you received: 81
Thanks
we must make some LAB tests for this...
PilotLogic Core Programmer

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

  • Page:
  • 1