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

Jags's questions

Martin Hope
Jags
Asked: 2022-05-03 10:21:13 +0800 CST

lsb_release 错误:bash:/usr/bin/lsb_release:/usr/bin/python3:错误的解释器:没有这样的文件或目录

  • 2

从 Ubuntu MATE 21.10 Impish 升级到 Ubuntu MATE 22.04 Jammy 后,当我运行时出现lsb_release此错误:

$ lsb_release

bash: /usr/bin/lsb_release: /usr/bin/python3: bad interpreter: No such file or directory

相关命令:

$ whereis lsb_release
lsb_release: /usr/bin/lsb_release /usr/share/man/man1/lsb_release.1.gz

$ python -V
bash: python: command not found
$ python3 -V
bash: python3: command not found

$ python3.10 -V
Python 3.10.4

$ which python3 or $ which python
Nothing.

$ which python3.10
/usr/bin/python3.10

$ whereis python
python: /usr/bin/python /usr/share/python /usr/share/man/man1/python.1.gz

$ whereis python3
python3: /usr/lib/python3 /etc/python3 /usr/share/python3 /usr/share/man/man1/python3.1.gz

$ whereis python3.10
python3.10: /usr/bin/python3.10 /usr/lib/python3.10 /etc/python3.10 /usr/local/lib/python3.10 /usr/include/python3.10 /usr/share/man/man1/python3.10.1.gz
ls -lsh /usr/bin/python*
   0 lrwxrwxrwx 1 root root    7 Oct 11  2021 /usr/bin/python -> python3
   0 lrwxrwxrwx 1 root root    9 Jul 28  2021 /usr/bin/python2 -> python2.7
3.5M -rwxr-xr-x 1 root root 3.5M Mar 12 11:54 /usr/bin/python2.7
5.7M -rwxr-xr-x 1 root root 5.7M Apr  2 14:34 /usr/bin/python3.10
   0 lrwxrwxrwx 1 root root   34 Apr  2 14:34 /usr/bin/python3.10-config -> x86_64-linux-gnu-python3.10-config
   0 lrwxrwxrwx 1 root root   17 Mar 25 18:11 /usr/bin/python3-config -> python3.10-config
4.0K -rwxr-xr-x 1 root root 1.8K Aug  6  2019 /usr/bin/python3-unidiff
$ sudo ln -s /usr/bin/python3 /usr/bin/python3.10
ln: failed to create symbolic link '/usr/bin/python3.10': File exists
$ sudo update-alternatives --config python3
update-alternatives: error: no alternatives for python3

$ sudo update-alternatives --config python
update-alternatives: error: no alternatives for python

我发现lsb_release错误的方式是因为mate-menu(Advanced MATE Menu)停止工作(从任务栏中消失),当我尝试重新安装它(使用 Synaptic)时,我收到了这个错误:

E: mate-menu: package is in a very bad inconsistent state; you should  reinstall it before attempting configuration

Can't exec "lsb_release": No such file or directory at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 184, <> line 1.
Use of uninitialized value in lc at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 184, <> line 1.
(Reading database ... 378043 files and directories currently installed.)

Preparing to unpack .../lsb-release_11.1.0ubuntu4_all.deb ...
Unpacking lsb-release (11.1.0ubuntu4) over (11.1.0ubuntu4) ...
dpkg: error processing package mate-menu (--configure):

 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration

Setting up lsb-release (11.1.0ubuntu4) ...
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
 mate-menu

虽然我找到了这些类似的线程,但它们对我不起作用。谢谢你。

https://askubuntu.com/a/919416/928088

https://stackoverflow.com/q/62329393/11855487

apt
  • 1 个回答
  • 2712 Views
Martin Hope
Jags
Asked: 2022-03-23 09:41:38 +0800 CST

Bash 脚本:生成 sha256sum 哈希并仅使用文件名保存其输出,不包括路径

  • 1

我喜欢编写一个 Bash 脚本来生成文件的 sha256sum 哈希,并将其输出保存为 hash 和 only filename.extension,不包括路径。

到目前为止,我尝试过的以下两个脚本都没有得到我想要的输出:

注意:每次运行脚本时都会有一个具有新名称的新文件,因此我*.iso在脚本中使用。

(1)

#!/bin/bash

