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

user276851's questions

Martin Hope
user276851
Asked: 2019-01-31 11:36:53 +0800 CST

vino:没有“org.gnome.Vino”这样的模式?

  • 2

这更多是关于此问题的后续问题(例如,从命令行启用远程 VNC?)。我正在使用 Ubuntu 18.04 的桌面共享(没有 vino 服务器)。对于通过 remmina 从另一个 Ubuntu 进行远程访问,它工作正常。但是当我从 Mac 尝试 VNC 客户端时,它抱怨加密级别。

我在服务器上尝试“gsettings set org.gnome.Vino ...”,但它说没有这样的架构。

remote-access vnc remote-desktop
  • 1 个回答
  • 5262 Views
Martin Hope
user276851
Asked: 2018-05-02 13:16:18 +0800 CST

在 CLI 中自动输入命令?

  • 0

为了节省打字,我在考虑是否可以在暂停一定秒数后自动输入命令。

例如,假设我从命令行键入“ls -l”。无需输入任何其他内容,并且在 2 或 3 秒后,该命令将自动执行。有没有办法实现它?

谢谢。

command-line bash
  • 1 个回答
  • 189 Views
Martin Hope
user276851
Asked: 2014-07-10 13:18:56 +0800 CST

开机失败如何产生?

  • 0

我正在测试双引导系统,并希望在引导到其中一个系统(都是 Linux)时产生引导失败,主要是为了测试 grub-reboot 功能。我的问题是如何轻松修改一些文件导致开机失败(应该很容易恢复)?谢谢。

boot
  • 1 个回答
  • 24 Views
Martin Hope
user276851
Asked: 2014-07-09 17:30:52 +0800 CST

为什么 grub-reboot 停留在 boot-once 系统?

  • 0

我在一台机器上安装了两个 Linux 系统。它们共享一个 /boot 分区并且几乎相同。从一个系统 (A),我使用 grub-reboot 引导至另一个系统 (B),反之亦然。这做得很好。但问题是,下一次启动不会返回。所以它就像:A --> grub-reboot, reboot --> B --> reboot --> B...从 B 开始也是同样的情况。

那么会出现什么问题,如何调试呢?

非常感谢!

boot
  • 1 个回答
  • 145 Views
Martin Hope
user276851
Asked: 2014-06-27 12:12:54 +0800 CST

如何在 Ubuntu 中安装 LSI megacli?

  • 7

类似于这个问题(https://serverfault.com/questions/192394/megacli-always-returns-blank-output),但有一些不同。

我在 Dell Ubuntu 机器上使用 perc h710p raid 控制器。

我下载1.01.39_Linux_Cli.zip(根据https://calomel.org/megacli_lsi_commands.html)并保存MegaCli64在 Ubuntu usb 引导驱动器上。

然后我将机器启动到 USB,然后运行MegaCli64​​.

但是输出总是空白。

非常感谢你的帮助。

software-installation
  • 4 个回答
  • 54648 Views
Martin Hope
user276851
Asked: 2014-06-06 13:16:21 +0800 CST

如何强制 update-grub 使用 UUID?

  • 2

当我运行“update-grub”时,文件“grub.cfg”将包含这样的行。

menuentry 'Ubuntu...' {
    ...
    linux /boot/vmlinuz... root=/dev/md124 ...
    ...
}

对于linux这一行,是否可以让它使用UUID?喜欢,

    linux /boot/vmlinux... root=UUID=xxx

现在,每次执行 update-grub 后,我都必须手动编辑该行以使用 UUID。否则,引导将失败。

谢谢您的帮助。

boot
  • 1 个回答
  • 6208 Views
Martin Hope
user276851
Asked: 2014-06-04 16:35:41 +0800 CST

如何进行两个 Ubuntu 操作系统的双启动?

  • 0

这个问题与其他类似问题略有不同。

我有一个 Ubuntu 生产系统的克隆映像,并计划将它传播到两个不同的分区(例如,/dev/sda1、/dev/sda2)。

如何设置,让用户可以选择启动哪一个?

以下是我到目前为止所做的。

1. boot from rescue cd
2. add a new file /etc/grub.d/11_boot_2 in /dev/sda1
3. point uuid in 11_boot_2 to /dev/sda2
4. chroot to /dev/sda1, and run update-grub
5. modify /etc/fstab in /dev/sda2 to use different mount point

重新引导时,GRUB 菜单显示第二个引导选项。但是选择它之后,引导以(initramfs)提示结束。uuid 应该是正确的,否则启动会打印出类似“没有这样的文件系统”的错误。

所以我的问题是:

1. Is any step above wrong, or did I missing anything?

2. At the initramfs stage, what could I do to troubleshoot?

3. Is there any way to enter "grub rescue"? 
   I end up in grub rescue before and I can test boot there. 
   But this time, the system didn't stop at grub rescue.

4. Exactly what stage is initramfs during the whole boot process? 
   That may tell me what is right so far, and what may be wrong.

非常感谢你的帮助!

boot
  • 1 个回答
  • 81 Views
Martin Hope
user276851
Asked: 2014-05-28 13:19:32 +0800 CST

在 raid 10 上缩小 ext4 分区

  • 0

我的问题类似于Move ext4 partition,但我无法弄清楚的挑战是如何从一开始就缩小分区。

所以假设最初分区(带 raid)是这样的。

(************** /dev/md127 ***************)

调整大小后,我想达到这样的效果。

(*** unallocated ***)(**** /dev/md127 ****)

注意,我不能使用 gparted,而且 parted 不支持 ext4。

到目前为止我尝试过的命令,

% resize2fs -p /dev/md127 1676G    # <== This is good.

% lvreduce -L 1676G /dev/md127
Path required for Logical Volume "md127"
Please provide a volume group name
Run `lvreduce --help' for more information.

然后我找到了一些描述如何更改 raid 分区的链接 ( http://www.howtoforge.com/how-to-resize-raid-partitions-shrink-and-grow-software-raid )。

$ mdadm --grow /dev/md127 --size=max
mdadm: Cannot set device size for /dev/md127: Invalid argument

此处失败,“man mdadm”显示“--grow”不适用于 raid 10。需要一些帮助。请注意,我使用“--size=max”只是为了快速测试,它也不适用于其他值。

然后在那之后,我想在这个分区之后创建另一个分区,将数据复制到那个分区,然后删除这个分区,就像。

1. (************** /dev/md127 ***************)

2. (**** /dev/md127 ****)(*** new partition **)

3. (*** unallocated ****)(**** /dev/md127 ****)

谢谢。

partitioning
  • 1 个回答
  • 804 Views
Martin Hope
user276851
Asked: 2014-05-02 12:09:55 +0800 CST

为什么我选择静态IP时dhclient还在运行?

  • 16

我在 /etc/network/interfaces 中将 dhcp 修改为静态(如下所示)。

# The primary network interface
auto eth0
iface eth0 inet static
netmask 255.255.0.0
address 10.10.130.128
gateway 10.10.1.1

然后重启界面。

$ sudo ifdown eth0; sudo ifup eth0
...
$ ifconfig
eth0      Link encap:Ethernet 
          inet addr:10.10.130.128  Bcast:10.10.255.255  Mask:255.255.0.0

所以新地址开始了。

但是 DHCP 还在吗?

$ ps aux | grep dhc
root    ... dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -1 eth0

那是正常的吗?如果没有,如何在停止 DHCP 的同时以静态 IP 重新启动接口?

非常感谢。

networking
  • 4 个回答
  • 69937 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