1、当系统突然死机需要重启时,打开 命令输入端口,使用快捷键 Shift +Alt +F(1或6)打开 ,然后输入 shutdown -r now 如果提示shutdown need to be root ,如果没有权限 就输入 su 然后再输入 shutdown -r now

2、在安装Eclipse中要运行C++程序,需要安装cdt

3、

cmake两个错误的解决方法

今天在linux上配置环境时遇到了两个cmake的问题,在网上找了半天才找到解决方法。菜鸟特此记下解决方法,以备后用。

问题1:

-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND 
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

解决方法:

sudo apt-get install g++

问题2:

CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):                 
ERROR: cmake/modules/FindKDE4Internal.cmake not found in                               
/home/mm/.kde/share/apps;/usr/share/kde4/apps[/code]

解决方法:

sudo apt-get install kdelibs5-dev

3、解决unresolved inclusion*****的一个步骤

It turns out my problem can be solved by tweaking the options in "Project properties->C/C++ general->Indexer" panel. Please refer to the figure.

First, I checked the "Enable project specific settings". And then, in the indexer options, I checked "Index unused headers as C++ files" and "Index source and header files opened in editor". Finally, I clicked "apply" and "OK" and after a while, all the "bugs" and "unresolved xxx" disappeared.

I'm not sure whether what I did is necessary or sufficient. Also, it always takes some time for the indexer to take effect after I checked or unchecked some options, so I don't have time to find out necessary and sufficient options to solve the problem.

4、linux 系统 Eclipse 安装Python

  首先安装Eclipse和Python  Ubuntu自带的Python软件,如果没有可以去官方下载。然后 安装到Eclipse 中  打开Eclipse 中的Help-->Install New Software -->出现的窗口中,点击Work with 后的add按钮 进行添加安装程序 在Add Repository 中,name可以自己任意取名,location: http://pydev.org/updates  (我自己试验成功的地址)最后等待安装完成。

  安装完Python后,还要配置,如果不进行配置,会提示Project interpreter not specified ,所以要进行配置打开Window,点击Preferences,展开左边的Pydev,点击Interpreter-Python,选择右边的New,Interpreter Name随便命名为Python,Interpreter Executable栏点击Browse...,找到/usr/bin/python,然后OK

Linux 使用 常识记忆的更多相关文章

  1. Linux菜鸟起飞之路【二】Linux基本常识

    一.Unix操作系统基本常识 1.什么是Unix? Unix是一个计算机操作系统,是一个用来协调.管理和控制计算机硬件与软件资源的控制程序. 2.Unix操作系统的特点? 多用户与多任务.多用户表示在 ...

  2. linux内核常识

    找到了一个阅读linux源码的在线工具woboq,但是不能很好地用来阅读live555代码. 比如,我们要阅读epoll实现,可以访问此网址:https://code.woboq.org/linux/ ...

  3. 必须知道的Linux内核常识详解

    一.内核功能.内核发行版 1.到底什么是操作系统 (1)linux.windows.android.ucos就是操作系统: (2)操作系统本质上是一个程序,由很多个源文件构成,需要编译连接成操作系统程 ...

  4. Linux之常识小结[版本]

    1 linux内核版本 major.minor.patchlevel 主版本号.次版本号.修补次数 次版本号的意义:偶数稳定版,奇数不稳定版 注意:查看系统版本信息 方法1.uname -a 方法2. ...

  5. Linux操作常识

    1.分区 linux如果手动选择分区,必须的两个分区是根分区和swap分区,swap分区是与内存的交换分区,通常设置大小为内存的两倍(如果内存够大也可以不用设置) 2.关机重启      命令:shu ...

  6. linux 小常识

    背景: 在工具中遇到一些linux相关的问题,解决后做个笔记记录下来,后续遇到就不用 在查来查去了 1. 启动地址配置 127.0.0.1 和 0.0.0.0 区别 127.0.0.1 地址只能对本机 ...

  7. Linux 一些常识命令

    linux的性能优化: .CPU,MEM .DISK--RAID .网络相关的外设,网卡 linux系统性能分析: top:linux系统的负载,CPU,MEM,SWAP,占用CPU和内存比较的进程, ...

  8. Linux的常识

    用到$是环境变量查询的开头 # echo $LANG查看编码 ls -l 是查看本地的所有文件的目录 以list的形式罗列出来 cd .. 上一层的目录 查看当前目录下有哪些文件 ll 等于ls -l ...

  9. Linux 路线 推荐

    1.<Linux程序设计>- 靠它来入门,然后装一个linux体系,练习shell(party)和linuxC,把基础打牢: 2. <深入理解Linux内核>和<Linu ...

随机推荐

  1. am335x i2c分析

    /***************************************************************************** * am335x i2c分析 * i2c驱 ...

  2. MVC下载远程文件流(WebClient)

    public ActionResult DownLoad_File() { return File(ScLiu(PathUrl), "application/octet-stream&quo ...

  3. git分支合并的冲突解决方法

    本次学习的是解决不同分支提交的内容不同导致合并冲突,及怎样解决冲突.       基本命令: git log --graph查看分支合并图       具体步骤: 新建分支branch1,并修改rea ...

  4. css之鼠标cursor

    <html> <body> <p>请把鼠标移动到单词上,可以看到鼠标指针发生变化:</p> <span style="cursor:au ...

  5. React 生态系统:从小白到大神

    http://mp.weixin.qq.com/s/Epx46lznpnvgrIsbmAIZBA

  6. jQuery中animate()的方法以及$(&quot;body&quot;).animate({&quot;scrollTop&quot;:top})不被Firefox支持问题的解决

    转载请注明出处:http://blog.csdn.net/dongdong9223/article/details/50846678 本文出自[我是干勾鱼的博客] jQuery中animate()的方 ...

  7. C#------Entity Framework6的T4模板的使用

    转载: http://www.cnblogs.com/Zhangzhigang/articles/4850549.html 1.新建一个.tt文件 2.打开.tt文件 3.粘贴入以下代码即可(inpu ...

  8. EF--CodeFirst

    1,增加EntityFramework的引用 2,创建实体类 public class Invoice { public Invoice() { LineItems = new List<Lin ...

  9. 查看磁盘读写:iostat

    iostat命令用来查看磁盘IO的读写情况,用法如下: [root@localhost ~]$ yum install -y sysstat # 安装iostat命令 [root@localhost ...

  10. Linux 下安装 Python3

    Linux CentOS 7 安装 Python3: [root@localhost ~]$ yum install -y epel-release [root@localhost ~]$ yum i ...