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

xpt's questions

Martin Hope
xpt
Asked: 2024-09-25 08:30:40 +0800 CST

Remmina 通过“远程桌面网关”连接到 RDP

  • 5

与这里问的相同,但是针对的是 Remmina:

我刚刚发现 FreeRdp 可以通过网关连接到 Windows 远程,但我无法让它工作。有人有经验吗?

忘记添加有关远程桌面网关的信息:

Microsoft 提供使用 RDP 协议(​​远程桌面协议)对桌面进行远程访问。要创建安全连接,可使用 RDG(远程桌面网关)服务。其特点是使用 HTTPS 连接。这创建了一个可靠的通信通道,可确保用户获得适当的保护级别。因此,无需使用第三方服务来创建 VPN 隧道。

总而言之,远程桌面网关无需 VPN 隧道即可进入内联网。

那么,既然 Remmina 底层使用 FreeRdp,那么如何通过“远程桌面网关”将 RDP 连接到 RDP?

linux
  • 1 个回答
  • 38 Views
Martin Hope
xpt
Asked: 2023-07-14 06:14:25 +0800 CST

如何在Linux中挂载公共Windows共享

  • 9

我认为这更多是一个 Windows 配置问题。

目标:从 Linux访问 Windows 10公共共享。

在这种情况下:“服务器”是一个简单的独立 Windows 10 机器,“客户端”是 Debian 稳定版。

我在 Windows 10 计算机上共享一个文件夹。它与“每个人”共享,并且“每个人”都具有“读/写”访问权限。在文件夹属性对话框的安全选项卡中,“每个人”再次被授予“完全控制”。我特别希望每个人都可以公开访问此文件夹,IE创建特定用户不是一个选项。我可以从 Windows 中无密码 访问我的系统,但是,\\servername\sharename

我在从 Linux 机器安装共享文件夹时遇到问题。Windows 10 似乎强制要求注册用户进行访问。是这样吗?如何克服呢?我的Windows 10是企业版。

根据https://wiki.ubuntu.com/MountWindowsSharesPermanently

guest 表示您不需要密码即可访问共享

$ sudo mount.cifs //servername/sharename /media/windowsshare -o 'guest,iocharset=utf8'
mount error(13): Permission denied

# error log:
CIFS: Status code returned 0xc0000072 STATUS_ACCOUNT_DISABLED

以下是我尝试过的其他选项,来自我从互联网上找到的各种建议:

  • -o 'username=guest,password=,iocharset=utf8'
  • -o 'user=administrator,password='
  • -o 'username=Everyone,password=,iocharset=utf8'
  • -o 'sec=none,iocharset=utf8'

全部失败并出现各种错误:

CIFS: Status code returned 0xc0000072 STATUS_ACCOUNT_DISABLED
VFS: cifs_mount failed w/return code = -128

CIFS: Status code returned 0xc000006d STATUS_LOGON_FAILURE
VFS: cifs_mount failed w/return code = -13

CIFS: Status code returned 0xc0000022 STATUS_ACCESS_DENIED
VFS: cifs_mount failed w/return code = -13

我还尝试在 Windows 配置中的“来宾或公共”访问下启用文件共享,但它也不起作用。

请帮忙。

更新:

“Everyone”被列为具有“完全控制”访问权限: 在此输入图像描述

Windows 10 本地安全策略设置刚刚按照以下说明进行了更正: 在此输入图像描述

现在:

$ sudo mount.cifs -v //servername/sharename /media/windowsshare -o 'guest,iocharset=utf8'
mount.cifs kernel mount options: ip=192.168.0.xx,unc=\\servername\sharename,iocharset=utf8,user=,pass=********
mount error(13): Permission denied

# error log:
CIFS: Status code returned 0xc0000022 STATUS_ACCESS_DENIED
CIFS: VFS: cifs_mount failed w/return code = -13

# and trying to add `,vers=2.1` will get the same result as well.

$ sudo mount.cifs //servername/sharename /media/windowsshare -o 'guest,iocharset=utf8,vers=1.0'
mount error: Server abruptly closed the connection.
This can happen if the server does not support the SMB version you are trying to use.
The default SMB version recently changed from SMB1 to SMB2.1 and above. Try mounting with vers=1.0.
mount error(112): Host is down

# error log:
[22997.487658] Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers

[22997.494779] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
[22997.505612] CIFS: VFS: cifs_mount failed w/return code = -112
linux
  • 2 个回答
  • 572 Views
Martin Hope
xpt
Asked: 2022-06-10 07:22:22 +0800 CST

如何成功安装 Azure CLI

  • 6

我在安装 Azure CLI 时遇到问题。我尝试了三种方法,但都失败了。

前两个来自Install Azure CLI on Windows,我试过了

  • 使用 PowerShell 安装 Azure CLI,以及
  • 自行下载并安装最新版本的 Azure CLI .msi 文件。
  • 我已经尝试删除它并使用 .msi 文件重新安装。

但对于所有情况,如果我输入az,我会得到

az : The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program.

然后我尝试在 Linux 上安装 Azure CLI作为最后的手段,但它也失败了:

+ echo 'deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ bullseye main'
+ apt-get update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease                                                                
Hit:3 http://ftp.debian.org/debian bullseye-backports InRelease                                                      
Hit:4 http://deb.debian.org/debian bullseye-updates InRelease                                                        
Hit:5 http://ppa.launchpad.net/suntong001/ppa/ubuntu focal InRelease                               
Get:6 https://packages.microsoft.com/repos/azure-cli bullseye InRelease [10.4 kB]
Err:6 https://packages.microsoft.com/repos/azure-cli bullseye InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
Reading package lists... Done
W: http://security.debian.org/debian-security/dists/bullseye-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/microsoft.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://deb.debian.org/debian/dists/bullseye/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/microsoft.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ftp.debian.org/debian/dists/bullseye-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/microsoft.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://deb.debian.org/debian/dists/bullseye-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/microsoft.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ppa.launchpad.net/suntong001/ppa/ubuntu/dists/focal/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/microsoft.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: https://packages.microsoft.com/repos/azure-cli/dists/bullseye/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/microsoft.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: https://packages.microsoft.com/repos/azure-cli bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
E: The repository 'https://packages.microsoft.com/repos/azure-cli bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

windows linux
  • 1 个回答
  • 248 Views
Martin Hope
xpt
Asked: 2022-05-26 09:34:06 +0800 CST

xterm:无法加载字体“-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1”

  • 6

我从 WSL 中的 Ubuntu-22.04 收到以下错误

xterm: cannot load font "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1"

再次注意它来自WSL中的 Ubuntu-22.04,因为我在使用普通Ubuntu 22.04时没有得到它。


$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:        22.04
Codename:       jammy

$ apt-cache policy xbitmaps
xbitmaps:
  Installed: 1.1.1-2.1ubuntu1
  Candidate: 1.1.1-2.1ubuntu1
  Version table:
 *** 1.1.1-2.1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
fonts ubuntu
  • 1 个回答
  • 812 Views
Martin Hope
xpt
Asked: 2022-05-26 07:42:31 +0800 CST

WSL/Debian 上的 GUI 应用程序

  • 6

所以我们应该能够在 Windows Subsystem for Linux 上运行 Linux GUI 应用程序。

但是,根据Debian wiki:

要激活新的 GUI 应用程序支持,您必须将 WSL2 环境更新到 Debian bookworm 或更高版本。

所以问题是,如何?正如我在这个问题中提到的,WSL 上的 Debian 仍然在 oldoldstable 上。

从 oldoldstable 到 bookworm 共有四个主要版本。

此外,WSL 使用它自己的 MS 构建的内核,我想我们不能简单地进行发行版升级。

debian gui
  • 1 个回答
  • 345 Views
Martin Hope
xpt
Asked: 2022-05-26 07:22:43 +0800 CST

wsl debian 仍在 oldoldstable 上,有什么方法可以获取最新版本吗?

  • 7

如题——

wsldebian仍在运行oldoldstable,有什么方法可以获取最新版本(debian Bullseye(稳定版)或 Ubuntu-22.04)?
希望我不需要自己进行发行版升级。

PS C:\Windows\system32> wsl --install -d Ubuntu-22.04
Invalid distribution name: 'Ubuntu-22.04'.
To get a list of valid distributions, use 'wsl --list --online'.

PS C:\Windows\system32> wsl --list --online
The following is a list of valid distributions that can be installed.
Install using 'wsl --install -d <Distro>'.

NAME            FRIENDLY NAME
Ubuntu          Ubuntu
Debian          Debian GNU/Linux
kali-linux      Kali Linux Rolling
openSUSE-42     openSUSE Leap 42
SLES-12         SUSE Linux Enterprise Server v12
Ubuntu-16.04    Ubuntu 16.04 LTS
Ubuntu-18.04    Ubuntu 18.04 LTS
Ubuntu-20.04    Ubuntu 20.04 LTS
$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian stretch main
deb http://deb.debian.org/debian stretch-updates main
deb http://security.debian.org/debian-security/ stretch/updates main

stretch是oldoldstable-- https://packages.debian.org/search?keywords=lsb-release

linux debian
  • 1 个回答
  • 2755 Views
Martin Hope
xpt
Asked: 2021-11-18 13:02:02 +0800 CST

Windows 10:如何完全关闭“Microsoft Start”?[复制]

  • 11
这个问题在这里已经有了答案:
如何禁用 Windows 10 任务栏上的“新闻和兴趣”小部件? (1 个回答)
11 个月前关闭。

从Windows 10 转贴:如何关闭“Microsoft Start”?因为那里的答案都不适合我,因为我仍然看到这个:

在此处输入图像描述

尽管我根据那里的答案禁用了所有功能:

在此处输入图像描述

我怎样才能完全禁用它?
那里唯一的选择是隐藏每个图块,但我已经隐藏了许多图块,但它们不断出现:

在此处输入图像描述

再次,从Windows 10 重新发布:如何关闭“Microsoft Start”?:

另一个毫无意义的更新,另一个没有人要求的愚蠢的过时软件。他们给它起了一个名字,因为搜索结果都与启动或开始菜单有关。如何从我的任务栏上删除这个愚蠢的新闻源,为什么当我关闭位置服务时它知道我的城市?

此页面的答案也不起作用:

https://answers.microsoft.com/en-us/windows/forum/all/how-to-remove-the-news-feed-from-my-start-menu/9f4b50aa-87a6-4996-937d-6b15b24c720d

windows-10
  • 2 个回答
  • 29354 Views
Martin Hope
xpt
Asked: 2021-09-01 06:17:12 +0800 CST

使用 PowerShell 列出远程 RDS 会话

  • 5

试图跟随

  • https://www.itprotoday.com/windows-8/use-powershell-list-rds-sessions
  • https://powershelladministrator.com/2015/12/01/get-logged-on-users-and-sessions/

但失败了:

在此处输入图像描述

那么如何使用 PowerShell 列出远程 RDS 会话呢?

更新:

尝试使用Get-CimInstance -ClassName Win32_LogonSession -Filter "LogonType = 10",但它“不提取任何域用户帐户的用户名或 SSID,仅提取本地服务和会话”:

在此处输入图像描述

powershell remote-desktop
  • 1 个回答
  • 278 Views
Martin Hope
xpt
Asked: 2021-06-12 20:34:43 +0800 CST

mv:无法移动,WSL 中的权限被拒绝

  • 7

我遇到了mv: cannot move, Permission denied错误,但在声称这是一个骗局之前,请先看看我尝试了什么:

首先,它与文件或目录模式无关:

