請問如何將Console弄得像安裝光碟的Console一模?

有關於X 環境當中所遇到的問題

Moderator: Forums Team

scrazy
Posts: 18
Joined: Sat Apr 26, 2003 7:24 am

Post by scrazy »

breaking wrote:
coollinuxer wrote:然後編譯核心
Console drivers ->
Frame-Buffer support ->
<*>Use splash screen instead of boot logo
在我的ck-sources-2.4.20-r6中,似乎沒有這個選項的說..... :cry:

有人用ck6成功的麼???
沒錯 我的也一樣找不到這一項
所以只有開機時出現boot logo...
coollinuxer
Posts: 109
Joined: Sun Mar 16, 2003 4:42 pm
Contact:

Post by coollinuxer »

breaking wrote:
coollinuxer wrote:然後編譯核心
Console drivers ->
Frame-Buffer support ->
<*>Use splash screen instead of boot logo
在我的ck-sources-2.4.20-r6中,似乎沒有這個選項的說..... :cry:

有人用ck6成功的麼???
我就是用CK6編的呀
不要忘記了
#cd /usr/src/linux/
#patch -p1 < /usr/share/bootsplash/bootsplashXXXXXXXXXX.diff
這個步驟很重要
PS.我也忽略他很久,去看他的ebuild才不小心瞄到的...
Open,Based on Free!
Free,Powerd by Opening!
breaking
Posts: 184
Joined: Sun Apr 13, 2003 4:31 am
Location: 地球上一個小小的地方叫"台北內湖"啦
Contact:

Post by breaking »

果然是這個步驟沒有做....... :oops:

已經ok囉,多謝...... :D
pahud
24hr 義工
Posts: 1251
Joined: Tue Nov 26, 2002 10:22 pm
Contact:

Post by pahud »

對了,有誰知道那個initrd的splash image是在那裡控制的?
bootsplash image可以在/etc/bootsplash/底下調整,
但initrd的splash image要在那調整呢?我把initrd.1024給
loop mount起來,但還找不到任何線索。
pahud
24hr 義工
Posts: 1251
Joined: Tue Nov 26, 2002 10:22 pm
Contact:

Post by pahud »

pahud wrote:對了,有誰知道那個initrd的splash image是在那裡控制的?
bootsplash image可以在/etc/bootsplash/底下調整,
但initrd的splash image要在那調整呢?我把initrd.1024給
loop mount起來,但還找不到任何線索。
似乎用splash指令可以解決
這裡有HOWTO
http://forums.gentoo.org/viewtopic.php?t=49036
pahud
24hr 義工
Posts: 1251
Joined: Tue Nov 26, 2002 10:22 pm
Contact:

Post by pahud »

更深入玩了一下bootsplash,發現有兩個問題。

1. silent mode沒作用
我在我的nb上用grub boot可以進入silent mode,
看不到開機的文字訊息,不過status bar不會動。
另外在一台P4 1.6G的機器,grub設定方式一樣,但
silent mode怎樣都沒有作用。

2. 不是每張.jpg圖片都可以用
去網路上抓全智賢的照片,用splash來處理,沒辦法用,
會有這樣的kernel message

Code: Select all

Looking for splash picture.... no good signature found.
User avatar
【Palatis】
Posts: 956
Joined: Wed Apr 02, 2003 4:21 pm
Location: 偶爾插花...</br>亞利安星球
Contact:

Post by 【Palatis】 »

splash 討厭全智賢ㄇ....

純灌水, 別打我......
「從麻雀之城回來的時候,被問到『你要大的藤箱還是小的藤箱?』為此煩惱不已。大家都有過這種煩惱吧?」
「是啊是啊!大的藤箱可以放很多東西覺得很划算,小的藤箱小小的裡面也許放著很不錯的東西,真的很難取捨阿!」
「靠這個就能告別這種煩惱『中型的藤箱』!」
「好厲害!」
「不要再煩惱大小的問題了,現在還贈送可以煮出鐵質,增進健康的鐵銼刀。」
「這是一定要買的!」
「我要一個!」
pahud
24hr 義工
Posts: 1251
Joined: Tue Nov 26, 2002 10:22 pm
Contact:

Post by pahud »

【Palatis】 wrote:splash 討厭全智賢ㄇ....

純灌水, 別打我......

但我還是把她搞定了..哈哈
http://openbazaar.net/4images/details.php?image_id=60

找時間再來把silent mode and progree bar搞定。
breaking
Posts: 184
Joined: Sun Apr 13, 2003 4:31 am
Location: 地球上一個小小的地方叫"台北內湖"啦
Contact:

Post by breaking »

silent及bootsplash的畫面不是可以設不一樣麼?

為何我一設不一樣的圖,reboot後,就一定抓不到的說.... :?

而且.....是變成兩張圖都抓不到的說....

設回來就又可以了.....怪...

Code: Select all

jpeg=/etc/bootsplash/gentoo/images/mybootsplash-1024x768.jpg
silentjpeg=/etc/bootsplash/gentoo/images/mysilent-1024x768.jpg
這我檢查過了....

Code: Select all

/sbin/splash -s -f /etc/bootsplash/default/config/bootsplash-1024x768.cfg > /boot/initrd-1024x768
這我也做過.....還是一樣....why???


p.s.順便問問....關於http://forums.gentoo.org/viewtopic.php? ... 68f52fbb3c
上有一為mojo所發表的So guys this is for everyone who wants to have a progressbar at boottime有兩段如下

