- 博客(10)
- 资源 (15)
- 收藏
- 关注
原创 fedora安装与使用samba
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.i686
2012-01-30 17:40:55 810
原创 linux磁盘文件系统管理
文件系统类型选项mount –t [文件系统类型] 设备 挂载点-t:一般可省略,如系统无法自动判断可以手动指定挂在文件系统类型。1. 挂载windows fat32 和ntfs格式存储 #mount–t vfat /dev/hda2 /mnt/fat1 #mount–t ntfs /dev/hda3 /mnt/ntfs2.
2012-01-29 20:13:11 573
原创 两数交换不借助第三变量
#include 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[fi
2012-01-29 14:32:25 420
原创 putty连接fedora
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/
2012-01-29 14:19:49 1233
原创 二分搜索
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;
2012-01-19 16:13:19 379
原创 uva127 "Accordian" Patience
``Accordian'' Patience You 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 ove
2012-01-18 21:18:21 1389
原创 CSS整理
CSS整理目录1. 排版2. 调用css样式3. CSS文字处理4. CSS背景使用5. CSS列表使用6. CSS边框使用7. CSS边界使用8. CSS区块使用9. CSS背景使用10. CSS浮动使用11. CSS定位使用12. CS
2012-01-18 10:18:14 1351 1
原创 Fedora15设置开机进入终端模式
#rm -f /etc/systemd/system/default.target#ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target#reboot
2012-01-10 21:24:01 1426
原创 fedora安装vmtools出错解决方案
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://rp
2012-01-01 22:40:13 991
原创 fedora安装gcc/g++
在root权限下gcc:yum -y install gccg++:yum install gcc-c++ compat-gcc-32 compat-gcc-32-c++
2012-01-01 22:19:00 11017
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人