$ mv -f .emacs.d .emacs.d.old
mv: cannot move '.emacs.d' to '.emacs.d.old': Permission denied

$ ls -Al . | grep emacs
drwx------ 1 me me 4096 2021-06-11 23:04 .emacs.d

ls -ld .
drwxr-xr-x 1 me me 4096 2021-06-12 00:17 .

$ sudo mv -f .emacs.d .emacs.d.old
mv: cannot move '.emacs.d' to '.emacs.d.old': Permission denied

$ mv -f .emacs.d ./.emacs.d.old
mv: cannot move '.emacs.d' to './.emacs.d.old': Permission denied

$ df .
Filesystem     1K-blocks      Used Available Use% Mounted on
rootfs         307276796 200040828 107235968  66% /

其次,我尝试了所有我知道的文件打开检查工具:

$ jobs | wc
      0       0       0

$ lsof | grep .emacs.d | wc 
      0       0       0

$ fuser .emacs.d | wc
      0       0       0

我已经尝试关闭任何可能与目录相关或可能不相关的.emacs.d内容,包括关闭与目录无关的 vs 代码.emacs.d。

完全披露:我正在使用适用于 Linux 的 Windows 子系统,但我认为我没有在任何其他 bash 实例中打开该目录。此外,如第一个输出所示,我的主目录位于 WSL 中,而不是在任何 Windows 文件夹下(即,应该与任何 Windows 程序无关)。

我已经没有什么想法可能会阻止我重命名这个新创建的目录。

linux permissions
  • 2 个回答
  • 4853 Views
Martin Hope
xpt
Asked: 2021-05-17 14:11:00 +0800 CST

如何在 Debian/Ubuntu 上用域名更改主机名

  • 9

虽然这似乎是一个常见问题解答,但我从来没有找到在 Debian/Ubuntu 上用域名更改主机名的正确方法。

首先,通过将主机名和域名(FQDN)放入/etc/hostname,像这样,这个和这个,许多“答案”或着作都是错误的,因为

Debian 参考资料说主机名不应该使用 FQDN:

3.5.5。主机名

内核维护系统主机名。运行级别 S 中与“ /etc/init.d/hostname.sh ”符号链接的初始化脚本在引导时(使用hostname命令)将系统主机名设置为存储在“ /etc/hostname ”中的名称。此文件应仅包含系统主机名,而不是完全限定的域名。

此外,从man hostname,它说,

“/etc/hosts通常,这是通过将主机名别名为 FQDN 来设置域名的地方。” 和“FQDN 由短主机名和 DNS 域名组成。除非您使用绑定或 NIS 进行主机查找,否则您可以在 /etc/hosts 中更改 FQDN 和 DNS 域名(它是 FQDN 的一部分)文件。”

好的。以上是我应该做的,但这就是我得到的:

$ cat /etc/hostname
coral

$ head -1 /etc/hosts 
127.0.0.1       coral.my.domain.org localhost

$ dnsdomainname
ht.home

$ cat /etc/resolv.conf
domain ht.home
search ht.home
nameserver 192.168.0.1

# after I change it to --

$ cat /etc/resolv.conf
# Fixed resolv.conf file
domain my.domain.org
search my.domain.org
nameserver 192.168.0.1

# everything just gone wrong --

$ dnsdomainname
dnsdomainname: No address associated with hostname

$ hostname -f
hostname: No address associated with hostname

$ hostname -d
hostname: No address associated with hostname

更新

我做了一个跟踪hostname -f,似乎“没有与主机名关联的地址”错误来自libresolv.so:

$ strace -o /tmp/strace.log hostname -f
hostname: No address associated with hostname

