First, let's check the file is in the same directory you are currently at: type 'ls -al' (w/o quotes) see if the script is in the list. Second, type 'sudo chmod +x scrip_name.sh' (again, no quotes) Third, try 'sudo ./script_name.sh'
On Tuesday, July 17, 2012 10:43:32 AM UTC-4, lyn2py wrote: > > rdodev, > > sudo is installed. I know that because > sudo apt-get update > works. > > The instance is, in fact, a micro, 64-bit Ubuntu! > > I ran both > sudo setup-web2py-ubuntu.sh > > and > sudo ./setup-web2py-ubuntu.sh > > > The error that came up is: > sudo: setup-web2py-ubuntu.sh: command not found > > no password prompt. If it comes up, what should be the password? > > Sorry if this sounds easy peasy to you, I only know minimum commands and > understand a little. Just following whatever instructions are given. > > Pls help. If it is of any consequence, the image used is Ubuntu 12.x > > > On Tuesday, July 17, 2012 10:15:45 PM UTC+8, rdodev wrote: >> >> The fact that you don't have sudo installed tells me you might have >> chosen the wrong instance type. I'd say stop that instance (unless you have >> critical data or code on that box) and start a new micro 64-bit micro >> instance with 64-bit Ubuntu. Once you are in the instance via ssh, run: >> sudo script_name_here.sh it should prompt you for your password, and then >> proceed to install. >> >> >> >> On Tuesday, July 17, 2012 10:07:23 AM UTC-4, lyn2py wrote: >>> >>> Hello guys, still need help with this... thanks. >>> >>> On Tuesday, July 17, 2012 8:25:03 AM UTC+8, lyn2py wrote: >>>> >>>> I tried and it said, command not found. I did: >>>> sudo ./setup-web2py-ubuntu.sh >>>> >>>> Or how should the command be? >>>> >>>> Thanks for the help! >>>> >>>> >>>> On Tuesday, July 17, 2012 2:11:33 AM UTC+8, rdodev wrote: >>>>> >>>>> Run with 'sudo' in front. >>>>> >>>>> On Monday, July 16, 2012 1:46:28 PM UTC-4, lyn2py wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> I have browsed a few older threads on this but didn't manage to find >>>>>> an answer. Hope I can get help here. >>>>>> >>>>>> I started an instance with Ubuntu image, per the instructions here: >>>>>> http://www.scribd.com/doc/26436821/Howto-deploy-Web2py-on-amazon-Ec2 >>>>>> >>>>>> And got stuck at this command: >>>>>> ./setup-web2py-ubuntu.sh >>>>>> >>>>>> because "Permission Denied"... what should I do? >>>>>> >>>>>> Here is a snippet of the output: >>>>>> >>>>>>> installing useful packages >>>>>>> >>>>>>> ========================== >>>>>>> >>>>>>> E: Could not open lock file /var/lib/apt/lists/lock - open (13: >>>>>>>> Permission denied) >>>>>>> >>>>>>> E: Unable to lock directory /var/lib/apt/lists/ >>>>>>> >>>>>>> E: Could not open lock file /var/lib/dpkg/lock - open (13: >>>>>>>> Permission denied) >>>>>>> >>>>>>> E: Unable to lock the administration directory (/var/lib/dpkg/), are >>>>>>>> you root? >>>>>>> >>>>>>> E: Could not open lock file /var/lib/dpkg/lock - open (13: >>>>>>>> Permission denied) >>>>>>> >>>>>>> E: Unable to lock the administration directory (/var/lib/dpkg/), are >>>>>>>> you root? >>>>>>> >>>>>>> E: Could not open lock file /var/lib/dpkg/lock - open (13: >>>>>>>> Permission denied) >>>>>>> >>>>>>> E: Unable to lock the administration directory (/var/lib/dpkg/), are >>>>>>>> you root? >>>>>>> >>>>>>> E: Could not open lock file /var/lib/dpkg/lock - open (13: >>>>>>>> Permission denied) >>>>>>> >>>>>>> E: Unable to lock the administration directory (/var/lib/dpkg/), are >>>>>>>> you root? >>>>>>> >>>>>>> --