Appendix C: Under the Hood
The purpose of this chapter is to give the reader a quick look and basic idea of what's going on beneath the surface of the openSUSE GNU/Linux operating system.
C.1 Main System Components
Any modern computer operating system is a very large and complicated contraption - and GNU/Linux distributions are no exception. The Linux kernel is just one of many components. The figure below shows the core components and what their respective roles are.
|This figure shows the main components of a GNU/Linux operating system.
C.2 File Tree
Most users will hardly ever need to work outside their home folder, but nevertheless it's probably a good idea to have a basic idea about the how the file hierarchy works.
On GNU/Linux you only have one
file tree, unlike e.g. Microsoft Windows which has a different file tree for each filesystem/partition - on GNU/Linux separate filesystems/partitions are mounted
in folders within a single file tree. The root folder for the file tree is "/
" and paths are written using forward slashes.
So a path might look like this in GNU/Linux:
In MS Windows a comparable path might look like this:
C:\Documents and Settings\username\Desktop
||In GNU/Linux filenames and folders are case sensitive.
Normal users only have write permission in their /home/
folder, and rarely have any need to work outside of that.
C.3 Mounting and Removable Media
As briefly mentioned above filesystems/partitions are mounted
in folders within a single file tree, this means that e.g. "/
" can be on one partition or physical disk and /var/
can be on a different one, while /home/username/data/
might physically be on a third one - but they all appear in the same single file tree when navigating the file hierarchy.
You can assign mount points to internal partitions/filesystems to have them mounted durning boot using YaST Partitioner or by manually editing the configuration file /etc/fstab.
When removable media such as CDs or USB keys are plugged in a notification will appear, and the devices will appear in the left panel of the Dolphin file manager. The media will be mounted in /var/run/media/
C.4 Hidden Files
Files and folders starting with '.' (dot) are hidden. You can make them visible in Dolphin file manager via the keyboard shortcut Alt+.
or View -> Show Hidden Files
in the menubar.
Applications store the user settings and data in hidden folders in the users home folder, e.g. /home/username/.mozilla/
etc. If you uninstall/reinstall an application the settings and data will remain in the home folder. To "reset" an application, you just rename or (re)move the settings and/or data hidden in your home folder.
C.5 Important Config Files
In GNU/Linux configurations and settings are usually stored in human-readable plain text files. Almost any configuration can be done graphically via YaST or various other GUI applications, but nevertheless it can be useful to know the location of some key config files.
System wide configurations are mainly stored in /etc/
, user settings are stored in hidden files in the home folder for the individual user.
||The file system table, file systems/partitions mounted during boot.
||Configuration for YaST.
||Configuration for the software management.
||Samba configuration ("Windows Network")
||The hostname for the machine.
||X-server configuration files. By default autodetection is used, edit these files if you must configure the X-server.
||The kernel. For example loading extra modules during boot.
||Blacklisting kernel modules.
In case of problems it's good to know the location of the main log files, most are kept in /var/log/
||Log for the X-server.
||Useful for troubleshooting applications ran as normal user.
||Log files for various YaST modules and components.
The main system log can be viewed with the YaST module systemd-journal
or with the command journalctl:
Read up on journalctl to use it effectively.
Here are some basic troubleshooting tips for GNU/Linux in case an application crashes or won't start at all.
- If an application fails, try running it from a terminal to get more/better output
- Try removing/renaming the hidden folder(s) for the application in the users home folder
- Try creating a new user and see if the problem persists. If the problem does not persist for a new user, the cause can probably be found in the settings/data in the home folder of the user with the problem
- Check out relevant log files
||Reinstalling the software packages almost never solves anything, because the old settings and data will remain in hidden folders in the home folder.
Send your comments via e-mail to admin [at] opensuse-guide.org