Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: ENHANCE in "Getting Started", "Getting Started" in 0.6.2 needs update?< Next Oldest | Next Newest >
BillH Offline





Group: Members
Posts: 34
Joined: April 2004
Posted: April 01 2004,04:18 QUOTE

In the "Getting Started" file in 0.6.2, under "Saving Your Configuration", it says "For the popular enhance, just remove the comment in the default .xinitrc."

.xinit includes the following:

grep enhance /proc/cmdline >/dev/null
if [ $? == 0 ]; then
enhance &>/dev/null &
fi

OK, so I"m new at this, but seems to me that Getting Started should tell us to comment out lines 1, 2 and 4 in the fragment above.

# grep enhance /proc/cmdline >/dev/null
# if [ $? == 0 ]; then
enhance &>/dev/null &
# fi

This would force enhance every time, right?

Like I said, I"m new at this, so help me out on this next point, someone.

This 'if [ $? == 0 ]' looks at the return code from grep, right? So if the string "enhance" is found on the knoppix line, the "if" condition is met. OK? So if we change the grep to "grep plain /proc/cmdline >/dev/null" and change the "if" to look for failure if[ $? == 1 ] (because 1 is the return code for grep failure), then we always get enhance UNLESS we type "knoppix plain" at boot prompt.

grep plain /proc/cmdline >/dev/null
if [ $? == 1 ]; then
enhance &>/dev/null &
fi

Am I right??


--------------
Keep it simple.
Back to top
Profile PM AOL 
CappyCaffeine Offline





Group: Members
Posts: 64
Joined: Jan. 2004
Posted: April 01 2004,05:16 QUOTE

I think the "Getting Started" comment is a throwback to previous versions.

I find the easiest thing is to comment out all of those lines and just insert:

enhance &

before

fluxbox

in .xinitrc

for a hard drive install

Cappy
Back to top
Profile PM MSN 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: April 01 2004,07:48 QUOTE

Bill,

Yes, you are right. With all the new improvements, we sometimes overlook things like that. Especially documentation.

Cappy, you are right too, that is the easy way to do it!
Back to top
Profile PM WEB 
BillH Offline





Group: Members
Posts: 34
Joined: April 2004
Posted: April 01 2004,10:12 QUOTE

If "enhance" is popular, I mean, if it is more often used than not, why not make it the default behavior and and make "plain" an option? Is this poll material? :D

--------------
Keep it simple.
Back to top
Profile PM AOL 
CappyCaffeine Offline





Group: Members
Posts: 64
Joined: Jan. 2004
Posted: April 01 2004,16:25 QUOTE

Yes, I think it is poll material. Go ahead and start one! :)

Cappy
Back to top
Profile PM MSN 
11 replies since April 01 2004,04:18 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: ENHANCE in "Getting Started"

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code