- 博客(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
690
原创 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
450
原创 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
517
原创 turn off x-window
ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
2015-02-13 14:18:47
494
原创 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
436
原创 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
337
原创 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
451
原创 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
366
原创 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
898
原创 用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
607
原创 Linux 下 perforce命令行工具 p4的配置
去perforce 网站 http://www.perforce.com/downloads/Perforce/Customer 下载,或者直接
2014-04-24 09:41:51
1292
原创 用p4 获得大于 50000个文件的 目录
由于单位管理员限制,perRequest too large (over 50000); see 'p4 help maxresults'
2014-04-23 15:13:16
1015
原创 一个捕获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
538
原创 Fedora 安装时的分区
把单位的台式机安装成 Fedora,因为台式机的硬盘特别大,所以留一个分区做文件服务器(关于如何利用samba搭建文件服务器,参见http://blog.youkuaiyun.com/u013918665/article/details/21001811)。另外,把一些源码之类的文件放在单独分区中,方便重新安装Fedora时候继续使用这些文件。安装Fedora出现选择分区界面时候,1. 选
2014-03-13 10:48:56
7596
原创 利用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
712
原创 为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
2435
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人