New in Linux - how to install app from terminal?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MIRKOSOFT
    PCHF Member
    • Aug 2016
    • 203

    #1

    New in Linux - how to install app from terminal?

    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
  • jmarket
    PCHF Owner
    • Jan 2015
    • 7695
    • CachyOS
    • Intel Arc A770 (16 GB)

    #2
    For Ubuntu-based distros, you use
    [ICODE]sudo apt-get install packagenamehere[/ICODE]
    to install packages. For example, to install Apache, you would do:
    [ICODE]sudo apt-get update && sudo apt-get install apache2[/ICODE]

    Comment

    • MIRKOSOFT
      PCHF Member
      • Aug 2016
      • 203

      #3
      Not success.
      I entered:
      [ICODE]sudo apt-get install vmware-install.pl[/ICODE]
      it required password, entered and report this error:

      [ICODE]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?[/ICODE]
      then only prompt.
      Where is do mistake?
      Miro

      Comment

      • jmarket
        PCHF Owner
        • Jan 2015
        • 7695
        • CachyOS
        • Intel Arc A770 (16 GB)

        #4
        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:
        [ICODE]sudo ./vmware-install.pl -d[/ICODE]
        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

        Comment

        • MIRKOSOFT
          PCHF Member
          • Aug 2016
          • 203

          #5
          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

          Comment

          • veeg
            PCHF Director
            • Jul 2016
            • 8976

            #6
            Do you have an update for us?

            Comment

            • MIRKOSOFT
              PCHF Member
              • Aug 2016
              • 203

              #7
              No one helped me. Not solved.
              Miro

              Comment

              • veeg
                PCHF Director
                • Jul 2016
                • 8976

                #8
                Thanks for the update..

                Comment

                • jmarket
                  PCHF Owner
                  • Jan 2015
                  • 7695
                  • CachyOS
                  • Intel Arc A770 (16 GB)

                  #9
                  Originally posted by MIRKOSOFT
                  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

                  Comment

                  • MIRKOSOFT
                    PCHF Member
                    • Aug 2016
                    • 203

                    #10
                    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

                    Comment

                    • jmarket
                      PCHF Owner
                      • Jan 2015
                      • 7695
                      • CachyOS
                      • Intel Arc A770 (16 GB)

                      #11
                      Run the commands as below:
                      [ICODE]gksu gedit /etc/fstab[/ICODE]
                      In fstab, enter:
                      [ICODE].host:/{shared-folder} /{path-to-mount-on} vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0[/ICODE]
                      then reboot the VM. Make certain to change
                      [ICODE]{shared-folder} {path-to-mount-on}[/ICODE]
                      to reflect the proper values. For example, the final output of fstab would look something like this:
                      [ICODE].host:/pchf-books /~pchf-books vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0[/ICODE]
                      Reference the below image for how to setup shared folders in VMWare

                      [ATTACH]706[/ATTACH]

                      Comment

                      • veeg
                        PCHF Director
                        • Jul 2016
                        • 8976

                        #12
                        Miro do you have an update for us?

                        Comment

                        • MIRKOSOFT
                          PCHF Member
                          • Aug 2016
                          • 203

                          #13
                          Helped not, I decided to not waste my time with Linux. Can be marked as solved.
                          Miro

                          Comment

                          Working...