cd /home/admn/Downloads

find -maxdepth 1 -type f -name "*.iso" -exec bash -c "sha256sum '{}' > '{}'.sha256" \;

exit;

这会创建一个文件Test.iso.sha256,但有一个输出: e64d11052abf5c3e19f0cd60e0b9c6196d8cb8615eba415ef1a3ac746f4b0c29 ./Test.iso

虽然我只想Test.iso没有./

(2)

#!/bin/bash

cd /home/admn/Downloads

fullfilename="/home/admn/Downloads/*.iso"
filename=$(basename "$fullfilename")

sha256sum $filename > "$filename".sha256

exit;

这确实会生成我想要的输出:e64d11052abf5c3e19f0cd60e0b9c6196d8cb8615eba415ef1a3ac746f4b0c29 Test.iso但是它创建的文件*在其中而不是 name: *.iso.sha256。谢谢。

操作系统:Ubuntu 伴侣 21.10

Bash:版本 5.1.8(1)-release (x86_64-pc-linux-gnu)

bash
  • 1 个回答
  • 499 Views
Martin Hope
Jags
Asked: 2021-09-04 09:10:12 +0800 CST

Ubuntu MATE:如何使用 virt-manager 中的组合键进入和退出全屏视图?

  • 1

当虚拟机正在运行并且它的窗口打开时,是否有一个组合键可以在 virt-manager 中进入和退出全屏视图?

显然我可以使用鼠标进入或退出:

进入:点击View>Fullscreen

退出:将鼠标悬停在顶部中心,然后单击Leave fullscreen图标。

我已经尝试过来自 AskUbuntu 线程的组合键:如何在 virt-manager 中取消最大化全屏视图?但他们不在 Ubuntu MATE 21.04 中工作。非常感谢。

操作系统:Ubuntu 伴侣 21.04

虚拟管理器:1:3.2.0-3

virtualization
  • 1 个回答
  • 278 Views
Martin Hope
Jags
Asked: 2021-07-07 10:37:42 +0800 CST

已清除 Evolution 服务时禁用它的正确方法

  • 3

尽管我在 AskUbuntu 上经历了很多线程,但我找不到禁用这些 Evolution 服务的正确方法,尤其是在 Ubuntu MATE 21.04 中已经从系统中清除了 Evolution 时。

这些服务没有在下面列出systemctl list-unit-files --type=service,所以我不能使用sudo systemctl mask。

ps -ef | grep evolution

admn 1973 1459 0 17:15 ? 00:00:00 /usr/libexec/evolution-source-registry
admn 2023 1459 0 17:15 ? 00:00:00 /usr/libexec/evolution-calendar-factory
admn 2058 1459 0 17:15 ? 00:00:00 /usr/libexec/evolution-addressbook-factory

这 2 个 Evolution 相关的软件包仍然存在,因为清除它们会删除许多其他软件包。

evolution-data-server
evolution-data-server-common

结果ls -lsh /usr/libexec/evolution*:

$ ls -lsh /usr/libexec/evolution*

 16K -rwxr-xr-x 1 root root  15K Jun 22 20:57 /usr/libexec/evolution-addressbook-factory
 48K -rwxr-xr-x 1 root root  47K Jun 22 20:57 /usr/libexec/evolution-addressbook-factory-subprocess
116K -rwxr-xr-x 1 root root 115K Jun 22 20:57 /usr/libexec/evolution-calendar-factory
136K -rwxr-xr-x 1 root root 135K Jun 22 20:57 /usr/libexec/evolution-calendar-factory-subprocess
 60K -rwxr-xr-x 1 root root  59K Jun 22 20:57 /usr/libexec/evolution-scan-gconf-tree-xml
124K -rwxr-xr-x 1 root root 123K Jun 22 20:57 /usr/libexec/evolution-source-registry
 20K -rwxr-xr-x 1 root root  19K Jun 22 20:57 /usr/libexec/evolution-user-prompter

/usr/libexec/evolution-data-server:
total 116K

 32K -rwxr-xr-x 1 root root  31K Jun 22 20:57 addressbook-export
8.0K -rwxr-xr-x 1 root root 7.0K Jun 22 20:57 csv2vcard
 52K -rwxr-xr-x 1 root root  51K Jun 22 20:57 evolution-alarm-notify
 24K -rwxr-xr-x 1 root root  23K Jun 22 20:57 list-sources

