B.4. Správa systému

Jsem jediná osoba používající počítač, musím se přihlašovat?

Linux je víceuživatelský systém. The system relies on usernames and passwords to identify different users. If you chose the option Automatické přihlášení during installation, you are automatically logged in to the system after booting the machine. Přihlašovat se pak musíte pouze jako root (pro instalaci nových programů a správu systému).

To configure auto login in the installed system, log in as user root, start YaST and the Edit and Create Users module. Click Expert Options and choose Login Settings+Auto Login. After restarting your display manager (KDM), you should automatically be logged in to your machine.

Hrozí v Linuxu viry?

Pro Linux žádné skutečné viry prakticky neexistují. Linuxové virové skenery jsou určeny pro kontrolu příchozí pošty na poštovních serverech poskytujících služby klientům Windows. Existují však i jiný způsoby, jak může váš systém dojít k úhoně (např. porucha hardwaru), proto nezanedbávejte zálohování důležitých dat a nastavení.

Nemůžu najít žádný .exe soubor. Kde jsou všechny aplikace?

V Linuxu spustitelné soubory nemají žádnou příponu. Řada důležitých spustitelných souborů se nachází např. v adresářích /usr/bin a /usr/X11R6/bin.

Jak se poznají spustitelné příkazy?

Po vypsání ls -l získáte seznam všech souborů v aktuálním adresáři, jméne spustitelných souborů budou napsána zelene a v prvním sloupci budou mít x.

Jak spustit aplikaci nebo službu při startu systému?

To start certain services at bootup, use the YaST runlevel editor. Find a detailed description of this module and some background information on the boot/runlevel concept of Linux in Booting and Configuring a Linux Systems.

To configure GNOME to automatically start any application at bootup, start the GNOME Control Center and choose System+Sessions. Open the tab named Startup Programs and enter the application you want to be started at bootup.

In KDE, start Konqueror and open the folder .kde/Autostart in your home directory. Drag the application icon from the main menu into the Konqueror window and choose Link Here. The application will be started the next time you log in to KDE.

Mám pouze zdrojové kódy programu. Jak je mám nainstalovat?

Before trying to compile an application on your own check whether it does not already exist as installable RPM. Try websites like http://packman.links2linux.org/ or http://rpmfind.net.

Decompress the archive with tar xvzf name.tar.gz, read the INSTALL or README files, and follow the instructions. If compiling on your own, note that neither the compilation nor the resulting application are covered by the installation support.

Musím si sám/sama kompilovat jádro?

No, it is usually unnecessary and strongly discouraged for inexperienced users to recompile the kernel. Do so only at your own risk. In cases of custom compiled kernels, SUSE cannot provide any installation support.

Jak defragmentovat disk?

Linux file systems prevent fragmentation. However, make sure you do not use more than eighty percent of each partition. The fuller your hard disk, the more „fragmentation“ you get even under Linux. Use df -h to view information about used and available hard disk space.

Potřebuji více místo pro Linux. Jak přidám další disk?

To make more space available, integrate a new hard disk or parts of it (partitions) into your Linux system at any time. For example, if it turns out that you need more space in /opt, mount an additional hard disk partition to this directory. To do so, follow this procedure:

  1. Install your hard disk following the instructions of the manufacturer then start Linux.

  2. Log in as the root user.

  3. Partition the new hard disk with fdisk. For further information, refer to the manual page of fdisk with man fdisk.

  4. Format the partition with mke2fs /dev/hdb1.

  5. Enter the following commands:

    cd /opt
    mkdir /opt2
    mount /dev/hdb1 /opt2
    cp -axv . /opt2

    Check thoroughly to see whether all the data has been copied. Afterwards, move the old directory and add a new one—an empty mount point:

    mv /opt /opt.old
    mkdir /opt

    Use an editor to add the new partitions in /etc/fstab.

    /dev/hdb1       /opt     ext2      defaults   1   2

    Now, shut down the computer and reboot.

  6. After rebooting, check that /dev/hdb1 has actually been mounted to /opt using the command mount. If everything is working as desired, remove the old data from /opt.old:

    cd /
    rm -fr opt.old
Jak zjistit, kolik místa je v Linuxu na disku volného?

Nejrychlejší způsob nabízí příkaz df -hT. Volba -h převede velikost do lidsky přívětivého formátu (e.g. 1K, 234M, 2G) a -T vypíše typ souborového systému.

V KDE si můžete spustit v hlavní nabídce Systém+Monitor+Informační centrum. Infromace o disku najdete pod položkou Úložná zařízení.


SUSE LINUX Příručka správce systému 9.3