特殊:Badtitle/NS100:BootText
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/BootText }} |
点击翻译: |
English {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/af | • {{#if: php5|Afrikaans| [[::BootText/af|Afrikaans]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/ar | • {{#if: php5|العربية| [[::BootText/ar|العربية]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/az | • {{#if: php5|azərbaycanca| [[::BootText/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/bcc | • {{#if: php5|جهلسری بلوچی| [[::BootText/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/bg | • {{#if: php5|български| [[::BootText/bg|български]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/br | • {{#if: php5|brezhoneg| [[::BootText/br|brezhoneg]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/ca | • {{#if: php5|català| [[::BootText/ca|català]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/cs | • {{#if: php5|čeština| [[::BootText/cs|čeština]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/de | • {{#if: php5|Deutsch| [[::BootText/de|Deutsch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/el | • {{#if: php5|Ελληνικά| [[::BootText/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/es | • {{#if: php5|español| [[::BootText/es|español]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/fa | • {{#if: php5|فارسی| [[::BootText/fa|فارسی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/fi | • {{#if: php5|suomi| [[::BootText/fi|suomi]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/fr | • {{#if: php5|français| [[::BootText/fr|français]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/gu | • {{#if: php5|ગુજરાતી| [[::BootText/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/he | • {{#if: php5|עברית| [[::BootText/he|עברית]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/hu | • {{#if: php5|magyar| [[::BootText/hu|magyar]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/id | • {{#if: php5|Bahasa Indonesia| [[::BootText/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/it | • {{#if: php5|italiano| [[::BootText/it|italiano]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/ja | • {{#if: php5|日本語| [[::BootText/ja|日本語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/ko | • {{#if: php5|한국어| [[::BootText/ko|한국어]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/ksh | • {{#if: php5|Ripoarisch| [[::BootText/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/mr | • {{#if: php5|मराठी| [[::BootText/mr|मराठी]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/ms | • {{#if: php5|Bahasa Melayu| [[::BootText/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/nl | • {{#if: php5|Nederlands| [[::BootText/nl|Nederlands]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/no | • {{#if: php5|norsk| [[::BootText/no|norsk]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/oc | • {{#if: php5|occitan| [[::BootText/oc|occitan]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/pl | • {{#if: php5|polski| [[::BootText/pl|polski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/pt | • {{#if: php5|português| [[::BootText/pt|português]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/ro | • {{#if: php5|română| [[::BootText/ro|română]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/ru | • {{#if: php5|русский| [[::BootText/ru|русский]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/si | • {{#if: php5|සිංහල| [[::BootText/si|සිංහල]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/sq | • {{#if: php5|shqip| [[::BootText/sq|shqip]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/sr | • {{#if: php5|српски / srpski| [[::BootText/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/sv | • {{#if: php5|svenska| [[::BootText/sv|svenska]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/th | • {{#if: php5|ไทย| [[::BootText/th|ไทย]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/tr | • {{#if: php5|Türkçe| [[::BootText/tr|Türkçe]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/vi | • {{#if: php5|Tiếng Việt| [[::BootText/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/yue | • {{#if: php5|粵語| [[::BootText/yue|粵語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/zh | • {{#if: php5|中文| [[::BootText/zh|中文]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/zh-hans | • {{#if: php5|中文(简体)| [[::BootText/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}BootText}}/zh-hant | • {{#if: php5|中文(繁體)| [[::BootText/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:php5|:BootText|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :BootText/zh | | {{#ifexist: BootText/zh | | {{#ifeq: {{#titleparts:BootText|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:BootText|1|-1|}} | zh | | }}
This will not give you a splash image or hide the boot text. It will only make it look better.
Increase resolution
Edit /boot/grub/menu.lst
gksudo gedit /boot/grub/menu.lst Addvga=792
to your default boot option. Example:titleUbuntu, kernel 2.6.10-5-k7 Default root(hd0,0) kernel/vmlinuz root=/dev/hde6 ro quiet splash vga=792 initrd/initrd.img savedefault bootColorize "[ ok ]"
NOTE : does not work with 5.10 Breezy. Use solution given there. (ed. 28/12/2005) We make the "[ ok ]" during bootup green * Edit /lib/lsb/init-functionsgksudo gedit /lib/lsb/init-functions * Find the log_end_msg () function, all the way at the bottom of the file and addGREEN=`$TPUT setaf 2`
belowRED=`$TPUT setaf 1`
* Changeecho "$UP$END[ ok ]"
toecho "$UP$END[ ${GREEN}ok${NORMAL} ]"
The function should look like this:log_end_msg () { # If no arguments were passed, return [ -z "$1" ] && return 1 # Only do the fancy stuff if we have an appropriate terminal # and if /usr is already mounted TPUT=/usr/bin/tput EXPR=/usr/bin/expr if [ -x $TPUT ] && [ -x $EXPR ] && $TPUT hpa 60 >/dev/null 2>&1; then COLS=`$TPUT cols` if [ -n "$COLS" ]; then COL=`$EXPR $COLS - 7` else COL=73 fi UP=`$TPUT cuu1` END=`$TPUT hpa $COL` START=`$TPUT hpa 0` RED=`$TPUT setaf 1` GREEN=`$TPUT setaf 2` NORMAL=`$TPUT op` if [ $1 -eq 0 ]; then echo "$UP$END[ ${GREEN}ok${NORMAL} ]" else echo -e "$UP$START $RED*$NORMAL$END[${RED}fail${NORMAL}]" fi else if [ $1 -eq 0 ]; then echo " ...done." else echo " ...fail!" fi fi return $1 }Finalize
Reboot, and your resolution should be increased. Your [ ok ] messages should now be green. Credits: dudinatrix
CategoryDocumentation