Monthly Archives: March 2010

使用setfacl&getfacl管理文件权限

##保证分区挂载的时候添加了acl参数 [alex@localhost /home/robin]$cat /etc/fstab  # # /etc/fstab # Created by anaconda on Sun Jun 14 21:39:50 2009 # # Accessible filesystems, by reference, are maintained under ‘/dev/disk’ # See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info # … Continue reading

Posted in Computers and Internet | Leave a comment

使用tunctl安装虚拟网卡

##安装tunctl软件包 yum install tunctl.x86_64 ##添加虚拟网卡设备 tunctl -u alex ##设定虚拟网卡的mac地址 /sbin/ifconfig tap0 hw ether 00:01:02:03:04:05:06  ##使用tap0虚拟网卡 /sbin/ifconfig tap0 up

Posted in Computers and Internet | Leave a comment

git本地和公共仓库配置

基于公共仓库创建版本管理: ##建立远程公共仓库 cd /tmp/mkdir gitrepo  cd gitrepo/  git init  ##创建一个空文件,从而产生一个branch touch a.txt  git add a.txt   git commit -m "a.txt" a.txt  ##根据远程公共仓库,在home目录下产生一个本地仓库 cd ~  git clone alex@localhost:/tmp/gitrepo gitrepo  ##添加一个新的文件,并上传到远程仓库 cd gitrepo/  echo "helloworld" > fuzzy.txt  git add fuzzy.txt   git commit -m … Continue reading

Posted in Computers and Internet | Leave a comment

.bashrc配置

   # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions #env variable export LM_LICENSE_FILE=/opt/license/questasim/license.dat export PATH=$PATH:/opt/questasim/questasim/bin:/opt/foxit export TLM_HOME=/opt/systemc/tlm_lastest export SYSTEMC_HOME=/opt/systemc export TARGET_ARCH=linux64 export MTI_HOME=/opt/questasim/questasim #alisa alias ls=’ls –color=auto’ … Continue reading

Posted in Computers and Internet | Leave a comment

linux常用工具介绍(fedora)

msn聊天工具: emesene-1.6-1.fc12.x86_64 刻盘工具: k3b-1.0.5-10.fc12.x86_64 虚拟机; vbox–http://www.virtualbox.org/wiki/Linux_Downloads 文本编辑器: vim-X11-7.2.315-1.fc12.x86_64 gedit-2.28.3-1.fc12.x86_64(类似于notepad) emacs-23.1-18.fc12.x86_64 office工具: 本人是gnome用户,主推gnome的office,如果gnome中没有的,再使用koffice和openoffice openoffice属于sun,现在被oracle收购,前途未卜,不推荐使用 音乐播放器: audacious-2.2-12.fc12.x86_64(类似于winamp) 视频播放器: mplayer-1.0-0.111.20091029svn.fc12.x86_64 audacious-2.2-12.fc12.x86_64 totem-2.28.5-1.fc12.x86_64(类似于windows media player) songbird–http://www.getsongbird.com/ 计算器: gcalctool-5.28.2-1.fc12.x86_64 网页浏览器: chrome–http://www.google.com/chrome firefox-3.5.8-1.fc12.x86_64 konqueror–kdebase-4.4.0-5.fc12.x86_64 opera link(命令行模式) IDE工具: anjuta-2.28.2.0-1.fc12.x86_64 eclipse BT工具: deluge-1.1.9-3.fc12.noarch 电驴工具: amule-2.2.6-1.fc12.x86_64 ftp工具: filezilla-3.3.2-1.fc12.x86_64 ftp-0.17-51.fc12.x86_64(命令行) … Continue reading

Posted in Computers and Internet | Leave a comment

vi配置

"vi的配置文件为~/.vimrc,如果是gvim的话,还会调用~/.gvimrc set ai set ts=4 set nu set incsearch set icset smartcase  syntax on  au BufRead,BufNewFile *.svh set ft=verilog_systemverilog

Posted in Computers and Internet | Leave a comment

推荐一个Fedora的官方文档网站

下面是网站的链接,看过里面的selinux,看了一遍,基本大体都了解了,写的很不错。 http://docs.fedoraproject.org/ 关于selinux的使用的大致命令,selinux的管理请参看上面更详细的文档。 1)确保selinux已经打开 可以使用/usr/sbin/getenforce或者/usr/sbin/sestatus命令检查,检查结果如下 [alex@localhost ~]$ /usr/sbin/getenforce  Enforcing [alex@localhost ~]$ /usr/sbin/sestatus  SELinux status:                 enabled SELinuxfs mount:                /selinux Current mode:           … Continue reading

Posted in Computers and Internet | Leave a comment