01 2012 档案

摘要:samba安装1.检查是否安装sambarpm -ql sambarpm -ql samba-client2.若未安装yum -y install sambayum -y install samba-client3.确认安装完成# rpm -qa | grep sambasamba-common-3.5.12-72.fc15.1.i686samba-winbind-clients-3.5.12-72.fc15.1.i686samba-client-3.5.12-72.fc15.1.i686samba-3.5.12-72.fc15.1.i686samba使用samba客户端工具1.smbtree 阅读全文
posted @ 2012-01-30 17:40 xxx1 阅读(600) 评论(0) 推荐(0)
摘要:文件系统类型选项mount –t [文件系统类型] 设备 挂载点-t:一般可省略,如系统无法自动判断可以手动指定挂在文件系统类型。1.挂载windows fat32 和ntfs格式存储 #mount–t vfat /dev/hda2 /mnt/fat1 #mount–t ntfs /dev/hda3 /mnt/ntfs2.挂载数据光盘格式:iso9660,udf #mount–t iso9660 /dev/cdrom /mnt/cdrom3.u盘挂载 若无法加载u盘,执行下列命令,加载u盘模块 #modprobeusb-storage 挂载选项lwindows分区常用挂载选项 iocharse 阅读全文
posted @ 2012-01-29 20:13 xxx1 阅读(256) 评论(0) 推荐(0)
摘要:#include <stdio.h> void swap(int *x, int *y) { *y = *x ^ *y; *x = *x ^ *y; *y = *x ^ *y; } void revert(int *a, int len) { int first = 0, last = len - 1; for (;first < last; first++, last--) swap(&a[first], &a[last]); } int main() { int i, a[] = {1 ,2, 3, 4, 5}; revert(a, 5); for (i 阅读全文
posted @ 2012-01-29 14:32 xxx1 阅读(179) 评论(0) 推荐(0)
摘要:putty提示“Connection refused” 但可以ping通 经查,解决方法如下:首先判断是否安装sshrpm -qa opensshrpm -qa openssh-server之后执行:#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key再进行putty连接,可成功登陆。 阅读全文
posted @ 2012-01-29 14:19 xxx1 阅读(381) 评论(0) 推荐(0)
摘要:int binary(int array[], int n, int k) { int l = -1; int r = n; while (l+1 != r) { int i = (l+r)/2; if (k < array[i]) r = i; if (k = array[i]) return i; if (k > array[i]) l = i; } return n; } 阅读全文
posted @ 2012-01-19 16:13 xxx1 阅读(128) 评论(0) 推荐(0)
摘要:``Accordian'' PatienceYou are to simulate the playing of games of ``Accordian'' patience, the rules for which are as follows:Deal cards one by one in a row from left to right, not overlapping. Whenever the card matches its immediate neighbour on the left, or matches the third card to 阅读全文
posted @ 2012-01-18 21:18 xxx1 阅读(233) 评论(0) 推荐(0)
摘要:CSS整理目录1.排版2.调用css样式3.CSS文字处理4.CSS背景使用5.CSS列表使用6.CSS边框使用7.CSS边界使用8.CSS区块使用9.CSS背景使用10. CSS浮动使用11. CSS定位使用12. CSS溢出使用13. CSS滚动条使用14. CSS链接使用15. CSS光标的使用16. CSS中DHTML使用17. CSS缩放使用18. CSS滤镜19. CSS表格20. CSS构造表单排版排版专用标记:<div>与<span><div>占用一行,所以多个<div>会换行<span>占用一行中的一块,因此可多个& 阅读全文
posted @ 2012-01-18 10:18 xxx1 阅读(776) 评论(0) 推荐(0)
摘要:#rm -f /etc/systemd/system/default.target#ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target#reboot 阅读全文
posted @ 2012-01-10 21:24 xxx1 阅读(289) 评论(0) 推荐(0)
摘要:fedora15 vmware8vmware安装中出现如下提示:What is the location of the directory of C header files that match your running kernel?解决方法:1. 查看kernel版本号 cd /usr/src/kernels/ dir 2. 到http://rpmfind.net//linux/RPM/fedora/15/i386/kernel-devel-2.6.38.6-26.rc1.fc15.i686.html 找到与你对应版本号。3. 安装 rpm -ivhkernel-devel-2.6... 阅读全文
posted @ 2012-01-01 22:40 xxx1 阅读(448) 评论(0) 推荐(0)
摘要:在root权限下gcc:yum -y install gccg++:yum install gcc-c++ compat-gcc-32 compat-gcc-32-c++ 阅读全文
posted @ 2012-01-01 22:19 xxx1 阅读(8928) 评论(0) 推荐(0)