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
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[client](ubuntu)

Martin Hope
Nicholas Bourbaki
Asked: 2020-11-06 08:28:54 +0800 CST

Samba 客户端无法在 Ubuntu 18.04 上运行,需要帮助

  • 0

我正在使用 Samba 客户端尝试从 Linux 查看驻留在 Windows-10 64 位计算机上的共享目录。samba 安装在我的 xUbuntu 18.04 64 位笔记本电脑上。XUbuntu 就像普通的 Ubuntu 一样,只是它使用了我喜欢的 XFCE 桌面。我对我的 /etc/samba/smb.conf 做了一些更改,但不清楚具体需要做什么。

两台计算机都是“FSI”工作组的一部分。我启动服务 smbd 和 nmbd。然后,通过 Linux 笔记本电脑上的文件浏览器,我可以转到 FSI 工作组并查看 Windows 机器 {名为“TIBERIUS”} 以及名为 {“XENOBA-LIN”} 的 Linux 笔记本电脑。但是我不能去查看共享目录或 TIBERIUS 上的任何目录。当两台机器都重新启动到 Windows 时,我可以。

我不希望 Linux 笔记本电脑成为服务器,因为它只是间歇性地在网络上。windows 机器应该是主要的名称服务器和服务器。这是我在 Linux 机器上的 smb.conf 的缩写副本。

/etc/samba/smb.conf

#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = FSI

# server string is the equivalent of the NT Description field
    server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
   wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
#   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

#### Networking ####
### note IP 192.168.1.72 is for Tiberius: the remote Windows machine  ####
### anyhow it's commented out I think  ###
;   interfaces = 192.168.1.72/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
;   bind interfaces only = yes
####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller". 
#
# Most people will want "standalone sever" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
   server role = standalone server

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
   passdb backend = tdbsam

   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<[email protected]> for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
   map to guest = bad user

########## Domains ###########

############ Misc ############
# all the usual defaults here except when listed

# Maximum number of usershare. 0 (default) means that usershare is disabled.
;   usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes

我还要附上截图

工作组发现这就是我所能得到的

networking samba client file-sharing
  • 2 个回答
  • 1822 Views
Martin Hope
Jette
Asked: 2020-10-02 06:54:37 +0800 CST

OpenVPN 访问服务器和网络管理器

  • 1

我已经在 Ubuntu 20.04 LTS 服务器上安装了 OpenVPN Access Server。在客户端,我使用网络管理器。

VPN 服务器是专用10.42.24.0/24网络的一部分。

在服务器的管理 GUI 中,我将默认动态 IP 地址网络从 172.27.224.0/20 更改为10.42.25.0/24,然后创建了一个用户。

我在网络管理器中使用 ovpn 文件配置了一个新的 vpn 客户端。有用。

我现在想知道如何将客户端上的路由配置为仅使用专用网络的连接,而不是其他任何东西。我知道我需要勾选“将此连接仅用于其网络上的资源”并在IPv4->Routes中填写地址、网络掩码和网关...但我不知道要添加哪些值以包含 10.42.24.0 中的所有内容/24 网络?

另外我想知道服务器上是否还有其他我应该注意的配置值。

[编辑]

连接到 VPN 时客户端的输出:

ip -4 route
default via 10.42.25.161 dev tun0 proto static metric 50 
default via 192.168.1.1 dev eno1 proto dhcp metric 100 
default via 192.168.1.1 dev wlp3s0b1 proto dhcp metric 600 
10.42.25.160/28 dev tun0 proto kernel scope link src 10.42.25.162 metric 50 
123.456.789.128 via 192.168.1.1 dev eno1 proto static metric 100 
192.168.1.0/24 dev eno1 proto kernel scope link src 192.168.1.100 metric 100 
192.168.1.0/24 dev wlp3s0b1 proto kernel scope link src 192.168.1.11 metric 600 
192.168.1.1 dev eno1 proto static scope link metric 100 
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown 
networking server client openvpn
  • 1 个回答
  • 229 Views
Martin Hope
WinEunuuchs2Unix
Asked: 2020-06-19 17:55:05 +0800 CST

远程登录时防止主机关机

  • 0

我有一台笔记本电脑,我正在设置 SSH 开放服务器。在我用魔术包唤醒它并使用以下命令登录后它工作得很好:

ssh user@host -Y

问题是笔记本电脑被设计为在 5 分钟后黑屏并在 20 分钟不活动后挂起。

如何让脚本(或罐装包)向服务器发送虚假信号,就像用户在系统上打字一样?这样主机系统不会在 20 分钟后挂起,除非客户端有 20 分钟不活动。

在模拟用户活动时,我希望屏幕空白被尊重,就好像主机上没有用户活动一样。我只是不希望笔记本电脑在远程登录时挂起。

server ssh suspend client
  • 1 个回答
  • 672 Views
Martin Hope
Jmk
Asked: 2020-04-26 08:56:37 +0800 CST

