zoukankan      html  css  js  c++  java
  • ubuntu 笔记

    Ubuntu学习之路还很长,做个笔记也不亏

    terminal tab 补全忽略大小写:

    在 /ect/inputrc文件中添加或修改 'set completion-ignore-case on'

    Ubuntu 开机后关掉桌面(我是用来减轻虚拟机压力):

    /etc/defualt/grub : 'quick flash' 改为 'text' 重启。注:关掉桌面可能回不去。

    可以用sudo startx 来启动桌面。(要启动桌面的话建议1G内存以上)

    sogou input:

      sudo apt-add-repository ppa:fcitx-team/nightly

      sudo apt-get update

      sudo apt-get install fcitx  

      (apt-get -f install)

      sudo dpkg -i sogoupinyin_1.2.0.0056_amd64.deb

      fcitx-config-gtk3

      sudo reboot

    32bit libs:

      lib32z1 lib32ncourses5 lib32bz2-1.0

    something else :

      error while loading shared libraries: libstdc++.so.6

      sudo apt-get install libstdc++6

    在使用phpmyadmin时,数据库总报错#1146 - Table ‘phpmyadmin.pma_table_uiprefs' doesn't exist :

      phpmyadmin config file: /etc/phpmyadmin/config.inc.php

      $cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs';

      改为: $cfg['Servers'][$i]['pma_table_uiprefs'] = 'pma_table_uiprefs';

    win7关闭自动启动项:

      win+r: msconfig

    parse error, in file '/var/lib/dpkg/updates/000xx' near line 0: newline in field name `#padding
    sudo rm /var/lib/dpkg/updates/00*

    install Atom in Ubuntu :

        sudo apt-get update

        sudo apt-get install atom


    ubuntu Monitor:

        Conky:

            install conky :
                $ sudo apt-get install software-properties-common
                $ sudo add-apt-repository ppa:teejee2008/ppa
                $ sudo apt-get update
                $ sudo apt-get install
                $ sudo apt-get install conky-manager

            remove conky:
                $ sudo apt-get romove conky-manager

            remove ppa:

                $ sudo apt-get install ppa-purge    
                $ sudo ppa-purge ppa:teejiee2008/ppa

    Nagios :
            A net work monitor

            install :

                $ sudo apt-get install nagios3 apache2 php5 libapache2-mod-php5 postfix

        Use Python to monitr Ubuntu:

            /proc/cpuinfo : info of CPU
            /proc/loadavg : the message of system Load
            /proc/meminfo : the info of Mem

        Wine1.7 and QQ7.5:
        
        1.install wine1.7:

        2.install mono4.5.6

        3.winetricks gdiplus riched20 riched30

    shadowsocks-qt5-ubuntu: [way1]
        
        sudo add-apt-repository ppa:hzwhuang/ss-qt5
        sudo apt-get update
        sudo apt-get install shadowsocks-qt5

        maybe some Dependencies: [way2](https://github.com/shadowsocks/shadowsocks-qt5/wiki/Compiling)

        sudo apt-get install qt5-default

        sudo apt-get install libqrencode-dev
        
        sudo apt-get install libqtshadowsocks-dev
        
        sudo apt-get install libbotan1.10-dev
        
        sudo apt-get install libzbar-dev
        
        sudo apt-get install libappindicator-dev
        sudo apt-get install rubygems-integration


    mysql :
      出现这个问题:
      
    1 sudo invoke-rc.d mysql start Rather than invoking init scripts through /etc/init.d, use the service(8) utility, 
    e.g. service mysql start Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the start(8) utility,
    e.g. start mysql start: Job failed to start invoke-rc.d: initscript mysql, action "start" failed.

      无法安装mysql-server,以及出现依赖问题,折腾许久,反正一下方法解决了我的问题,系统版本:ubuntu14.04

      

    sudo apt-get remove --purge mysql-server mysql-client mysql-common
    sudo apt-get autoremove
    sudo apt-get autoclean

    sudo apt-get install mysql-server-5.5 mysql-common mysql-server mysql-client

    apache documentRoot 改写:

    直接改写/etc/apache2/sites-enabled/000-default.conf 中的documentRoot 无效,可以用apachectl -S 来查看状态,但是好像并没用

    1. 改写/etc/apache2/apache.conf

    <Directory /var/www>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
    </Directory>

    =>

    <Directory />
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
    </Directory>

    2. 改写/etc/apache2/sites-enabled/000-default.conf 的documentRoot

    DocumentRoot /home/username/var/www
    
    
  • 相关阅读:
    webservice系统学习笔记9-使用契约优先的方式的一个服务端demo(隐式传Header信息)
    webservice系统学习笔记8-简单的权限校验
    JS获取浏览器高宽度,屏幕分辨率和一些定位空隙等
    基于jquery ui修改的不依赖第三方的背景透明的弹出div
    1个比较简单的使用java反射机制获取前台数据进行数据封装的例子
    J2EE项目集成SAP的BO报表
    php-------unset销毁变量并释放内存
    微信小程序------MD5加密(支持中文和不支持中文)和网络请求(get和post)
    谈谈http与https
    php--------合并2个数字键数组的值
  • 原文地址:https://www.cnblogs.com/ediszhao/p/4520864.html
Copyright © 2011-2022 走看看