Code: Select all

I came up with the number "2849" by adding the number of scripts that were called after the shared memory (/dev/shm) was mounted, added one to that number, and divided 65536 by it. Eg. 65536/(number_of_scripts + 1).
這段我看得不是很懂.....有人可以指導我一下麼?thX

p.s.因為我的bar有在跑....只是只跑到三分之二......
Last edited by breaking on Sun May 04, 2003 2:28 pm, edited 1 time in total.
pahud
24hr 義工
Posts: 1251
Joined: Tue Nov 26, 2002 10:22 pm
Contact:

Post by pahud »

breaking wrote:silent及bootsplash的畫面不是可以設不一樣麼?

為何我一設不一樣的圖,reboot後,就一定抓不到的說.... :?

而且.....是變成兩張圖都抓不到的說....

設回來就又可以了.....怪...
你要先確定這些圖片可以bootsplash正常顯示才行,
你可以設定好之後,執行

Code: Select all

 # bootsplash /etc/bootsplash/default/config/bootsplash-xxxxxxxx.cfg 
看看是否立刻更新,是的話,再用
bootsplash -s -f產生initrd檔。

progress bar我也還沒弄出來。
breaking
Posts: 184
Joined: Sun Apr 13, 2003 4:31 am
Location: 地球上一個小小的地方叫"台北內湖"啦
Contact:

Post by breaking »

<1>
加入這段到/sbin/functions.sh中的eend(){}

Code: Select all

if [ "${BOOT}" = "yes" ] && [ -z "${EBUILD}" -a -w /proc/splash ] && [ -s /dev/shm/ ]
    then
        if ! [ -e /dev/shm/progress_bar_counter ] ; then echo 0 > /dev/shm/progress_bar_counter ; fi
        NEW_VALUE=$(( `cat /dev/shm/progress_bar_counter` + 2849 ))
        echo "$NEW_VALUE" > /dev/shm/progress_bar_counter
        echo "show $NEW_VALUE" > /proc/splash
fi
應該變成如下

eend(){
這裡加上以上那段codes!!!
而這是原本的codes.....
}

<2>
記得修改/etc/fstab
加入

Code: Select all

none                    /dev/shm        tmpfs           defaults               0 0
<3>
如果你想讓你的每個console都有bootslpash image
修改/etc/init.d/bootsplash中的這一段

Code: Select all

 /sbin/splash -s -u $TTY /etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-$(/sbin/fbresolution).cfg
加入-n在$TTY之後

Code: Select all

/sbin/splash -s -u $TTY -n /etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-$(/sbin/fbresolution).cfg
p.s.這樣bar就會動囉,只是2849是怎得來的.....我不是很懂的說.....
因為我不知道如何得知number_of_scripts???
ckchen
Posts: 67
Joined: Mon Mar 24, 2003 12:43 am
Location: NTHU
Contact:

Post by ckchen »

[quote="pahud"][quote="【Palatis】"]splash 討厭全智賢ㄇ....

純灌水, 別打我......[/quote]


但我還是把她搞定了..哈哈
http://openbazaar.net/4images/details.php?image_id=60

找時間再來把silent mode and progree bar搞定。[/quote]


靠...超炫的...
怎麼有這種東東...
ckchen
Posts: 67
Joined: Mon Mar 24, 2003 12:43 am
Location: NTHU
Contact:

Post by ckchen »

我跑出來的都只有60Hz耶,
很傷眼睛,
在/boot/grub/grub.conf裡,
我有試過1024x768跟1280x1024 16K色的那兩項(vga=0x317跟0x31A)
也有試過在vesa:後面加入1024x768@72或其它頻率值,
可是不管我怎麼改都沒用,
我的卡是nVidia Geforce2 32M那張,
有解嗎?

還有一些小的問題:
1.怎麼讓滑鼠動起來啊?還能copy paste之類的
2.我覺得鍵盤repeat很慢,要去那裡調呢?
3.有些字的顏色跟背景很像看不清楚,要去那裡改呢?

謝謝大家的回答
"The process of changing a software system in such a way that it does not alter the external behavior of the code, yet improves its internal structure. It's a disciplined way to clean up code that minimizes the changes of introducing bugs." -- M. F.
maxdj
Posts: 68
Joined: Sun May 11, 2003 2:08 am
Location: GCC星球

Post by maxdj »

ckchen wrote: 還有一些小的問題:
1.怎麼讓滑鼠動起來啊?還能copy paste之類的
2.我覺得鍵盤repeat很慢,要去那裡調呢?
3.有些字的顏色跟背景很像看不清楚,要去那裡改呢?

謝謝大家的回答
1.應該要先啟動gpm 這個服務
ckchen
Posts: 67
Joined: Mon Mar 24, 2003 12:43 am
Location: NTHU
Contact:

Post by ckchen »

maxdj wrote:
ckchen wrote: 還有一些小的問題:
1.怎麼讓滑鼠動起來啊?還能copy paste之類的
2.我覺得鍵盤repeat很慢,要去那裡調呢?
3.有些字的顏色跟背景很像看不清楚,要去那裡改呢?

謝謝大家的回答
1.應該要先啟動gpm 這個服務
3Q,滑鼠可以了
"The process of changing a software system in such a way that it does not alter the external behavior of the code, yet improves its internal structure. It's a disciplined way to clean up code that minimizes the changes of introducing bugs." -- M. F.
Post Reply