操作系统:Ubuntu 伴侣 21.04

进化数据服务器:3.40.0-1ubuntu1.1

进化数据服务器通用:3.40.0-1ubuntu1.1

提前非常感谢。

services
  • 2 个回答
  • 847 Views
Martin Hope
Jags
Asked: 2021-06-25 10:03:10 +0800 CST

Bash:在 bashrc 中定义一个可以被全局任何脚本使用的函数

  • 0

我喜欢通过或定义一个函数~/.bashrc并在不同的脚本中使用它。export -fsource .bashrc

功能:

nano ~/.bashrc

function test_func() {
    yt-dlp -f '299+140' --merge-output-format mp4 -cia List.txt;
}

export -f test_func

剧本:

#!/bin/bash

cd /home/admn/Downloads/YT_DL;

test_func --autonumber-start 101 -o '%(autonumber)1d_%(title)s.%(ext)s';

问题一:

之后test_func,命令的其余部分--autonumber-start 101 -o '%(autonumber)1d_%(title)s.%(ext)s'根本不起作用。



问题2:

早些时候,当我尝试source .bashrc在我的脚本中使用时,我收到了以下错误:

/usr/local/scripts/test.sh: line 3: .bashrc: No such file or directory
/usr/local/scripts/test.sh: line 12: test_func: command not found

函数(不带export -f):

nano ~/.bashrc

function test_func() {
    yt-dlp -f '299+140' --merge-output-format mp4 -cia List.txt;
}

脚本(带source .bashrc):

#!/bin/bash

source .bashrc

cd /home/admn/Downloads/YT_DL;

test_func --autonumber-start 101 -o '%(autonumber)1d_%(title)s.%(ext)s';

编辑1:

$ bash -xv /usr/local/scripts/test.sh
#!/bin/bash

source /home/admn/.bashrc
+ source /home/admn/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# alias pip='pip3.7'
alias python='python3'
++ alias python=python3

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac
++ case $- in
++ return

test_func --autonumber-start 101 -o '%(autonumber)1d_%(title)s.%(ext)s';
+ test_func --autonumber-start 101 -o '%(autonumber)1d_%(title)s.%(ext)s'
/usr/local/scripts/test.sh: line 5: test_func: command not found
$ 

这些是我经历过的一些线程;虽然我有一些想法,但我仍然无法为我的用例找到解决方案。谢谢。

https://unix.stackexchange.com/questions/63665/how-to-define-a-bash-function-that-c​​an-be-used-by-different-scripts

https://stackoverflow.com/questions/6218268/how-to-define-a-bash-function-for-use-in-any-script

https://stackoverflow.com/questions/17219174/variables-set-in-bashrc-and-accessing-them-in-shellscript

https://stackoverflow.com/questions/1500499/how-do-you-call-a-function-defined-in-bashrc-from-the-shell

定义一个可供任何脚本使用的全局可用的 bash 函数

操作系统:Ubuntu 伴侣 21.04

Bash:5.1.4(1)-release (x86_64-pc-linux-gnu)

bash
  • 1 个回答
  • 643 Views
Martin Hope
Jags
Asked: 2021-06-04 12:45:40 +0800 CST

Bash 脚本以 5 个批次在 MP4 文件上运行 FFmpeg concat

  • 3

我喜欢创建一个 Bash 脚本来使用 FFmpeg 连接 MP4 文件,一次分批 5 个文件,用于包含 100 个 MP4 文件的目录,这样之后就会有 20 个文件,例如:

001_005.mp4、006_010.mp4 等等……

而不是仅包含所有 100 个文件的 1 个文件。

mylist.txt 的内容:

file 001.mp4
file 002.mp4
file 003.mp4
file 004.mp4
file 005.mp4
............
file 099.mp4
file 100.mp4

虽然我找到了一个运行良好的命令(来自这个 StackOverflow 线程),但它只会创建一个包含所有 100 个文件的文件。

#!/bin/bash

cd /home/admn/Downloads/MP4_Files;

# Create mylist.txt:
for f in *.mp4
do
    echo "file $f" >> mylist.txt
done;

# Concatenate files:
ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4;