Ubuntu WireGuard 没有握手

  • 1

我正在尝试设置 WireGuard VPN。我已经设置了界面和客户端。但是当我运行时sudo wg,尽管看到了接口和对等信息,但数据只是发送而不接收,所以我没有握手。这可能是什么原因?对于是否输入了正确的端点地址和允许的 IP 地址,我有点犹豫。

如果有人可以提供帮助,那就太好了!

modinfo wireguard 
filename:       /lib/modules/5.6.7-050607-generic/kernel/drivers/net/wireguard/wireguard.ko
alias:          net-pf-16-proto-16-family-wireguard
alias:          rtnl-link-wireguard
version:        1.0.0
author:         Jason A. Donenfeld <[email protected]>
description:    WireGuard secure network tunnel
license:        GPL v2
srcversion:     0DD380162CD80B77F6B9585
depends:        libblake2s,udp_tunnel,curve25519-x86_64,libchacha20poly1305,ip6_udp_tunnel,libcurve25519-generic
retpoline:      Y
intree:         Y
name:           wireguard
vermagic:       5.6.7-050607-generic SMP mod_unload 
sig_id:         PKCS#7
signer:         Build time autogenerated kernel key
sig_key:        41:F9:8A:DC:37:C6:5D:1B:67:7B:1C:17:65:E0:E0:C7:8C:55:35:79
sig_hashalgo:   sha512
signature:      01:B9:4C:CD:F0:C9:2C:3B:D2:5D:AF:A4:31:F0:FE:4F:53:7E:A1:F7:
                F7:C6:3C:42:2C:CE:2A:2C:85:A5:9A:53:00:47:FB:5D:A5:48:27:0E:
                B5:5E:8A:BD:DB:D1:04:E6:87:F0:88:E8:2B:74:18:A2:CB:B2:3F:06:
                9C:1C:9B:06:CB:57:60:14:84:7A:AD:1E:76:D8:D5:10:9A:2B:67:32:
                D1:DB:1D:C5:D2:4D:11:A8:98:21:62:A9:26:CE:5A:19:1C:AB:97:34:
                44:2E:38:F0:39:C3:92:30:F3:2B:A7:E8:66:03:33:CF:7A:88:EC:14:
                C4:0B:29:FD:78:4D:99:07:8D:77:09:DA:6B:8E:2D:6E:31:D4:A1:95:
                FB:92:EC:24:87:78:46:6D:4C:BC:9C:CF:2A:65:00:31:21:D7:9D:66:
                FE:48:FC:A8:89:38:72:04:26:0A:17:BB:A1:5E:19:09:48:41:A1:12:
                81:DC:2F:AB:47:62:6C:89:A7:18:8D:3D:2A:F7:28:9B:3C:FB:16:7E:
                DF:EE:23:B3:93:52:D7:21:D7:20:E4:B6:D1:9E:EF:D0:AF:11:F4:80:
                57:EF:8D:0D:03:1D:9B:83:DF:98:81:55:20:8B:59:4F:38:7D:D8:FA:
                78:E2:ED:A5:A2:3B:41:3C:79:FB:E4:D4:2B:88:D9:B4:88:B4:DE:2E:
                B9:13:51:75:BE:D4:73:44:40:CA:F1:1F:36:5F:56:D3:D9:06:CC:E8:
                5A:4A:91:77:BD:04:7E:C9:F9:3F:7A:F7:C6:30:EF:53:60:CD:8D:6C:
                2D:AF:B8:9A:D7:8C:BB:ED:30:6C:5F:AC:3C:E3:5F:15:78:5E:89:6E:
                4A:35:E9:E6:CF:93:CD:56:F0:90:2A:7D:FA:73:02:4D:0A:93:7A:34:
                DD:2C:CC:C6:35:4C:F3:4B:01:5D:F8:88:44:FF:C9:E8:02:68:4C:FD:
                E3:F3:47:7C:8B:74:5E:0E:FD:0E:DB:88:8C:D7:3A:4A:43:43:52:63:
                A3:67:77:8E:AF:3E:9F:8A:79:7E:28:A5:71:38:60:46:AD:08:F7:FD:
                6B:38:27:2E:71:2B:CC:52:96:5A:FB:DF:C6:50:AC:38:E1:4D:55:65:
                AE:23:DD:DF:BF:29:C0:DD:F1:A7:77:23:30:17:24:C9:A3:6D:BA:A2:
                4B:A4:BC:F7:96:A7:8E:2F:F6:13:B8:21:44:56:A0:AB:51:03:3C:9C:
                C2:65:57:2E:02:1B:A6:33:B2:1D:CD:4C:12:46:A2:D7:61:7C:43:5B:
                58:3F:89:87:E1:DA:E7:5A:FD:F6:D6:89:9F:FD:E6:8A:63:2D:75:B6:
                E6:D0:D4:08:E9:14:03:B2:50:9E:60:2E
