Iptables 使用
d[@more@]First you need to tell your kernel that you want to allow IP forwarding. echo 1 > /proc/sys/net/ipv4/ip_forward Then you'll need to configure iptables to forward the packets from your internal network, on /dev/eth1, to your external network on /dev/eth0. You do this will the following commands: /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE /sbin/iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT /sbin/iptables -A FORWAR
RHEL6 Paraelle Port Printing
d[@more@]RHEL6 不再支持 并口打印机。下载安装这个包,就可以了。http://elrepo.reloumirrors.net/elrepo/el6/i386/RPMS/kmod-lp-0.0-1.el6.elrepo.i686.rpm
CUPS WEB管理 配置
http://www.cublog.cn/u1/49474/showart_2035539.html[@more@]CUPS(以前Common Unix Printing System,UNIX通用打印系统 的缩写)是一个类Unix操作系统的组合式印刷系统,允许一台电脑作为打印服务器。CUPS接受一个客户端的电脑进程,并送到相应的打印机。 CUPS提供web-based管理界面和GNOME CUPS Manager两种管理界面,Web-based管理界面运行在631端口可以同远程浏览器进行管理,GNOME CUPS Manager提供在本地图形化管理界面。 一、CUPS RPM安装包 Redhat AS 5.3标准安装以及内置了cups服务,具体的rpm如下: rpm
RHEL6 Bonding
Article 1 Article 2 Article 3[@more@]摘自Red Hat Enterprise Linux 6 Essentials eBook1,For example, if two Ethernet interfaces are being channel bonded, both eth0 and eth1 may look like the following example:DEVICE=eth<N> BOOTPROTO=none ONBOOT=yes MASTER=bond0 SLAVE=yes USERCTL=no 2,cp /etc/sysconfig/network-script/ifcfg-eth0 /etc/sysconfig/network-script/ifcfg-bond0DEVICE=bond0 IPADDR=192.168.1.1 NETMASK=255.255.255.0 ONBOOT=yes BOOTPROTO=none USERCTL=no BONDING_OPTS="<bond
ORACLE 11G 安装注意
d[@more@]1. 在.bash_profile中设置ORACLE_BASE=/u01/app/oracleORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1ORACLE_SID=ora11g否则用SQLPLUS连接时,会报错2. 更改/etc/hosts加入对应主机的IP和机器名,否则用NETCA配LISTENER会出错。
RHEL6 Xmanager
d[@more@]只改了一项,重启后,就能连上。vi /etc/gdm/custom.conf[xdmcp]Enable=1 姓名(Name):3ddown.com组织(Organization):none序列号(Serial):090601-156931-000078授权数量(Licenses):999
在linux主机间搬硬盘,装载LVM.
d[@more@]因硬盘损坏。把笔记本里的硬盘做成U盘,连到其他主机。1. 运行PVSCAN.找到 VG name. [root@l1 ~]# pvscan PV /dev/sdb2 VG VolGroup lvm2 [55.40 GiB / 0 free] PV /dev/sda2 VG vg_l1 lvm2 [297.60 GiB / 0 free] Total: 2 [353.00 GiB] / in use: 2 [353.00 GiB] / in no VG: 0 [0 ]2. 运行VGCHANGE,激活VG [root@l1 ~]# vgchange -ay VolGroup 3 logical volume(s) in volume group "VolGroup" now active3. 运行LVDISPLAY。找到你要MOUNT的LV NAME,查看LV Status 是 availa
DameWare_NT_Utilities_7.1.0.1破解补丁.rar
d[@more@]http://cid-e4c9966b2424db6f.office.live.com/self.aspx/%E8%BD%AF%E4%BB%B6%E6%96%87%E4%BB%B6/DameWare%5E_NT%5E_Utilities%5E_7.1.0.1%E7%A0%B4%E8%A7%A3%E8%A1%A5%E4%B8%81.rar?wa=wsignin1.0&sa=42454605
RHEL6 KVM 测试
d[@more@]下载VirtIO驱动http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/ VirtIO测试性能http://www.linux-kvm.org/page/Using_VirtIO_NICKVM测试。http://forum.ubuntu.org.cn/viewtopic.php?t=154792http://libvirt.org/
PostgreSQL添加UUID功能。
d[@more@]1. 下载UUID-1.6.2.2. 下载完后在UUID-1.6.2目录中运行#./configure#make#makeinstall3. 安装POSTGRESQL3.1 在虚拟机上安装的时候,先同步一下时间。Config的时候要写进去。./configure LDFLAGS=-L/usr/local/lib --prefix=/usr/local/pg911 --with-ossp-uuid --with-libxml --with-libxslt#make#make install4. 在postgresql解压目录下,postgresql-9.1.1/contrib/uuid-ossp/#make#make install5. 在postgres用户的profile下添加LD_LIBRARY_PATH=/usr/local/lib6. 最后进psql. 运行postgres=# create extension "uuid-ossp
VSFTPD 本地用户登录。
.[@more@]建立本地用户web. 改/etc/vsftpd/vsftpd.conf [root@sh1 ~]# cat /etc/vsftpd/vsftpd.conf anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 #anon_upload_enable=YES #anon_mkdir_write_enable=YES # # Activate directory messages - messages given to remote users when they # go into a certain directory. dirmessage_enable=YES # # Activate logging of uploads/downloads. xferlog_enable=YES # # Make sure PORT transfer connections originate from port 20 (ftp-data).
postgresql copy UNICODE txt 问题。
d[@more@]从sqlserver 2005 导出的unicode的格式的txt.无法直接用copy导入到linux上的postgersql.解决办法:In adition of set the local encoding (Client and Server), if you arerunnning +nix there is a command called iconv that let you convertfrom one charset to another. Always i used it, i never had any problems.iconv -f UNICODE -t UTF-8 location.txt -o 1location.txt
Linux下flash player无法全屏看视频的解决办法!
d[@more@]安装了数次centos 5.5,每次都是无法在firefox(默认版本3.0.18)下全屏看视频,比如youku的电影之类的,太烦了!这次也一样,本来是小事情,后来心里 总觉的别扭,一定要解决掉! 仔细查看发现firefox安装的flash player是10.1最新版,搜寻网上说这个版本全屏有bug,我就想换浏览器得了,懒得卸载麻烦!随后安装opera、chrome,但是问题依然! 这可急坏了,后来发现windows 7下10.1这个插件也有问题,换装flash player 9.0后就好了,干脆就找老版本安装! 搜寻了半天,终于在www.adobe.com官网上找到老版的下载页面:http