zoukankan      html  css  js  c++  java
  • [Linux]Ubuntu安装配置笔记

    1. 系统配置

    1.1. 修改登录屏幕显示的用户名

    System Settings -> User Accounts 里边更改,还可以改变用户头像

    1.2. 输入法

    卸载iBus 

    安装Fcitx

    使用ctrl + space开启,使用ctrl切换(我更改为shift)

    1.2. 使用VMWare的共享文件夹功能

    首先在虚拟机选项里配置好要共享的文件夹

    然后可以在 /mnt/hgfs/ 中找到共享的文件夹

    2. 软件安装配置

    2.1 CTags

    sudo apt-get install exuberant-ctags  - 用Vim的代码补全

    ctags -R --extra=+q --fields=+iaS --c++-kinds=+p  - 生成源代码的tag

    • -R(--recurse) - 递归当前目录,不用指定文件
    • --extra=+q  - 添加类成员tag,比如Class::member
    • --fields=+iaS  - 格外支持继承信息、访问控制(public/private/protect)、参数表
    • --c++-kinds=+p - 对C++添加函数原型的信息

    后三个参数都是OmniCppComplete要求的,附原文

    You have to build your database with at least the following options:
            --c++-kinds=+p  : Adds prototypes in the database for C/C++ files.
            --fields=+iaS   : Adds inheritance (i), access (a) and function
                              signatures (S) information.
            --extra=+q      : Adds context to the tag name. Note: Without this
                              option, the script cannot get class members.

    2.2. Vim

    sudo apt-get install vim-gnome

    使用

    vim  - 命令行

    gvim  - GUI界面的Vim

    自定义用户配置文件:新建文件 $HOME/.vimrc

    自定义用户文件:

    新建目录vimfile主目录 $HOME/.vim/,结构为:

    + <Directory>
      +  colors
      +  compiler
      +  doc
      +  etc
      +  ftdetect
      +  ftplugin
      +  indent
      +  keymap
      +  plugin
      +  syntax

    刷新帮助信息 vim:helptag 目录

    vimrc中的更改

    " 更改tab键,使tab键键入4个空格
    set shiftwidth=4    " 缩进量为4个空格
    set softtabstop=4   " 按一下tab,缩进4个空格
    set expandtab       " 将tab扩展为空格

    " 显示行号
    set number

    " MakeFile中,需要使用tab
    if has("autocmd")
        autocmd FileType make set noexpandtab
    endif

    快速在源文件和头文件之间切换

    a.vim http://www.vim.org/scripts/script.php?script_id=31 文件名 a.vim; alternate.txt

    a.vim - 放入plugin

    altername - 放入doc

    使用 :A  来切换源文件和头文件

    代码自动补全(需要配合ctag使用)

    OmniCppComplete http://www.vim.org/scripts/script.php?script_id=1520

    解压至$HOME/.vim/ - unzip omnicppcomplete-0.41.zip -d /home/selah/.vim/

    2.3. SQLite

    SQLite

    sudo apt-get install sqlite 

    sqlite  - 启动sqlite客户端

    2.4. MySQL

    sudo apt-get install mysql-server  - 服务器

    安装过程中会提示定制root的密码,设置为selah

    mysql  - 启动客户端并默认登录,有关默认登录的信息,看这里 -> mysql默认登录账户

    2.5. Qt

    sudo apt-get install qtcreator  - Qt的IDE

    安装Qt5 beta1

    增加额外的软件源 ppa:canonical-qt5-edgers/qt5-beta1 

  • 相关阅读:
    链堆栈的实现
    关于HyperLink的NavigateUrl属性的链接地址参数设置
    //yield return用于无缝实现迭代模式。
    NUnit的使用
    非常不错的数据访问架构
    Dictionary应用
    针对数据分析没态度的几句牢骚
    微软算法面试题(4)
    程序员面试题精选100题(60)判断二叉树是不是平衡的
    C++设计模式单件
  • 原文地址:https://www.cnblogs.com/SelaSelah/p/2731423.html
Copyright © 2011-2022 走看看