ubuntu 笔记

时间:2023-02-06 15:01:30

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 *-qt5-ubuntu: [way1]
    
    sudo add-apt-repository ppa:hzwhuang/ss-qt5
    sudo apt-get update
    sudo apt-get install *-qt5     maybe some Dependencies: [way2](https://github.com/*/*-qt5/wiki/Compiling)     sudo apt-get install qt5-default     sudo apt-get install libqrencode-dev
    
    sudo apt-get install libqt*-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 :
  出现这个问题:
  
 sudo invoke-rc.d mysql start Rather than invoking init scripts through /etc/init.d, use the service() 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() 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