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

Exeleration-G's questions

Martin Hope
Exeleration-G
Asked: 2019-08-05 03:54:18 +0800 CST

无法在 Ubuntu 19.04 上安装堡垒

  • 0

尝试在 Ubuntu 19.04 上安装 Bastion 时出现以下错误:

$ sudo dpkg -i bastion_1.4-0ubuntu1_amd64.deb
Selecting previously unselected package bastion.
(Reading database ... 368522 files and directories currently installed.)
Preparing to unpack bastion_1.4-0ubuntu1_amd64.deb ...
Unpacking bastion (1.4-0ubuntu1) ...
dpkg: dependency problems prevent configuration of bastion:
 bastion depends on libalut0; however:
  Package libalut0 is not installed.
 bastion depends on libsdl-mixer1.2; however:
  Package libsdl-mixer1.2 is not installed.
 bastion depends on libsdl-ttf2.0-0; however:
  Package libsdl-ttf2.0-0 is not installed.
 bastion depends on libsdl-net1.2; however:
  Package libsdl-net1.2 is not installed.
 bastion depends on libsmpeg0; however:
  Package libsmpeg0 is not installed.
 bastion depends on libsdl-gfx1.2-4; however:
  Package libsdl-gfx1.2-4 is not installed.
 bastion depends on libtxc-dxtn-s2tc0; however:
  Package libtxc-dxtn-s2tc0 is not installed.

