G/Linux System Description, Working Draft
Rolf Veen, 10 Jul 2004. License TBD.

1. Introduction

Problems of current Linux distributions:

The Linux system described in this document is based on the following principles:

2. Directory structure

The directory layout used in G/Linux is similar to distributions based on the FHS, but has several important differences

/bin    Commands
/pkg    Packages
/lib    Libraries
/doc    Documentation
/data   Structured data

/var    R/W disk area 
/etc    [deprecated] Configuration
/boot   Boot files
/dev    Devices
/mnt    Mounting point for CD, floppy [optional]
/home   User home dirs
/tmp    Temporal area
/proc   Kernel & system information
/usr    [deprecated] symlink to /
/sbin   [deprecated] symlink to /bin

3. Packages

Packages are specified in a separate document.

4. Global variables

VariableDescriptionDefault value
$PACKAGESPackage installation directoryRoot: /pkg
Users: $HOME/pkg

5. The pkg command

    pkg OPTIONS PACKAGE|FILE

    (without arguments: list all packages)
    (without options: print info and status of package)

    OPTIONS:

    --add, -a
    --remove, -x
    --info, -i
    --version, -v
    --start, --up, -u
    --stop, --down, -d
    --conf, -c
    --status, -s

    --format, -f  (XML|YAML|YML)
Examples:
    pkg -c apache               Returns the apache configuration in YML-2 format
    pkg -u apache tomcat        Starts apache and tomcat

6. Management: configuration and control

System initialization

Init run levels
0       halt
1       single user mode
2       multiuser, without networking
3       multiuser mode, with networking
4       unused
5       X11
6       reboot