Installing and configuring Syllable Server 0.1 ============================================== Kaj de Vos 14 October 2007 http://syllable.org Minimum requirements ==================== Processor: 686 Syllable Server is meant to run on an Intel 486, but for the moment being it needs a 686, so that means a Pentium Pro or better. Memory: 16 MB You could probably go lower; maybe to 8 MB if you configure a swap partition before starting the system. Of course, some applications require more memory. Disk space: half a gigabyte. The installation currently takes around 400 MB, so this would leave little space for working in. If needed, the installation size could be cut down considerably. Installation ============ Use an existing Linux installation or a Linux live CD to install Syllable Server. You need to execute most of the following actions as the root (administrator) user. - Create a free partition (or select an existing one you can use). You need a minimum space of a half gigabyte. - The first releases of Syllable Server will not have an official upgrade path. If you want to upgrade across versions anyway, the easiest way is to create a separate home partition now. - Format the partition(s). Preferably with ReiserFS3, although Ext3 and Ext2 can also be used. If you want to use an existing partition and it is already formatted with the right filesystem, you can also free it up by deleting all files on it. - Create a Linux swap partition if you don't already have one (or select an existing one and format it as Linux swap). You can also use the same swap partition as another Linux installation, in which case you don't have to format it again. You could skip this step and run Syllable Server without a swap partition, but it will limit the amount of memory you can use. - Mount the new installation partition. - Go into a terminal and change the working directory to the root of the mounted partition. - Make sure you are the root user. Now unpack Syllable Server. You will need 7-Zip [http://www.7-zip.org, http://p7zip.sourceforge.net] and TAr: 7z e SyllableServer-0.1.i486.tar.7z tar xvpf SyllableServer-0.1.i486.tar If you don't have a root account, you can prefix this last command with the "sudo" command. If you are installing to a small partition, you may need to do the first step on a different partition. Configuration ============= - Install GrUB. A relatively easy way to do this is with a Syllable installation or live CD [http://syllable.cvs.sourceforge.net/*checkout*/syllable/syllable/system/doc/install/install.txt]. You can also use a GrUB installation from an existing Syllable or Linux installation. - There is an example of a GrUB boot menu entry for Syllable Server in the /boot/grub/menu.lst file. Use a text editor to edit menu.lst files. If you are using GrUB on a different partition, copy this example entry to the menu.lst file you are using. The example is for an installation on the first partition of the first hard disk. Modify it accordingly if you are installing Syllable Server somewhere else. There is another, generic example for a Linux installed on the second partition (assuming that some other system such as Syllable Desktop or Windows is on the first partition). - Edit the /etc/fstab file to assign your partitions. There are example lines that you can uncomment for the root (main) partition, a swap partition, an optional separate home partition, an optional FAT partition (if you have a Windows partition with the FAT format, for example, or for exchanging data), and for mounting a CD or DVD drive. If you are using mount points that are not already in /etc/fstab as examples, you need to create empty subdirectories for them in the /media/ directory. You may skip this step if you are installing Syllable Server on the first partition on the first hard disk with the ReiserFS3 filesystem and you don't need a swap partition. - The default keyboard setting is for a US keyboard. If you have a different keyboard, you need to configure it by editing the /etc/sysconfig/console file. A few common examples are already in there. - Syllable Server is set to use UTC, universal time, by default. If the hardware clock is set to local time instead of UTC (this would probably be the case if you are also running Windows or Syllable Desktop on the same computer), change this setting in the /etc/sysconfig/clock file. Network ------- Syllable Server is preconfigured to use DHCP on the first network interface (eth0) to try to get its network settings. If a DHCP server is running on your network, for example in the Internet router/firewall, no configuration should be necessary. Otherwise, you have to set a static network configuration manually. The default static configuration is for a gateway and DNS server at IP number 192.168.1.1, so if this happens to be your router configuration, you only have to switch off DHCP in Syllable Server. The default IP number for Syllable Server is 192.168.1.9. If these defaults don't suffice, you have to edit a few text files and replace the example values. - The DHCP client can be switched off in the file /etc/sysconfig/network-devices/ifconfig.eth0/ipv4. Change the service type from "dhclient" to "ipv4-static". - The IP numbers for the network interface, the gateway and the broadcast address can also be changed in this file. The PREFIX variable needs to contain the number of bits needed to create the mask value for the subnet you are using (24 in the case of the 192.168.n subnets). Only one network interface is configured by default. - The default name of the computer is "syllable-server". You may change this in /etc/sysconfig/network. - The full name of the computer on the network, including the domain name, can be set in the /etc/hosts file. It is mapped there to the IP number of the computer, so the name of the computer can be known from its IP number without the use of a DNS server. - The IP numbers of the DNS name server(s) can be changed in the /etc/resolv.conf file. A domain for the computer or network may also be set there, which will be used as default domain to search for machines on the network. Since Syllable Server currently uses configuration scripts from Linux From Scratch 6.3, further configuration, besides using the Syllable tools, can often be done in a similar way as on LFS [http://www.linuxfromscratch.org/lfs/view/stable/, http://www.linuxfromscratch.org/blfs/view/svn/]. Using Syllable Server ===================== - Restart your computer and select Syllable Server from the GrUB menu. - The failure you get on starting the DHCP server is normal. If you want to run a DHCP server, you can complete its configuration in the file /etc/dhcpd.conf. - Log into the root account with both user name and password "root". - You can make use of the multiple virtual consoles of Linux by switching between them with the Alt-Fn function key combinations, or with Alt-Cursor right/left. In each one, you can log in to a separate session. The text console can be scrolled with Shift-Page up/down. - If you need to edit more text files from within Syllable Server, you can use the included Midnight Commander editor: mcedit /etc/fstab You can also install other text editors such as Nano and VIm. - To install extra software on Syllable Server, follow the same instructions as for installing ported (non-native) applications on Syllable Desktop [http://syllable.cvs.sourceforge.net/*checkout*/syllable/syllable/system/apps/utils/Builder/resources/documentation/Welcome.html]. You need to download resource packages for Syllable Server, though, not the versions for Syllable Desktop. - You can safely restart Syllable Server by pressing Control-Alt-Delete. You can turn the computer off with the "poweroff" or "halt" commands. Web --- As a special feature, Syllable Server contains DirectFB and SDL running on the framebuffer device. You can run DirectFB and SDL programs in graphical mode. Included is the Links2 web browser, which can run both in text mode: links syllable.org and in graphics mode: linksg rebol.net File management and editing --------------------------- Midnight Commander is included for comfortable and powerful file management: mc It contains an editor as well: mcedit Virtualisation -------------- Syllable Server includes the QEmu emulator/virtualiser. With QEmu, you can run CD ISO images and hard disk images of other operating systems in virtual machines, including in graphics mode. Integrated into the kernel is the KQEmu Accelerator. This is a Linux kernel module that provides a huge speed increase when virtualising another operating system that runs on the processor you have (x86 Intel compatible). Load the kernel module first to use this feature: modprobe kqemu To run an image of a live CD, for example the Amiga Research Operating System [http://aros.org]: qemu -k en-us -kernel-kqemu -cdrom AROS-i386-pc-boot.iso The -k option is necessary to set your keyboard layout. Choose your keyboard code from the file names in /usr/qemu/share/qemu/keymaps/. The example is for a US English keyboard. The -kernel-kqemu option makes the kernel of the guest operating system (AROS in this case) run faster, under virtualisation instead of emulation. It doesn't work with all operating systems. Please consult the documentation on the QEmu site [http://fabrice.bellard.free.fr/qemu/]. If you switch to a different virtual console (with one of the Alt-Fn keys) while in a graphical SDL program, you can switch back into the graphical environment with Alt-F7. Beware that this doesn't work with some screen modes. You can run an operating system installed on a hard disk image, for example Haiku [http://haiku-os.org/build_factory]. Haiku doesn't seem to work with kernel acceleration: qemu -k en-us -hda Haiku.img To run Syllable Desktop, you can use the VMware image with QEmu [http://prdownloads.sourceforge.net/syllable/syllable-0.6.4-vmware.zip]. Strangely, Syllable runs slightly slower with virtualisation instead of faster, so it should better be turned off: qemu -k en-us -no-kqemu -std-vga -soundhw es1370 Syllable.vmdk It is best to run Syllable Desktop with the -std-vga option, as the default Cirrus Logic video emulation is actually slower and limits the available screen modes. The colour palette is still limited. If you configured the network on Syllable Server, you will automatically have network access from within the emulated guest system. This works with the built-in DHCP server of QEmu, irrespective of whether you configured DHCP on Syllable Server. If you are using the VMware image of Syllable Desktop 0.6.4, you need to activate DHCP in the network preferences. The Syllable live CDs and newer (weekly build) versions of Syllable Desktop have DHCP already enabled. Note that with this default QEmu network configuration, you can't use the ping command and you can't access the guest system over the network from outside the virtual machine. Running most Linux distributions on QEmu is slow, but provides a lot of functionality. Wolvix is one good choice [http://wolvix.org]: qemu -k en-us -kernel-kqemu -soundhw es1370 -cdrom Wolvix-Cub.iso If you want to run Syllable Server itself on QEmu, you need to install it in a disk image. One way to do that is by using QEmu with a Linux disk image. To make Syllable Server boot, you need to add a kernel parameter to the GrUB start-up configuration in the /boot/grub/menu.lst file to set the screen mode. For example, for a screen resolution of 800 x 600 with 256 colours, add this at the end of the kernel line: vga=771 Also, Syllable Server currently doesn't work with kernel acceleration on QEmu yet: qemu -k en-us -soundhw es1370 SyllableServer-0.1.i486.qcow2 If you are running Syllable Server on the VirtualBox emulator, you need to use yet another screen mode. Add this at the end of the kernel line in the GrUB menu for a screen resolution of 800 x 600 with 65536 colours: vga=789 Running Syllable Server on the Bochs emulator is extremely slow, but if you want to try anyway, you need to add the following Linux kernel parameter to the GrUB configuration: noapic Pre-configured virtual machine images for Syllable Server are available in our downloads that already provide boot menu entries for these configurations. Gaming ------ As an even more special feature, this release of Syllable Server contains the Pengupop game. :-) Of course, this is strictly for functional purposes. You can test the network connection with it, by engaging in a multi-player game: pengupop Maybe you will even be pitted against another Syllable Server tester. :-) Programming ----------- If you want to do some script programming: the REBOL language [http://rebol.com/tutorials.html] and its open source ORCA clone [http://trac.geekisp.com/orca/wiki] are both included: rebol orca Known issues ============ - This is a development version of Syllable Server. It's not done yet. This release is meant to provide a minimal, but useful system. - Most notably, Syllable Server doesn't have the graphical environment from Syllable Desktop yet. - Binary packages are not guaranteed to be compatible across Syllable Server versions yet. They will be in most cases, but in future releases, binary compatibility will specifically be maintained. - Currently, Syllable Server uses boot and initialisation scripts from Linux From Scratch. In the future, they will be replaced by something more similar to the scripts in Syllable Desktop. - No special attention has been paid yet to security. No services are running, either, but don't expect it to be secure in an open network environment or as a multi-user system. - Startup of Syllable Server may hang sometimes on initialization of MTRR or switching to framebuffer graphics mode (observed on an nVidia GeForce video card). Please reset the computer and try again. This seems to be fixed in version 2.6.22 of the Linux kernel (Syllable Server is currently using 2.6.22.1). We'll see. - Startup of Syllable Server may hang sometimes on detection of USB devices such as memory sticks. This is another bug in Linux. Please reset the computer and try again, or remove the USB equipment. Available software ================== The Syllable Server distribution is here: http://downloads.syllable.org/Linux/i686/systems/Server/0.1/SyllableServer-0.1.i686.tar.7z?torrent It can be downloaded with a BitTorrent client. Virtual machine images ---------------------- There is a Syllable Server image for use in VMware here: http://downloads.syllable.org/Linux/i686/systems/Server/0.1/SyllableServer-0.1.i686.VM.7z?torrent The .vmdk image file in the VMware files can also be used with VirtualBox and QEmu. For other virtual machine emulators such as Bochs, or also QEmu, there is a raw image: http://downloads.syllable.org/Linux/i686/systems/Server/0.1/SyllableServer-0.1.i686.raw.1GB.7z?torrent Please note that this archive unpacks to a file of one gigabyte. If you want to run this image in the Bochs emulator, you need to add the following lines to your bochsrc configuration file: ata0-master: type=disk, path="/path/to/SyllableServer.raw", cylinders=4096, heads=16, spt=32 boot: c You need to adapt the path to where your image is. The Bochs distributions for Syllable contain a sample configuration file that already includes this example. Collection packs ---------------- These are task-oriented collections of packages. Unzip them in a work directory and run the included installation script: ./install.sh http://downloads.syllable.org/development/CommandLineCornucopia-0.Linux.i486.zip?torrent http://downloads.syllable.org/development/NetworkNecessities-0.Linux.i486.zip?torrent http://downloads.syllable.org/development/DevelopersDelight-0.Linux.i486.zip?torrent http://downloads.syllable.org/development/PERL-Pit-0.Linux.i486.zip?torrent Additional packages ------------------- These are single packages. Unzip them into /usr/ and register them with unzip -.resource mv /usr package register http://downloads.syllable.org/Linux/i486/resources/Apache/apache-2.2.4-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/ApachePortableRuntime/apr-1.2.8-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/APR-Util/apr-util-1.2.8-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/Expat/expat-2.0.0-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/GLib/glib-2.14.0-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/GNU-CompilerCollection/gcc-3.4.6-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/Groff/groff-1.19.2-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/LibOgg/libogg-1.1.3-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/LibVorbis/libvorbis-1.1.2-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/Links2/links2-2.1pre30-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/MidnightCommander/mc-4.6.1-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/Nano/nano-2.0.3-curses-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/OpenSSL/openssl-0.9.8e-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/P7Zip/p7zip-4.51-2.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/Pengupop/pengupop-2.1.12-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/PCRE/pcre-7.0-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/QEmu/qemu-0.9.0-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/S-Lang/s-lang-2.1.1-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/SaMBa/samba-3.0.23d-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/TermCap/termcap-1.3.1-1.Linux.i486.resource http://downloads.syllable.org/Linux/i486/resources/VIm/vim-7.0-1.Linux.i486.resource