dpkg: error processing package bastion (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-4ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
 bastion

我怎样才能解决这个问题?

package-management dependencies
  • 1 个回答
  • 150 Views
Martin Hope
Exeleration-G
Asked: 2018-11-28 03:18:12 +0800 CST

执行期望脚本后如何自动关闭 urxvt 终端?

  • 1

我编写了一个脚本来处理将密码快速复制到剪贴板:

#!/usr/bin/expect -f

spawn -noecho zsh
expect "$ "
send "pass show -c "
interact
exit

这个脚本是这样启动的:

urxvt -e /home/user/pass_script.sh

脚本运行良好,但完成后,生成的 urxvt 终端需要关闭。目前还没有这样做。我怎样才能确保它确实如此?

scripts command-line automation expect rxvt
  • 1 个回答
  • 302 Views
Martin Hope
Exeleration-G
Asked: 2017-08-13 14:49:01 +0800 CST

smbclient 和 samba 有什么区别?

  • 1

我在回购中看到了他们两个。他们之间有什么区别?

samba
  • 1 个回答
  • 1425 Views
Martin Hope
Exeleration-G
Asked: 2017-05-08 04:43:40 +0800 CST

在旧的外部硬盘驱动器上发出 dd 后“未找到介质”

  • 10

我正在尝试格式化旧的外部硬盘驱动器。它不会在 中弹出gparted。

它确实被检测到:

dmesg输出:

[20022.409487] usb 2-1.2: new high-speed USB device number 13 using ehci-pci
[20022.538837] usb 2-1.2: New USB device found, idVendor=0930, idProduct=0b09
[20022.538843] usb 2-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[20022.538847] usb 2-1.2: Product: USB 3.5"-HDD
[20022.538850] usb 2-1.2: Manufacturer: TOSHIBA
[20022.538853] usb 2-1.2: SerialNumber: 001d93cc
[20022.541204] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[20022.541889] scsi host6: usb-storage 2-1.2:1.0
[20023.558459] scsi 6:0:0:0: Direct-Access     Sunplus  USB2SATA bridge  0407 PQ: 0 ANSI: 2
[20023.558974] sd 6:0:0:0: Attached scsi generic sg2 type 0
[20023.561919] sd 6:0:0:0: [sdb] Attached SCSI removable disk

lsusb输出:

Bus 002 Device 013: ID 0930:0b09 Toshiba Corp. PX1396E-3T01 External hard drive

我在某处读到我应该dd使用零的设备,但这也失败了:

$ sudo dd if=/dev/zero of=/dev/sdb
dd: failed to open '/dev/sdb': No medium found

在把它扔出窗外之前,我有什么可以尝试的吗?

partitioning
  • 3 个回答
  • 12378 Views
Martin Hope
Exeleration-G
Asked: 2016-08-31 01:50:06 +0800 CST

如何更改图片的文件大小?

  • 28

每隔一段时间,我尝试将图片上传到网站并遇到一条消息:

上传失败:文件大小不能超过n MB!

我知道调整图片尺寸的大小应该会让我在某个点低于n ,但是调整大小、保存、检查文件大小的过程很麻烦。此外,有时保持当前尺寸可能很方便。

我正在寻找一种更改图片文件大小的方法,最好是从终端。有没有办法做到这一点?

files
  • 1 个回答
  • 17299 Views
Martin Hope
Exeleration-G
Asked: 2016-01-09 00:59:32 +0800 CST

如何从终端更新我的语言?

  • 4

安装 Ubuntu 并更新系统后,我通常做的第一件事是确保所有应用程序都使用首选语言环境。为此,我从 Dash 启动语言支持,它会自动下载剩余的本地化包:

在此处输入图像描述

这很好用,但由于我是从终端完成大部分 Ubuntu 安装后工作,所以我也想从终端执行此操作。

有没有办法这样做?

command-line
  • 2 个回答
  • 4767 Views
Martin Hope
Exeleration-G
Asked: 2016-01-07 23:42:43 +0800 CST

如何有效地将我的 Ubuntu Live USB 格式化为 FAT32 分区?

  • 0

考虑以下情况:

$ sudo fdisk -l
[sudo] password for user: 

Disk /dev/sda: 320.1 GB, 320072933376 bytes
------------%<-----------------------------
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
------------%<-----------------------------
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 4008 MB, 4008706048 bytes
255 heads, 63 sectors/track, 487 cylinders, total 7829504 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x429817b4

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           0     2301535     1150768    0  Empty
/dev/sdc2         2279532     2284075        2272   ef  EFI (FAT-12/16/32)

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc1'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc1: 1178 MB, 1178386432 bytes
255 heads, 63 sectors/track, 143 cylinders, total 2301536 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x429817b4

     Device Boot      Start         End      Blocks   Id  System
/dev/sdc1p1   *           0     2301535     1150768    0  Empty
/dev/sdc1p2         2279532     2284075        2272   ef  EFI (FAT-12/16/32)

你在这里看到的是一个 Ubuntu Live USB,通过编写

sudo dd if=ubuntu-15.10-desktop-amd64.iso of=/dev/sdc

如果我没记错的话。

我想知道将这个 Live USB 格式化为普通 FAT32 分区的最简单方法是什么。我不想再将它用作 Live USB - 我只想用它来以适用于 Windows 和 Ubuntu 的方式存储文件。如果我打开 GParted,会出现以下消息:

msg_on_opening

fdisk说它实际上是 GPT,所以我只点击“是”...

然后我导航到我的分区并尝试编写一个新的 MBR 分区表。当我尝试这样做时,会出现以下消息:

在此处输入图像描述

大致翻译为:

Encountered libparted bug!

Partition(s) 1 on /dev/sdc is/are written but we couldn't notify the
kernel about the changes, probably because the partitions are still in
use. So, the old partitions will remain active. You should now restart
your computer before making any other changes.
                               Abort / Ignore

我不知道在这里按什么按钮。此外,仅仅因为我想格式化 Live USB 就重新启动计算机很麻烦。

那么,有没有一种更简单、更有效的方法将我的 Live USB 格式化为 FAT32 分区?

partitioning
  • 2 个回答
  • 245 Views
Martin Hope
Exeleration-G
Asked: 2014-12-19 07:42:26 +0800 CST

是否可以在虚拟位置自动挂载分区?

  • 1

我的驱动器上有一个我不使用的分区,叫做/dev/sda8. 这个分区没有在列表中列出,/etc/fstab所以当我启动我的系统时它会在 Unity 启动器中弹出。

我不希望发生这种情况,所以我通常会在 中创建一个目录/mnt,/mnt/placeholder然后在 中写入一个新条目/etc/fstab:

/dev/sda8 /mnt/placeholder btrfs defaults 0 0

不过,我觉得这个解决方案有点脏。中现在有一个不必要的目录/mnt。我更喜欢这样的东西:

/dev/sda8 none btrfs defaults 0 0

是否可以在虚拟位置自动挂载分区?理想情况下,它将受到保护以防止读/写。

我知道我可以在 中创建一个隐藏目录/mnt,但这不是我正在寻找的解决方案。谢谢。

mount
  • 1 个回答
  • 425 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