Showing posts with label directory. Show all posts
Showing posts with label directory. Show all posts

Thursday 11 July 2013

Solve VMWare Workstation 9 Error on Linux Kernel 3.8.0-26



I have VMware Workstations 9 installed on my uBuntu 13 machine and today without any apparent reason it stop working throwing me the following error, every time I've tried to boot up any VM machine.


To solver the problem .. here is what I have done ... created bash script to handle problems with VMware Player on 13.04 ...




  • #!/bin/bash
  • if [[ $UID != 0 ]]; then
  •     echo "Please run this script with sudo:"
  •     echo "sudo $0 $*"
  •     exit 1
  • fi
  • sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
  • cd /usr/lib/vmware/modules/source
  • sudo tar -xf vmci.tar
  • cd vmci-only
  • sudo sed '127s/.*/   .remove = vmci_remove_device,/' driver.c > driver.c.tmp
  • mv driver.c.tmp driver.c
  • sudo sed '1753s/.*/static int/' driver.c > driver.c.tmp
  • mv driver.c.tmp driver.c
  • sudo sed '1981s/.*/static void/' driver.c > driver.c.tmp
  • mv driver.c.tmp driver.c
  • cd ..
  • sudo tar -cf vmci.tar vmci-only/
  • sudo rm vmci-only/ -Rf
  • sudo vmware-modconfig --console --install-all
  • sudo rm /usr/src
  • Before write the script I've open the terminal and type " #sudo kate " then when kate opened I entered the script and saved on " /usr/src/open-vm-tools-xxxx.xx.xx" (replace the x with year month and day) and save it. Then close Kate

    The Open terminal again and do the following;


    after you should have VMware workstation running...



    This is another posting showing "how to do computing" for everyday computer usages... For a general public

    Wednesday 10 July 2013

    Manually uninstalling VMware Workstation from Linux hosts

    Manually uninstalling VMware Workstation from Linux

    VMWare Workstation doesn't ship in a deb, so it isn't registered in dpkg (which is why you can't find it in the software center). It does have an install and uninstall utility though.

    To uninstall VMWare Workstation, you will need to run


    #vmware-installer --uninstall-product vmware-workstation
    
    
    

    Details

    This article provides steps for manually removing VMware Workstation when the uninstaller script or RPM package fails to remove the product automatically.

    Solution

    Note: Log into the host using the root account to execute the terminal commands in this article. If running Ubuntu, the root account is not available by default. Prepend all commands with sudo,or switch to root using this command:

    sudo su -

    Warning: This command provides unrestricted access to the operating system. It is possible to cause damage to the system when using this access level.

    1. Open a command prompt. For more information, see Opening a command or shell prompt (1003892). Type the commands as indicated in the steps of this procedure.
    2. Shut down all VMware applications and services.

      /etc/init.d/vmware stop

    3. Verify that all processes have stopped:

      lsmod | grep vm

      Note: A zero must be listed beside VMware related modules to indicate that they are no longer running.

    4. Move the VMware libraries to the /tmp directory:

      cd /lib/modules/kernel_version/misc
      mv vm* /tmp


      Note: If the kernel has ever been updated, you must check and move the files from multiple paths. Substitute the kernel version where indicated above.

    5. Unload the kernel modules:

      rmmod vmnet.o
      rmmod vmmon.o
      rmmod vmci.o
      rmmod vmblock.o
      rmmod vmppuser.o


    6. Remove the VMware startup scripts:

      RedHat and Most Distributions:
      rm /etc/rc.d/init.d/rc2.d/*vmware*
      rm /etc/rc.d/init.d/rc3.d/*vmware*
      rm /etc/rc.d/init.d/rc5.d/*vmware*
      rm /etc/rc.d/init.d/rc6.d/*vmware*


      Ubuntu:

      rm /etc/rc2.d/*vmware*
      rm /etc/rc3.d/*vmware*
      rm /etc/rc5.d/*vmware*
      rm /etc/rc6.d/*vmware*


      Note: If you are using a different Linux distribution, substitute the correct path in the commands.

    7. Remove the remaining VMware files and directories:

      rm -rf /etc/vmware*
      rm /usr/bin/vmware-usbarbitrator
      rm /usr/bin/vmnet*
      rm -r /usr/lib/vmware*
      rm -r /usr/share/doc/vmware*


    8. If an RPM package was used to install the VMware product, complete these steps to delete the RPM database entry:

      rpm -qa | grep VMware

      A list of VMware packages is presented. Copy the exact package name for the next step and paste it into the command where indicated.

    9. Remove the VMware packages:

      rpm --erase --nodeps VMware_Package_Name

    Friday 21 June 2013

    Thursday 14 February 2013

    How to Recover an Encrypted Home Directory on Ubuntu


    While the home-folder encryption in Ubuntu is far from a perfect solution (there is considerable data leakage from the swap file and the temp directory - for example once I've observed the flash videos from Chromium porn private browsing mode being present in the /tmp directory), it is a partial solution nevertheless and very easy to set up during installation. However what can you do if you need to recover the data because you dismantled your system?

    Credit where credit is due: this guide is taken mostly from the Ubuntu wiki page. Also, this is not an easy "one-click" process. You should proceed carefully, especially if you don't have much experience with the command line.

    Start Ubuntu (from a separate install, from the LiveCD, etc) and mount the source filesystem (this is usually as simple as going to the Places menu and selecting the partition). Start a terminal (Alt+F2 -> gnome-terminal) and navigate to the partitions home directory. Usually this will look like the following:

    cd /media/9e6325c9-1140-44b7-9d8e-614599b27e05/home/

    Now navigate to the users ecryptfs directory (things to note: it is ecryptfs not encryptfs and your username does not coincide with your full name - the one you click on when you log in)

    cd .ecryptfs/username

    The next step is to recovery your "mount password" which is different from the password you use to log in (when it asks you, type in the login password used for this account - for which you are trying to recover the data). Take note of the returned password (you can copy it by selecting it and pressing Shift+Ctrl+C if you are using the Gnome Terminal)

    ecryptfs-unwrap-passphrase .ecryptfs/wrapped-passphrase

    Now create a directory where you would like to mount the decrypted home directory:

    sudo mkdir /media/decrypted

    Execute the following and type in (or better - copy-paste) the mount password you've recovered earlier

    sudo ecryptfs-add-passphrase --fnek

    It will return something like the following. Take note of the second key (auth tok):

    Inserted auth tok with sig [9986ad986f986af7] into the user session keyring 
    Inserted auth tok with sig [76a9f69af69a86fa] into the user session keyring

    Now you are ready to mount the directry:

    sudo mount -t ecryptfs /media/9e6325c9-1140-44b7-9d8e-614599b27e05/home/.ecryptfs/username/.Private /media/decrypted
     Passphrase:  # mount passphrase
     Selection: aes
     Selection: 16
     Enable plaintext passthrough: n 
     Enable filename encryption: y # this is not the default!
     Filename Encryption Key (FNEK) Signature: # the second key (auth tok) noted

    You will probably get a warning about this key not being seen before (you can type yes) and asking if it should be added to your key cache (you should type no, since you won't be using it again probably).

    That's it, now (assuming everything went right) you can access your decrypted folder in /media/decrypted. The biggest gotcha is that home/username/.Private is in fact a symlink, which - if you have an other partition mounted - will point you to the wrong directory, so you should use the home/.ecryptfs/username directory directly... If this does work you try this from this ubuntu tutorial ...

    Or you can also try this Live CD method of opening a encrypted home directory

    How to Hide and Unhide Hard Disk Volumes Using CMD on Windows 10 and Windows 11

    I'd be glad to create a step-by-step guide on hiding and unhiding hard disk volumes using CMD commands for Windows 10 and 11 , incorpor...