Chris, the Young One (hedgee) wrote,
Chris, the Young One
hedgee

  • Mood:
  • Music:

One more proof that Debian rocks

fakeroot. Enough said.

It's especially cool for running closed-source installers that you simply can't trust, but insist on running as root anyway.

Example usage:


cky@dandelion:~$ cd ~setup
cky@dandelion:/home/setup$ sudo -H -u setup -s
setup@dandelion:~$ gunzip -c ~cky/downloads/VMware-workstation-4.5.2-8848.tar.gz | pax -r
setup@dandelion:~$ fakeroot /bin/bash --login
root@dandelion:~# cd vmware-distrib
root@dandelion:~/vmware-distrib# ./vmware-install.pl

When done, I tar up all the files installed in the sandbox before I exit the fakeroot environment, check that all the permissions are to my liking, and unpack it back using the real root user.

Note that ‘setup’ is a completely unprivileged user. All I did was give it access to /etc/vmware, /usr/local/stow/vmware-4.5.2 (where I'm installing the beastie), and /etc/init.d/vmwave (because the installer insists so).

Couldn't be simpler or safer. :-)

Subscribe

  • Mystery meme

    Dear friends, If fate handed us different circumstances, I'd propose to you already…if, in those circumstances, you hadn't proposed first.…

  • Oldie but goodie

    Another meme from Special K! Reply to this post, and I'll tell you one reason why I like/love/adore you. Then put this in your own journal, and…

  • Quick question

    There are fairly decent type descriptions at Best-Fit Type, The Personality Page, TypeLogic, or the like, if you like an idea of what the…

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments