浏览模式: 标准 | 列表分类:Ubuntu

ubuntu 里面的sudo配置文件

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults        env_reset

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL

# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

» 阅读全文

Tags: freebsd, ubuntu, sudo配置

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'的解决

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'的解决

解决办法: 

$ sudo chown mysql:mysql /var/run/mysqld

$ sudo /etc/init.d/mysql restart

» 阅读全文

Tags: mysql, 启动错误, 错误, mysqld, mysqld.sock

不说话 watch -d free

不说话 watch -d free

» 阅读全文

ubuntu-8.04 server 软件的中文说明

花了一个下午的事件整理了一下ubuntu8.04server中安装的软件的中文说明{我主要是用来精简系统} 精简的进度很不理想.如果有朋友搞过.请留言活着加我Gmali ripsy110@gmail.com

» 阅读全文

Tags: 软件说明, ubuntu-server, ubuntu8.04

终于搞定了查询ubuntu下所有deb的依赖关系了

终于搞定了查询ubuntu下所有deb的依赖关系了
apt-cache depends $(dpkg-query -W -f='${Package} ')

根据unix shell 编程里面找到的 这个方法叫命令替换.

当使用$(command)的时候 括号里面的所有字符只用于构成命令.

» 阅读全文

Tags: dpkg-query, apt-cache, depends, 依赖关系, ubuntu

列出ubuntu下所安装软件列表

列出ubuntu下所安装软件列表

dpkg-query -W --showformat='${Package} ${Version}\n' > filename

» 阅读全文

Tags: 新命令, dpkg-query, dpkg, ubuntu软件

开年第一篇,收藏一个ubuntu的apt-get用法详解

懒的不行了.直接给网址好了:
http://wiki.ubuntu.org.cn/Apt-get使用指南

» 阅读全文

Tags: ubuntu, apt-get, 使用方法

更改ubuntu 的man为中文

我是英文菜鸟,用ub的时候好多命令都需要man *arg  但是man出来的都是e文的,看起来很费力.现在有办法转成中文了.

$ sudo apt-get install manpages-zh  安装完成后

$ cd /etc

$ sudo vi manpath.config
   替换所有/usr/share/man 为 /usr/share/man/zh_CN

» 阅读全文

Tags: man, help, 帮助, ubuntu

Records:261234