ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Help with Helpy

    Scheduled Pinned Locked Moved IT Discussion
    ubuntu 14.04helpyopen source help desk
    39 Posts 10 Posters 5.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • travisdh1T
      travisdh1 @tiagom
      last edited by

      @tiagom Wow, I've seen some bad/outdated docs before, but that's really pushing things. Good job figuring it out.

      1 Reply Last reply Reply Quote 1
      • IRJI
        IRJ @tiagom
        last edited by

        @tiagom said in Help with Helpy:

        Ok got it working using the CentOS guild. Here is what differed from the guild and what i found unclear.

        rails user needs to added to sudoers using visudo under

         root    ALL=(ALL)       ALL
        

        I added

        rails   ALL=(ALL)       ALL
        

        The following command fails because the latest activesupport requires Ruby version >= 2.2.2

        gem install rails --no-ri --no-rdoc
        

        Had to install v4.2.7 instead of the latest. I used:

        gem install activesupport -v 4.2.7
        gem install rails -v 4.2.7 --no-ri --no-rdoc
        

        To clear up a question from earlier when you run

        rake secret
        

        The output needs to be put in /config/secrets.yml under production: secret_key_base:

        The postgresql password needs to be edited in /config/database.yml under production: password:

        The following command doesn't work

        rails s -e production -b your.ip.add.ress:3000
        

        It should be

        rails s -e production -b your.ip.add.ress
        

        The /etc/rc.d/init.d/nginx script has a typo, line 92 is Esac it should be esac

        For /opt/nginx/conf/nginx.conf i did not replace the contents with what was provided as the versions differed, instead i just added the following under location

        root /home/rails/helpy/public;
        passenger_enabled on;
        rails_env production;
        

        I commented out the index index.html index.htm

        I can provide my /opt/nginx/conf/nginx.conf and /etc/rc.d/init.d/nginx if needed. I could give you the whole vm if needed, i run it under hyper-v.

        Also i needed to stop the firewall

        service iptables stop
        

        Awesome work. I was able to solve some of that, but not enough to get everything working.

        1 Reply Last reply Reply Quote 1
        • IRJI
          IRJ
          last edited by IRJ

          @tiagom I am still having trouble. Here are my commands. I know there is more, but I should be able to hit the web server at this point.

          adduser rails
          passwd rails
          gpasswd -a rails wheel
          
          
          
          ssh-keygen
          ssh-copy-id rails@SERVER_IP_ADDRESS
          
          #Change PermitRootLogin to no
          nano /etc/ssh/sshd_config
          service sshd restart
          
          yum -y update
          yum groupinstall -y development
          
          yum install -y epel-release pygpgme curl libcurl-devel nano
          yum install -y postgresql-server postgresql-contrib postgresql-devel git nodejs npm
          
          #Add rails to sudoers add rails ALL=(ALL) ALL
          
          chkconfig postgresql on
          service postgresql initdb
          service postgresql start
          
          su - postgres 
          createuser -s rails
          createdb helpy_production
          psql
          \password rails
          \q
          exit
          service postgresql restart
          
          
          #login as rails
          
          gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
          curl -L get.rvm.io | bash -s stable
          source /home/rails/.rvm/scripts/rvm
          rvm requirements
          rvm install 2.2.1
          rvm use 2.2.1 --default
          rvm rubygems current
          gem install activesupport -v 4.2.7
          gem install rails -v 4.2.7 --no-ri --no-rdoc
          
          
          
          sudo dd if=/dev/zero of=/swap bs=1M count=1024
          sudo mkswap /swap
          sudo swapon /swap
          
          git clone https://github.com/helpyio/helpy.git
          cd helpy
          
          nano Gemfile
          # Comment out #gem 'rails_12factor'
          
          bundle install
          
          
          cp config/database.do.yml config/database.yml
          rake secret
          # copy key to production field in secrets and password feild in database
          
          nano config/secrets.yml
          nano config/database.yml
          
          touch /home/rails/helpy/log/production.log
          chmod 0664 /home/rails/helpy/log/production.
          
          
          RAILS_ENV=production rake assets:precompile
          RAILS_ENV=production rake db:migrate
          RAILS_ENV=production rake db:seed
          
          
          rails s -e production -b your.ip.add.ress
          1 Reply Last reply Reply Quote 0
          • T
            tiagom
            last edited by

            What is the output of the following commands

            rails s -e production -b your.ip.add.ress
            
            curl your.ip.add.ress
            

            Quickly looking over the list of commands i see

            chmod 0664 /home/rails/helpy/log/production.
            

            Should be

            chmod 0664 /home/rails/helpy/log/production.log
            
            1 Reply Last reply Reply Quote 0
            • IRJI
              IRJ
              last edited by

              Thanks @tiagom for all your help!

              1 Reply Last reply Reply Quote 0
              • T
                tiagom
                last edited by

                No problem, any time @IRJ

                1 Reply Last reply Reply Quote 0
                • IRJI
                  IRJ
                  last edited by

                  Here is the finished tutorial.

                  http://joelradon.com/installing-helpy-open-source-help-desk-on-centos-6/

                  hobbit666H JaredBuschJ 2 Replies Last reply Reply Quote 0
                  • hobbit666H
                    hobbit666 @IRJ
                    last edited by

                    @IRJ said in Help with Helpy:

                    Here is the finished tutorial.

                    http://joelradon.com/installing-helpy-open-source-help-desk-on-centos-6/

                    booked marked as this is one i'm looking at to replace spiceworks.

                    1 Reply Last reply Reply Quote 0
                    • JaredBuschJ
                      JaredBusch @IRJ
                      last edited by JaredBusch

                      @IRJ said in Help with Helpy:

                      Here is the finished tutorial.

                      http://joelradon.com/installing-helpy-open-source-help-desk-on-centos-6/

                      I quit reading the tutorial early on. There are some clunky things still in those instructions.

                      You show using nano at one point but then in a follow up step you show installing nano with yum. So how would you have used nano?

                      Then you show adding the rails user to the sudo file with vi after adding nano.

                      Also, once you add a user to the wheel group, you should not need to add to the sudo file, isn't that the point of the wheel group?

                      Were these some of the inconsistencies that you found in the original instructions bleeding through into yours?

                      T IRJI 2 Replies Last reply Reply Quote 1
                      • T
                        tiagom @JaredBusch
                        last edited by

                        @JaredBusch

                        sudoers file should be edited using visudo as it checks syntax and whatnot.

                        In a fresh install of CentOS 6.8 wheel group is commented out in sudoers

                        ## Allows people in group wheel to run all commands
                        # %wheel        ALL=(ALL)       ALL
                        
                        1 Reply Last reply Reply Quote 1
                        • IRJI
                          IRJ @JaredBusch
                          last edited by

                          @JaredBusch said in Help with Helpy:

                          @IRJ said in Help with Helpy:

                          Here is the finished tutorial.

                          http://joelradon.com/installing-helpy-open-source-help-desk-on-centos-6/

                          Then you show adding the rails user to the sudo file with vi after adding nano.

                          Also, once you add a user to the wheel group, you should not need to add to the sudo file, isn't that the point of the wheel group?

                          you are supposed to use visudo to edit that sudoers file.

                          As far as installing nano twice, I may have missed that and copied it from the original.

                          I am not sure what the big deal is...

                          1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 2 / 2
                          • First post
                            Last post