UbuntuWiki:Ubunty daily tips

来自Ubuntu中文
Oneleaf留言 | 贡献2007年5月15日 (二) 05:04的版本 (New page: {{From|https://wiki.ubuntu.com/Ubunty_daily_tips}} {{Languages|UbuntuWiki:Ubunty_daily_tips}} * '''Launchpad Entry''': https://launchpad.net/distros/ubuntu/+spec/foo * '''Created''': 2006...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索

{{#ifexist: :UbuntuWiki:Ubunty daily tips/zh | | {{#ifexist: UbuntuWiki:Ubunty daily tips/zh | | {{#ifeq: {{#titleparts:UbuntuWiki:Ubunty daily tips|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuWiki:Ubunty daily tips|1|-1|}} | zh | | }}


Summary

Display daily tips for helping new (and experienced) users make the most of their Ubuntu system.

Rationale

Use cases

Scope

Design

I have made a bash script using zenity that works. It would, however, be better with a real "Tip of the day" application which could start on first boot and then have the checkbox "Do not display this again" added.

Implementation

Code

maxrows=0 while read line do number=${line:0:6} content[number]=${line:7} let "maxrows += 1" done

RANDOM=$$ thistip=$RANDOM let "thistip %= maxrows"

for numb in $(seq 0 $maxrows) do if [ $numb = $thistip ] then zenity --title "Ubuntu daily tip" --info --text "${content[numb]}" fi done

exit 0


Data preservation and migration

Outstanding issues

BoF agenda and discussion

  • It would be great to think about using this as a way of including information from: EthicalInfo.
  • i18n, please!

Forum page with sample tips in a textfile

http://www.ubuntuforums.org/showthread.php?p=768965#post768965