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

sisko's questions

Martin Hope
sisko
Asked: 2020-10-14 08:46:25 +0800 CST

Razer Blade ubuntu 18 屏幕刷新问题

  • 1

请帮忙。

我在 Razer Blade 14 上安装了 Ubuntu 18.04 双启动。通常,在我使用 Chrome 浏览器之前,ubuntu 似乎工作得很好。

当我向上或向下滚动时,视图刷新速度很慢,导致如下图所示的效果:

在此处输入图像描述

我很感激一些帮助来解决这个问题。提前致谢。

display screen 18.04
  • 1 个回答
  • 80 Views
Martin Hope
sisko
Asked: 2018-03-17 16:24:36 +0800 CST

Ubuntu Core wifi 配置问题

  • 3

每次重新启动 Raspberry Pi 时,我的静态 IP 地址设置都会被清除。

我刚刚在 Raspberry Pi 3 上安装了Ubuntu Core,但我一直在努力建立一个 wifi 静态 IP 地址。

以下是我经历的步骤:

  1. 登录到 Pi 后,我执行了sudo classic
  2. 执行sudo nano /etc/network/interfaces并添加以下内容:

    源目录 /etc/network/interfaces.d

    auto wlan0
    iface wlan0 inet static
      address 192.168.0.30
      broadcast 192.168.0.255
      netmask 255.255.255.0
      gateway 192.168.0.1
    
  3. 保存文件并执行sudo ifup wlan0

  4. 此时,当我执行ifconfig时,可以在wlan0下看到 IP 地址和其他设置。挥拳庆祝。

  5. 我执行exit以返回快照,然后执行sudo reboot以重新启动 Pi。我还立即从 Pi 远程连接以太网电缆,以便 wifi 可以处理 Internet 要求。

这就是我的问题开始的地方。

我检查了我的路由器 IP 地址列表,但我的静态 IP 不包括在内。

我重新登录我的 Pi 并再次执行ifconfig , wlan0的 IP 地址和其他设置不再存在。

wifi ID 和密码包含在/etc/wpa_supplicant/wpa_supplicant.conf文件中,内容如下:

network={
        ssid="SKY8317B"
        psk="TRUMBOX"
        key_mgmt=WPA-PSK
}

如果我的静态 IP 地址无法持续存在,我将非常感谢您在解决此问题方面的帮助。

更新#1:以下是基于@chili555 非常有用的输入的详细调试输出

sudo ifdown wlan0 && sudo ifup -v wlan0

ifdown: interface wlan0 not configured
Reading directory /etc/network/interfaces.d
Configuring interface wlan0=wlan0 (inet)
/bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
wpa_supplicant: wpa-driver nl80211,wext (default)
wpa_supplicant: /sbin/wpa_supplicant -s -B -P /run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -C /run/wpa_supplicant
Starting /sbin/wpa_supplicant...
wpa_supplicant: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
wpa_supplicant: ctrl_interface socket located at /run/wpa_supplicant/wlan0
wpa_supplicant: configuring network block -- 0
wpa_supplicant: wpa-ssid "SKY8317B" -- OK
wpa_supplicant: wpa-psk ***** -- OK
wpa_supplicant: enabling network block 0 -- OK
/bin/ip addr add 192.168.0.30/255.255.255.0 broadcast 192.168.0.255       dev wlan0 label wlan0
/bin/ip link set dev wlan0   up
 /bin/ip route add default via 192.168.0.1  dev wlan0 onlink
/bin/run-parts --exit-on-error --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/ubuntu-fan
run-parts: executing /etc/network/if-up.d/upstart
run-parts: executing /etc/network/if-up.d/wpasupplicant

更新#2:

执行结果 => lsb_release -d:

Description:    Ubuntu 16.04.4 LTS

执行结果 => cat /etc/netplan/*:

network:
    version: 2
    ethernets:
        all-en:
            match:
                name: "en*"
            dhcp4: true
        all-eth:
            match:
                name: "eth*"
            dhcp4: true

更新#3:

在我在 Internet 上的旅行中,我在某处发现了一个帖子,上面说手动对/etc目录进行的更新不会持续存在。当时我选择不相信这一点,但我只是发现了sudo console-conf命令,这似乎是内置的解决方案。

使用该命令,您可以提供 wifi SSID 和密码。重置 Pi 并重新登录表明我提供的设置仍然存在。

要提供的另一个设置是静态 IPv4 数据,但我不知道如何设置该信息,即CIDR 格式的子网。下面是我尝试设置的屏幕截图:

在此处输入图像描述

wireless ip-address ubuntu-core
  • 2 个回答
  • 6660 Views
Martin Hope
sisko
Asked: 2018-03-15 03:20:48 +0800 CST

Raspberry Pi ssh 上的 Ubuntu Core 失败

  • 0

我第一次尝试在 Raspberry Pi 3 上安装和使用Ubuntu Core发行版。

我的 SD 卡被格式化为 MS_DOS FAT 并且ISO被闪存到卡上。

我已经完成了将我的 Pi 连接到显示器和键盘并提供我的 Ubuntu One 电子邮件地址的过程。在该过程结束时,监视器提供用于连接到 Pi 的 ssh 详细信息。

我还生成了一个id_rsa.pub密钥并将其提供给我的 Ubuntu One ssh 密钥区域。

完成所有这些后,当我尝试 ssh 进入 Pi 时,我收到两条消息之一。

我收到的第一条消息是:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:QrfHNJLLJ4wjeQAPoVK+W0lhI7pfww3liCVI3/IoJCk.
Please contact your system administrator.
Add correct host key in /Users/userx/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/userx/.ssh/known_hosts:29
ECDSA host key for 192.168.0.14 has changed and you have requested strict checking.
Host key verification failed.

过了一会儿,它没有报告上述消息,而是要求输入密码——根据定义,Ubuntu Core 不应该使用该密码。

我需要帮助。

ssh ubuntu-core
  • 2 个回答
  • 707 Views
Martin Hope
sisko
Asked: 2017-11-15 04:09:37 +0800 CST

虚拟主机问题

  • 0

我有一个托管在 Linode 上的 ubuntu 服务器,在/var/www目录中有很多站点。

我有 2 个注册域(preplogs.com、icerge.com 和我通过 8.8.8.8/domain 访问的许多其他站点)每个都指向/var/www目录中的子目录。

我的问题是我的虚拟主机定义没有按我的意愿响应。

我有默认的000-default.conf主机,其中包含以下内容:

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www

        LimitRequestFieldSize 100000

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

第二个虚拟主机名为icerge.conf:

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/icerge

        LimitRequestFieldSize 100000

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

第三个域称为preplogs.com:

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        ServerName www.preplogs.com
        ServerAlias preplogs.com
        ServerAlias www.preplog.com
        ServerAlias preplog.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/DrupalQuiz

        LimitRequestFieldSize 100000

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

我的问题是当我访问不同的地址时,我没有得到正确的网站。

当我访问 IP 地址时,我希望看到服务器上所有域的“索引”列表,但我看到的是preplogs站点。

Preplogs.com 按预期加载 preplogs 站点。

icerge.com 加载服务器的“索引”列表。

任何人都可以帮忙吗?我不知道如何解开这个烂摊子。

apache2
  • 1 个回答
  • 739 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