PDA

View Full Version : [ubuntu] running script with super user rights?



bl42ed0
April 10th, 2011, 05:12 AM
im trying to get vmware installed by using this documentation (https://help.ubuntu.com/community/VMware/Server).

i already have both the vmware file and the script file downloaded in the same folder. how do i run the script in terminal?

mikewhatever
April 10th, 2011, 05:53 AM
cd folder-name

sudo ./script-name


... sudo makes it run with as super user.

spcwingo
April 10th, 2011, 05:55 AM
Just put sudo in front of the command (script in this case). So, let's say that you have the script in your home directory. Cd to that directory like this:


cd ~

or
cd /home/your_user_name

Then run the script like this:


sudo ./script_name

That should fix ya up! ;)

bl42ed0
April 10th, 2011, 06:21 AM
Just put sudo in front of the command (script in this case). So, let's say that you have the script in your home directory. Cd to that directory like this:


cd ~

or
cd /home/your_user_name

Then run the script like this:


sudo ./script_name

That should fix ya up! ;)

thanks for the help but after i tried running the script it gave me a "command not found". i copied and pasted the script so that shouldnt be a problem? its a tar.gz file.

mikewhatever
April 10th, 2011, 06:27 AM
Tar.gz is an archive, not a script. Try unpacking it (right click, 'Extract here'), and then

cd raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66

sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh

bl42ed0
April 10th, 2011, 06:35 AM
Tar.gz is an archive, not a script. Try unpacking it (right click, 'Extract here'), and then

cd raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66

sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh

sorry..i must be retarded. now its telling me there is no archive containing vmware server found no matter where i put the vmware folder extracted or not...

spcwingo
April 10th, 2011, 09:42 AM
This is taken directly from the readme file included in the script that is referred to here (https://help.ubuntu.com/community/VMware/Server) and downloaded from here (http://codebin.cotescu.com/vmware/vmware-server-2.0.x-kernel-2.6.3x-install.sh):


Example on how to run the script:

chmod +x vmware-server-2.0.x-kernel-2.6.3x-install.sh
sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh [PATH _TO_VMWARE_ARCHIVE]

Crusty Old Fart
April 10th, 2011, 10:16 AM
There's a much safer way to do it in This post.

Ooops...sorry...wrong thread. Probably way more information than you wanted.

mikewhatever
April 10th, 2011, 10:41 AM
sorry..i must be retarded. now its telling me there is no archive containing vmware server found no matter where i put the vmware folder extracted or not...

Don't extract the VMware archive because the installation script will be looking for it. If you don't specify the path, it will be looking in the same directory from where you run the installation script.

bl42ed0
April 10th, 2011, 08:56 PM
okay now that i have it installed where do i find the program to run it? its not located under applications.

spcwingo
April 10th, 2011, 09:28 PM
I believe it has a webUI. To access it open your browser and enter either of these addresses:


http://localhost:8222/

or


https://localhost:8333/