- 浏览: 163758 次
- 性别:
- 来自: Hangzhou
文章分类
- 全部博客 (159)
- joost (2)
- isp (1)
- tt (1)
- 深得我心 (1)
- 天津卫 (1)
- zju (0)
- 傻生殖器 (1)
- surface (1)
- 飞机 (1)
- skating (1)
- 咔咔 (2)
- 验证码 (1)
- 杯子 (1)
- 测试 (1)
- 漫画 (1)
- 视频 (2)
- blog (1)
- 武林 (1)
- r4 (1)
- 又来了一堆活儿 (1)
- 嘿嘿 (1)
- 五一 (1)
- 流氓 (1)
- super (1)
- 超狗 (1)
- cg (2)
- 壁纸 (1)
- 手绘 (1)
- 星际争霸2 (1)
- 新东西 (1)
- hack (1)
- windows (1)
- 累并快乐着 (1)
- 腐败 (0)
- 裁决 (1)
- 意义 (1)
- programmer (1)
- treo680 (1)
- zusio (0)
- 打孔结束 (1)
- jobs (1)
- wife (1)
- 再牛b的肖邦 (0)
- us (1)
- sigh (1)
- 包子 (1)
- 上海 (2)
- 糟糕 (1)
- 相声 (1)
- power (1)
- v (1)
- apple (1)
- web (1)
- browser (1)
- 北京 (1)
- 侯总 (1)
- timetable (1)
- 朝鲜战争 (1)
- 搬家 (1)
- 1983 (1)
- 责任 (1)
- feedburner (1)
- 牌坊 (1)
- 牛人都是这么走过来的牛人都是这么走过来的牛人都是这么走过来的 (1)
- ruby (2)
- 活着 (1)
- time (1)
- 加勒比海盗 (1)
- 史上最强 (1)
- 申雪 (1)
- 过热滚滚瓦里了,丫是sb (0)
- 个惹个滚瓦雷里 (1)
- java (1)
- ii (1)
- 手机 (1)
- cgsociety (1)
- 家 (1)
- beryl (1)
- shit (1)
- -,- (1)
- 毅行 (1)
- 玉兰油 (1)
- 新专辑 (1)
- 飞香蕉的家 (1)
- fortune (1)
- 老板 (1)
- 人才 (1)
- ssh (1)
- jruby (1)
- switch (1)
- firefox (2)
- gone (0)
- adobe (1)
- 脚本 (1)
- ... (1)
- google (2)
- 张韶涵 (1)
- pig (1)
- bambi (1)
- 电信 (1)
- line (1)
- jan (1)
- 很好 (1)
- feeds (1)
- vista (0)
- freewave (3)
- 下沙 (1)
- 杭州 (1)
- 新年快乐 (1)
- 当年的歌 (1)
- 哈哈 (1)
- production (1)
- artist (1)
- svn (1)
- developer (1)
- myths (1)
- url (1)
- riddle (1)
- linux (2)
- vehicle (1)
- fun (1)
- 80 (0)
- gentoo (2)
- amarok (1)
- 我讨厌% (1)
- kde (2)
最新评论
-
andyhu1007:
谢宝宝,一看就是你了!!!!
纪念老白与老夫成功同居21个月
MOTD stands for "Message Of The Day". On most systems the file /etc/motd
serves to output messages when someone logs in to the system. In this
installment of Tips and Tricks we learn how use fortune and cowsay to create
a fancy MOTD.
First we need to install two packages:
+-----------------------------
serves to output messages when someone logs in to the system. In this
installment of Tips and Tricks we learn how use fortune and cowsay to create
a fancy MOTD.
First we need to install two packages:
+-----------------------------
----------------------------------------------+
| Code Listing 4.1 |
| Installing cowsay and fortune |
+---------------------------------------------------------------------------+
| # emerge fortune-mod cowsay |
+---------------------------------------------------------------------------+
Next we should choose a character from the following choices:
+---------------------------------------------------------------------------+
| Code Listing 4.2 |
| Choosing your character |
+---------------------------------------------------------------------------+
| # ls /usr/share/cowsay-3.03/cows/ |
| # cowsay -f ren "foo" |
+---------------------------------------------------------------------------+
Finally, we update /etc/motd:
+---------------------------------------------------------------------------+
| Code Listing 4.3 |
| Updating /etc/motd |
+---------------------------------------------------------------------------+
| # fortune | cowsay -f ren > /etc/motd |
+---------------------------------------------------------------------------+
You can generate a new motd daily by creating the following file in
/etc/cron.daily:
+----------------------------------------------------------------------------------------+
| Code Listing 4.4 |
| Setting up the cron job |
+----------------------------------------------------------------------------------------+
| # echo '#!/bin/sh' >> /etc/cron.daily/motd |
| # echo '/usr/bin/fortune | /usr/bin/cowsay -f ren > /etc/motd' >> /etc/cron.daily/motd |
| # chmod +x /etc/cron.daily/motd |
+----------------------------------------------------------------------------------------+
If you want to spice up your motd even more, read the forums thread[8] which
inspired this week's Tips and Tricks.
http://forums.gentoo.org/viewtopic-t-97905.html
...
| Code Listing 4.1 |
| Installing cowsay and fortune |
+---------------------------------------------------------------------------+
| # emerge fortune-mod cowsay |
+---------------------------------------------------------------------------+
Next we should choose a character from the following choices:
+---------------------------------------------------------------------------+
| Code Listing 4.2 |
| Choosing your character |
+---------------------------------------------------------------------------+
| # ls /usr/share/cowsay-3.03/cows/ |
| # cowsay -f ren "foo" |
+---------------------------------------------------------------------------+
Finally, we update /etc/motd:
+---------------------------------------------------------------------------+
| Code Listing 4.3 |
| Updating /etc/motd |
+---------------------------------------------------------------------------+
| # fortune | cowsay -f ren > /etc/motd |
+---------------------------------------------------------------------------+
You can generate a new motd daily by creating the following file in
/etc/cron.daily:
+----------------------------------------------------------------------------------------+
| Code Listing 4.4 |
| Setting up the cron job |
+----------------------------------------------------------------------------------------+
| # echo '#!/bin/sh' >> /etc/cron.daily/motd |
| # echo '/usr/bin/fortune | /usr/bin/cowsay -f ren > /etc/motd' >> /etc/cron.daily/motd |
| # chmod +x /etc/cron.daily/motd |
+----------------------------------------------------------------------------------------+
If you want to spice up your motd even more, read the forums thread[8] which
inspired this week's Tips and Tricks.
http://forums.gentoo.org/viewtopic-t-97905.html
相关推荐
Spice up your site with this absolutely free interactive Flash guest book done in ASP and Flash. You can choose from various interfaces. SQL Server and Access database versions available.
The aim in Chapter 2 is just to help you write, run, and understand your first Spice file. In Chapter 3, each of the major types of analyses Spice can do for you are introduced, by example. In ...
Spice-Up提供了创建简单美观的演示文稿所需的一切。 使用精美的设计模板来传达您的想法,或者使用空白画布从头开始。 无论哪种方式,您都将为演示文稿添加一些香料,这些香料具有各种各样的背景图案和漂亮的调色板...
**Spice 协议及其应用** Spice(Simple Protocol for Independent Computing Environments)是一种高效、安全的远程桌面协议,主要用于虚拟化环境中的图形用户界面显示和输入设备控制。它的设计目标是提供高质量的...
SPICE模型参数是电路仿真软件SPICE(Simulation Program with Integrated Circuit Emphasis)中用于定义电路元件特性的关键数据。SPICE模型参数使设计人员能够在计算机上对电路进行仿真,以此来预测电路在不同条件下...
Spice(Simple Protocol for Independent Computing Environments)是一种远程桌面协议,设计用于提供高效、低延迟的虚拟机(VM)图形用户界面(GUI)访问。它广泛应用于OpenStack这样的开源云计算平台,为用户提供...
"SPICE"在这里可能是两个含义:一是作为算法名称的一部分,二是指仿真程序套件SPICE(Simulation Program with Integrated Circuit Emphasis),它在电子电路设计中广泛使用。然而,在这个上下文中,"SPICE"更可能指...
**SPICE(Simulation Program with Integrated Circuit Emphasis)**是一款广泛应用于电路模拟和分析的软件工具。它最初由UC Berkeley开发,现在已经成为电子设计自动化(EDA)领域中的标准工具。本教程将详细介绍...
**Spice-GTK 编译后程序详解** `Spice-GTK` 是一个跨平台的图形用户界面工具包,主要用于构建与 SPICE (Simple Protocol for Independent Computing Environments) 服务器进行交互的应用程序。SPICE 是一种高效、低...
"Automotive-SPICE-PAM-30-翻译版_spice_pam_spice_汽车A-SPICE_Automotive" 这个标题涵盖了几个关键术语,包括"Automotive-SPICE"(汽车软件过程改进与能力评估模型)、"PAM"(过程评估模型)、"30"可能指的是版本...
"QEMU+SPICE+USBredir详细编译步骤" 本文将详细介绍如何在 Linux 系统(包括 CentOS、Ubuntu 等)下编译 QEMU 和 SPICE 协议,使其支持 USB 重定向。 一、编译 libusb libusb 是一个开源的 USB 库,提供了访问 ...
**SPICE(Simple Protocol for Independent Computing Environments)**是一种开源的远程显示协议,主要用于虚拟化环境中的图形用户界面。它允许用户通过网络连接到虚拟机,提供高效、高质量的远程桌面体验,支持...
spice_password="your_password" ``` 这个配置中包含了开启SPICE、USB重定向、vdagent(虚拟桌面代理)以及设置SPICE端口和密码等关键选项。 4. 进行中的工作 随着Xen项目的持续发展,SPICE的支持也在不断优化和...
SPICE3原版手册,电路仿真必备知识,芯片仿真的基础知识 SPICE3是电子电路仿真领域中的一款专业软件,该软件能够对电子电路进行仿真分析,帮助设计师和研究人员快速设计和优化电子电路。下面是SPICE3原版手册中的...
SPICE 协议:SPICE 协议定义了虚拟机和客户端之间的通信规范,包括图形、音频、输入设备和 USB 设备等的传输。 SPICE 客户端:SPICE 客户端是用于远程访问虚拟机的应用程序。它可以在各种操作系统上运行,并提供了...
The IBIS to SPICE application generates SPICE models from IBIS (I/O Buffer Information Specification) data sheets. It reads a template file to define the SPICE models to be generate. The template file...
在电子设计领域,SPICE(Simulation Program with Integrated Circuit Emphasis,集成电路重点模拟程序)是一种广泛应用的电路模拟软件,用于分析电路的行为和性能。SPICE模型是SPICE软件中的核心部分,它包含了描述...
Android平台下所使用的spice客户端
在深入讨论《Circuit Simulation with SPICE OPUS》的内容之前,我们先要了解SPICE OPUS是什么。SPICE OPUS是电子电路模拟程序的一个版本,其基础是广泛使用的SPICE(Simulation Program with Integrated Circuit ...