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

softwarematter's questions

Martin Hope
softwarematter
Asked: 2011-04-10 01:37:05 +0800 CST

在按键时运行自定义 shell 脚本

  • 1

我为自定义操作创建了一个运行良好的 shell 脚本。我想mon.sh在按下时运行这个 .sh 文件 () Alt+F15。

我做了以下事情:在 gconf-editor 下apps>metacity>keybinding_commands,command_1用值编辑

"/home/administrator/My Scripts/mon.sh" (也尝试不带引号)

在apps>metacity>global_keybindings,run_command_1用值编辑

<Alt>F15

但是按 Alt+F15 时脚本没有执行

我错过了什么?

gnome
  • 2 个回答
  • 5658 Views
Martin Hope
softwarematter
Asked: 2011-04-09 09:29:18 +0800 CST

如何将外接显示器设置为默认值?

  • 6

我已通过 HDMI 将外接显示器连接到笔记本电脑。目前,当我选择“两者中的相同图像”时,我的桌面要么扩展到外​​接显示器(具有本机分辨率),要么在两者上都具有低分辨率。

如何确保默认使用外接显示器而笔记本电脑显示器只是空白。

我通过执行以下操作生成了 xorg.conf 文件:

X-配置

以下是我的用户文件夹中生成的 xorg.conf.new 文件的内容。我应该把它复制到任何地方吗?我应该编辑内容吗?

Section "ServerLayout"
    Identifier      "X.org Configured"
    Screen          0 "Screen0" 0 0     
    InputDevice     "Mouse0" "CorePointer"
    InputDevice     "Keyboard0" "CoreKeyboard" 
EndSection

Section "Files"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/X11/misc"
    FontPath    "/usr/share/fonts/X11/cyrillic"
    FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/Type1"
    FontPath    "/usr/share/fonts/X11/100dpi"
    FontPath    "/usr/share/fonts/X11/75dpi"
    FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    FontPath        "built-ins" 
EndSection

Section "Module"
    Load    "glx"
    Load    "dri2"
    Load    "record"
    Load    "extmod"
    Load    "dbe"
    Load    "dri" 
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver          "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver          "mouse"
    Option      "Protocol" "auto"
    Option          "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7" 
EndSection

Section "Monitor"
    Identifier      "Monitor0"
    VendorName      "Monitor Vendor"
    ModelName       "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<fHz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"               # [<bool>]
        #Option     "SWcursor"              # [<bool>]
        #Option     "ColorKey"              # <i>
        #Option     "CacheLines"            # <i>
        #Option     "Dac6Bit"               # [<bool>]
        #Option     "DRI"                   # [<bool>]
        #Option     "NoDDC"                 # [<bool>]
        #Option     "ShowCache"             # [<bool>]
        #Option     "XvMCSurfaces"          # <i>
        #Option     "PageFlip"              # [<bool>]  Identifier  "Card0"
    Driver      "intel"     BusID      
"PCI:0:2:0" EndSection

Section "Screen"
    Identifier  "Screen0"
    Device      "Card0"
    Monitor     "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
 EndSection
xorg
  • 1 个回答
  • 1470 Views
Martin Hope
softwarematter
Asked: 2010-11-29 06:01:50 +0800 CST

无法在 Windows 7 和 Ubuntu 之间共享文件夹(在 VMWare 中运行)

  • 1

我已经在 Ubuntu(来宾操作系统)中安装了vmware 工具箱。我试图从虚拟机的设置中共享一个位置。但是当我单击确定时,在主机(Win 7)操作系统中抛出以下错误。

无法更新运行时文件夹共享状态:未知错误。

该位置未显示在/mnt/
可能是什么原因?

PS 我vmhgfs的 Ubuntu 虚拟机中正在运行进程。

我正在关注howtogeek.com的how-to-share-folders-with-your-ubuntu-virtual-machine-guest方法

vmware windows-7 shared-folders
  • 1 个回答
  • 7950 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