$ grep -E 'openat|close|No address' /tmp/strace.log
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
close(3)                                = 0
close(3)                                = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
close(3)                                = 0
openat(AT_FDCWD, "/etc/host.conf", O_RDONLY|O_CLOEXEC) = 3
close(3)                                = 0
openat(AT_FDCWD, "/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 3
close(3)                                = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3
close(3)                                = 0
openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 3
close(3)                                = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnss_dns.so.2", O_RDONLY|O_CLOEXEC) = 3
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
close(3)                                = 0
close(3)                                = 0
close(3)                                = 0
write(2, "No address associated with hostn"..., 35) = 35

任何帮助表示赞赏。

$ uname -rm
5.10.0-6-amd64 x86_64

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux bullseye/sid
Release:        testing
Codename:       bullseye

linux networking
  • 1 个回答
  • 1018 Views
Martin Hope
xpt
Asked: 2021-05-10 07:53:20 +0800 CST

在终端处理 NBSP

  • 7

如何在终端中处理 NBSP?

以下是我将完全相同的字符串(由前导 NBSP 组成)粘贴到终端的行为:

$  echo abc
bash:  echo: command not found

$ echo abc
abc

$  echo abc
-bash: $'\240echo': command not found

$ ls ~/.inputrc
ls: cannot access '/root/.inputrc': No such file or directory

$ ls ~/.bash*
/root/.bash_history  /root/.bashrc

$ cat ~/.bashrc
. . . basically nothing there . . .

$ bind -v | grep bracketed
set enable-bracketed-paste on

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux bullseye/sid
Release:        testing
Codename:       bullseye

$ uname -rm
5.10.0-6-amd64 x86_64

NBSP 来自我正在使用的文档,无论是 LibreOffice Writer 还是 google doc 等。所以我非常需要让这个粘贴 NBSP 工作(作为我的第二种情况),因为那是我记录我的命令的地方,即我不能改变他们的行为。

所以,

  • 对于这三种情况,我没有触及任何系统默认设置或我的
  • 在我的第二种情况下,工作中,我有LANG=C. 其他两个都基于 utf8LANG
  • 但是,即使我更改为LANG=C其他两个,我仍然会遇到同样的错误

此答案中的“方法1”对我不起作用:

在此处输入图像描述

并且该bind '"\302\240":" "'方法对我也不起作用(这是一台root目前只有用户的新机器,因此提示可能看起来很奇怪):

在此处输入图像描述 在此处输入图像描述

我猜bind '"\302\240"是与在终端中按下那个键相关联,而我只是在粘贴。只是猜测。

$ echo $'\240echo abc' | grep -a $'\240'`
 echo abc

nbsp=`echo $'\240'`

$ echo "${nbsp}echo abc${nbsp}${nbsp}${nbsp}def" | grep -a $'\240' 
 echo abc   def

bind "${nbsp}":" "

# then paste in the above echo output, 

$ od -c -
 echo abc   def
0000000 240   e   c   h   o       a   b   c 240 240 240   d   e   f  \n

# paste again to bash, which will become:

$ echo abcdef
abcdef

# i.e., all the spaces have been eaten, instead of mapped as " "

$ tail -5 /etc/inputrc
# map NBSP to regular space (left part has NBSP in quotes, right part has space)
"\240":" "
"\302\240":" "
" ":" "

$ tail -4 /etc/inputrc | od -c -h 
0000000   "   \   2   4   0   "   :   "       "  \n   "   \   3   0   2
0000020   \   2   4   0   "   :   "       "  \n   " 302 240   "   :   "
0000040       "  \n   " 342 220 243   "   :   "       "  \n

所有上述命令都在 中完成xterm,除了黑屏命令,它来自urxvt(提供302 240 od -c -输出)。

结论:

非常感谢卡米尔,他一直以来的帮助。“现在是我住的地方的午夜”,他说,但接着说“我会在几个小时后检查这个问题”。这是确切的绑定命令,bind 'set enable-bracketed-paste off'这是我需要的最后一英里。

bind -r '\240'

bind '"\240":" "'

bind 'set enable-bracketed-paste on'

$  echo abc   def
-bash: $'\240echo': command not found

bind 'set enable-bracketed-paste off'

$  echo abc   def
abc def

对不起卡米尔,我应该更加小心你的建议。

linux command-line
  • 1 个回答
  • 340 Views
Martin Hope
xpt
Asked: 2021-02-10 20:27:59 +0800 CST

IPv6 可访问性和 Hitron 路由器

  • 5

对于我的 Hitron CODA-4582U 路由器,这是我能找到并想出的最好的 -

在此处输入图像描述

但是,尝试从 Internet 连接失败:

Immediate connect fail for 2607:9880:3627:ffa4:92b1:xx:xx:681f: Network is unreachable

会有什么问题?会不会——

  • Hitron 路由器配置看起来与通过 IPv6 访问的网站如此不同,无法从我的网络外部访问,我不知道我是否配置正确。
  • 此外,我的机器在我的 ISP 的 NAT 之后,即它没有直接的公共 IPv4 连接。

或者是其他东西?

或者,可能无法从 Azure 进行测试?我什至无法通过 Azure 的 IPv6 测试访问谷歌:

$ curl -v6 https://google.com
* Rebuilt URL to: https://google.com/
*   Trying 2607:f8b0:4004:804::200e...
* TCP_NODELAY set
* Immediate connect fail for 2607:f8b0:4004:804::200e: Network is unreachable
* Closing connection 0
curl: (7) Couldn't connect to server

所以也许我的 IPv6 实际上正在工作?如何测试其连接性?请帮忙。

networking router
  • 1 个回答
  • 732 Views
Martin Hope
xpt
Asked: 2021-01-23 13:48:59 +0800 CST

从 Mac 到 Windows 的远程桌面,屏幕分辨率设置

  • 5

当我在 Mac 上使用远程桌面(从 Apple 商店)到 Windows 时,屏幕分辨率看起来很奇怪,因为字符看起来非常小——

  • 我的 Windows 屏幕分辨率为 1920 x 1200,无论是本地连接还是使用 1920 x 1200 显示器从另一个窗口远程连接,一切看起来都很正常
  • 我的新 16 英寸 MacBook Pro 的原始分辨率为 3072 x 1920

因此将/应该只占据我 Mac 屏幕1920 x 1200的一小部分。3072 x 1920但我发现事实并非如此。即使我强制我在 Mac 上的远程桌面使用1680 x 1050分辨率,字符仍然非常小,即使我将窗口大小设置为尽可能大。

这没有意义,对我来说很奇怪。也许DPI扮演着重要的角色,我不知道。但,

如何保持 Windows 的 1920 x 1200 分辨率,同时让我的 Mac 远程桌面会话中的字符看起来正常?

windows-10 mac
  • 1 个回答
  • 1713 Views
Martin Hope
xpt
Asked: 2021-01-19 16:46:53 +0800 CST

如何在 Mac OS 上使用 xterm

  • 6

如何在 Mac OS 上使用 xterm?

我对 Mac OS 很陌生,我想在上面使用 xterm。

我从

  • 为什么我不能粘贴到 xterm (XQuartz) 中?
  • 这里和这里_

在 Mac 上启动xterm不是什么大问题,但我就是不能。也许我最新的 Mac 太新了xterm?

无论如何,如何在 Mac OS 上使用 xterm?

mac xorg
  • 2 个回答
  • 10338 Views
Martin Hope
xpt
Asked: 2020-07-04 10:30:58 +0800 CST

bash:动态彩色提示

  • 5

我给出了git丰富多彩的提示,但它从未完全有效。经过这么多步道后,我已经确定了问题所在(完全git排除了问题)。就是这样,尽可能简单地表现症状:

  • 跟进bash: Colorful prompt and long command line,我需要关闭转义序列,\]以便“readline”正确计算提示符的可见长度
  • 它可以静态PS1设置,但不能动态设置:
     echo -e '\e[33m\]00\e[0m\]' | tee /tmp/p
     PS1="\n\w`cat /tmp/p`\\\$ "
     PS1='\n\w`cat /tmp/p`\\\$ '
     echo -e '\[\e[33m\]00\[\e[0m\]' | tee /tmp/p

在此处输入图像描述

bash command-line
  • 1 个回答
  • 58 Views
Martin Hope
xpt
Asked: 2020-06-23 07:11:50 +0800 CST

命令 clear 不是清屏

  • 5

跟进如何重置损坏的 TTY?, 在显示二进制文件后修复终端,

我已经尝试了那里的所有解决方案,以及来自https://unix.stackexchange.com/questions/79684/的解决方案

但是我的案子还没有被覆盖——

  • 命令清除不是清除屏幕
  • 使用箭头键查看以前的命令,但如果有一个较短的命令出现在一个较长的命令之后,较长的部分仍然存在

重现案例:

cat /bin/ls
clear
# clear is not clearing screen

如何解决?

PS,我的系统:

$ lsb_release -a 
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux bullseye/sid
Release:        testing
Codename:       bullseye

$ echo $TERM
screen

即,它是screen在xterm.

linux ubuntu
  • 1 个回答
  • 914 Views
Martin Hope
xpt
Asked: 2020-06-15 06:27:30 +0800 CST

顶部:如何修复“窗口条目 #1 损坏”错误

  • 5

我有一个和这里~/.toprc的一模一样的,而且一直都很好。

但是,由于我将 Ubuntu 从 18.04 更新到 20.04 LTS,我不再能够使用它运行 top。这就是我得到的:

top: window entry #1 corrupt, please delete '/home/myid/.toprc'

我喜欢保持我的色彩~/.toprc,有人知道如何让它再次工作吗?

linux ubuntu
  • 2 个回答
  • 225 Views
Martin Hope
xpt
Asked: 2019-09-30 15:24:11 +0800 CST

等效于 Linux 的 networksetup,用于设置网络自动代理 url

  • 6

我读了一些设置自动代理网址的地方:

PROXY_FILE_PATH="$DIR/proxy.pac"
sudo networksetup -setautoproxystate Wi-Fi off
sudo networksetup -setautoproxyurl Wi-Fi file://$PROXY_FILE_PATH
sudo networksetup -getautoproxyurl Wi-Fi

并搜索networksetup并发现它似乎仅适用于Mac。

Linux 是否有类似的东西来设置 autoproxyurl?

笔记:

问题更多在于设置自动代理 url,而不是代理本身。即,它是关于使用代理自动配置 (PAC) 文件系统范围的,并且最好在命令行上完成设置。

linux proxy
  • 1 个回答
  • 755 Views
Martin Hope
xpt
Asked: 2019-09-29 06:29:51 +0800 CST

Chrome 在 Linux 下轻松切换代理

  • 5

我知道答案可能是否定的,但是有什么简单的方法可以在 Linux 下为 Chrome 切换代理吗?最终,我希望某些站点同时使用代理,而某些其他站点不使用。

我什至尝试使用不同的配置文件从命令行启动 Chrome,但发现(通过检查其 IP)它仍在使用以前的代理。

我知道答案可能是否定的,但觉得询问和确认不会有什么坏处。谢谢。

linux google-chrome
  • 2 个回答
  • 90 Views
Martin Hope
xpt
Asked: 2019-08-18 12:33:04 +0800 CST

Linux VMware 工作站,如何删除 VM

  • 6

有很多“如何删除 VM”的文章,但我发现没有一篇适用于 Linux 下的 VMware Workstation。

我查看了它的在线用户手册——https: //docs.vmware.com/en/VMware-Workstation-Pro/15.0/com.vmware.ws.using.doc/GUID-0EE752F8-C159-487A-9159-FE1F646EE4CA。网页格式

但是没有找到关于删除虚拟机的文章。那么在Linux(Pro 15.0)下如何删除VMware Workstation下已有的VM呢?

linux vmware
  • 1 个回答
  • 285 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve