小编Khu*_*lam的帖子

如何删除特定包的所有构建依赖项?

当我想在 Ubuntu/Debian 中从源代码编译某些东西时,我通常通过sudo apt-get build-dep PACKAGE_NAME在终端中运行“ ”来获得构建依赖项。

一旦编译工作完成,它们(通常)就无用了。

那么,如何删除特定包的所有构建依赖项

package-management aptitude apt

12
推荐指数
2
解决办法
1万
查看次数

如何用 MDM 替换 LightDM?

Linux Mint Cinnamon 1.4 与“MDM 显示管理器”一起发布。它基于 GDM2.20 的代码。它提供:

  • 图形化配置工具
  • 主题性
  • 远程、自动和定时登录
  • 事件脚本
  • 语言选择

并且它具有比目前可用的任何其他显示管理器更多的功能。

在此处输入图片说明 (MDM)

那么如何在 Ubuntu 上使用 MDM 而不是 LightDM 呢?

gdm lightdm

9
推荐指数
1
解决办法
3万
查看次数

如何在 Chromium 的 Pidgin 中打开 irc:// 链接?

我想irc://从铬打开pidgin 中的链接。

当我登录到在终端中irc.freenode.net运行的 irc server( )purple-url-handler irc://irc.freenode.net/#ubuntu时工作正常。

但是,当我单击 Chrome 中的相同链接(xdg-open用于打开irc://链接)时,它什么也不做。知道如何做到这一点吗?

我正在使用 Ubuntu 12.04。

irc pidgin xdg-open

4
推荐指数
1
解决办法
2871
查看次数

多个种子的传输关闭脚本?

我已经写了一个关闭脚本进行传输。在 torrent 下载完成后,传输会调用脚本。该脚本在我的机器上完美运行(Ubuntu 11.04 和 12.04)。

#!/bin/bash
sleep 300s

# default display on current host
DISPLAY=:0.0

# find out if monitor is on. Default timeout can be configured from screensaver/Power configuration.

STATUS=`xset -display $DISPLAY -q | grep 'Monitor'`
echo $STATUS

if [ "$STATUS" == "  Monitor is On" ]

###  Then check if  its still downloading a torrent. Couldn't figure out how.(May be) by monitoring network downstream activity? 

then

    notify-send "Downloads Complete" "Exiting  transmisssion now"
    pkill transmission

else
    notify-send "Downloads …
Run Code Online (Sandbox Code Playgroud)

command-line bash shutdown scripts transmission

4
推荐指数
1
解决办法
7834
查看次数