Forums

×

Warning

JUser: :_load: Unable to load user with ID: 380141
x
x
Offline
Resolved
0 votes
Hi,

I've setup a ClearOS dev environment and I followed the Hello World tutorial in the dev section but I have the impression that this tutorial is not finished. Is this correct?

I must say it was very easy to follow and well written. I'm very curious how to proceed further cause I'm very interested in this coding stuff. :) Maybe you can advice some more dev tutorials to follow..

I played a bit with playgrounds, Python and followed some youtube videos about variables, constants, lists, etc. I know this is just some beginners stuff but I like to learn more if I have some spare time left. I think ClearOS is interesting project to learn more of this stuff also this is my favourite project/distro. The problem with playgrounds and python is I don't have a real destination/target ( I'm not sure how to describe it but I hope it's clear).
Sunday, October 16 2016, 07:45 PM
Share this post:
Responses (7)
  • Accepted Answer

    Wednesday, June 28 2023, 05:56 AM - #Permalink
    Resolved
    0 votes
    IT and the software industry have long been sought-after job paths. Even among them, there has been a positive tendency in some profiles. The two profiles that have gained the most recognition in recent years are Java Developer and Full Stack Developer, When aspiring to become a full stack developer, it is important to choose a programming language that provides a solid foundation for both front-end and back-end development.
    Visit - Full Stack Classes in Pune
    The reply is currently minimized Show
  • Accepted Answer

    x
    x
    Offline
    Wednesday, October 19 2016, 07:34 PM - #Permalink
    Resolved
    0 votes
    Fredrik Fornstad wrote:

    Marcel,
    Thanks for the input. Maybe you and me can slowly guide ourselves forward in our attempts to become masters of app-programming for ClearOS :)


    Very good idea! I think it's good to motivate each other and share issues/problems.


    Today, I booted up the VM and first tried my theory of logging in with the browser using the developer account. That did not work since the developer account is not part of LDAP... Did not think of that...


    If I login with my developers account I'll get this message


    Ooooops: Accounts system driver has not been set.


    I think that's because there is now user account system installed.


    So instead I changed back the filename back to .clearos (I did not test the 1501 port first) since it works for you. To my surprise I now CAN run the "clearos" command from the console logged in as my developer! I have no idea why, but I guess a reboot must have done something to the setup... So now I am a bit closer to my goal. Now I just need to fight the bugs in the php-scripts...


    Nice!


    My next challenge: Is there a way to turn on (and look at) some debugging logs from webconfig? The normal log at /var/log is not enough. Right now it is a bit of a guessing game when all I am facing is a "An Error Was Encountered" :(

    /Fred


    Sorry haven't slightest idea...

    Did you followed some PHP tutorials? I'm following the tutorials Peter suggested. I must say very interesting! I must admit I have no IT/code background. At the moment it's just hobby but a bit out of the hand... :)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 19 2016, 07:03 PM - #Permalink
    Resolved
    0 votes
    Marcel,
    Thanks for the input. Maybe you and me can slowly guide ourselves forward in our attempts to become masters of app-programming for ClearOS :)

    Today, I booted up the VM and first tried my theory of logging in with the browser using the developer account. That did not work since the developer account is not part of LDAP... Did not think of that...

    So instead I changed back the filename back to .clearos (I did not test the 1501 port first) since it works for you. To my surprise I now CAN run the "clearos" command from the console logged in as my developer! I have no idea why, but I guess a reboot must have done something to the setup... So now I am a bit closer to my goal. Now I just need to fight the bugs in the php-scripts...

    My next challenge: Is there a way to turn on (and look at) some debugging logs from webconfig? The normal log at /var/log is not enough. Right now it is a bit of a guessing game when all I am facing is a "An Error Was Encountered" :(

    Edit: (a few mintues after the original post:) Found the problem without debugger: one file had the wrong permissions. However, a debugger would still be nice.

    /Fred
    The reply is currently minimized Show
  • Accepted Answer

    x
    x
    Offline
    Wednesday, October 19 2016, 05:32 PM - #Permalink
    Resolved
    0 votes
    Hi Fredrik,

    I also had to add the .clearos file. It was no existing but after doing so I can still execute "clearos spec" or "clearos local".
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 19 2016, 07:02 AM - #Permalink
    Resolved
    0 votes
    Peter & Marcel,
    While I think the first "Development Tool installation" tutorial is very well written and to the point, a bit down the road the tutorials are not only incomplete, they are to some extent missleading:

    I decided to start of with a fresh "development" ClearOS7 VM yesterday and ran into some issues:
    The installation of development tools work as per the tutorial, but when I got to the "Hello World tutorial" it is clear that something is wrong. After issuing the
    clearos newapp
    command, I am told to "Add the following configuration option to the ~/.clearos file: "
    <?php 
    \clearos\framework\Config::$apps_paths[] = 'apps';
    I assume this is to go into the normal user account (not to the root user). However this file does not exist so I need to create it, which I guess is fine, BUT after this it is NOT possible to issue any
    clearos ...
    command anymore as it will execute my newly created .clearos file... which bombs out.

    I solved(?) this issue by renaming my .clearos file to .clearosconf and doing the same inside the file /usr/clearos/sandbox/etc/httpd/conf.d/devel.conf so it is looking for the new file name. After this I can run the "clearos" command successfully.

    Now I am able to use my webbrowser to connect with my clearos VM using port 1501 instead of 81. However I do not see any of the apps that I have in the "apps" directory of my development account... However, I just came to think about that I logged in (via the browser) with my root account. Maybe it should have been with my development account instead. The search continues...

    /Fred
    The reply is currently minimized Show
  • Accepted Answer

    x
    x
    Offline
    Monday, October 17 2016, 04:50 PM - #Permalink
    Resolved
    0 votes
    Hey Peter,

    A big thanks for the links! Going to start with those videos this evening.

    I also followed some tutorials on TeamTreehouse but my problem is as I mentioned in my first post I'm not sure where to start. Did some lesons of Python, PHP and Swift. Now I'm back I think ClearOS is a good place to start so I'm going to focus myself on PHP. Never to old to learn... :)

    I thought that ClearOS is using the codeigniter framework or you just use Laravel PHP framework to learn PHP?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 17 2016, 04:22 PM - #Permalink
    Resolved
    0 votes
    Hey Marcel,

    Yes, the development tutorials are unfinished and I'm not sure when resources will be added to finish those up. Most of the app development is done in PHP, but there is Python, Perl, and LUA floating around too.

    You might want to take a look at the Laracasts video series to get going. We have used the video series to get through our learning curve with the Laravel PHP framework, but there are videos for plain PHP and other technologies too. Here's a series for getting started with PHP - https://laracasts.com/series/php-for-beginners
    The reply is currently minimized Show
Your Reply