pinuo_cao124

ubuntu、Debian日常

0
阅读(1835)

#ubuntu15.10 链接wifi,密码正确但连不上;其他设备链接wifi正常

sudo apt-get install bcmwl-kernel-source

sudo modeprobe -r b43 ssb wl

sudo modeprobe wl

#以上操作后,正常,如出错,关掉无线网卡开关,重启即可

#----上面删除的情况有误,ubuntu默认驱动有问题,wifi只有在非常近的距离才能链接,稍远一些就不行

#----ubuntu15.10换为debian8.5默认安装即没有问题

#安装libeemd

sudo make # in the top directory

#show lack gsl lib

sudo apt-get install libgsl0-dev

sudo make # in the eemd top directory

sudo make install

cd ./pyeemd

sudo python2 setup.py install

# show numpy needed

sudo apt-get install python-numpy

#ok

python

#then import pyeemd, all ok

#20160826

#debian8.5安装后,1,设置中文支持,2修改fcitx输入法,3修改后重启生效。中文支持和字体安装不能少

#wps beta版本,8.0的在ubuntu15.10和debian8.5均安装成功; wps需要下一个字体deb包

#ubuntu简直就是debian的。。。。

#debian8.5默认没有sudo,需要设置一下

#debian8.5浏览器默认是iceweasel,firefox改了个名字?更喜欢chrome,安装chromium

#安装libeemd,gsl库,同上操作即可

#20160827

#debian的163源,需要设置为8.5的,否则安装软件都会出错。。。gcc,make,等等,都会出现此问题

#----

#出现python中 import pyeemd : file too short错误,是root权限导致的???在退出root后,import正常

#在ubuntu和debian8.5中都成功安装pyeemd

#---20160902

#sudo quartus找不到命令

  1. 编辑/etc/sudoers文件,把Defaults  env_reset改成Defaults ! env_reset

  2. 编辑.bashrc,最后添加alias sudo='sudo env PATH=$PATH'

#----

gedit ~/.bashrc

在末尾添加以下代码:

#ref:http://blog.csdn.net/u011068616/article/details/45221613

# Altera Quartus environment variables
QUARTUS_64BIT=0
MWOS=linux
MWARCH=i86
QUARTUS_MWWM=allwm
export QUARTUS_ROOTDIR=/opt/altera9.1sp1/quartus/
export PATH=$PATH:/opt/altera9.1sp1/quartus/bin/:/opt/altera9.1sp1/quartus/linux/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib/:/usr/lib:/opt/altera9.1sp1/quartus/linux/
unset GCC_EXEC_PREFIX

#----quartus安装后,lib出错问题

#ref: http://www.linuxquestions.org/questions/slackware-14/[solved]-installing-quartus-ii-web-edition-v9-1-a-4175436463/

Installing Quartus 9.1 Service Pack 2 and renaming libX11.so.6 and libuuid.so.1 in /opt/altera9.1/quartus/linux to libX11.so.6.old and libuuid.so.1.old (thus forcing Quartus to use the system libraries instead) solves the problem described above.

#quartus jtag

#ref:http://www.fpga-dev.com/altera-usb-blaster-with-ubuntu/

Create a file /etc/udev/rules.d/51-usbblaster.rules, make sure it has read permissions for root, and fill it with this content:

# For Altera USB-Blaster permissions.
SUBSYSTEM=="usb",\
ENV{DEVTYPE}=="usb_device",\
ATTR{idVendor}=="09fb",\
ATTR{idProduct}=="6010",\
MODE="0666",\
NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}",\
RUN+="/bin/chmod 0666 %c"

Edit the value for ATTR{idProduct} to match the Product ID determined before.

If you have more than one Product ID you want this to work for, simply repeat the above lines in the same file and use the other Product IDs for ATTR{idProduct}.

For the changes to take effect, reboot the machine or run:

$ sudo udevadm control --reload