This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://old.fluxbox.org/docbook/en/html/chap-bg.html | |
Chapter 6. Desktop Backgrounds | |
Fluxbox, like Blackbox, just has two wrapper utilities for this - fbsetroot and fbsetbg. Let's see how they work. | |
fbsetroot is about the equivalent of xsetroot, which can set backgrounds as long as they're simple, like a solid color. fbsetroot can also set gradients. | |
fbsetbg is a wrapper that tries to find a suitable background-setting app and then tries to set the wallpaper using that app. You don't have to configure fbsetbg. It just uses the first app it can find. | |
Overriding theme backgrounds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.debianadmin.com/how-to-auto-login-and-startx-without-a-display-manager-in-debian.html | |
How to auto login and startx without a display manager in Debian | |
Posted by Admin on December 23rd, 2008 | |
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting! | |
If you want to auto login and startx without a display manager in Debian use the one of the following method |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tar cvvf archive.tar * | |
$ echo 'uudecode -o- << "EOF" | tar xvv ' > shellscript | |
$ uuencode archive.tar archive.tar >> shellscript | |
$ echo 'EOF' >> shellscript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://hackmysql.com/scripts/mysqlsla | |
chmod +x mysqlsla-2.03 | |
sudo ./mysqlsla-2.03 /var/log/mysql/mysql-slow.log | |
# 預設會列出 top 10 的 slow quires | |
# 可以帶參數 --top 13 修改列出的項目數量 | |
# 通常網路上都說從 top 1, 2, 3 的 slow quires 去修 | |
# 是對增進效能最有幫助的! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# telnet mldonkey command-line | |
$ telnet localhost 4000 | |
# view current downloads | |
$ vd | |
# show users currently uploading | |
$ uploaders | |
# check shared files for removal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reference | |
# http://github.com/jnstq/rails-nginx-passenger-ubuntu | |
$ sudo pacman -S base-devel openssl readline zlib | |
$ mkdir pkgs && cd pkgs | |
$ wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz | |
$ tar zxf ruby-enterprise-1.8.7-2010.02.tar.gz | |
$ cd ruby-enterprise-1.8.7-2010.02 | |
$ sudo ./installer | |
$ Enter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reference | |
# http://library.linode.com/web-servers/nginx/php-fastcgi/debian-5-lenny#install_spawn_fcgi | |
# http://wiki.archlinux.org/index.php/Nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reference | |
# http://wiki.archlinux.org/index.php/PostgreSQL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
REDIS_PORT=6379 | |
REDIS_EXEC=/usr/local/bin/redis-server | |
REDIS_CLI=/usr/local/bin/redis-cli | |
REDIS_CONF=/etc/redis.conf | |
PIDFILE=/var/run/redis.pid | |
case "$1" in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: god | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: God | |
### END INIT INFO |
OlderNewer