Contents
- 1 Using Mageia FAQ - Frequently Asked Questions
- 1.1 Packages
- 1.2 SystemD
- 1.2.1 How to start/stop a service
- 1.2.2 Service doesn't work/checking status or logs of a service
- 1.2.3 "tail -f /var/log/messages" does not work?
- 1.2.4 How to search logs for a particular string?
- 1.2.5 How to display a list of all systemD services?
- 1.2.6 How to display the current "run level"?
- 1.2.7 How to set "run level" 3 (non-graphical)?
- 1.2.8 How to set "run level" 5 (graphical)?
Using Mageia FAQ - Frequently Asked Questions
Packages
I can't find package X
Please keep in mind that rpmdrake has a default filter of GUI only, you can switch this to ALL to see more.
You can also check the Mageia App Db to see which packages should be available on your mirror, or to find an alternative for a package we really don't have.
Thirdly, make sure the mirror you are using has a good status (green) for the Mageia version and arch that you use mirrors.mageia.org/status.
I still can't find package X (which is a codec)/I don't hear sound/video doesn't play/VLC doesn't work on my video
Codecs could be under patent in some countries and are separated on the Tainted repository, you need to enable this first, if your country allows you to use this.
Go into the MCC (software section) and enable Tainted Release and Tainted Updates.
SystemD
How to start/stop a service
(you can do this also graphically using MCC)
[ ]# systemctl start httpd.service [ ]# systemctl stop httpd.service
Service doesn't work/checking status or logs of a service
[ ]# systemctl status httpd.service
this will also give a small tail of the logs for that particular service
"tail -f /var/log/messages" does not work?
Instead, use:
[ ]$ journalctl -fa # display log with output appended as it grows
How to search logs for a particular string?
[]# journalctl -a --no-pager | grep sudo # example: search logs for string "sudo"
How to display a list of all systemD services?
[]# systemctl # display a list of systemD services
How to display the current "run level"?
[]$ systemctl get-default # display current system "run level"
How to set "run level" 3 (non-graphical)?
[]# systemctl set-default multi-user.target # set default system "run level" to 3 - non-graphical login
Note that this simply sets the default and nothing changes until you reboot.
How to set "run level" 5 (graphical)?
[]# systemctl set-default graphical.target # set default system "run level" to 5 - graphical login
Note that this simply sets the default and nothing changes until you reboot.