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

Little Mitch's questions

Martin Hope
Little Mitch
Asked: 2018-12-15 23:14:24 +0800 CST

虚拟机设置在启动时自动运行虚拟机

  • 3

我仔细遵循了这一点:如何在引导时自动启动虚拟机?

它“破坏”了 VirtualBox。我必须删除自动启动的东西并运行 VirtualBox 在错误消息中推荐的重新配置命令,以使 VirtualBox 再次工作。

创建文件 /etc/default/virtualbox

# virtualbox defaults file
VBOXAUTOSTART_DB=/etc/vbox
VBOXAUTOSTART_CONFIG=/etc/vbox/vbox.cfg

这是 /etc/vbox/vbox.cfg:

# Default policy is to deny starting a VM, the other option is "allow".
default_policy = deny
# Create an entry for each user allowed to run autostart
USERNAME = {
allow = true
}

然后:

sudo chgrp vboxusers /etc/vbox
sudo chmod 1775 /etc/vbox

sudo usermod -a -G vboxusers USERNAME

阅读 /etc/vbox/vbox.cfg 似乎有问题

:~$ ls -l /etc/vbox
total 8
-rw------- 1 USERNAME USERNAME   1 Dec 14 01:37 USERNAME.start
-rw-r--r-- 1 root     root     179 Dec 14 01:31 vbox.cfg

下一个:

VBoxManage setproperty autostartdbpath /etc/vbox
VBoxManage modifyvm <uuid|vmname> --autostart-enabled on

这在 /etc/vbox 目录中创建了 USERNAME.start 文件 - 尽管该文件似乎是空的。

然后错误:

● vboxautostart-service.service
Loaded: loaded (/usr/lib/virtualbox/vboxautostart-service.sh; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-12-14 01:41:57 CST; 27s ago
Process: 4002 ExecStart=/usr/lib/virtualbox/vboxautostart-service.sh start (code=exited, status=2)

Dec 14 01:41:57 HOST systemd[1]: Starting vboxautostart-service.service...
Dec 14 01:41:57 HOST vboxautostart-service.sh[4002]: /usr/lib/virtualbox/vboxautostart-service.sh: 2:/etc/vbox/vbox.cfg: default_policy: not found
Dec 14 01:41:57 HOST vboxautostart-service.sh[4002]: /usr/lib/virtualbox/vboxautostart-service.sh: 4: /etc/vbox/vbox.cfg: USERNAME: not found
Dec 14 01:41:57 HOST vboxautostart-service.sh[4002]: /usr/lib/virtualbox/vboxautostart-service.sh: 5: /etc/vbox/vbox.cfg: allow: not found
Dec 14 01:41:57 HOST vboxautostart-service.sh[4002]: /usr/lib/virtualbox/vboxautostart-service.sh: 6: /etc/vbox/vbox.cfg: Syntax error: "}" unexpected
Dec 14 01:41:57 HOST systemd[1]: vboxautostart-service.service: Control process exited, code=exited status=2
Dec 14 01:41:57 HOST systemd[1]: vboxautostart-service.service: Failed with result 'exit-code'.
Dec 14 01:41:57 HOST systemd[1]: Failed to start vboxautostart-service.service.
virtualbox autostart boot 18.04
  • 1 个回答
  • 7868 Views
Martin Hope
Little Mitch
Asked: 2018-11-15 10:57:43 +0800 CST

Samba 网络 rpc 权限授予 SeDiskOperatorPrivilege 失败

  • 0

Ubuntu 服务器 18.04

安装/配置的 Samba

成功加入域

可以浏览服务器并查看“打印机共享”——从 Windows PC >net view \servername 列出打印机共享

通过 kinit、klist 确认 Kerberos 功能

服务器名称列在 Active Directory 用户和计算机中。

:/$ net rpc rights grant "DOMAIN\Domain Admins" SeDiskOperatorPrivilege -U 
"DOMAIN\administrator"
Enter DOMAIN\administrator's password:
Bad SMB2 signature for message
[0000] 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00   ........ ........
[0000] D8 29 57 39 05 18 72 BE   62 9E 74 58 90 88 FF 57   .)W9..r. b.tX...W
Could not connect to server 127.0.0.1
Connection failed: NT_STATUS_ACCESS_DENIED

smb.conf:

[global]
dns forwarder = my.DNS.ip.address
dns proxy = No
log file = /var/log/samba/log.%m
logging = syslog@1 /var/log/samba/log.%m
map to guest = Bad User
max log size = 1000
panic action = /usr/share/samba/panic-action %d
realm = DOMAIN.COM
security = ADS
server role = member server
server string = %h server (Samba, Ubuntu)
template shell = /bin/bash
usershare allow guests = Yes
winbind enum groups = Yes
winbind enum users = Yes
winbind nss info = rfc2307
winbind use default domain = Yes
workgroup = DOMAIN
idmap config DOMAIN : range = 50000-1000000
idmap config DOMAIN : backend = ad
idmap config * : range = 3000-7999
idmap config * : backend = tbd
map acl inherit = Yes
store dos attributes = Yes
vfs objects = acl_xattr

[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
server permissions samba 18.04
  • 1 个回答
  • 5771 Views
Martin Hope
Little Mitch
Asked: 2018-11-13 22:01:12 +0800 CST

在 ubbuntu 服务器上安装 ubuntu-desktop 并且: startx 需要 sudo startx

  • 0

sudo startx 会工作,但 startx 不会。

我可以在根目录中看到 .Xauthority 文件,但 man 说它应该位于 /run/gdm

我知道问题与权限和文件位置有关,但我找不到将默认配置更改为不在 // 目录中的位置。我将尝试使用我在 x.org 上找到的文档在 custom.conf 文件中添加设置

:/$ 开始

xauth: 锁定授权文件超时 //.Xauthority

(EE)

致命的服务器错误:

(EE) 无法打开日志文件“//.local/share/xorg/xorg.0.log”

(EE)

(EE)

请在http://wiki.x.org咨询 The X.org Foundation 支持以获取帮助

(EE)

xinit:放弃

xinit 无法连接到 X 服务器:连接被拒绝

xinit:服务器错误

xauth: 锁定授权文件超时 //.xauthority

server xorg gdm 18.04
  • 1 个回答
  • 708 Views
Martin Hope
Little Mitch
Asked: 2018-11-12 21:16:18 +0800 CST

包 krb5-kdc 不可用[重复]

  • 0
这个问题在这里已经有了答案:
尝试使用 APT 安装软件包时“无法找到软件包” 7 个答案
3年前关闭。

Ubuntu 服务器 18.04 试过:

~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-security/main Translation-en [78.1 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [161 kB]
Fetched 927 kB in 1s (628 kB/s)
Reading package lists... Done

:~$ sudo apt-get install krb5-kdc krb5-admin-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package krb5-kdc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'krb5-kdc' has no installation candidate
E: Unable to locate package krb5-admin-server

Ubuntu 文档有:

sudo apt install krb5-kdc krb5-admin-server

结果相同。

有一篇关于 Ubuntu 14 的旧帖子...更新解决了他的问题,而不是我的问题。

software-installation updates apt kerberos 18.04
  • 1 个回答
  • 1940 Views
Martin Hope
Little Mitch
Asked: 2018-11-11 20:45:46 +0800 CST

Ubuntu 18.04 服务器 - 禁用、卸载、删除、根除 ubuntu 桌面!

  • 0

在你告诉我这是一个重复的查询之前,我称之为horse hockey!

我已经实施了每条搜索到的评论来破坏这台服务器上的 ubuntu 桌面,到目前为止,绝对没有办法做到这一点。

现在,我很高兴被证明是一个 Ubuntu/Linux 新手……

我已经尝试了所有形式的建议......并且gdm几乎完全死了,但它有来生。

我运行命令并且必须在 Ctrl Alt T 终端中执行它,然后如果我停止 gdm 服务,它会导致系统故障。

我尝试做一个覆盖:sudo dd of=/etc/init/gdm.override

不顾一切地试图阻止 gdm 在启动时加载......但它总是如此。

请救救我......我承认这是一台测试机器,我可以重新安装操作系统,但我正在努力成为处理此类问题的能力。

请告诉我我有多愚蠢!!

gdm 18.04
  • 1 个回答
  • 4516 Views
Martin Hope
Little Mitch
Asked: 2018-11-11 15:09:05 +0800 CST

意外关闭网络连接

  • 0

设置新的 Ubuntu 服务器。已验证网络设置正常工作。确认防火墙已关闭。可以本地 ssh 和本地 telnet 到端口 22。

不能从另一台机器上 telnet 或 ssh。

已经尝试了一切,包括搜索互联网。我已取消选中 Putty 中的 GSSAPI 设置,但由于您无法从另一台计算机远程登录到端口 22,因此似乎有什么东西阻止了连接,或者 Ubuntu 服务器阻止了非本地连接。

ssh remote
  • 1 个回答
  • 924 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