Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 21 15:17

    jcubic on master

    Slight rewording, and fix some … Merge pull request #13 from mar… (compare)

  • Apr 21 15:17
    jcubic closed #13
  • Apr 21 15:17
    jcubic commented #13
  • Apr 21 14:41
    marclaporte opened #13
  • Apr 21 14:36
  • Apr 14 02:41
  • Nov 23 2019 09:52
    jcubic commented #12
  • Nov 23 2019 02:18
    tommyjcode closed #12
  • Nov 23 2019 02:18
    tommyjcode commented #12
  • Nov 22 2019 22:16
    jcubic commented #12
  • Nov 22 2019 22:14
    jcubic closed #11
  • Nov 22 2019 21:40
    tommyjcode opened #12
  • Sep 28 2019 14:09
    jcubic commented #11
  • Sep 28 2019 10:25
    ZerooCool opened #11
  • Apr 08 2019 00:58
  • Nov 22 2018 04:45
  • Aug 23 2018 06:06
  • Apr 17 2018 13:48
  • Apr 01 2018 10:28

    jcubic on devel

    update scripts + more restricti… (compare)

  • Apr 01 2018 08:21

    jcubic on devel

    remove cat for guest users so s… (compare)

Jakub T. Jankiewicz
@jcubic
you need mb_string for php
jcubic/leash#5
coreygoettsch
@coreygoettsch
Yup, that did it! Once I restarted mb_string and apache2, it works now. Thank you so much for your time--and putting up with my stupidity.
I'm very excited to try this out. Thanks for working on this project.
coreygoettsch
@coreygoettsch
Hey man, I'm sorry to bother you again. I did manage to get into a shall, but once I got a bit into the intial setup, I got another error.

You are running Leash for the first time. You need to configure it
root password: *
Type your server name
server: nicholas-server
Your normal username
username: nicholas
Home directory
home: /home/nicholas
Allow guest sessions (Y)es/(N)o
guest: Y
Execute sudo for user accounts (Y)es/(N)o
sudo: Y
password: **
Detect Shell
Test Shell 'exec' [PASS]
Using shell exec
AJAX Error: "Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/html/lib/Service.php:1110
Stack trace:

#0 /var/www/html/lib/Service.php(944): Service->curl('https://github....')

#1 /var/www/html/lib/Service.php(983): Service->unzip_url(NULL, 'https://github....', 'jsvi-app-master', '/var/www/html/l...')

#2 /var/www/html/lib/Service.php(504): Service->get_repo(NULL, 'jcubic', 'jsvi-app', '/var/www/html/l...')

#3 /var/www/html/lib/json-rpc.php(262): Service->configure(Array)

#4 /var/www/html/index.php(21): handle_json_rpc(Object(Service))

#5 {main}

thrown in /var/www/html/lib/Service.php on line 1110"

coreygoettsch
@coreygoettsch
I should add that I get this from /var/log/apache2/error.log:
[Mon Sep 18 19:56:13.211377 2017] [:error] [pid 15545] [client 196.52.2.15:48834] PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/html/lib/Service.php:1110\nStack trace:\n#0 /var/www/html/lib/Service.php(944): Service->curl('https://github....')\n#1 /var/www/html/lib/Service.php(983): Service->unzip_url(NULL, 'https://github....', 'jsvi-app-master', '/var/www/html/l...')\n#2 /var/www/html/lib/Service.php(504): Service->get_repo(NULL, 'jcubic', 'jsvi-app', '/var/www/html/l...')\n#3 /var/www/html/lib/json-rpc.php(262): Service->configure(Array)\n#4 /var/www/html/index.php(21): handle_json_rpc(Object(Service))\n#5 {main}\n thrown in /var/www/html/lib/Service.php on line 1110, referer: http://159.203.189.218/
Jakub T. Jankiewicz
@jcubic
you need to install curl and zip, did you look at that issue I've linked?
coreygoettsch
@coreygoettsch
curl and zip are both installed.
Jakub T. Jankiewicz
@jcubic
curl and zip for php?
coreygoettsch
@coreygoettsch
no wait, not for php
just realized that right when you said it, haha
I'm sorry.
Okay, I'm fully logged in and ready to go now. Again, thanks for your help--and patience. I missed that part about having to install curl and zip for php.
Jakub T. Jankiewicz
@jcubic
I need to add snippet with apt-get for ubuntu to Readme
and maybe for Fedora that I'm currently using
coreygoettsch
@coreygoettsch
That'd definitely be helpful. And maybe include one for CentOS or RHEL. I don't know how different Fedora is from CentOS or RHEL. Have a good day, man. Thanks again!
Mordillo98
@Mordillo98
Hello
Not sure what i'm doing wrong. I get a blank screen when loading the page, and made sure all 4 php modules are installed. I have no error messages in error_log besides my timezone isn't in sync.
using centos 7, selinux and firewall disabled
Mordillo98
@Mordillo98
no functions disabled in my php.ini
Mordillo98
@Mordillo98
finally forced to get an error message. Woo hooo !
E_COMPILE_ERROR Error in file �Service.php� at line 367: Can't use function return value in write context
investigating
that's the line
return !empty(preg_replace("/\s$/", "", $response['output']));
Mordillo98
@Mordillo98
i'm using PHP Version 5.4.16
Mordillo98
@Mordillo98
Upgraded to PHP Version 5.5.21. that error msg is gone. :)
Now getting a permission error
failed to open stream: Permission denied","file":"\/var\/www\/html\/lib\/Service.php","at":251,"line":" $file = fopen($filename, 'w+');"},"name":"JSONRPCError"}}
Mordillo98
@Mordillo98
tons of permissions error. did a chmod -R 777 html/ - now working
chow !
Rohit Bhadani
@hashtagrb
Hello guys i ma getting error
You can't execute sudo if sudo option is on
Please help
Jakub T. Jankiewicz
@jcubic
@hashtagrb this is error if you have in config that it should use sudo for diiferent users, so if you login to leash using rohid username it will use sudo -u rohid I thougth that it make no sens to run sudo -u rohid sudo command not sure if that command would work in bash.
Sandeep KD
@ST-SKumar
i am facing a error You can't execute sudo if sudo option is on when i run any command in Leash Please help
Jakub T. Jankiewicz
@jcubic
it mean that you can't run command "sudo ls" because leash itself use sudo to chage the user if you setup it with real linux users
I thinking maybe it make sens to run sudo -u jcubic sudo ls
@ST-SKumar how did you setup the app?
mayonek
@mayonek
Can i run on it python code?
i getting eof when reading a line
mayonek
@mayonek
I run my code and it stop on lat1 = float(input('Type here: '))
Code waiting for input but leash doesn't show place for typing it
Jakub T. Jankiewicz
@jcubic
@mayonek Sorry this don't work that way, leash is AJAX based it send request to the server any scripts runs end and return the output. With inut working you will need to have real TTY, you will need xterm.js or any terminal based on it.
The advantage o leash is that you can use it on shared hosting that don't have ssh and don;t allow to run anything on ports. If you have ssh you don't need it, if you can run server on your machine you can use other solution like buterfly
Baki
@Lutafed_twitter
I couldn't solve this problem -> /usr/bin/unbuffer: 4: exec: tclsh8.6: not found
Jakub T. Jankiewicz
@jcubic
it's something with the system integrity you should report this issue to the distro you're using. unbuffer is shell script that run:
exec tclsh "$0" ${1+"$@"}
so you probably need to install tclsh search in google how to install it using your GNU/Linux distro
Baki
@Lutafed_twitter
thank you, tried installing again i encountered different errors :)
the distribution i use is Deepin OS 15.11
thanks for answering anyway.