Linux 录制桌面的简单工具
It's actually an application named <em><strong>recordmydesktop</strong></em>, which can be installed by <strong>sudo apt-get install recordmydesktop</strong>.
There are various kinds of purpose to use, but for me, I would like to present or show some mock-up to other people. I made a simple file
<strong>#!/bin/bash
recordmydesktop -windowid $( xwininfo -frame | awk '/Window id:/ {print $4}' )</strong>
After running this script, there is a cross cursor which allows you to select a window. As soon as the window is selected, the recording start. To end the recording, simply type Ctrl+C. After several lines of screen output, there is a .ogv file generated.
You can use Movie Player to view the file if you are using Linux. However, you can still view this file by using VLC, which can be installed to both Mac and Windows.
相关文档:
MySQL :: Linux 下自动备份数据库的 shell 脚本
Linux 服务器上的程序每天都在更新 MySQL 数据库,于是就想起写一个 shell 脚本,结合 crontab,定时备份数据库。其实非常简单,主要就是使用 MySQL 自带的 mysqldump 命令。
脚本内容如下:
#!/bin/sh
# File: /home/mysql/backup.sh
# Database info
DB_NAME=" ......
1、下载MySQL的安装文件
安装MySQL需要下面两个文件:
MySQL-server-5.0.46.i386.rpm
MySQL-client-5.0.46.i386.rpm
2、安装MySQL
rpm文件是Red Hat公司开发的软件安装包,rpm可让Linux在安装软件包时免除许多复杂的手续。该命令在安装时常用的参数是
ivh
,其中i表示将安装指定的rmp软件包,V表 ......
MYSQL安装
//解压编译安装
# tar xzvf mysql-5.0.27.tar.gz
# cd mysql-5.0.27
# ./configure -prefix=/home/redadmin/mysql
# make
# make install
# cd /home/redadmin/mysql/
# cp share/mysql/my-medium.cnf ./
# mv my-medium.cnf my.cnf
// my.conf文件修改
# vi my.cnf
修改前:
port &nb ......