0

How can I find out which files the Lubuntu 14.04 in fact uses during the boot - from the very start when I turn ON the power.

I'm new to this Linux world, but I think Lubuntu must have list of configuration files it searches for - maybe finding them or not finding them.

Especially I'm interested in seeing what is going on BEFORE the logon dialog.

I'm not interested in what ??ubuntu XX.YY did way back but what Lubutu 14.04 does right now on my machine.

1

1 Answer 1

1

First the kernel boots, then it launches init, which uses the scripts in /etc/init.d/ to start up all of the system services. The final service to be started is lightdm which in turn starts xorg and then draws a login screen. man boot-scripts. The whole startup process, from boot loader to graphical login, is complicated, and understanding it all requires understanding how initrd works, how upstart works, how the individual init scripts work, how udev works, how xorg works, etc. Each subsystem has its own configuration scripts.

Do not expect to be able to learn it all overnight - it takes years to become an expert. I would suggest you start by reading the scripts in /etc/init.d/ and playing around with starting and stopping them. Most of the configuration files are, in general, found in /etc/ - if you look in that directory, you will find many files, each with its own purpose, each installed by some software. To find out which package a particular config file came from use dpkg eg. dpkg -S /etc/locale.alias will tell you that file came from the locales package. Some of these files have their own man pages (eg. locale.alias), for others you will have to read the package docs or search the web.

2
  • I've investigated a little in the file "/etc/init.d/lightdm" and I can see there is a lot of messages and echo's with some explaining texts - where are these messages and echo texts shown ? - in a log file, if so what is the name of that file ?
    – ksor
    May 6, 2014 at 13:05
  • The output of that script is not logged by default. If you run service lightdm restart the output is printed on the terminal. If you change the log priority the output of the scripts will be logged to /var/log/boot.log - for details see the top answer of stackoverflow.com/questions/4335343/…
    – bain
    May 6, 2014 at 13:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .