linux×ÀÃæ±ÚÖ½×Ô¶¯»»£¨ÀàËÆÓÚwindows7±ÚÖ½×Ô¶¯»»£©
¸´ÖÆÒÔÏÂÄÚÈÝ£¬±£´æÎª py ºó׺µÄÎļþ£¬¿½±´µ½wallpaperÎļþ¼Ð£¬½øÈëÎļþ¼Ð£¬ÒÔpythonÔËÐУ¬Ñ¡È¡xmlΪ±ÚÖ½
#!/usr/bin/env python2.6
# -*- coding: utf-8 -*-
# Ubuntu 9.10 dynamic wallpaper maker_Can be used in all the distributions of linux
#
# Auto generate a configuration file which you can use as
# dynamic wallpaper.
#USAGE
#use this dynamic-wall-maker.py by ""[somebody@ubuntu~]$python /path/to/the/dynamic-wall-maker.py /path/to/the/wallpapers_filefolder""
#
#cd
#[wowoto@Archlinux windows7-wallpapers]$ python dynamic-wall-maker.py /path/to/the/wallpapers
#You can set "/path/to/the/wallpapers/dyn-wall.xml" as dynamic wallpaper now,have a good day
#[wowoto@Archlinux windows7-wallpapers]$
# xiaoyang006@gmail.com
# 2009.11
import os
import sys
import optparse
class Printer:
'''Print all kinds of tags.'''
def __init__(self):
self.__indent_format = ' '
def __print_open_tag(self, type, indent=0):
if indent > 0:
for i in range(0, indent):
print self.__indent_format,
print '<%s>' % type
def __print_close_tag(self, type, indent=0):
if indent > 0:
for i in range(0, indent):
print self.__indent_format,
print '</%s>' % type
def __print_tag(self, type, value, indent=0):
if indent > 0:
for i in range(0, indent):
&
Ïà¹ØÎĵµ£º
ÓÃLinuxϵÄLVSÈí¼þʵÏÖLinux¼¯Èº
µÂÓ¢
·¢±íÓÚ2010Äê03ÔÂ15ÈÕ 18:22
ÔĶÁ( ......
ÔÚLINUX»·¾³¿ª·¢Çý¶¯³ÌÐò£¬Ê×ÏÈҪ̽²âµ½ÐÂÓ²¼þ£¬½ÓÏÂÀ´¾ÍÊÇ¿ª·¢Çý¶¯³ÌÐò¡£
³£ÓÃÃüÁîÕûÀíÈçÏ£º
ÓÃÓ²¼þ¼ì²â³ÌÐòkudzu̽²âÐÂÓ²¼þ£ºservice kudzu start ( or restart)
²é¿´CPUÐÅÏ¢£ºcat /proc/cpuinfo
²é¿´°å¿¨ÐÅÏ¢£ºcat /proc/pci
²é¿´PCIÐÅÏ¢£ºlspci (Ïà±Ècat /proc/pci¸üÖ±¹Û£©
²é¿´ÄÚ´æÐÅÏ¢ ......
£¨Ò»£©Îļþ¡¢Ä¿Â¼²Ù×÷ÃüÁî
1¡¢lsÃüÁî
¹¦ÄÜ£ºÏÔʾÎļþºÍĿ¼µÄÐÅÏ¢
ls¡¡ÒÔĬÈÏ·½Ê½ÏÔʾµ±Ç°Ä¿Â¼ÎļþÁбí
ls -a ÏÔʾËùÓÐÎļþ°üÀ¨Òþ²ØÎļþ
ls -l ÏÔʾÎļþÊôÐÔ£¬°üÀ¨´óС£¬ÈÕÆÚ£¬·ûºÅÁ¬½Ó£¬ÊÇ·ñ¿É¶Áд¼°ÊÇ·ñ¿ÉÖ´ÐÐ
ls -lh ÏÔʾÎļþµÄ´óС£¬ÒÔÈÝÒ×Àí½âµÄ¸ñʽӡ³öÎļþ´óС (ÀýÈç 1K 234M 2G)
ls -lt ÏÔʾÎļþ£¬°´ÕÕÐÞ¸ÄÊ ......
Ò».ʲôÊÇNS 2
NS 2ÊÇÒ»ÖÖÕë¶ÔÍøÂç¼¼ÊõµÄÔ´´úÂ빫¿ªµÄ¡¢Ãâ·ÑµÄÈí¼þÄ£ÄâÆ½Ì¨£¬Ñо¿ÈËԱʹÓÃËü¿ÉÒÔºÜÈÝÒ׵ĽøÐÐÍøÂç¼¼ÊõµÄ¿ª·¢£¬¶øÇÒ·¢Õ¹µ½½ñÌ죬ËüËù°üº¬µÄÄ£¿é·Ç³£·á¸»£¬¼¸ºõÉæ¼°µ½ÁËÍøÂç¼¼ÊõµÄËùÓз½Ãæ¡£
NS 2£¨Network Simulator, version
2£©ÊÇÒ»ÖÖÃæ ......