Solved New in Linux - how to install app from terminal?

  • Hi there and welcome to PC Help Forum (PCHF), a more effective way to get the Tech Support you need!
    We have Experts in all areas of Tech, including Malware Removal, Crash Fixing and BSOD's , Microsoft Windows, Computer DIY and PC Hardware, Networking, Gaming, Tablets and iPads, General and Specific Software Support and so much more.

    Why not Click Here To Sign Up and start enjoying great FREE Tech Support.

    This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  • Hello everyone We want to personally apologize to everyone for the downtime that we've experienced. We are working to get everything back up as quickly as possible. Due to the issues we've had, your password will need to be reset. Please click the button that says "Forgot Your Password" and change it. We are working to have things back to normal. Emails are fixed and should now send properly. Thank you all for your patience. Thanks, PCHF Management
Status
Not open for further replies.

MIRKOSOFT

PCHF Member
Aug 30, 2016
204
21
44
Hi!
I'm in Linux really beginner - first time used.
I installed for testing Ubuntu 64-bit to virtual machine and need to install add-ons from CD.
I opened terminal and tried to do it.
I entered only filename with extension and it outputs error.
Then I tried use:
exec filename
with and without parameters in help, but again not success...
Can anybody tell me how to start and/or install files/apps in terminal?

Thank you for each help.
Miro
 
For Ubuntu-based distros, you use

Code:
sudo apt-get install packagenamehere

to install packages. For example, to install Apache, you would do:

Code:
sudo apt-get update && sudo apt-get install apache2
 
Not success.
I entered:
Code:
sudo apt-get install vmware-install.pl
it required password, entered and report this error:
Code:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (var/lib/dpkg/), is another process using it?
then only prompt.
Where is do mistake?
Miro
 
You're already running dpkg somewhere. Do a reboot and try again.

Also that's not the correct way to install VMware Tools. You need to do:

Code:
sudo ./vmware-install.pl -d

I've been using Linux for many years. The easiest way to get vmware tools installed is to do the exact following. Mount the VMware Tools CD and type the following commands one at a time, pressing Enter after each line:

Code:
tar xzvf /mnt/cdrom/VMware*.tar.gz -C /tmp/
cd /tmp/vmware-tools-distrib/
sudo ./vmware-install.pl -d
sudo reboot
 
  • Like
Reactions: veeg
Succesful.
Last Q: Where to find Shared folders? I found not. Also - what a FS is required? (I'm using for VMWare NTFS and FAT16), I can do FAT32.
Thank you for help.
Miro
 
Last Q: Where to find Shared folders? I found not. Also - what a FS is required? (I'm using for VMWare NTFS and FAT16), I can do FAT32.

To find shared folders, make certain they're enabled. By default, they're turned off for security reasons. Then you'll find them when you open File Manager in Ubuntu.

Apologies for the delay. Hope this answers your question :)
 
Hi!
I'm new in Linux, no in Virtual Machines on VMWare and VBox.
Here's problem what I can't do solve:
I found some advices in VMWare documentation:
Default location is /mnt/hgfs
it can be made by command mount
to auto-mount shared folders is possible to add to file /etc/fstab one line:
.host:/ /mnt/hgfs vmhgfs defaults 0 0
Problem is that it is not possible to overwrite file/save to its location 'cause permissions.
So, I tried to mount them manually, used: mount -t vmhgfs .host:/ /home/mirkosoft/shares
but command produces syntax error and also when I use help there's written different than in documentation...

So, can you help me with this? Linux is Ubuntu 64-bit. I'm sure that shared folders are enabled and tools installed.
Miro
 
Run the commands as below:

Code:
gksu gedit /etc/fstab

In fstab, enter:

Code:
.host:/{shared-folder} /{path-to-mount-on} vmhgfs defaults,ttl=5,uid=1000,gid=1000   0 0
then reboot the VM. Make certain to change

Code:
{shared-folder} {path-to-mount-on}
to reflect the proper values. For example, the final output of fstab would look something like this:

Code:
.host:/pchf-books /~pchf-books vmhgfs defaults,ttl=5,uid=1000,gid=1000   0 0

Reference the below image for how to setup shared folders in VMWare :)

vmware_shared_folders.png
 
  • Like
Reactions: veeg
Status
Not open for further replies.