自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

转载 挂载 NFS (在其他机子上挂载本机共享的目录)

mount -t nfs 127.0.0.1:/home    /mnt/share#将127.0.0.1:/home 挂载到本机的/mnt/share目录下像/home/tom/doc/nfsroot 这样的目录必须保证这条路径所有文件夹都是有相应的权限的.chmod -R或许会用得着 卸载:  umount /mnt/share开机时自动挂载:    vi /etc/f

2015-04-23 10:21:11 640

原创 turn on/off xwindow

cat /etc/inittab ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

2015-04-22 14:06:47 413

原创 UML 图中,箭头方向的含义

泛化,子类指向父类,因为子类能访问父类,反之不行聚合,集合指向元素,因为集合能访问元素,反之不行

2015-02-28 17:37:04 1471

原创 package to install

yum install autofs fedup kvm qemu-kvm tint2 tkinter gcc glibc-static libudev-devel glib2-devel ecryptfs-utils bison svn wget patch texinfo flex ccache g++ gcc-c++ cpp ncurses ncurses-devel autotools

2015-02-13 17:14:01 479

原创 turn off x-window

ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

2015-02-13 14:18:47 464

原创 Switch between processes

Suppose you use man to view a command mannual, meanwhile you want to practice some commands in the mannual, you have to switch between the mannual and the command line, and after you switch back to ma

2015-01-23 15:21:36 407

原创 Access Fedora via hostname

1. set correct hostname you want to use.2. yum instal dhcpafter step 2, you should be able to ping your hostname.

2015-01-23 15:07:22 309

原创 Edit Multiple files via vim

link vi to vim[root@localhost ]# which vi/usr/bin/vi[root@localhost ]# mv /usr/bin/vi /usr/bin/vi.old[root@localhost ]# which vim/usr/bin/vim[root@localhost ]# ln -s /usr/bin/vim /

2015-01-12 10:57:59 415

原创 Play with GNU Screen

why Screen1. Your are using SSH client to connect to a Linux Server, the network die by accident,  you lost all your works. Screen resolves this issue by providing a virtual terminal which you can r

2015-01-08 11:23:25 337

原创 Converting a text file to a binary file

BackgroundWhen I was running a descramble test on uPITS, I found the uPITS commanddmx set_desc        0 0 1 ./odd_key.binThe odd_key.bin is a binary file, I don't find a convenience way  to

2014-11-14 11:12:47 818

原创 用typedef简化字符串操作

#include #include typedef char WORD[255]; void init(size_t argc, WORD argv[]){ size_t i = 0; for ( ; i < argc ; i++) { strcpy(argv[i], "init value"); }} int main(

2014-04-24 16:00:25 567

原创 Linux 下 perforce命令行工具 p4的配置

去perforce 网站 http://www.perforce.com/downloads/Perforce/Customer 下载,或者直接

2014-04-24 09:41:51 1177

原创 用p4 获得大于 50000个文件的 目录

由于单位管理员限制,perRequest too large (over 50000); see 'p4 help maxresults'

2014-04-23 15:13:16 875

原创 一个捕获linux ctrl+c的小程序

#include #include #include #include #include void handler(int signo, siginfo_t * info, void * data){printf("got a signal!\n");exit(-1);}int main (void){struct sigac

2014-04-21 16:58:21 508

原创 C 语言宏定义的几个技巧

1、定义一个包含多个语句的宏函数

2014-04-21 16:12:29 492

原创 Set up tftp on Fedora

1. installation+

2014-04-08 10:55:42 363

原创 Fedora 安装时的分区

把单位的台式机安装成 Fedora,因为台式机的硬盘特别大,所以留一个分区做文件服务器(关于如何利用samba搭建文件服务器,参见http://blog.csdn.net/u013918665/article/details/21001811)。另外,把一些源码之类的文件放在单独分区中,方便重新安装Fedora时候继续使用这些文件。安装Fedora出现选择分区界面时候,1. 选

2014-03-13 10:48:56 7465

原创 利用samba搭建文件服务器

setup samba serverinsert the Fedora CDrpm -ivh /media/Fedora\ 12\ i386\ DVD/Packages/samba-3.4.2-47.fc12.i686.rpmadd a samba usersmbpasswd -a > configure sambavim /etc/samba/smb.co

2014-03-12 14:14:46 683

原创 为Fedora搭建本地yum源

虽然现在最新版的Fedora已经是20了,公司要求还是用Fedora 12。国外的yum 源站点的速度太慢了,国内镜像(163,sohu)只有 Fedora17之后的镜像。解决方案就是用Fedora的安装CD建立本地yum源。1)copy  files from CD to hard diskmkdir -p /back/Soft/cp /media/Fedora\ 1

2014-03-12 11:14:22 2322

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除