Linux

vim IDE for verilog & systemverilog

前面使用emacs编辑了一个工程,感觉还是不错了,但是更习惯于vi的界面,于是总是在两个界面中搞混快捷键。这两天查找了vim中实现快速编写verilog的方法,发现vim一样强大。呵呵,不敢独享,给大家共享一下。
首先安装一下vim7.3,让后在用户根目录解压vim-setting.tgz文件,就可以使用了。在centos4.8, centos5.6上都测试了一下,都很不错。
vim.rar

Linux, News

用shc加密shell脚本

前言: Shc可以用来对shell脚本进行加密,可以将shell脚本转换为一个可执行的二进制文件。经过shc对shell脚本进行加密后,会同时生成两种个新的文件,一个是加密后的可执行的二进制文件(文件名以.x结束),另一个是C语言的原文件(文件名以.x.c结束)。 下面就说明一下shc的安装,参数,以及使用示例: 下载安装: (官网下载地址: http://www.datsi.fi.upm.es/~frosal/sources/) # wget http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.7.tgz # cd shc-3.8.7 # m   … … … …   阅读更多

Linux, News

关于su和sudo以及visudo的很好的介绍性文档

呵呵,终于可以休息一下了,但是网络还需要有人管理。这个权限管理介绍的很好,发到这里。
一. 使用 su 命令临时转换用户身份
1、su 的适用条件和威力
su命令就是转换用户的工具,怎么理解呢?比如我们以普通用户beinan登录的,但要添加用户任务,执行useradd ,beinan用户没有这个权限,而这个权限恰恰由root所拥有。解决办法无法有两个,一是退出beinan用户,重新以root用户登录,但这种办法并不是最好的;二是我们没有必要退出beinan用户,能够用su来转换到root下进行添加用户的工作,等任务完成后再退出root。我们能够看到当然通过su 转换是一种比较好的办法;
通过s   … … … …   阅读更多

Linux, News

svn server and client install in as4

原先的CVS挂掉了,好久没有用版本管理,最近发现还是要启用一下版本管理。 安装如下:
1. client install
装了半天的RAPID SVN,都没有好使,郁闷。换成esvn,呵呵,一次搞定。那就用这个吧。
2. server install
2.1
mkdir /home/user/myrepo/ svnadmin create /home/user/myrepo/
2.2
An example /home/user/myrepo/conf/svnserve.conf will be:
[general] anon-access = read auth-access = write   … … … …   阅读更多

Linux, News

disable usb storage automount

找了很久,发现这个方法可以禁止u disk自动automount,感谢网络!
In file /usr/share/PolicyKit/policy/hal-storage.policy I changed the “allow_active” from “yes” to “no” to not mount the device at all. Code: <action id=”org.freedesktop.hal.storage.mount-removable”> <desc   … … … …   阅读更多

Linux, News

linux Sata盘慢

现在Linux内核已经对sata支持得很好的,但是因为历史原因还是会把SATA盘当IDE来处理,很不爽,导致的结果就是buffer reads才3MB/s
解决办法有2
一是编内核彻底去掉IDE的支持。
二是改启动选项,在内核加载的时候传参进去,让他不要去probe ide
方法如下
我这里用的是grub,所以我直接修改/boot/grub/grub.conf,在我的内核选项后头加入”ide0=noprobe”

title CentOS (2.6.18-53.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.el5 ro root=/dev/V   … … … …   阅读更多

Linux, News

Methods for Handling Spare Cell Placement in Physical Compiler

发现一片好文章,转载之,原文出处不详
Methods for Handling Spare Cell Placement in Physical Compiler
Question:
Dealing with Spare Cells in Physical Compiler
Answer:
Many current ASIC design methodologies employ the use of spare cells somewhere in the design implementation flow. One primary reason for inserting spare c   … … … …   阅读更多

Linux, News

astro eco with spare gate

数字eco的方案定下来了,但是手工改动已经不能实现了,因为metal连线太密了。郁闷中。现在只能试试通过astro进行eco了。下面是搜集的eco资料,希望对大家有用。
Performing a Simple ECO in the Astro Flow on a Flat Netlist
Question:
I have a simple flat design fully routed in Astro. I need to add two cells and change four Net connections. What is the best way to perform an EC   … … … …   阅读更多

32bits Embedded Processor, Linux, News

use ssh and tar to copy files with two pc

tar cf – files | ssh user@192.168.1.18 “tar -C /home/jiaojy -xf -” files为文件,或者目录 -C 后面指定要拷贝的地址, user为192.168.1.18上的用户

Linux, News

inode full , no space on the disk

这几天老是报硬盘满了,查看,还有800多G的空间,太搞了,linux是不是出问题了。今天google一下,发现是inode满了,郁闷,备份所有数据,从新格式化硬盘吧,只能这样了。
mkfs.ext3 -b 4096 -i 8192 -N 18020383 -F /dev/hdd1
用这个命令格式化硬盘,一会儿就死机了,很郁闷。然后用pamagic格式化,则block 和inode分配不合理,现在用pmagic pxe模式格式化,目前一切顺利,希望不要再出问题。pmagic这个东西真不错,我没有想到Linux下也有这么好的格式化工具。推荐使用。

Linux, News