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-8238

Ashfame's questions

Martin Hope
Ashfame
Asked: 2011-05-02 23:08:40 +0800 CST

Unity Super + D 快捷键不起作用

  • 10

Super key + D快捷方式在 Unity 中无法为我显示桌面功能。我已经搜索并找到了在 Unity 启动器中添加按钮的解决方案,但我不希望这样。我只希望键盘快捷键能够提高速度。

我发现Ctrl + Alt + D做类似的事情,但gedit窗口并不费心去关心它。

unity
  • 7 个回答
  • 12013 Views
Martin Hope
Ashfame
Asked: 2011-05-02 08:45:36 +0800 CST

搞砸了 Unity 和 Compiz

  • 0

我在 CCSM 中进行了一些更改,并激活了“旋转立方体”插件,该插件要求我解决一些冲突并禁用所有这些冲突,但在 11.04 中,与 Unity 相关的东西也被禁用。我试图将其恢复为默认值,然后一切都搞砸了。

现在,如果我使用新的 Unity 登录,我最终会得到我的桌面、桌面上的东西和鼠标光标。

我可以去终端(tty)Ctrl + Alt + F1,但我不确定我需要做什么来修复它。我希望设置是全新安装时的设置。

11.04
  • 2 个回答
  • 2208 Views
Martin Hope
Ashfame
Asked: 2011-04-21 14:49:08 +0800 CST

主题自行更改[重复]

  • 0
这个问题在这里已经有了答案:
11年前关闭。

可能重复:
桌面忘记主题?

突然间,主题被更改为某些旧 Ubuntu 版本的外观,然后我又回到了我的主题,除了所有图标、右键单击上下文菜单以及 nautilius 的外观。我认为只有面板具有与以前相同的外观,所有其他面板都已更改。

标题栏也不见了。我运行 compiz 并通过运行修复它gtk-window-decorator –replace

我的最后一行.xsession-errors是

