Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The trouble is when I run ./VBoxLinuxA... I'm getting:

Unable to determine your Linux distribution

so there is build in script :

check_system_type() {
    if [ ! "$ro_SYS_TYPE" = "" ]; then
        return 0
    elif [ -f /etc/debian_version ]; then
    elif [ -f /etc/gentoo-release ]; then
    elif [ -x /sbin/chkconfig ]; then
    elif [ -x /sbin/insserv ]; then
    elif [ -f /etc/lfs-release -a -d /etc/rc.d/init.d ]; then
    elif [ -f /etc/pardus-release ]; then
    elif [ -f /etc/rc.d/rc.local ]; then
    elif [ -f /etc/rc.local ]; then
    elif [ -d /etc/init.d ]; then
    else  # Perhaps we can determine what we need to know anyway though?
        echo 1>&2 "Unable to determine your Linux distribution"
        log "Unable to determine the Linux distribution"
        return 1
    return 0

And I'm confused what can I chose here. I'm using systemd I've tried to create various files but it still being wrong for me :(

How to install it for systemd? (fedora installs it somehow)

Add: seems like fedora had sysv-compatibility enabled in systemd and vbox don't support systemd. So I just need this hacky way to get drivers.

share|improve this question
Can you add /exherbo tag? – rofrol Jan 27 '14 at 11:52

Exherbo, nice. Well, the [ -f /some/file ] tests if the file exists and is a regular file. Thus you should be able to fake any of these outcomes with touch /the/file/indicating/the/distribution. (Respectively mkdir for the [ -d /path/to/dir/ ] tests.)

However, depending on how the script goes on, this might lead to trouble.

The SUMMER package doesn't work for you?

share|improve this answer
so as I said I used to create this files, even you forget about -x which must be in 777 mode but they help me not, there is no option for pure systemd as far as I understand and the link you provided is not what I need, I need guest additions, not vbox itself. – Cynede May 9 '12 at 9:11
The package offers an additions choice that should give you these, I suppose. – sr_ May 9 '12 at 9:13
it's additions cd for vbox application, not for my guest system. – Cynede May 9 '12 at 9:20
Oh, sorry, I don't know VBox. (So it's not the extensions choice either, then?) I can't tell from the exlib if they try to impersonate some other distribution... – sr_ May 9 '12 at 9:29
Vbox-ose is just vbox... vbox additions is drivers which is build-in my vbox. I just need to install them somehow. – Cynede May 9 '12 at 9:36

EDIT: I'm creating a script which should install virtualbox-guest-additions based on gentoo ebuilds


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.