nvidia, 435.21, 5.4.0-25-generic, x86_64: installed
nvidia, 435.21, 5.4.0-26-generic, x86_64: installed
wireguard, 1.0.20200413, 5.4.0-26-generic, x86_64: installed (WARNING! Diff between built and installed module!)
wireguard, 1.0.20200413, 5.5.4-050504-generic, x86_64: installed
*-network                 
       description: Wireless interface
       product: Cannon Point-LP CNVi [Wireless-AC]
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       logical name: wlo1
       version: 30
       serial: a8:6d:aa:e4:81:44
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-26-generic firmware=46.6bf1df06.0 ip=192.168.1.7 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:16 memory:b431c000-b431ffff
networking server client 20.04 wireguard
  • 1 个回答
  • 3285 Views
Martin Hope
soldier
Asked: 2019-12-12 00:00:42 +0800 CST

xxxx-client 和 xxxx-server 软件包有什么区别?

  • 8

当我要安装软件包或软件时,我可以看到客户端 | 服务器版本。实际上是什么意思?例如:

apt-get install xxxx-client
apt-get install xxxx-server

这些有什么区别?当我们需要安装应用程序或包时,我们如何分类?比方说:

如果我想安装 nginx,我只需输入 安装apt-get install nginx,所以我们没有任何混淆。

当我在寻找 MySQL 时,如何选择我应该安装哪个版本?我对客户端和服务器感到很困惑。

package-management server apt mysql client
  • 4 个回答
  • 2185 Views
Martin Hope
taybinakh
Asked: 2019-06-27 15:34:53 +0800 CST

如何获取 OpenVPN 客户端的 IP 地址

  • 1

OpenVPN 服务器为连接到网络外部的每个客户端提供一个内部 IP 地址。我想在分配这些 IP 地址后将它们存储在数据库中。有没有一种简单的方法可以判断 OpenVPN 服务器分配了哪些 IP 地址?

感谢帮助

scripts client openvpn
  • 2 个回答
  • 15541 Views
Martin Hope
Greg
Asked: 2019-05-01 11:07:35 +0800 CST

服务器如何在服务器/客户端拓扑中检测客户端断电

  • 0

我创建了一个通过 TCP 套接字进行通信的客户端和服务器程序。

当我有多个客户端时,我可以看到服务器为每个客户端生成进程。但是如果我的客户端突然断电,服务器并没有关闭相应的进程。

请帮助检测服务器端的客户端断电,以便退出相关进程。

检查客户端是否处于活动状态应该以编程方式完成,并且 ping 不是一种选择,因为防火墙不允许这样做

亲切的问候

server client
  • 1 个回答
  • 115 Views
Martin Hope
Ice701
Asked: 2019-04-11 09:02:32 +0800 CST

Ubuntu 18.04 备份

  • 0

我有一个有 1 个 ssd 和 1 个 hdd 的桌面。我想编写一个脚本,允许我对我的 ssd 进行备份并将其存储在 hdd 上。这是我能做的吗?我不确定备份是否可以存储在同一台计算机的硬盘上。在此先感谢您提供有关此问题的帮助。

冰701

client 18.04
  • 1 个回答
  • 617 Views
Martin Hope
Saker Alabas
Asked: 2019-01-17 08:23:35 +0800 CST

如何连接到 SSH 上的某个端口 [重复]

  • 3
这个问题在这里已经有了答案:
使用已更改 SSH 端口的 SSH 授权密钥登录 2 个答案
3年前关闭。

所以,我正在设置一个 ssh 服务器。我已经在我的服务器上安装了 ssh-server 程序。但是,我不想通过端口 22 连接到它,因为原因,所以我将服务器设置为通过另一个端口(2584)进行侦听。如何设置我的客户端也通过端口 2584 而不是端口 22 连接?

server ssh client port-forwarding ip
  • 2 个回答
  • 22247 Views
Martin Hope
Travis
Asked: 2018-08-13 09:25:39 +0800 CST

哪个 Telegram 版本适用于 Ubuntu?[复制]

  • 5
这个问题在这里已经有了答案:
如何安装 Telegram (10个回答)
4年前关闭。

我觉得在 Ubuntu 下处理 Telegram 很烦人。我运行 18.04.1,我想我选择了 Ubuntu Software 的官方 Telegram 客户端……首先,那里有两个客户端。来自 Ubuntu 商店的一个不能自动更新,另一个不能识别您的主题/图标集/shell(见屏幕截图)...

在此处输入图像描述

然后,您还有 Telegram 官方网站上的 tar.xz,它在“显示应用程序”菜单中创建了一个双重条目,并且无论出于何种原因都存在于您的主文件夹中。我相信您还可以找到一些深奥的非官方客户。

所以,这是一团糟。我只想要一个与您的主题完美融合并自动更新到最新版本的官方客户端。很正常的事情,真的。有人有一些线索吗?谢谢!

client snap 18.04 telegram
  • 2 个回答
  • 4863 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