(nautilus:1756): GConf-CRITICAL **: gconf_value_free: 断言 `value != NULL' 失败

我现在应该怎么做才能修复它?在主题中设置它没有任何好处,就好像它的文件丢失了一样。

在此处输入图像描述

compiz
  • 1 个回答
  • 484 Views
Martin Hope
Ashfame
Asked: 2011-04-10 12:54:27 +0800 CST

php 不使用 nginx & phpfm 解析

  • 0

我正在设置一个 VPS 并按照本教程http://tutspunit.com/howto-install-nginx-php-fpm-mysql-php533-wordpress-ubuntu-part-1/中针对 WordPress 的 nginx、PHP、MySQL 说明进行操作然后http://tutspunit.com/how-to-install-nginx-php-fpm-mysql-php533-wordpress-part-2/

问题是 php 文件在浏览器中返回 php 代码本身而不对其进行解析。那么我错过了什么?

更新:盯着 phpfpm 或 nginx 工作正常,但我认为 nginx 根本不知道 phpfm,可能缺少某些链接?我检查了 nginx 错误日志,但没有任何与 php 相关的内容。我似乎无法弄清楚缺少什么。

nginx
  • 3 个回答
  • 7585 Views
Martin Hope
Ashfame
Asked: 2011-04-03 11:37:09 +0800 CST

葡萄酒需要很长时间才能开始

  • 3

在 wine 下运行的应用程序实际上需要几分钟(10 多分钟)才能启动。如果我检查系统监视器,该应用程序将继续pipe_wait处于Waiting Channel.

这不仅仅是一个应用程序,它所有的东西都在 wine 下运行。

在此处输入图像描述

我该如何解决这个问题?

wine
  • 2 个回答
  • 871 Views
Martin Hope
Ashfame
Asked: 2011-03-29 02:52:21 +0800 CST

在本地绑定 example.com

  • 0

我如何绑定 example.com 以由 apache 提供服务,我已经在机器上本地运行以用于开发目的?

我尝试在我的 /etc/hosts 文件中添加它 127.0.0.1 example.com

并重新加载了apache2 sudo /etc/init.d/apache2 reload,但这没有用。

我已经添加了虚拟主机example.com并通过以下方式启用了它a2ensite

编辑:

Apache错误日志(据我所知没有相关)

[Mon Mar 28 15:21:01 2011] [notice] Apache/2.2.16 (Ubuntu) configured -- resuming normal operations
[Mon Mar 28 15:21:03 2011] [notice] Graceful restart requested, doing restart
[Mon Mar 28 15:21:03 2011] [notice] Apache/2.2.16 (Ubuntu) configured -- resuming normal operations
[Mon Mar 28 15:21:23 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Mon Mar 28 15:21:23 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Mon Mar 28 15:35:34 2011] [error] [client 127.0.0.1] File does not exist: /var/www/phpmyadmin
[Mon Mar 28 15:36:48 2011] [notice] caught SIGTERM, shutting down
[Mon Mar 28 15:36:49 2011] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured -- resuming normal operations
[Mon Mar 28 15:49:13 2011] [notice] Graceful restart requested, doing restart
[Mon Mar 28 15:49:13 2011] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured -- resuming normal operations
[Mon Mar 28 15:49:17 2011] [notice] caught SIGTERM, shutting down
[Mon Mar 28 15:49:18 2011] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured -- resuming normal operations
[Mon Mar 28 15:50:24 2011] [notice] Graceful restart requested, doing restart
[Mon Mar 28 15:50:24 2011] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured -- resuming normal operations
[Mon Mar 28 16:15:09 2011] [notice] Graceful restart requested, doing restart
Warning: DocumentRoot [/home/ashfame/www/example.com/] does not exist
(2)No such file or directory: apache2: could not open error log file /home/ashfame/www/example.com/error.log.
Unable to open logs
[Mon Mar 28 16:46:18 2011] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Mar 28 16:46:18 2011] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured -- resuming normal operations
[Mon Mar 28 16:46:25 2011] [error] [client 127.0.0.1] File does not exist: /var/www/example.com
[Mon Mar 28 16:46:38 2011] [error] [client 127.0.0.1] File does not exist: /var/www/www
[Mon Mar 28 16:55:48 2011] [error] [client 127.0.0.1] File does not exist: /var/www/phpbb/phpbb
[Mon Mar 28 17:17:40 2011] [notice] caught SIGTERM, shutting down
[Mon Mar 28 17:17:41 2011] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured -- resuming normal operations
[Mon Mar 28 17:19:29 2011] [error] [client 127.0.0.1] File does not exist: /var/www/example.com

我也尝试这样做,显示主机文件正在工作,但在浏览器中打开http://www.iana.org/domains/example/wget --spider http://example.com

ashfame@ashfame-desktop:/usr/sbin$ wget --spider http://example.com
Spider mode enabled. Check if remote file exists.
--2011-03-28 17:20:57--  http://example.com/
Resolving example.com... 127.0.0.1
Connecting to example.com|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Remote file exists and could contain further links,
but recursion is disabled -- not retrieving.

虚拟主机配置文件:

# Place any notes or comments you have here
# It will make any customization easier to understand in the weeks to come

<VirtualHost *:80>

  # Admin email, Server Name (domain name) and any aliases
  ServerAdmin [email protected]
  ServerName  www.example.com
  ServerAlias example.com


  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.html
  DocumentRoot /home/ashfame/www/example.com/


  # Custom log file locations
  LogLevel warn
  ErrorLog  /home/ashfame/www/example.com/error.log
  CustomLog /home/ashfame/www/example.com/access.log combined

</VirtualHost>
configuration
  • 2 个回答
  • 845 Views
Martin Hope
Ashfame
Asked: 2011-03-28 22:14:13 +0800 CST

通过 gedit 在已安装的 FTP 上编辑文件的缓存?

  • 3

我正在通过在 Ubuntu 上安装 FTP 并使用 gedit 进行更改来编辑对 FTP 上文件的更改,从而实时处理文件。

下班后,我关闭了我的机器,现在我意识到 FTP 上的文件已被擦除其内容。如果 gedit 可能有它的缓存副本,有什么想法吗?

gedit
  • 1 个回答
  • 994 Views
Martin Hope
Ashfame
Asked: 2011-03-13 05:05:58 +0800 CST

罗技 C510 高清网络摄像头怎么样

  • 4

我打算购买 Logitech C510 高清网络摄像头,我刚刚在 AskUbuntu 上检查了其他问题,它与奶酪一起开箱即用。Jorge 的回应也证实了这一点,我现在有信心购买它。

我的问题是它可以限制在我想用它做的任何功能上吗?我希望它可以与所有东西一起使用 - Skype、Gtalk 视频聊天、Facebook、Youtube 等。这听起来可能很蹩脚,但我需要知道我是否可以用分辨率较低的视频录制或进行视频通话(它是 720p 的) ?

编辑:将此问题的一部分移植到另一个问题以使其更具体。

webcam
  • 2 个回答
  • 5500 Views
Martin Hope
Ashfame
Asked: 2011-03-10 00:39:45 +0800 CST

葡萄酒上的 Dragon NaturallySpeaking 11 安装程序卡住了

  • 2

所以我试图在 Wine 上安装 Dragon Naturally speak 11 但在安装时我设法只在设置的最后一点卡住了一个多小时

安装程序的屏幕截图

我现在该怎么办?我相信单击取消将回滚更改,但这似乎是唯一剩下的事情,或者我可以终止此过程并尝试重新安装它,这可能会结束此步骤。建议?

wine
  • 1 个回答
  • 944 Views
Martin Hope
Ashfame
Asked: 2011-03-08 11:56:55 +0800 CST

挂载iso的路径

  • 1

我需要在终端访问我安装的 iso,但它安装在哪里?我的分区用来挂载/media

安装不同东西的一般路径是什么?

编辑:我只需双击它就安装了我的 ISO(Ubuntu 10.10)

mount
  • 2 个回答
  • 2495 Views
Martin Hope
Ashfame
Asked: 2011-03-03 08:37:18 +0800 CST

Crysis 2 Demo on Wine 错误

  • 2

我试图在 wine 上安装 Crysis 2 演示,但提取后它说

Unable to find a volume for file extraction.  
Please verify that you have proper permissions. 

并在那里结束设置。

在此处输入图像描述

在此处输入图像描述

过去我也遇到过让愤怒的小鸟在上面运行的问题 -无法让愤怒的小鸟在葡萄酒上运行

10.10
  • 1 个回答
  • 785 Views
Martin Hope
Ashfame
Asked: 2011-03-01 11:52:33 +0800 CST

我可以将数据从网络推送到我的 Ubuntu 吗?

  • 1

我正在尝试做一些事情,涉及从网络(PHP)将数据推送到我的 Ubuntu 10.10 桌面,并且我可以通过某种方式捕获这些数据。就像推送电子邮件一样。想法?想法?

我知道我可以设置一个 cron 作业来继续检查事件,但是有没有像 PUSH 这样的事情可以做到?

10.10
  • 1 个回答
  • 108 Views
Martin Hope
Ashfame
Asked: 2011-02-28 06:14:04 +0800 CST

Bash 脚本的问题:“声明:未找到”

  • 26

我有一个运行良好的脚本,但是当我今天运行它时,它说declare: not found. 我正在使用 bash shell,并且脚本开头的路径是正确的。

我的脚本中有两个标记的行如下:

declare -a RESPONSE
RESPONSE=($RESULT)

它还说(是出乎意料的,但我想这是因为第一个错误而出现的。值得一提的是,当我直接输入 declare 时工作正常。

declare | grep USER节目

USER=ashfame
USERNAME=ashfame
           values="$SVN_BASH_USERNAME";

那么,这里有什么问题?

bash
  • 6 个回答
  • 46842 Views
Martin Hope
Ashfame
Asked: 2011-02-25 12:42:35 +0800 CST

如何在控制台中检查 Internet 连接?

  • 42

有没有一种简单的方法可以从控制台检查 Internet 连接?我正在尝试在 shell 脚本中玩耍。我似乎的一个想法是检查 HTTP 响应代码以解释 Internet 连接是否工作正常。但我认为必须有简单的方法,而不需要检查一个永不崩溃的网站;)wget --spider http://www.google.co.in/

编辑:似乎有很多因素可以单独检查,好事。我目前的意图是检查我的博客是否已关闭。我已经设置了 cron 每分钟检查一次。为此,我正在检查我博客的 wget --spider 的 HTTP 响应代码。如果不是 200,它会通知我(我相信这会比 ping 它更好,因为该站点可能负载过重,并且可能会超时或响应很晚)。现在昨天,我的互联网出现了一些问题。局域网连接良好,但我无法访问任何站点。所以我不断收到通知,因为脚本在 wget 响应中找不到 200。现在我想确保当我有互联网连接时它会向我显示通知。

因此,检查 DNS 和 LAN 连接对我来说有点矫枉过正,因为我没有那么具体的需要找出它是什么问题。那你建议我怎么做?

这是我的脚本,用于继续检查我的博客的停机时间:

#!/bin/bash

# Sending the output of the wget in a variable and not what wget fetches
RESULT=`wget --spider http://blog.ashfame.com 2>&1`
FLAG=0

# Traverse the string considering it as an array of words
for x in $RESULT; do
    if [ "$x" = '200' ]; then
        FLAG=1 # This means all good
    fi
done

if [ $FLAG -eq '0' ]; then
    # A good point is to check if the internet is working or not
        # Check if we have internet connectivity by some other site
        RESULT=`wget --spider http://www.facebook.com 2>&1`
        for x in $RESULT; do
            if [ "$x" = '200' ]; then
                FLAG=1 # This means we do have internet connectivity and the blog is actually down
            fi
        done

    if [ $FLAG -eq '1' ]; then
        DISPLAY=:0 notify-send -t 2000 -i /home/ashfame/Dropbox/Ubuntu/icons/network-idle.png "Downtime Alert!" "http://blog.ashfame.com/ is down."         
    fi  
fi

exit

这样,我只需要在我的博客响应代码出现问题时检查互联网连接。它有点重(因为我没有使用 ping)但不应该给出任何误报。正确的?另外,我如何每次都随机 ping 到不同的站点,例如 facebook、google、yahoo 等。另外(我试图避免任何 I/O)我可以写入一个日志文件,通过该文件我可以检查停机检查的计数和然后跳过进一步的检查,直到站点关闭或导致更长的检查(10 分钟而不是每分钟)。你怎么看?

command-line
  • 12 个回答
  • 380448 Views
Martin Hope
Ashfame
Asked: 2011-02-11 10:27:01 +0800 CST

即使脚本未设置为可执行文件也可以运行吗?

  • 37

我似乎可以运行脚本(.sh),无论是否将它们设置为可执行文件。那么这到底在哪里重要呢?

scripts
  • 4 个回答
  • 49549 Views
Martin Hope
Ashfame
Asked: 2011-02-11 07:19:29 +0800 CST

为什么这个通配符不能按我预期的方式工作?

  • 11

在我的用户文件夹中,我有D ropbox、D ocuments、Downloads 和d ump之类的文件夹。

ls a*应列出名称以 . 开头的所有文件a。正确的?但是当我给出命令时,它ls d*不仅仅显示dump它,而是显示了转储目录的 ls 。当我给出命令 as时,它会显示以Dls D*开头的所有文件夹的 ls

那么我在理解它时错过了什么?

编辑:附上截图 ls 截图

ls
  • 3 个回答
  • 30122 Views
Martin Hope
Ashfame
Asked: 2011-02-11 06:38:03 +0800 CST

如何 grep 字符串变量的内容?

  • 4

如何在变量中执行grep?我已将 wget 输出存储在一个变量中,我需要从中提取一些字符串。就像变量的内容是

