Portál AbcLinuxu, 5. května 2025 15:35
# systemctl status console-getty.service ● console-getty.service - Console Getty Loaded: loaded (/lib/systemd/system/console-getty.service; enabled; vendor preset: disabled) Active: inactive (dead) Docs: man:agetty(8) man:systemd-getty-generator(8)Tam ma napr. zaráža to "vendor preset: disabled"
# systemctl start console-getty.serviceAle ten príkaz odvisne - nevráti sa. Čo môže byť príčina? Ako sa dopátram viac?
# journalctl -u console-getty.service -b -- Logs begin at Fri 2019-05-03 21:30:14 CEST, end at Mon 2019-08-05 08:03:34 CEST. -- -- No entries -- #Robím to zle?
Řešení dotazu:
systemctl status console-getty.service ● console-getty.service - Console Getty Loaded: loaded (/lib/systemd/system/console-getty.service; disabled; vendor p Active: inactive (dead) Docs: man:agetty(8) man:systemd-getty-generator(8)V debiane nastavuje podla:
cat /etc/default/console-setup # CONFIGURATION FILE FOR SETUPCON # Consult the console-setup(5) manual page. ACTIVE_CONSOLES="/dev/tty[1-6]" CHARMAP="UTF-8" CODESET="Lat2" FONTFACE="Fixed" FONTSIZE="8x16" VIDEOMODE= # The following is an example how to use a braille font # FONT='lat9w-08.psf.gz brl-8x8.psf'
Na debiane ide prepisanie do konzol.Nechápem. Čo tým myslíš?
/etc/default/console-setup
u mňa existuje a má zmysluplný obsah. Ale ktorý program (/service/unit/...) je zodpovedný za jeho interpretovanie?
getty-static.service loaded inactive dead getty on tty2-tty6 if dbus and logind are not available getty@tty1.service loaded active running Getty on tty1 getty@tty7.service loaded inactive dead Getty on tty7 system-getty.slice loaded active active system-getty.slice getty.target loaded active active Login Promptsa pokud prepnu na TTY1 prihlasim se bez problemu.
Ubuntu 18.04.2 LTS tty1 servername login:tam chýba. Ten výpis čo si sem dal, to je výstup zo "systemctl list-units --all getty*"? Tak ten u mňa to vyzerá takto:
# systemctl list-units --all getty* UNIT LOAD ACTIVE SUB JOB DESCRIPTION getty-static.service loaded inactive dead getty on tty2-tty6 if dbus and logind are not available getty@tty1.service loaded inactive dead start Getty on tty1 getty@tty2.service loaded inactive dead start Getty on tty2 getty-pre.target loaded inactive dead Login Prompts (Pre) getty.target loaded inactive dead start Login Prompts LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. JOB = Pending job for the unit. 5 loaded units listed. To show all installed unit files use 'systemctl list-unit-files'
systemctl list-jobs
?
# systemctl list-jobs JOB UNIT TYPE STATE 141 getty.target start waiting 134 plymouth-quit-wait.service start waiting 2 multi-user.target start waiting 138 systemd-update-utmp-runlevel.service start waiting 567 getty@tty2.service start waiting 16 setvtrgb.service start waiting 121 plymouth-quit.service start waiting 162 ureadahead-stop.timer start waiting 142 getty@tty1.service start waiting 1620 console-getty.service start waiting 143 system-getty.slice start waiting 122 rc-local.service start running 1 graphical.target start waitingA problém bol v tom "rc-local.service", teda vlastne v súbore /etc/rc.local, kde na jednom riadku chýbal na konci riadku znak "&", aby sa spustil na pozadí. Ďakujem.
KillUserProcesses=yesPotom pro vybrané uživatele zapnutý linger a mají nastavené své vlastní service pomocí
systemctl --user
.
Tj vybraní uživatelé si mohou psát a spouštět svoje unity a zdá se, že to funguje spolehlivě (jejich unity se spustí při startu pc a přežijí jejich odhlášení).
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.