那么,我该如何修改 ffmpeg 命令,使其一次分批连接 5 个文件。

所有文件都具有完全相同的分辨率 (1080p)、音频和视频编解码器。

操作系统:Ubuntu 伴侣 21.04

ffmpeg 版本:4.3.2-0+deb11u1ubuntu1

command-line
  • 3 个回答
  • 1391 Views
Martin Hope
Jags
Asked: 2021-05-27 12:10:22 +0800 CST

Ubuntu MATE 21.04:删除 Debian 密钥环 GPG 文件是否安全?

  • 3

我刚刚注意到,我的 Ubuntu MATE 21.04 安装目录中有很多 Debian 密钥环 GPG 文件/usr/share/keyrings/(已定期从以前的版本升级)。

$ ls -lsh /usr/share/keyrings/
total 32M
 12K -rw-r--r-- 1 root root 8.5K Mar 26 16:41 debian-archive-bullseye-automatic.gpg
 12K -rw-r--r-- 1 root root 8.6K Mar 26 16:41 debian-archive-bullseye-security-automatic.gpg
4.0K -rw-r--r-- 1 root root 2.4K Mar 26 16:41 debian-archive-bullseye-stable.gpg
8.0K -rw-r--r-- 1 root root 8.0K Mar 26 16:41 debian-archive-buster-automatic.gpg
8.0K -rw-r--r-- 1 root root 8.0K Mar 26 16:41 debian-archive-buster-security-automatic.gpg
4.0K -rw-r--r-- 1 root root 2.3K Mar 26 16:41 debian-archive-buster-stable.gpg
 56K -rw-r--r-- 1 root root  55K Mar 26 16:41 debian-archive-keyring.gpg
 40K -rw-r--r-- 1 root root  37K Mar 26 16:41 debian-archive-removed-keys.gpg
8.0K -rw-r--r-- 1 root root 7.3K Mar 26 16:41 debian-archive-stretch-automatic.gpg
8.0K -rw-r--r-- 1 root root 7.3K Mar 26 16:41 debian-archive-stretch-security-automatic.gpg
4.0K -rw-r--r-- 1 root root 2.3K Mar 26 16:41 debian-archive-stretch-stable.gpg
 28M -rw-r--r-- 1 root root  28M Mar 25 02:40 debian-keyring.gpg
2.6M -rw-r--r-- 1 root root 2.6M Mar 25 02:40 debian-maintainers.gpg
772K -rw-r--r-- 1 root root 771K Mar 25 02:40 debian-nonupload.gpg
 28K -rw-r--r-- 1 root root  26K Mar 25 02:40 debian-role-keys.gpg

4.0K -rw-r--r-- 1 root root 2.3K May 11 15:49 ubuntu-advantage-cis.gpg
4.0K -rw-r--r-- 1 root root 2.2K May 11 15:49 ubuntu-advantage-esm-apps.gpg
4.0K -rw-r--r-- 1 root root 2.3K May 11 15:49 ubuntu-advantage-esm-infra-trusty.gpg
4.0K -rw-r--r-- 1 root root 2.3K May 11 15:49 ubuntu-advantage-fips.gpg
8.0K -rw-r--r-- 1 root root 7.3K Sep 18  2018 ubuntu-archive-keyring.gpg
8.0K -rw-r--r-- 1 root root 6.6K Oct 27  2016 ubuntu-archive-removed-keys.gpg
4.0K -rw-r--r-- 1 root root 3.0K Mar 27 05:04 ubuntu-cloudimage-keyring.gpg
   0 -rw-r--r-- 1 root root    0 Jan 17  2018 ubuntu-cloudimage-removed-keys.gpg
4.0K -rw-r--r-- 1 root root 1.2K May 27  2010 ubuntu-master-keyring.gpg
$

当我将此与 Ubuntu MATE 21.04 的全新虚拟安装进行比较时,它只有 Ubuntu 密钥环文件。

那么,删除那些 Debian 密钥环文件是否安全?谢谢。

编辑-1:

dpkg -S /usr/share/keyrings/debian-* | awk -F: '{print $1}' | sort -u

debian-archive-keyring
debian-keyring
aptitude why debian-archive-keyring

i   packaging-dev    Recommends ubuntu-dev-tools      
i A ubuntu-dev-tools Recommends debian-archive-keyring

aptitude why debian-keyring

i   packaging-dev    Recommends ubuntu-dev-tools
i A ubuntu-dev-tools Recommends debian-keyring  
ubuntu-mate
  • 1 个回答
  • 420 Views
Martin Hope
Jags
Asked: 2021-05-25 11:04:27 +0800 CST

使用 Bash 脚本从 Ubuntu MATE 21.04 中隐藏目录内的二级目录中删除所有文件

  • 0

我在 AskUbuntu 和其他地方经历了很多线程,但听起来,所有这些都是关于删除隐藏文件,而我正在尝试:

从隐藏目录中的非隐藏目录中删除非隐藏文件。

我喜欢/home/admn/.cache/thumbnails/normal/使用 Bash 脚本删除目录中的所有文件。

我创建的简单脚本:

sudo nano /usr/local/scripts/test.sh

#!/bin/bash

shopt -s dotglob

rm '/home/admn/.cache/thumbnails/normal/*'

shopt -u dotglob

注意:正如建议的那样,我尝试"在脚本中使用双引号,但仍然遇到相同的错误。

sudo chmod +x /usr/local/scripts/test.sh

我得到的错误:

rm: cannot remove '/home/admn/.cache/thumbnails/normal/*': No such file or directory

谢谢。

command-line
  • 1 个回答
  • 36 Views
Martin Hope
Jags
Asked: 2020-03-02 15:11:04 +0800 CST

从 TXT 文件创建 CSV 文件

  • 0

如何按照以下示例从 TXT 文件创建 CSV 文件?谢谢。

TXT file:
This is line number one
This is line number two with extra words
This is line number three with even more words
Resulting CSV file:
Col#1 Col#2 Col#3 Col#4  Col#5 Col#6 Col#7 Col#8 Col#9
This  is    line  number one
This  is    line  number two   with  extra words
This  is    line  number three with  even  more  words

编辑:好吧,我的问题与以下内容不同,因此不重复:

https://askubuntu.com/questions/1214146/trying-to-create-a-csv-file-from-a-text-file-in-ubuntu

因为另一个问题是要求将每一行“组织”成“列”,而我的问题是将每个单词(由空格分隔)组织成一个新列。谢谢。

command-line csv
  • 1 个回答
  • 3747 Views
Martin Hope
Jags
Asked: 2020-02-15 09:21:14 +0800 CST

设置一个 cron 作业来归档一个目录及其所有子目录,包括使用 tar 的隐藏文件

  • 1

我正在尝试/home/username/.mozilla/使用 tar 将 cron 作业设置为存档/备份目录及其所有子目录,包括隐藏文件。我喜欢每天晚上 12:01 做这项工作。

这是我到目前为止的计划:

crontab -e

1 0 * * * tar -zcf /home/username/Dropbox/Backups/Firefox_Profile_$(date +%b_%d_%Y_"%H-%M").tgz home/username/.mozilla/ && echo "Firefox profile backed up on:" `date` >> /home/username/jobs

虽然我还没有真正设置 cron 作业,但是当我在终端中运行这个命令时:

tar -zcf /home/username/Dropbox/Backups/Firefox_Profile_$(date +%b_%d_%Y_"%H-%M").tgz home/username/.mozilla/

它确实创建了一个压缩存档,但在提取时,它会创建一个目录home>>及其子目录username。.mozilla

我正在寻找的是:

(1) 提取时将有.mozilla或最好mozilla(删除点)及其子目录,包括隐藏文件(无home或username目录)。

(2) 是tar -zcf获得最大压缩的最佳方式。

(3) 保持所有文件权限不变。

(4) 我是否需要在此命令中有 [user](即“用户名”):1 0 * * * username tar -zcf

非常感谢。

command-line permissions cron backup tar
  • 2 个回答
  • 3173 Views
Martin Hope
Jags
Asked: 2019-10-20 12:58:01 +0800 CST

如何在 Ubuntu MATE 19.04 中正确删除 RTL88x2BU 的内核模块

  • 4

我已经从Cilynx 的 GitHub 存储库中安装了 Realtek RTL88x2BU 驱动程序,使用 Ubuntu MATE 19.04 中的 DKMS 安装和内核 5.3.4(以及更高版本的 5.3.7)

