linux学习笔记

1 gcc -Wall hello.c   ./a.out

2修改主页:启动firefox,在地址栏了输入: about:config;在顶部过滤器中输入:home,会过滤出与home相关的四个首选项,找到browser.startup.homepage,这个选项的值默认 是:file:///usr/share/ubuntu-artwork/home/locales/index-zh_CN.html。双击它,在出现的对话框中输入你想要设置的主页地址比如:http://www.hao123.com。然后确定.关掉浏览器,再次打开浏览器,你会发现,现在浏览器会出现你所设置的主页了,而不再是默认的ubuntu欢迎界面了.

3挂载 遇到错误

 

sudo apt-get install nfs-common后,错误依旧

4 http://www.linuxidc.com/Linux/2012-07/64897p9.htm(照着这个网页的内容重装系统 14.04版本)

5 sudo apt-get install nfs-common让ubuntu支持nfs文件系统

6 sudo apt-get install cifs-utils

7

8

9

防火墙关闭

10 administrator用了别名

11 mount //win IP/共享文件夹  /share/ -o username=administrator,password=12345678

 

显示大小更改:Edit → Preferences → Display (勾选 Autofit guest、 点Autofit guest那个就是Fullscreen那个的第一个选项 )→ OK

 

 

安装ISE显示磁盘空间不够大解决方法:

win7上下载Xshell

ssh 虚拟机IP

mkdir /data_20150703

mv /opt/* /data_20150703/

partprobe /dev/sdb

pvcreate /dev/sdb

vgcreate xilinx /dev/sdb

vgcreate -a y /dev/xilinx

lvcreate -l 100%FREE /dev/xilinx -n xilinx

mkfs.ext3 /dev/xilinx/xilinx

mount /dev/xilinx/xilinx /opt/

 

重新启动,要重新mount

 

更改文件夹中内容的权限

chmod -R 777 文件夹路径/文件夹名字

查看所有文件权限 ls -l

按后缀名分类显示 ls -l *.v

 

 

在ubuntu12.04上安装ISE14.7后,到用chipscope下载Bit文件时,出现如下错误

解压:tar -xzvf filename.tar.gz

解压:tar -xvf filename.tar

 

参考文章http://www.eefocus.com/Kevin/blog/09-12/182238_1209c.html(虚拟机上安装 ISE的jtag驱动)

 

终于搞定了,参考了这篇文章http://www.eefocus.com/zilion/blog/12-07/281468_881ed.html非常感谢作者

其中的一些步骤,抄录下:

(1)下载驱动源码并解压

usb-driver-HEAD-2d19c7c.tar.gz

(2)安装Libusb库

sudo apt-get install libusb-dev

(3)进入驱动源码的目录,并make生成.so文件

sudo make

(4)将生成的.so文件拷贝到指定目录

(5)配置环境变量

cd /etc

sudo vim bash.bashrc

将这句话添加在最后面

(6)

Copy the udev rules and adapt the file to the new udev-version(不要轻易修改50这个数字,这个与加载顺序有关。如果你的机器中已经有以50开头的rules,就请把这里的50往后顺延,比如51,52等等)

$sudo cp /opt/Xilinx/13.2/ISE_DS/ISE/bin/lin/xusbdfwu.rules /etc/udev/rules.d/50-xusbdfwu.rules

(7)这个好像很关键

Copy the hex-files used by different Xilinx cables to /usr/share and make them readable by regular users

$sudo cp /opt/Xilinx/13.2/ISE_DS/ISE/bin/lin/xusb*.hex /usr/share/

$sudo sed -i -e 's/TEMPNODE/tempnode/' -e 's/SYSFS/ATTRS/g' -e 's/BUS/SUBSYSTEMS/' /etc/udev/rules.d/50-xusbdfwu.rules

 

(8)Install fxload, which is used by the rules

$sudo apt-get install fxload

(9)Restart udev

$sudo restart udev

可以烧录了。

 

修改窗口大小gnome-terminal --geometry 99x29

 

posted @ 2015-06-27 16:42  太行山  阅读(358)  评论(0编辑  收藏  举报