随笔分类 -  [技术]Linux

摘要:https://perf.wiki.kernel.org/index.php/Tutorial perf manpage 重要!!!http://web.eece.maine.edu/~vweaver/projects/perf_events/programming.html intel 处理器提供的performance events http://www.intel.com/content/... 阅读全文
posted @ 2013-04-09 11:26 dorothychai 阅读(300) 评论(0) 推荐(0)
摘要:原文出处:http://www.51testing.com/?uid-225738-action-viewspace-itemid-210333 测试机器的硬件信息: 查看CPU信息(型号) # cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 8 Intel(R) Xeon(R) CPU... 阅读全文
posted @ 2013-04-09 11:24 dorothychai 阅读(166) 评论(0) 推荐(0)
摘要:在win7下装的centos双系统,后来把win7下安装双系统时用的磁盘删掉了,致使启动错误,只能直接进入到grub中通过上上次的日志,可以知道如何进入windwos环境下。但是如何进入linux下。则如下所示:root (hd0, TAB键查看linux所在的分区。我的是第5分区root (hd0,5)查看/grub/grub.conf文件。拷贝其中的kernel命令和initrd命令即可。***********************最终解决问题的方法*************************/* 引言 grub是什么?最常态的理解,grub是一个bootloader或者是一个bo 阅读全文
posted @ 2013-03-25 00:10 dorothychai 阅读(215) 评论(0) 推荐(0)
摘要:错误信息: Error in final launch sequence Failed to execute MI command: maintenance set python print-stack off Error message from debugger back end: Undefined maintenance set python command: "print-stack ... 阅读全文
posted @ 2013-03-19 19:51 dorothychai 阅读(472) 评论(0) 推荐(0)
摘要:linux环境下的flash插件需要自行安装和配置,否则即使安装后没有配置成功,firefox始终会提示你安装新版flash配置方法如下:Installation instructions-------------------------Installing using the plugin tar.gz: o Unpack the plugin tar.gz and copy the files to the appropriate location. o Save the plugin tar.gz locally and note the location the fil... 阅读全文
posted @ 2013-03-19 11:57 dorothychai 阅读(355) 评论(0) 推荐(0)
摘要:转自:http://www.myexception.cn/linux-unix/224685.htmlGDB出现no debugging symbols found看网上的错误原因都是因为没有加 -g 选项。但我确定是加了 -g的。GDB时还是出现:Reading symbols from /home/XX/XX...(no debugging symbols found)...done.的情况。现在根本调试不了。有这方面经验的朋友来交流下。------解决方案--------------------------------------------------------探讨我曾经遇到过这种问 阅读全文
posted @ 2013-03-19 11:24 dorothychai 阅读(7560) 评论(2) 推荐(0)
摘要:安装的eclipse c++版本,新建后的c++项目,自动添加include 但是添加lib需要手动设置 1、头文件:project->properties->c/c++ build->settings->gcc c++ compiler->includes2、库文件:project->properties->c/c++ build->settings->gcc c++ linker->libra... 阅读全文
posted @ 2013-03-18 20:12 dorothychai 阅读(162) 评论(0) 推荐(0)
摘要:安装eclipse,参考http://www.cnblogs.com/oomusou/archive/2006/11/11/557741.html 下载jre安装,如果64位机器上下载安装了32位的jre,会出现如下错误: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory 解决方法是,参考http://www.... 阅读全文
posted @ 2013-03-17 18:16 dorothychai 阅读(186) 评论(0) 推荐(0)
摘要:# 以root身份在终端执行如下命令 yum -y install nautilus-open-terminal # 重启操作系统 shutdown -r now 上述命令是添加右键--打开终端 阅读全文
posted @ 2013-03-17 17:20 dorothychai 阅读(131) 评论(0) 推荐(0)
摘要:参考http://www.linuxidc.com/Linux/2011-04/35265p2.htm进入 http://www.intellinuxwireless.org/后在 Microcode Images 下面下载相应的驱动由于我的无线网卡是 intel Link 系列,所以选择了1000 Images – for Intel Centrino Wireless-N 1000选择一个 tgz 文件下载, 然后解压,将其中的三个文件复制到 /lib/firmware ,重启系统即可~ 阅读全文
posted @ 2013-03-16 18:28 dorothychai 阅读(606) 评论(0) 推荐(0)
摘要:转自:http://icooke.blog.51cto.com/4123148/764796 1.安装相关库文件(没有的话就安装,有就不用安装了) # yum install bison gcc gcc-c++ autoconf automake zlib* libxml* ncurses-devel libtool-ltdl-devel* 2.安装cmake包 # wget http:/... 阅读全文
posted @ 2013-03-15 19:37 dorothychai 阅读(186) 评论(0) 推荐(0)
摘要:lspci #yum install pciutils lsusb #yum install usbutils 阅读全文
posted @ 2013-03-15 13:57 dorothychai 阅读(409) 评论(0) 推荐(0)
摘要:在百度上搜了一篇 http://wenku.baidu.com/view/222ae33383c4bb4cf7ecd180.html 用的easybcd 2.2的版本。 主要问题集中在引导启动时,选择默认等待多长时间选择。 如果遇到只能进入grub而不能进入win7时,参考 http://wenku.baidu.com/view/f98c5929cfc789eb172dc895.html### S... 阅读全文
posted @ 2013-03-14 15:00 dorothychai 阅读(478) 评论(0) 推荐(0)
摘要:windows上有putty可以通过ssh协议连接远程linux系统。 mac上也可以用终端连接,转自:http://www.unixnewbie.org/putty-equivalent-for-mac-os-x/ In Mac, there is a similar, built-in application calledTerminal. To start Terminal, go to ... 阅读全文
posted @ 2012-10-26 02:47 dorothychai 阅读(17669) 评论(0) 推荐(0)
摘要:转自:http://blog.chinaunix.net/uid-23670869-id-2943505.html Linux中常常会使用到cut命令来分割字符串,下面说明下cut命令参数的使用: -d 指定分隔符,如:按照“:”分割,-d: -c 提取第n个字节,如:-c5,表示提取每行的第5个字节,-c5-14,表示提取每行的第5-14个字节,-c1,5,14,表示提取第1、5、14个字节。... 阅读全文
posted @ 2012-10-19 05:16 dorothychai 阅读(8215) 评论(0) 推荐(1)
摘要:想要实现的是另个进程同步执行,第一个进程(monitor)用来监控第二个进程(workload)在执行过程中的性能参数 shell: source monitor_shell脚本 & #(&表示在后台进行,也就是并发,不影响下面代码的执行,同时为啥用source,请搜“在shell脚本中调用另一个脚本的三种不同方法(fork, exec, source)” ) pid=$! #用来... 阅读全文
posted @ 2012-10-19 04:36 dorothychai 阅读(612) 评论(0) 推荐(0)
摘要:1、已经安装了gcc,却依旧提示:configure: error: Aborting because C++ compiler does not work. If you do not need a C++ compiler, configure with --disable-cxx 解决方案:出处:http://free.yes81.net/yes81/view-5135.html ... 阅读全文
posted @ 2012-09-04 15:59 dorothychai 阅读(901) 评论(0) 推荐(0)
摘要:1、yum install gcc时报错: 报错内容: Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again 解决办法: 源错误,替换源即可。参考出处:http://alsww.blog.51cto.com/2... 阅读全文
posted @ 2012-09-04 14:14 dorothychai 阅读(362) 评论(0) 推荐(0)
摘要:好像网上说Ubuntu得自己安装openssh? 在命令行中输入 #sshd 看什么反应 sudo apt-get install openssh-server 然后确认sshserver是否启动了: ps -e |grep ssh 如果只有ssh-agent那ssh-server还没有启动,需要/etc/init.d/ssh start ssh-serve... 阅读全文
posted @ 2012-05-17 13:43 dorothychai 阅读(360) 评论(0) 推荐(0)
摘要:SSH概念SSH是指SecureShell,SSH协议族由IETF(InternetEngineeringTaskForce)的NetworkWorkingGroup制定,SSH协议的内容SSH协议是建立在应用层和传输层基础上的安全协议。传统的网络服务程序,如FTP、Pop和Telnet其本质上都是不安全的;因为它们在网络上用明文传送数据、用户帐号和用户口令,很容易受到中间人(man... 阅读全文
posted @ 2012-02-26 00:22 dorothychai 阅读(148) 评论(0) 推荐(0)