yyt@yyt:~/workspace/shell$ sh test.sh What is your favourite OS? test.sh: 3: select: not found test.sh: 4: break: not found test.sh: 5: Syntax error: "done" unexpected yyt@yyt:~/workspace/shell$ cat test.sh #!/bin/bash echo "What is your favourite OS?" select var in "Linux" "Gnu Hurd" "Free BSD" "Other"; do break; done echo "You have selected $var" help me~~
下面的命令安装的是开源版ATI驱动,已能支持大多数ATI新显卡了,不妨试一试。 在ubuntu 9.04不支持的ATI显卡的机子上甚至运行ubuntu Live都有问题,无法进入GNOME桌面,只能进入字符界面,只有在字符界面先给ATI显卡安装驱动了: $sudo apt-get install build-essential autoconf automake libtool pkg-config git-core $sudo apt-get install libdrm-dev x11proto-gl-dev mesa-common-dev xutils-dev x11proto-xf86d...
zendstudio刚装上默认是不支持中文的,甚至5.5版以后连中文菜单都没了。 有过把fonts.dir里字体全替换成simsun.ttc的方法,当字体显示不是很完美 实际上有更简单更完美的方法,一句话就可以解决 引用: sudo cp /usr/share/fonts/zh_CN/simsun.ttc /opt/zde/jre/lib/fonts/LucidaSansRegular.ttf 另外zendstudio的菜单支持中文 引用: gedit /home/up/ZDE/config_5.5/desktop_options.xml 把第9行的en改成cn就可以了 另外 最...
网上搜了很多文章,大多数都避开这个问题。 终于找到原因: eclipse装好后默认使用的jre是java-gcj,修改为sun的java就可以了 最终解决办法如下: vi /etc/eclipse/java_home 将/usr/lib/jvm/java-6-sun放到第一行即可。 (如果安装的是其他版本的jre请根据安装路径修改) 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/10695/showart_1277221.html
插入后dmeg: [17184179.928000] usb-storage: device found at 7 [17184179.928000] usb-storage: waiting for device to settle before scanning [17184185.044000] usb 4-2: reset full speed USB device using uhci_hcd and address 7 [17184185.296000] usb 4-2: reset full speed USB device using uhci_hcd and address 7 [17184185.544000] usb 4-2: reset full speed USB device using uhci_hcd and address 7 [17184185.6...
插入后dmeg: [17184179.928000] usb-storage: device found at 7 [17184179.928000] usb-storage: waiting for device to settle before scanning [17184185.044000] usb 4-2: reset full speed USB device using uhci_hcd and address 7 [17184185.296000] usb 4-2: reset full speed USB device using uhci_hcd and address 7 [17184185.544000] usb 4-2: reset full speed USB device using uhci_hcd and address 7 [17184185.6...
最近在ubuntu系统上开发同时运行两个USB摄像头的程序,两个摄像头都是USB2.0的支持UVC驱动,分辨率是640X480。现在遇到的问题是当一个摄像头开时采集图像,再开另一个摄像头时,出现USB带宽不够的。有没有哪位高手遇到过同样的问题,请问这个问题应该怎么解决?