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

BlandCorporation's questions

Martin Hope
BlandCorporation
Asked: 2024-04-10 00:59:42 +0800 CST

GNOME 鼠标指针在可见光标位置和实际单击位置之间未对齐/偏移

  • 7

我不知道如何描述这个问题,所以欢迎编辑建议。

有时,在我使用 Ubuntu 22.04 和 X11 安装 GNOME 时,鼠标单击位置和鼠标指针位置会偏移或未对齐。我在 Firefox 和 Nautilus 中看到了效果,目前我唯一的解决方案就是重新启动。我希望对问题的原因有所了解,或许还能找到解决问题的方法。

这是一个视频,展示了我所看到的一些内容:

https://imgchest.com/p/dl7pqnnw8yo

在视频中,您可以看到打开的 Firefox 窗口。我右键单击网页打开上下文菜单,然后鼠标可见指针与鼠标实际单击位置似乎开始出现偏差。当可见指针在窗口右侧移动时,实际点击位置似乎重置为窗口的左上角,并且可以通过左上角不同 Firefox 按钮的悬停反应看到。

gnome
  • 1 个回答
  • 64 Views
Martin Hope
BlandCorporation
Asked: 2020-07-19 08:32:02 +0800 CST

在图形文件浏览器中,通过兼容的应用程序搜索文件的方法是什么?

  • 2

在 Nautilus 中,可以使用搜索功能来搜索文件名的一部分,例如“.mkv”或“.jpg”。

假设我有一个媒体目录,其中包含所有不同格式的图像文件和视频文件。如何使用 GUI 文件浏览器搜索视频文件(如 .ogg、.mkv、.mp4 等)或适合由视频播放器应用程序默认打开的文件?

nautilus gui search
  • 1 个回答
  • 49 Views
Martin Hope
BlandCorporation
Asked: 2020-01-29 06:25:48 +0800 CST

使用 Mutiny 外观配置的 Ubuntu MATE 坞站中的启动器在重新启动时消失。如何解决这个问题?

  • 1

正如标题所说。我有一个 Ubuntu 18.04 LTS 安装,运行 MATE 桌面环境,具有 Mutiny 外观配置(样式为 Unity7)。我可以在扩展坞中设置启动器,但是当我重新启动时它们都消失了。如何解决这个问题?

dock mate mutiny
  • 1 个回答
  • 210 Views
Martin Hope
BlandCorporation
Asked: 2019-11-12 18:00:17 +0800 CST

在 18.04 LTS 上,如何将 TrackPoint 驱动程序从 libinput 更改回 Synaptics?

  • 2

我想将 TrackPoint 驱动程序从 libinput 更改为 Synaptics。我正在使用 ThinkPad X390,我尝试了最新版本的 libinput 驱动程序,我试图找出为什么 libinput 驱动程序的行为方式让我对 TrackPoint 感到不愉快,我现在想改回 Synaptics,直到libinput 进一步发展。我已经验证 TrackPoint 似乎在 16.04 上运行良好,它具有 Synaptics 驱动程序。

如何在 Ubuntu 18.04 LTS 上从 libinput 切换到 Synaptics?

我已经运行了以下内容:

sudo apt install xserver-xorg-input-synaptics-hwe-18.04 xserver-xorg-input-evdev-hwe-18.04
sudo apt remove xserver-xorg-input-libinput-hwe-18.04
synaptics libinput 18.04
  • 1 个回答
  • 941 Views
Martin Hope
BlandCorporation
Asked: 2019-09-11 03:26:37 +0800 CST

如何将一些以 ASCII 0 和 1 表示的二进制文件转换为二进制文件?

  • 0

我有一个 PDF 表示为 0 和 1 的 ASCII 文件,按以下方式生成:

filepath="Manna.pdf"
data="$((echo obase=2; hexdump -ve'/1 "%u\n"' "${filepath}") | bc | xargs printf %08i)"
inputText="$(echo "${inputText}" | sed 's/\(.*\)/\L\1/')"
echo "${data}" > Manna.txt

如何将其转换回 PDF?

bash ascii binary bc
  • 1 个回答
  • 226 Views
Martin Hope
BlandCorporation
Asked: 2019-08-27 04:32:27 +0800 CST

如何将 TrackPoint 驱动程序从默认的 libinput 更改为较新的 libinput 或改回 Synaptics?

  • 1