驱动程序正常工作了一周,然后突然完全停止检测 TP-Link Archer T3U AC1300 无线 USB 适配器。相同的适配器适用于其他 PC。

This is how drivers were installed:

cd rtl88x2bu
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu

那么如何才能完全删除 RTL88x2BU 的所有先前版本(1.1、5.6.1 等)的内核模块?非常感谢。

kernel realtek-wireless dkms 19.04
  • 1 个回答
  • 5372 Views
Martin Hope
Jags
Asked: 2019-09-22 09:11:56 +0800 CST

sed 命令在终端中工作,但不能通过 bash_aliases 或 bash 脚本

  • 3

每次更新 Vivaldi 时,我都必须运行这个 sed 命令来应用 custom.css

sudo sed -i '1s/^/@import "custom.css";/' /opt/vivaldi-snapshot/resources/vivaldi/style/common.css

现在该命令在终端中运行良好,但当我尝试通过在 ~/.bash_aliases 中创建别名甚至通过 bash 脚本(放置在 /bin/ 中并具有可执行权限)来运行它时却不行。我确实尝试对“custom.css”使用完整路径,但它仍然没有用。谢谢。

编辑:

(1) 通过别名:

alias vivupdate="sed -i '1s/^/@import "custom.css";/' /opt/vivaldi-snapshot/resources/vivaldi/style/common.css"

当我尝试运行时,出现此错误:

$ sudo vivupdate
[sudo] password for admn:

sudo: vivupdate: command not found
$ 

(2) 通过 Bash 脚本:

#!/bin/bash
sed -i '1s/^/@import "custom.css";/' /opt/vivaldi-snapshot/resources/vivaldi/style/common.css

创建 vivupdate.sh,使其可执行并将其放在 /bin/ 中。

然后编辑 sudoers 文件并添加:

user ALL=(ALL:ALL) NOPASSWD:/bin/vivupdate.sh

但是当我在终端中运行脚本时,我得到了这个错误:

sed: couldn't open temporary file /opt/vivaldi-snapshot/resources/vivaldi/style/sedCIt48u: Permission denied
command-line bash
  • 1 个回答
  • 1045 Views
Martin Hope
Jags
Asked: 2019-09-22 06:03:05 +0800 CST

为路由命令创建一个简单的别名

  • 1

我想创建一个简单的别名:

alias gate=route | grep default | awk '{print $2}'

即使该命令在终端中运行,它也无法通过 ~/.bash_aliases 运行。谢谢。

command-line bash
  • 1 个回答
  • 85 Views
Martin Hope
Jags
Asked: 2019-08-28 11:05:09 +0800 CST

如何为仅 LAN 访问配置 VSFTPD,并限制对单个目录的访问

  • 0

我已经阅读了很多设置指南,但不知道如何配置 VSFTPD 以实现仅限 LAN 的访问,以及如何限制对单个目录的访问(例如:~/Downloads)。

如果可能的话,我什至不想将它的存在暴露在互联网上。任何帮助是极大的赞赏。

PC:Ubuntu Mate 19.04 64 位。

vsftpd
  • 1 个回答
  • 2489 Views
Martin Hope
Jags
Asked: 2019-02-25 01:01:31 +0800 CST

如何在 Ubuntu Mate 18.10 中从 GDM3 切换回 LightDM

  • 4

因此,在尝试解决 Logitech TouchPad T650 间歇性冻结问题时,我通过 Synaptic安装了 Solar ( https://pwr.github.io/Solaar/ )。在安装过程中,它要求我在 GDM3 和 LightDM 之间进行选择,我不小心选择了 GDM3。

所以现在我被 GDM3 困住了(对我来说感觉就像被蒙蔽了一样)。到目前为止,我已经尝试了以下几次并重新启动了几次,但无济于事。该命令只运行 find 但重新启动后,它只是回到 GDM3。

sudo dpkg-reconfigure lightdm

在这个触摸板的顶部已经停止工作......当光标移动时,左/右键单击不起作用。这是一台运行 Ubuntu Mate 18.10 64 位的台式电脑。

我喜欢回到 LightDM 并完全移除 Solar、GDM3 等。提前非常感谢。

gdm display-manager lightdm ubuntu-mate 18.10
  • 1 个回答
  • 4706 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