AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-1196

coffee-grinder's questions

Martin Hope
coffee-grinder
Asked: 2011-04-03 11:57:14 +0800 CST

如何设置默认使用哪个 PostgreSQL 版本?

  • 31

我的系统(Ubuntu Lucid)上安装了 2 个不同版本的 PostgreSQL:

  • /var/lib/postgresql/8.4
  • /var/lib/postgresql/9.0

默认情况下,当我运行诸如 createdb 或 psql 之类的 PostgreSQL 命令时,使用的是 9.0 版本。

如何将我的系统配置为默认使用 8.4 版本?

configuration
  • 3 个回答
  • 39468 Views
Martin Hope
coffee-grinder
Asked: 2011-03-06 13:50:18 +0800 CST

我应该为 Nagios 安装哪个 mailx 包?

  • 11

我正在遵循Nagios Ubuntu 快速入门说明。我在 Ubuntu 10.10 上并安装 Nagios 3.2.3。

在文档的底部,它说我需要安装 mailx 和 postfix 包。(已经安装了 Postfix。)但是当我尝试安装 mailx 时,我被问到要安装 3 个软件包中的哪一个:

$ sudo apt-get install mailx
[sudo] password for nagios: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package mailx is a virtual package provided by:
  mailutils 1:2.1+dfsg1-4ubuntu1
  heirloom-mailx 12.4-1.1
  bsd-mailx 8.1.2-0.20090911cvs-2ubuntu1
You should explicitly select one to install.
E: Package mailx has no installation candidate

我应该安装哪一个?

email
  • 2 个回答
  • 14236 Views
Martin Hope
coffee-grinder
Asked: 2011-03-06 07:33:01 +0800 CST

为 Nagios 安装 GD 图形库的最佳方法是什么?

  • 3

在尝试安装 Nagios 3.2.3 时,我运行了他们的 ./configure 脚本并得到了这些错误:

checking for main in -liconv... no
checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... no
checking for gdImagePng in -lgd (order 3)... no
checking for gdImagePng in -lgd (order 4)... no


*** GD, PNG, and/or JPEG libraries could not be located... *********

Boutell's GD library is required to compile the statusmap, trends
and histogram CGIs.  Get it from http://www.boutell.com/gd/, compile
it, and use the --with-gd-lib and --with-gd-inc arguments to specify
the locations of the GD library and include files.

NOTE: In addition to the gd-devel library, you'll also need to make
      sure you have the png-devel and jpeg-devel libraries installed
      on your system.

NOTE: After you install the necessary libraries on your system:
      1. Make sure /etc/ld.so.conf has an entry for the directory in
         which the GD, PNG, and JPEG libraries are installed.
      2. Run 'ldconfig' to update the run-time linker options.
      3. Run 'make clean' in the Nagios distribution to clean out
         any old references to your previous compile.
      4. Rerun the configure script.

NOTE: If you can't get the configure script to recognize the GD libs
      on your system, get over it and move on to other things.  The
      CGIs that use the GD libs are just a small part of the entire
      Nagios package.  Get everything else working first and then
      revisit the problem.  Make sure to check the nagios-users
      mailing list archives for possible solutions to GD library
      problems when you resume your troubleshooting.

********************************************************************

我要哪个包?libgd2-xpm-dev?libgd2-noxpm-dev?php5-gd?我不想自己做任何图像处理——我只是想让 Nagios 工作。

graphics
  • 2 个回答
  • 29160 Views
Martin Hope
coffee-grinder
Asked: 2011-03-06 05:09:02 +0800 CST

创建新用户时,如何在其主目录中自动创建 .virtualenvs 目录?

  • 8

我想在创建新用户时在每个新用户的主目录中自动创建一个名为“.virtualenvs”的目录。

我正在使用 useradd 命令来创建新用户。

users
  • 1 个回答
  • 4940 Views
Martin Hope
coffee-grinder
Asked: 2011-03-05 00:42:46 +0800 CST

如何将所有用户的默认 shell 更改为 bash?

  • 48

我希望从现在开始的每个新用户都默认使用 bash 作为他们的 shell。

我知道要将自己的 shell 更改为 bash,您将使用命令“chsh -s /bin/bash”,但是如何将所有未来用户的 shell 默认自动设置为 bash?

command-line
  • 3 个回答
  • 146340 Views
Martin Hope
coffee-grinder
Asked: 2010-08-27 13:52:02 +0800 CST

如何在 Ubuntu 的命令行中播放 midi?

  • 16

我想做类似的事情

$ play filename.mid

无需打开图形程序即可听到 MIDI 文件的播放。是否有适用于 Ubuntu 的软件包可以做到这一点?

sound command-line music midi
  • 6 个回答
  • 24644 Views
Martin Hope
coffee-grinder
Asked: 2010-08-14 13:09:09 +0800 CST

如何将用户添加到“sudo”组?

  • 226

在/etc/sudoers我看到这个:

# Allow members of group sudo to execute any command after they have
# provided their password
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL

那么如何将用户添加到该sudo组?

sudo user-management groups
  • 8 个回答
  • 663750 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve