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

Cameron Taggart's questions

Martin Hope
Cameron Taggart
Asked: 2019-07-16 20:40:47 +0800 CST

Octave 主目录的 snap 权限

  • 1

我昨天安装了octavesnap,但是当我运行时octave,它没有权限访问我的$HOME. 如何启用权限?

ctaggart@rustasia:~/octave-add$ octave
octave: X11 DISPLAY environment variable not set
octave: disabling GUI features
GNU Octave, version 5.1.0
Copyright (C) 2019 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

warning: load_path: .: Permission denied
octave:1> ls
ls: cannot open directory '.': Permission denied

阅读https://docs.snapcraft.io/interface-management后,我​​认为这会起作用:

sudo snap connect octave:home :home
error: cannot resolve connection, slot snap name is empty

快照的详细信息:

ctaggart@rustasia:~/octave-add$ snap info octave
name:      octave
summary:   Interactive programming environment for numerical computations
publisher: GNU Octave (octave-snap✓)
contact:   snap@octave.org
license:   unset
description: |
  GNU Octave is a high-level interpreted language, primarily intended for
  numerical computations. It provides capabilities for the numerical
  solution of linear and nonlinear problems, and for performing other
  numerical experiments. It also provides extensive graphics capabilities
  for data visualization and manipulation. Octave is normally used through
  its interactive command line interface, but it can also be used to write
  non-interactive programs. The Octave language is quite similar to
  Matlab so that most programs are easily portable.
commands:
  - octave
  - octave.octave-cli
snap-id:      AC5zoejRZUR3QS4V1ZCktZ2yUUz3ubRb
tracking:     beta
refresh-date: yesterday at 05:54 UTC
channels:
  stable:    –                          
  candidate: –                          
  beta:      5.1.0 2019-06-13 (5) 192MB -
  edge:      5.1.0 2019-06-13 (5) 192MB -
installed:   5.1.0            (5) 192MB -

和连接:

ctaggart@rustasia:~/octave-add$ snap connections octave
Interface       Plug                   Slot  Notes
desktop         octave:desktop         -     -
desktop-legacy  octave:desktop-legacy  -     -
home            octave:home            -     -
opengl          octave:opengl          -     -
pulseaudio      octave:pulseaudio      -     -
unity7          octave:unity7          -     -
wayland         octave:wayland         -     -
x11             octave:x11             -     -
permissions octave snap
  • 1 个回答
  • 2743 Views
Martin Hope
Cameron Taggart
Asked: 2016-08-12 12:23:34 +0800 CST

`ip link` em1 = p4p1 吗?

  • 0

我正在尝试使用 Ubuntu 14.04 远程管理戴尔服务器。该服务器有一个 540-BBW Broadcom 5720 QP 1Gb 网络子卡。Broadcom文档 说它有两个 PCIe 插槽,每个插槽有两个以太网端口。

我通读了这些biosdevname文档和节目p<slot>p<ethernet port>。ip link显示 p4p1、p4p2、p6p1 和 p6p2。那讲得通。该卡必须使用插槽 4 和 6。

对我来说没有意义的是ip link还显示 em1、em2、em3、em4。这些被描述为嵌入式网络接口。这些不是上述 PCIe 以太网端口的别名吗?如果它们是别名,我怎么知道哪个对应于另一个?换句话说,em1 是否对应与 p4p1 相同的硬件端口?

cameron@echo:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 44:a8:42:2b:4c:39 brd ff:ff:ff:ff:ff:ff
3: em2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 44:a8:42:2b:4c:3a brd ff:ff:ff:ff:ff:ff
4: em3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 44:a8:42:2b:4c:3b brd ff:ff:ff:ff:ff:ff
5: em4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 44:a8:42:2b:4c:3c brd ff:ff:ff:ff:ff:ff
6: p4p1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether a0:36:9f:12:11:e8 brd ff:ff:ff:ff:ff:ff
7: p4p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether a0:36:9f:12:11:ea brd ff:ff:ff:ff:ff:ff
8: p6p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 00:07:43:33:51:00 brd ff:ff:ff:ff:ff:ff
9: p6p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 00:07:43:33:51:08 brd ff:ff:ff:ff:ff:ff
10: lxcbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether 1e:c4:f7:44:50:cd brd ff:ff:ff:ff:ff:ff
11: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
    link/ether 02:42:f4:3d:2c:be brd ff:ff:ff:ff:ff:ff

更新 1. 如果有帮助,这里是 PCI 信息。可能是我对硬件的看法错了。很高兴知道上面的哪个链接对应于这些 PCI 设备中的哪个。

cameron@echo:~$ lspci -nn | grep Ethernet
01:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
01:00.1 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
02:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
02:00.1 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
04:00.0 Ethernet controller [0200]: Chelsio Communications Inc T520-CR Unified Wire Ethernet Controller [1425:5001]
04:00.1 Ethernet controller [0200]: Chelsio Communications Inc T520-CR Unified Wire Ethernet Controller [1425:5001]
04:00.2 Ethernet controller [0200]: Chelsio Communications Inc T520-CR Unified Wire Ethernet Controller [1425:5001]
04:00.3 Ethernet controller [0200]: Chelsio Communications Inc T520-CR Unified Wire Ethernet Controller [1425:5001]
04:00.4 Ethernet controller [0200]: Chelsio Communications Inc T520-CR Unified Wire Ethernet Controller [1425:5401]
82:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 [8086:1528] (rev 01)
82:00.1 Ethernet controller [0200]: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 [8086:1528] (rev 01)
networking
  • 1 个回答
  • 705 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