随笔分类 -  Linux

Lniux and Some Others
Linux下使用mail命令发送邮件(转)
摘要:因为需要经常备份网站的数据,所以了解并学习了下linux下如何通过shell来发送邮件,这里以CentOS为例,使用mail命令来进行外部邮件的发送。mail命令的语法如下:Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ... [-- sendmail-options ...] mail [-iInNv] -f [name] mail [-iInNv] [-u user] 使用mail命令发送邮件,有如下三种方式:1、直接使用shell当编辑器mai... 阅读全文
posted @ 2013-04-27 09:03 pchgo 阅读(309) 评论(0) 推荐(0)
Debian openvpn client Howto
摘要:aptitude install openvpnnano /home/progs/openvpn/vpn#!/bin/bashcd /etc/openvpn/openvpn --config ./client.ovpn &ln -s /home/progs/openvpn/vpn /usr/bin/vpnln -s /home/progs/openvpn/vpn /etc/init.d/vpnrcconf 阅读全文
posted @ 2012-12-10 12:45 pchgo 阅读(169) 评论(0) 推荐(0)
Debian vsftpd虚拟用户设置
摘要:mkdir /home/vsftpd && chmod 777 /home/vsftpduseradd vsftpd -d /home/vsftpd -s /bin/falsechown vsftpd:vsftpd /home/vsftpdnano /home/vsftpd/logins.txtpchgopchgodb4.8_load -T -t hash -f /home/vsftpd/logins.txt /etc/vsftpd_login.dbchmod 600 /etc/vsftpd.login.dbcp /usr/share/doc/vsftpd/examples/V 阅读全文
posted @ 2012-08-10 15:57 pchgo 阅读(1675) 评论(0) 推荐(0)
Gentoo RTX Wine
摘要:#emerge wine winetricks$winetricks msxml3 gdiplus riched20 riched30 vcrun6 vcrun2005sp1$wine rtx*.exe$ln -s /usr/share/fonts/*.* ~/.wine/drive_c/windows/Fonts/$nano zh_CN_simsun.regREGEDIT5[HKEY_CURRENT_USER\Software\Wine]"Version"="winxp"[HKEY_LOCAL_MACHINE\Software\Microsoft\Wi 阅读全文
posted @ 2012-03-29 15:39 pchgo 阅读(432) 评论(0) 推荐(0)
Gentoo /etc/conf.d/net
摘要:pchgo@Gentoo ~ $ cat /etc/conf.d/net# This blank configuration will automatically use DHCP for any net.*# scripts in /etc/init.d. To create a more complete configuration,# please review /usr/share/doc/openrc*/net.example* and save your configuration# in /etc/conf.d/net (this file :]!).config_eth0=&q 阅读全文
posted @ 2012-03-27 16:19 pchgo 阅读(1077) 评论(0) 推荐(0)
Gentoo net.eth0
摘要:虽然net.eth0已经从default运行级别中被移除了,udev仍然尝试启动任何它检测到的设备并启动对应的服务。因此,你将需要把每一个你不想启动的网络服务(还有其他任何udev可能启动的设备的服务)加入/etc/conf.d/rc,如下所示。代码 5.3: 在/etc/conf.d/rc里禁用设备启动的服务RC_COLDPLUG="yes"(下面指定你不想自动启动的服务名称)RC_PLUG_S... 阅读全文
posted @ 2010-01-17 11:21 pchgo 阅读(664) 评论(0) 推荐(0)
Gentoo Ndiswraapper
摘要:基本要求 必需是最近的 kernel (至少是 2.6.6 或 2.4.26),並且有原始碼。 確定在modules directory下有連到kernel source 的 link。 /lib/modules/VERSION/build 應該是連到 kernel source 的link,其中 VERSION 是你所執行的 kernel 的 version。假如沒有此 link,在安裝的步驟將... 阅读全文
posted @ 2010-01-17 11:19 pchgo 阅读(399) 评论(0) 推荐(0)
Gentoo Kernel
摘要:模块/电源管理/块文件等代码:General setup ---> <*> Kernel .config support {*} Enable access to .config through /proc/config.gzProcessor type and features ---> Processor family (Core 2/newer Xeon) --... 阅读全文
posted @ 2010-01-17 11:17 pchgo 阅读(659) 评论(0) 推荐(0)
Gentoo Fonts
摘要:如果您需要手工添加Portage里尚未提供或不能提供的字体,您按照下面的步骤手工添加。此处以simsun.ttc为例。拷贝字体拷贝字体文件到/usr/share/fonts下的一个文件夹里,比如/usr/share/fonts/TTF。然后修改文件权限代码: 修改权限# chmod 644 /usr/share/fonts/TTF/simsun.ttc修改/etc/X11/xorg.conf保证/... 阅读全文
posted @ 2010-01-17 11:15 pchgo 阅读(899) 评论(0) 推荐(0)
Gentoo fcitx
摘要:USE=“xft” emerge fcitx配置:localeLANG=en_US.utf8LC_CTYPE=en_US.utf8LC_NUMERIC="en_US.utf8"LC_TIME="en_US.utf8"LC_COLLATE="en_US.utf8"LC_MONETARY="en_US.utf8"LC_MESSAGES=POSIXLC_PAPER="en_US.... 阅读全文
posted @ 2010-01-17 11:13 pchgo 阅读(1263) 评论(0) 推荐(0)