这款配备 Ubuntu 18.04 LTS 的 ThinkPad X390 上的 TrackPoint 动作跳动、滞后,无法用于精细的小动作。我已经确认这可能是一个软件问题,因为我已经用 TrackPoint 测试了一个外部键盘,它在 16.04 上很好,但在 18.04 上显示相同的问题。

我可以看到网上的评论表明将 libinput 切换到较新版本会有所帮助,而从 libinput 切换到 Synaptics 会有所帮助。后者怎么做?我可以从这里看到安装的可能性xserver-xorg-input-synaptics,但是,当我这样做时,我遇到了问题:

$ sudo apt install xserver-xorg-input-synaptics
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 xserver-xorg-input-synaptics : Depends: xserver-xorg-core (>= 2:1.18.99.901)
E: Unable to correct problems, you have held broken packages.

$ sudo apt install xserver-xorg-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libunity-gtk2-parser0 libunity-gtk3-parser0 libxatracker2 unity-gtk-module-common xinput
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  xfonts-100dpi | xfonts-75dpi
The following packages will be REMOVED
  ubuntu-desktop ubuntu-mate-core ubuntu-mate-desktop ubuntu-unity-desktop xorg
  xserver-xorg-core-hwe-18.04 xserver-xorg-hwe-18.04 xserver-xorg-input-all-hwe-18.04
  xserver-xorg-input-libinput-hwe-18.04 xserver-xorg-input-synaptics-hwe-18.04
  xserver-xorg-input-wacom-hwe-18.04 xserver-xorg-video-all-hwe-18.04
  xserver-xorg-video-amdgpu-hwe-18.04 xserver-xorg-video-ati-hwe-18.04
  xserver-xorg-video-fbdev-hwe-18.04 xserver-xorg-video-intel-hwe-18.04
  xserver-xorg-video-nouveau-hwe-18.04 xserver-xorg-video-qxl-hwe-18.04
  xserver-xorg-video-radeon-hwe-18.04 xserver-xorg-video-vesa-hwe-18.04
  xserver-xorg-video-vmware-hwe-18.04
The following NEW packages will be installed
  xserver-xorg-core
0 to upgrade, 1 to newly install, 21 to remove and 11 not to upgrade.
Need to get 1,351 kB of archives.
After this operation, 5,808 kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

如何进行?


编辑:根据@Pilot6 here的建议,我安装了xserver-xorg-input-synaptics-hwe-18.04(似乎已经成功)并检查了目录中的文件/usr/share/X11/xorg.conf.d:

10-amdgpu.conf
10-quirks.conf
10-radeon.conf
40-libinput.conf
51-synaptics-quirks.conf
70-synaptics.conf
70-wacom.conf

我删除了文件40-libinput.conf并重新启动,希望 Synaptics 驱动程序能够启动。它没有,导致键盘和 TrackPoint(和触摸板)没有响应。幸运的是,触摸屏和屏幕键盘可以替换文件40-libinput.conf。我不确定下一步该怎么做。

内容40-libinput.conf如下:

# Match on all types of devices but joysticks
Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

内容70-synaptics.conf如下:

# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
#   Option "OptionName" "value"
#
Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
      MatchDevicePath "/dev/input/event*"
EndSection

Section "InputClass"
        Identifier "touchpad ignore duplicates"
        MatchIsTouchpad "on"
        MatchOS "Linux"
        MatchDevicePath "/dev/input/mouse*"
        Option "Ignore" "on"
EndSection

# This option enables the bottom right corner to be a right button on clickpads
# and the right and middle top areas to be right / middle buttons on clickpads
# with a top button area.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Default clickpad buttons"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
        Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
EndSection

# This option disables software buttons on Apple touchpads.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Disable clickpad buttons on Apple touchpads"
        MatchProduct "Apple|bcm5974"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSection
synaptics trackpoint libinput 18.04
  • 2 个回答
  • 2004 Views
Martin Hope
BlandCorporation
Asked: 2019-07-05 13:06:40 +0800 CST

录屏软件如何录制本地人(麦克风上)和远程人(扬声器上)的通话音频?

  • 0

我使用 SimpleScreenRecorder 从 Jitsi 的 Firefox 屏幕记录我们的小组会议。我使用 USB 耳机,想同时录制我在耳机麦克风中所说的音频和从我的耳机耳机中发出的其他人所说的音频。我不知道如何执行此操作,并希望获得有关音频配置的指导,以使我能够执行此操作或其他一些选项。

我正在使用的程序可以通过以下方式安装:

sudo add-apt-repository -y ppa:maarten-baert/simplescreenrecorder
sudo apt update
sudo apt -y install simplescreenrecorder

我查看了使用pavucontrol. 使用耳机麦克风录制时,使用的是“ Clear Chat Comfort USB Headset Analog Mono ”流。使用耳机的耳机播放某些内容时,使用的是“ Clear Chat Comfort USB Headset Analog Stereo ”流。我看到标记为“监视器”等的各种流没有反应。

是否有一些我没有考虑或实施的音频配置?什么可能是解决这个问题?

sound pulseaudio desktop-recording pavucontrol
  • 1 个回答
  • 98 Views
Martin Hope
BlandCorporation
Asked: 2019-02-12 18:04:48 +0800 CST

我怎么能在 Ubuntu 16.04 LTS 上安装 Qt5?

  • 8

我有很多需要 Qt4 的程序,我需要安装需要 Qt5 的程序。当我尝试安装 Qt5 时,事情开始变得狡猾,然后变得精神错乱。我请求友好的指导。您可能最容易直接查看终端输出:

$ sudo apt update
Ign:1 http://linux.dropbox.com/ubuntu wily InRelease
Ign:2 http://repo.ubports.com xenial InRelease                                                                  
Hit:3 http://linux.dropbox.com/ubuntu wily Release                                                              
Hit:4 http://gb.archive.ubuntu.com/ubuntu xenial InRelease                                                      
Ign:5 http://repo.ubports.com xenial_-_mir26 InRelease                                                          
Hit:6 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial InRelease                                           
Hit:8 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease                                              
Hit:9 http://repo.ubports.com xenial Release                                                                    
Hit:10 http://security.ubuntu.com/ubuntu xenial-security InRelease                                              
Hit:11 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease                                           
Hit:12 http://repo.ubports.com xenial_-_mir26 Release                                          
Hit:13 http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu xenial InRelease
Hit:14 https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease          
Hit:15 http://ppa.launchpad.net/nextcloud-devs/client/ubuntu xenial InRelease
Hit:17 http://ppa.launchpad.net/numix/ppa/ubuntu xenial InRelease             
Hit:19 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu xenial InRelease
Hit:20 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease
Hit:21 https://updates.signal.org/desktop/apt xenial InRelease
Hit:22 https://riot.im/packages/debian xenial InRelease
Reading package lists... Done 
Building dependency tree       
Reading state information... Done
23 packages can be upgraded. Run 'apt list --upgradable' to see them.

$ sudo apt install qt5-default
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 protonmail-bridge : Depends: libqt5designer5 but it is not going to be installed
                     Depends: libqt5multimediawidgets5 but it is not going to be installed
 qt5-default : Depends: qtbase5-dev
               Depends: qtchooser (>= 55-gc9562a1-1~)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

$ sudo apt install qtbase5-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 protonmail-bridge : Depends: qt5-default but it is not going to be installed
                     Depends: libqt5designer5 but it is not going to be installed
                     Depends: libqt5multimediawidgets5 but it is not going to be installed
 qtbase5-dev : Depends: libgles2-mesa-dev but it is not going to be installed or
                        libgles2-dev but it is not installable
               Depends: libqt5concurrent5 (= 5.9.5+dfsg-0ubports2) but it is not going to be installed
               Depends: qt5-qmake (= 5.9.5+dfsg-0ubports2)
               Depends: qtbase5-dev-tools (= 5.9.5+dfsg-0ubports2)
               Depends: qtchooser
               Recommends: libqt5opengl5-dev (= 5.9.5+dfsg-0ubports2)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  audacity-data libflac++6v5 liblilv-0-0 libportsmf0v5 libqscintilla2-l10n libqt4-declarative libqt4-network
  libqt4-script libqt4-sql libqt4-sql-mysql libqt4-sql-sqlite libqt4-xml libqt4-xmlpatterns libqtcore4
  libqtdbus4 libqtgui4 libsbsms10 libserd-0-0 libsord-0-0 libsratom-0-0 libunibreak1 libvamp-hostsdk3v5
  libzlcore-data libzlcore0.13 libzltext-data libzltext0.13 linux-headers-4.15.0-42
  linux-headers-4.15.0-42-generic linux-image-4.15.0-42-generic linux-modules-4.15.0-42-generic
  linux-modules-extra-4.15.0-42-generic simplescreenrecorder-lib sqliteman-doc
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
  audacity fbreader libqscintilla2-12v5 libqt4-designer libqt4-opengl libqt4-svg libsuil-0-0 libzlui-qt4
  protonmail-bridge simplescreenrecorder sqliteman vidyodesktop
0 to upgrade, 0 to newly install, 12 to remove and 23 not to upgrade.
1 not fully installed or removed.
After this operation, 45.6 MB disk space will be freed.
Do you want to continue? [Y/n] n

我尝试的最终建议将删除我需要的一些核心内容,所以这不是一个选择。我该如何继续,好心的陌生人?

16.04 qt5 pyqt5
  • 1 个回答
  • 28969 Views
Martin Hope
BlandCorporation
Asked: 2019-01-05 06:50:56 +0800 CST

尝试在 Python 3.7 中运行 Jupyter 时出现关于异步的 SyntaxError

  • 7

在尝试在 Python 3.7 上启动 Jupyter 时,我观察到以下情况:

$ jupyter notebook
Traceback (most recent call last):
  File "/usr/local/bin/jupyter-notebook", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/jupyter_core/application.py", line 266, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/traitlets/config/application.py", line 657, in launch_instance
    app.initialize(argv)
  File "<decorator-gen-7>", line 2, in initialize
  File "/usr/local/lib/python3.7/dist-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/notebook/notebookapp.py", line 1629, in initialize
    self.init_webapp()
  File "/usr/local/lib/python3.7/dist-packages/notebook/notebookapp.py", line 1379, in init_webapp
    self.jinja_environment_options,
  File "/usr/local/lib/python3.7/dist-packages/notebook/notebookapp.py", line 158, in __init__
    default_url, settings_overrides, jinja_env_options)
  File "/usr/local/lib/python3.7/dist-packages/notebook/notebookapp.py", line 270, in init_settings
    nbextensions_path=jupyter_app.nbextensions_path,
  File "/usr/local/lib/python3.7/dist-packages/notebook/notebookapp.py", line 1066, in nbextensions_path
    from IPython.paths import get_ipython_dir
  File "/usr/local/lib/python3.7/dist-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/usr/local/lib/python3.7/dist-packages/IPython/core/application.py", line 25, in <module>
    from IPython.core import release, crashhandler
  File "/usr/local/lib/python3.7/dist-packages/IPython/core/crashhandler.py", line 27, in <module>
    from IPython.core import ultratb
  File "/usr/local/lib/python3.7/dist-packages/IPython/core/ultratb.py", line 119, in <module>
    from IPython.utils import path as util_path
  File "/usr/local/lib/python3.7/dist-packages/IPython/utils/path.py", line 17, in <module>
    from IPython.utils.process import system
  File "/usr/local/lib/python3.7/dist-packages/IPython/utils/process.py", line 19, in <module>
    from ._process_posix import system, getoutput, arg_split, check_pid
  File "/usr/local/lib/python3.7/dist-packages/IPython/utils/_process_posix.py", line 23, in <module>
    import pexpect
  File "/usr/lib/python3/dist-packages/pexpect/__init__.py", line 75, in <module>
    from .pty_spawn import spawn, spawnu
  File "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 15, in <module>
    from .spawnbase import SpawnBase
  File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 218
    def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
                                                                   ^
SyntaxError: invalid syntax

我已经安装python3.7-distutils(似乎是 feature pexpect)并且我已经使用 重新安装了 Jupyter pip3,但我仍然看到这个错误。我还卸载并重新安装了以下软件包:

python3.7 python3.7-dev python3.7-distutils python3.7-tk

应该做什么?

我看到对此修复程序的引用,但假设它是一个修复程序,不知道如何在此 16.04 LTS 安装上启动并运行它。


编辑:在 Python 3.7 中导入pexpect时,我得到了同样的结果:

>>> import pexpect
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/pexpect/__init__.py", line 75, in <module>
    from .pty_spawn import spawn, spawnu
  File "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 15, in <module>
    from .spawnbase import SpawnBase
  File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 218
    def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
                                                                   ^
SyntaxError: invalid syntax
python3 16.04 jupyter
  • 5 个回答
  • 7287 Views
Martin Hope
BlandCorporation
Asked: 2018-08-30 07:56:57 +0800 CST

如何像Ubuntu通过双击ISO文件挂载ISO一样在终端中挂载ISO?[复制]

  • 4
这个问题在这里已经有了答案:
如何在没有root的情况下挂载图像文件? (4 个回答)
3年前关闭。

在 Ubuntu 16.04 中,如果我双击一个 ISO 文件,Ubuntu 会获取卷 ID,然后将该 ISO 挂载到/media/$USER/以卷 ID 作为目录名称的目录中。它无需任何根权限请求即可执行此操作。

我想在终端中复制这种行为。我不想先解析 的输出isoinfo -d -i data.iso,然后授予用户 root 权限,以便他们运行mkdir,/media/然后运行mount命令等。我想复制 Ubuntu 实际在做什么,我想复制它而不问root 权限的用户。

如何做到这一点?

mount iso
  • 1 个回答
  • 58 Views
Martin Hope
BlandCorporation
Asked: 2018-05-08 09:55:47 +0800 CST

如何进行现场分发以访问 DVD?

  • 0

我想备份我的一张 DVD(使用dd)。我正在使用实时 USB 发行版 (18.04),因为我正在使用其他人的具有 DVD 驱动器的计算机,并且我不想覆盖他们的东西。我在网上看到的所有说明似乎都建议从安装开始libdvd-pkg,但是当我尝试这样做时,出现以下错误:

E: Unable to locate package libdvd-pkg

我怎样才能安装它(以及使用之前需要的任何其他东西dd)?

live-usb dvd 18.04
  • 1 个回答
  • 194 Views
Martin Hope
BlandCorporation
Asked: 2018-02-19 10:24:45 +0800 CST

您能推荐一个可以通过按一个键保存图像的全屏图像查看器吗?

  • 1

我有一个工作流程,我需要全屏检查大量 PNG 图像。当我看到感兴趣的图像时,我需要将该 PNG 图像保存到另一个目录。现在我正在使用 GNOME 之眼,但是我需要为我的工作流程与该程序进行的交互次数令人恼火。

在 Eog 中,我全屏打开图像,然后使用箭头键移动到下一个图像。如果我需要保存图像,我按CtrlShifts,按Enter然后必须将 Eog 设置回全屏 ( FnF11FnF11),因为保存操作会将其更改为窗口。而不是目前用于此的 8 次击键,我想要一个击键来完成这些事情。

我试过编辑~/.config/eog/accels文件,但它似乎没有做任何事情。是否有可以满足我需要的图像查看器/保护程序?

software-recommendation fullscreen eog
  • 1 个回答
  • 293 Views
Martin Hope
BlandCorporation
Asked: 2017-10-28 07:09:01 +0800 CST

应该如何删除 Flatpak 应用程序的文件?

  • 9

我使用以下形式的命令安装了一个应用程序:

flatpak --user install -y --app --bundle "$DIR/Suphead.flatpak"

我使用以下形式的命令将其卸载:

flatpak --user uninstall org.flatpaklinux.Suphead

但是,卸载后,我仍然在系统上看到许多与应用程序关联的文件,这些文件位于以下所有目录中:

~/.local/share/flatpak/repo/refs/remotes/org.flatpaklinux.Suphead-origin
~/.local/share/flatpak-linux/Suphead
~/.local/share/flatpak-linux/Suphead/drive_c
~/.var/app/org.flatpaklinux.Suphead

Flatpak 不应该删除这些目录及其内容吗?rm -rf我应该对它们做一个吗?

flatpak
  • 2 个回答
  • 13511 Views
Martin Hope
BlandCorporation
Asked: 2017-03-22 04:19:12 +0800 CST

在 Ubuntu 中最接近 Melodyne 的是什么?

  • 2

Melodyne 的第一个版本发布已经超过 15 年了。存在哪些 Linux 软件等价物?我需要能够让我在音频中移动音符的软件,以便它们改变音高并改变它们的宽度以改变它们的速度。

https://www.youtube.com/watch?v=jFCjv4_jqAY&t=30s

sound
  • 1 个回答
  • 2797 Views
Martin Hope
BlandCorporation
Asked: 2017-03-15 10:26:22 +0800 CST

应该如何在 Ubuntu 16.10 中设置来自 CUDA 的 OpenCL?

  • 3

我正在尝试编译一个使用 OpenCL、CUDA 和 GPU 的程序。我尝试在我的 Ubuntu 16.10 GTX 1070 机器上安装 Nvidia 驱动程序、CUDA、cuDNN、GCC 和 OpenCL,并且在大多数情况下,一切似乎都在工作。但是,我仍然不确定如何设置 OpenCL 以便编译程序。

乍一看,我正在尝试编译oclvanitygen,这是一个用于生成比特币钱包的 OpenCL 程序。当我尝试编译它时遇到了困难。

>git clone https://github.com/samr7/vanitygen.git
>cd vanitygen
>gcc -o  oclvanitygen oclvanitygen.c -lOpenCL
/tmp/ccPaWgka.o: In function `main':
oclvanitygen.c:(.text+0x50c): undefined reference to `vg_exec_context_new_key'
oclvanitygen.c:(.text+0x529): undefined reference to `EC_KEY_get0_group'
oclvanitygen.c:(.text+0x53e): undefined reference to `EC_POINT_hex2point'
oclvanitygen.c:(.text+0x554): undefined reference to `EC_KEY_free'
oclvanitygen.c:(.text+0x815): undefined reference to `RAND_load_file'
oclvanitygen.c:(.text+0x894): undefined reference to `vg_regex_context_new'
oclvanitygen.c:(.text+0x8b8): undefined reference to `vg_prefix_context_new'
oclvanitygen.c:(.text+0x935): undefined reference to `vg_output_match_console'
oclvanitygen.c:(.text+0x947): undefined reference to `vg_output_timing_console'
oclvanitygen.c:(.text+0x9d4): undefined reference to `vg_context_add_patterns'
oclvanitygen.c:(.text+0xa28): undefined reference to `vg_read_file'
oclvanitygen.c:(.text+0xa9c): undefined reference to `vg_prefix_context_set_case_insensitive'
oclvanitygen.c:(.text+0xabb): undefined reference to `vg_context_add_patterns'
oclvanitygen.c:(.text+0xb37): undefined reference to `vg_read_password'
oclvanitygen.c:(.text+0xb86): undefined reference to `vg_check_password_complexity'
oclvanitygen.c:(.text+0xc33): undefined reference to `vg_ocl_context_new_from_devstr'
oclvanitygen.c:(.text+0xcdc): undefined reference to `vg_ocl_context_new'
oclvanitygen.c:(.text+0xd06): undefined reference to `vg_ocl_enumerate_devices'
oclvanitygen.c:(.text+0xd1c): undefined reference to `vg_context_start_threads'
oclvanitygen.c:(.text+0xd41): undefined reference to `vg_context_wait_for_completion'
oclvanitygen.c:(.text+0xd50): undefined reference to `vg_ocl_context_free'
collect2: error: ld returned 1 exit status

可能出了什么问题,我该如何解决?

下面列出了我如何设置系统的具体细节。我猜在让编译器访问 OpenCL 所需的内容方面,我做错了一些步骤。


我安装了Nvidia驱动程序。

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install            \
    nvidia-367              \
    nvidia-prime            \
    nvidia-modprobe         \
    nvidia-opencl-dev

我安装了 CUDA。

sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb
sudo apt-get update
sudo apt-get install cuda

这将 CUDA 安装在目录/usr/local/cuda-8.0中。/usr/local/cuda-8.0/bin我在 PATH 环境变量中包含了目录。

export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}

我安装了 cuDNN。

tar -xvf cudnn-8.0-linux-x64-v5.1.tgz

cuDNN 存档包含以下内容:

cuda/include/cudnn.h
cuda/lib64/libcudnn.so
cuda/lib64/libcudnn.so.5
cuda/lib64/libcudnn.so.5.1.10
cuda/lib64/libcudnn_static.a

我将其中一些文件复制到其他目录,因为互联网告诉我这样做。

sudo cp cuda/include/cudnn.h /usr/local/cuda-8.0/include/
sudo cp cuda/lib64/* /usr/local/cuda-8.0/lib64/

我为 CUDA 安装并更改为 GCC 4.9。

sudo apt-get install gcc-4.9 g++-4.9

ln -fs /usr/bin/gcc-4.9 /usr/bin/gcc
ln -fs /usr/bin/g++-4.9 /usr/bin/g++

OpenCL 包含在 CUDA 中。我在目录中创建了指向 Nvidia OpenCL 标头的符号链接/usr/include。

sudo ln -s /usr/include/nvidia-375/CL /usr/include

我也链接到已编译的 OpenCL 库文件:

sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/local/lib/libOpenCL.so
nvidia
  • 1 个回答
  • 1142 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

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助
subwaysurfers
my femboy roommate

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve