[РЕШЕНО] Отвалились консольные шрифты
Drakon 4 декабря, 2011 - 18:14
При запуске /etc/init.d/consolefont получаю сообщение:
drakon drakon # /etc/init.d/consolefont restart * Caching service dependencies ... [ ok ] * Setting console font [default8x16] ... setfont: default8x16: No such file or directory [ !! ] * ERROR: consolefont failed to start
Хотя файл /usr/share/consolefonts/default8x16.psfu.gz присутствуйет.
/etc/conf.d/consolefont:
# consolefont specifies the default font that you'd like Linux to use on the # console. You can find a good selection of fonts in /usr/share/consolefonts; # you shouldn't specify the trailing ".psf.gz", just the font name below. # To use the default console font, comment out the CONSOLEFONT setting below. # This setting is used by the /etc/init.d/consolefont script (NOTE: if you do # not want to use it, run "rc-update del consolefont boot" as root). consolefont="default8x16" # consoletranslation is the charset map file to use. Leave commented to use # the default one. Have a look in /usr/share/consoletrans for a selection of # map files you can use. #consoletranslation="8859-1_to_uni" # unicodemap is the unicode map file to use. Leave commented to use the # default one. Have a look in /usr/share/unimaps for a selection of map files # you can use. #unicodemap="iso01"
»
- Для комментирования войдите или зарегистрируйтесь

Проверьте, установлен ли
Проверьте, установлен ли пакет sys-apps/kbd.
Я ♥ Gentoo & Funtoo
Установлен.
Установлен.
-
Drakon
Проверьте всё же
Шрифты эти, прямо скажем на «любителя», поэтому можно попробовать установить, к примеру, media-fonts/terminus-font и изменить файл /etc/conf.d/consolefont
Я ♥ Gentoo & Funtoo
drakon drakon # ls -l
Та же самая ошибка в обоих случаях. А нормально что у файлов шрифтов такой размер маленький?
-
Drakon написал(а): Та же
Нормально.
Покажите вывод команды
Я ♥ Gentoo & Funtoo
drakon drakon #
drakon drakon # /etc/init.d/consolefont -d restart + loadconfig /etc/init.d/../conf.d + _c=consolefont + '[' -n consolefont -a consolefont '!=' consolefont ']' + unset _c + sourcex -e /etc/init.d/../conf.d/consolefont.default + '[' -e = -e ']' + shift + '[' -e /etc/init.d/../conf.d/consolefont.default ']' + return 1 + sourcex -e /etc/init.d/../conf.d/consolefont + '[' -e = -e ']' + shift + '[' -e /etc/init.d/../conf.d/consolefont ']' + . /etc/init.d/../conf.d/consolefont ++ consolefont=ter-k16n + sourcex -e /etc/rc.conf + '[' -e = -e ']' + shift + '[' -e /etc/rc.conf ']' + . /etc/rc.conf ++ rc_shell=/sbin/sulogin ++ unicode=YES ++ rc_tty_number=12 + '[' -n '' ']' + sourcex /etc/init.d/consolefont + '[' /etc/init.d/consolefont = -e ']' + . /etc/init.d/consolefont ++ description='Sets a font for the consoles.' + unset _d + unset _f + '[' -n '' ']' + '[' -n start ']' + '[' start = depend ']' + for _cmd in describe start stop status '${extra_commands:-$opts}' '$extra_started_commands' + '[' describe = start ']' + for _cmd in describe start stop status '${extra_commands:-$opts}' '$extra_started_commands' + '[' start = start ']' ++ command -v start + '[' start = start ']' + yesno + '[' -z '' ']' + return 1 + unset _cmd ++ command -v start_pre + '[' '' = start_pre ']' + start + ttyn=12 + consolefont=ter-k16n + unicodemap= + consoletranslation= + '[' -z ter-k16n ']' + '[' 12 = 0 ']' + local x= param= sf_param= retval=0 ttydev=/dev/tty + '[' -n '' ']' + '[' -n '' ']' + ebegin 'Setting console font [ter-k16n]' * Setting console font [ter-k16n] ... + '[' -d /dev/vc ']' + x=1 + '[' 1 -le 12 ']' + setfont ter-k16n -C /dev/tty1 setfont: ter-k16n: No such file or directory + retval=1 + break + eend 1 [ !! ] + '[' 1 -eq 0 -a -w /lib64/rc ']' + return 1 + exit 1 * ERROR: consolefont failed to start-
Покажитеwhich setfont
Покажите
P.S. Будут ли ошибки, если просто в командной строке ввести
setfont ter-k16n -C /dev/tty1?Я ♥ Gentoo & Funtoo
drakon drakon # which
-
Drakon написал(а):drakon
А должно быть
Покажите
P.S. Проверьте, существует ли у вас /usr/bin/setfont.
Я ♥ Gentoo & Funtoo
Всё ясно, спасибо. Это старая
Всё ясно, спасибо. Это старая проблема - http://www.gentoo.ru/node/24311#comment-180843
-
А где хранятся пути до
А где хранятся пути до шрифтов? Может там что-то слетело...
-
man setfont ... FILES
man setfont ... FILES /usr/share/consolefonts is the default font directory. /usr/share/unimaps is the default directory for Unicode maps. /usr/share/consoletrans is the default directory for screen mappings. The default font is a file default (or default8xN if the -N option was given for some number N) perhaps with suitable extension (like .psf). ...Я ♥ Gentoo & Funtoo