2006-08-24
复制管理员账户桌面上的快捷方式
2006-08-23
在Ubuntu下安装常用程序
apt-get install apache2
安装MySQL:
apt-get install mysql-server, mysql-admin
安装php5:
apt-get install php5
apt-get install libapache2-mod-php5
apt-get install php5-gd,php5-mysql, php5-mysqli, php5-xsl, php5-xmlrpc
apt-get install imagemagick
这样LAMP就架设好了!
Ubuntu默认安装不带ssh server
收到Ubuntu寄来的光盘很久了,只是放在光驱里看了看Live CD。今天腾出些空在gepc188上安装了Ubuntu 6.06。安装过程很简单。用光盘启动后会自动运行光盘上的Live系统,桌面上会有一个install的链接,便于用户安装。整个过程除了开始选择语言,键盘布局和分区外,其他都不用用户参与。安装完配置好网络后发现竟然没有ssh server,这可是其他版本默认的配置。不过要安装open ssh server也非常的简单,只需执行:
sudo apt-get install ssh
如果网络连接好,安装很快。安装完毕后ssh服务自动启动。以前一直用suse,接下来的几天用这台机器熟悉一下debian的风格,尤其是早闻大名的apt。
免费的词典软件StarDict
StarDic是一个用C++实现的开源词典软件,能够运行在GNU/Linux, FreeBSD, Solaris, Win32多个平台上,当前的版本为2.4.8。要在Windows上使用需先安装GTK+ Runtime Environment。软件本身没有包含字典文件,只有1.2M,因此安装完毕后可以根据自己的需要下载字典文件,解压缩后放至软件安装目录下的dic目录下即可。记得以前ETI的Markus曾经要找个汉英或汉德的字典。当时不知道这个软件,我把金山词霸推荐给他,不过效果实在是不好。当时金山词霸程序的菜单在Markus的windows 2000德文操作系统上不能正常显示,让我很是尴尬。
2006-08-22
MS Access与MySQL
Kompetenzentrum的秘书Frau Hallmann用Access做了一个包含KZ全体员工的信息,包括常见的联系方式,办公室,合同类型,合同时间等等。现在她想把那些可以公开的信息发布到Zope Webserver上,于是我把Access的数据导入到了MySQL数据库中。因为她还用Access做了一些输入框,便于输入数据。如果每次在她更新了Access数据后,都手动来把更新提交到MySQL数据库里,这样显然不方便。一个简单的解决办法是安装MySQL Connector/ODBC 3.51,然后使用Access作为输入前端,用MySQL作为存储引擎。
2006-08-21
Compiling tcl for Windows
* Tcl 8.4.12 source distribution (or the latest patch release)
* Visual C++ 5.x or greater.
In the win subdirectory of the source release, you will find makefile.vc. This is the makefile for the Visual C++ compiler. You should update the paths at the top of the file to reflect your system configuration. Now you can use make (or nmake for VC++) to build the tcl libraries and the tclsh executable.
2006-08-20
2006-08-18
免费的Web IDE: Apatana
2006-08-11
Unix下的另一个下载工具 curl
The programs have plenty of other differences. The full list of curl's features can be seen at "FeaturesWhat Can curl Do" (http://curl.haxx.se/docs/features.html), while some of wget's are listed at "Overview" (www.gnu.org/software/wget/manual/html_node/Overview.html#Overview). The cURL site has a chart comparing curl to other, similar programs at "Compare cURL Features with Other FTP+HTTP Tools" (http://curl.haxx.se/docs/comparison-table.html); while informative, the chart is (unsurprisingly) a bit biased toward curl.
Here's an example that uses curl's capability to support sequences in specifying what to download. The excellent National Public Radio show This American Life makes archives of all of its shows available for download on its parent website in Real Audio format (why they chose Real and not a more open format is a mystery). If you want to download 10 of these Real Audio files, just use the following:
$ curl -O http://www.wbez.org/ta/[1-10].rmNotice how you used [1-10].rm to specify that you wanted to download 1.rm, 2.rm, 3.rm, and so on. If WBEZ had instead named the files one.rm, two.rm, and three.rm, for example, you could have used a part set instead:
[1/10]: http://www.wbez.org/ta/1.rm --> 1.rm
--_curl_--http://www.wbez.org/ta/1.rm
$ curl -O http://www.wbez.org/ta/{one,two,three}.rmThe -O (or --remote-name) option is absolutely required. If you don't use it, curl writes the output of the download to STDOUT, which means that your terminal will quickly fill with unusable goobledygook. The -O asks curl to write out what it downloads to a file, and to use the name of the file being downloaded as the local filename as well.
ping命令的一种不常见结果
TTL Expired in Transit
德语表达:Die Gültigkeitsdauer wurde bei der Übertragung überschritten.
此错误消息表示所需跃点的数目超过了“生存时间”(TTL)。通过使用 ping-i 参数增加 TTL。可能存在路由循环。使用 tracert 命令检查是否是配置有问题的路由器导致了路由循环。
更多信息参看微软知识库的文章:
与ssh有关的一个小命令:ssh-copy-id
NAME
ssh-copy-id - install your identity.pub in a remote machine's authorized_keys
SYNOPSIS
ssh-copy-id [-i [identity_file]] [user@]machine
例如:ssh-copy-id -i .ssh/id_dsa.pub jia@gepc188
2006-08-09
Windows xp下使用windows explorer发布图片到网页
2006-08-06
认识grep的几个不常用选项
-A NUM, --after-context=NUM
打印匹配行后的NUM行
-B NUM, --before-context=NUM
打印匹配行前的NUM行
-C NUM, --context=NUM
打印匹配行前NUM行和后NUM行
-w, --word-regexp
精确匹配