upgrade http://wordpress.org/download/ http://wordpress.org/wordpress-3.0.5.zip 3.0.5 en_US 4.3 4.1.2

我需要检查字符串是否包含单词upgrade,所以我可以做一个简单的 grep 然后检查它的退出状态$?并继续。

我怎样才能得到3.0.5实际上是第四个单词的值?

以及如何实际 grep 变量?

grep
  • 3 个回答
  • 17539 Views
Martin Hope
Ashfame
Asked: 2011-02-11 01:01:01 +0800 CST

获取 wget 输出到变量

  • 23

我该怎么做?我正在尝试这样 RESULT=`wget $URL`

PS - 还有任何推荐的学习 shell 脚本的资源吗?

scripts
  • 3 个回答
  • 76290 Views
Martin Hope
Ashfame
Asked: 2011-02-10 08:58:06 +0800 CST

安装 wine 后如何取回默认的 Ubuntu 字体?

  • 13

我安装了 wine,现在我注意到 facebook 和其他几个我经常使用的网站上的字体不同。那么,如何取回默认的 Ubuntu 字体?

wine
  • 2 个回答
  • 5315 Views
Martin Hope
Ashfame
Asked: 2011-02-10 08:02:58 +0800 CST

不能让愤怒的小鸟在葡萄酒上工作

  • 8

我可以运行 Notepad++ 愤怒的小鸟 exe 不工作。每当我打开 exe 时,我看到我的一个屏幕闪烁了一下(作为线条而不是整个屏幕)并且没有任何反应。有任何想法吗?

编辑:输出wine angrybirds.exe

fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC80.CRT" (8.0.50727.4053)
fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC90.CRT" (9.0.21022.8)
err:module:import_dll Library MSVCP90.dll (which is needed by L"C:\\windows\\system32\\AppUpWrapper.dll") not found
err:module:import_dll Library AppUpWrapper.dll (which is needed by L"C:\\windows\\system32\\angrybirds.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\angrybirds.exe" failed, status c0000135

我认为它甚至没有安装。我手动将这些文件放在文件夹中,但仍然没有任何收获。

编辑:进展

我手动删除了文件MSVCP90.dll,现在这就是我在输出中得到的

fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC80.CRT" (8.0.50727.4053)
fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC90.CRT" (9.0.21022.8)
fixme:heap:HeapSetInformation 0x541000 0 0x32fd48 4
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
EXCEPTION: Failed to open data/scripts/starLimits.lua
wine: Unhandled exception 0x40000015 at address 0x7b880023:0x78b271d0 (thread 0009), starting debugger...
fixme:msvcr90:__clean_type_info_names_internal (0x10267694) stub
fixme:msvcr90:__clean_type_info_names_internal (0x78506644) stub
ashfame@ashfame-desktop:~$ Process of pid=0008 has terminated
No process loaded, cannot execute 'echo Modules:'
Cannot get info on module while no process is loaded
No process loaded, cannot execute 'echo Threads:'
process  tid      prio (all id:s are in hex)
0000000e services.exe
    00000014    0
    00000010    0
    0000000f    0
00000011 winedevice.exe
    00000018    0
    00000016    0
    00000013    0
    00000012    0
00000019 explorer.exe
    0000001a    0
You must be attached to a process to run this command.
No process loaded, cannot execute 'detach'

并且终端挂起(我的意思是我必须按 Ctrl + C 才能退出)。它显示了著名的信息,即它需要关闭。

我不会将 wine 用于其他任何东西,所以如果有人愿意向我提供说明,我准备好对 wine 和所有东西进行全新安装。

解决

根据@DoR 标记的正确答案,我做了一个mv ~/.wine ~/wine.bak然后重新运行游戏并且它有效。所以基本上是wine安装出了点问题。:)

wine
  • 4 个回答
  • 7655 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