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

user126440's questions

Martin Hope
user126440
Asked: 2022-01-18 21:23:08 +0800 CST

xmodmap 未在 .profile 中运行

  • 1

我最近按照本指南将一些键映射到我的 Alt Gr https://medium.com/@retprogramisto/how-to-make-custom-keyboard-map-with-xmodmap-1341a1552d4f

它工作得很好,但是当要让命令xmodmap ~/.Xmodmap在启动时运行时,.xinitrc我的主目录中没有,所以我把它放在我的.profile.

重新启动后,它没有运行命令(我猜)并且我的重音字符没有像应有的那样映射。

输入命令是错误的.profile吗?我应该创建.xinitrc并把它放在那里吗?

谢谢。

$ lsb_release -a && uname -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:    20.04
Codename:   focal
Linux leon 5.11.0-46-generic #51~20.04.1-Ubuntu SMP Fri Jan 7 06:51:40 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
shortcut-keys
  • 1 个回答
  • 218 Views
Martin Hope
user126440
Asked: 2018-12-17 08:15:18 +0800 CST

更新 GPG 错误 - NO_PUBKEY - 存储库版本未签名 [重复]

  • 0
这个问题在这里已经有了答案:
'http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04 ./ Release' 未签名[重复] (1 个答案)
3年前关闭。

我在更新 Ubuntu 18.04 时遇到了一些问题。这是错误输出

W: GPG error: http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.04 ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2F7F0DA5FD5B64B9
E: The repository 'http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.04 ./ Release' 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.

研究类似的问题,例如

如何修复 GPG 错误“NO_PUBKEY”?

不工作。具体来说,我得到了错误

nik@nik:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2F7F0DA5FD5B64B9
Executing: /tmp/apt-key-gpghome.uWb8bIzMR8/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 2F7F0DA5FD5B64B9
gpg: keyserver receive failed: No data

nik@nik:~$ gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 2F7F0DA5FD5B64B9
gpg: keyserver receive failed: No data

不过,我找不到该问题的有效解决方案。有什么建议吗?谢谢。

updates apt
  • 1 个回答
  • 1292 Views
Martin Hope
user126440
Asked: 2018-10-21 23:10:26 +0800 CST

本地开发设置中 Apache 虚拟主机的连接被拒绝 [重复]

  • 0
这个问题在这里已经有了答案:
当我使用 .dev 域扩展时,虚拟主机没有按预期工作 2 个答案
3年前关闭。

我需要使用特定版本的 PHP (7.1) 设置本地 LAMP。在全新安装的 18.04 中,我首先安装了 Apache 和 MySQL。然后我按照本指南从 ppa:ondrej/php 安装 PHP 并完成安装 phpMyAdmin,它工作正常。

我的 php 安装是

sudo apt install php7.1 libapache2-mod-php7.1 php7.1-mysql php7.1-mbstring

对于我的站点测试,我运行了一个在 16.04 上对我有用的虚拟主机脚本。一切看起来都有效,除了手动必须 chown public_html 目录。我的问题是,尝试在 info.dev 访问我的测试文件会返回页面错误info.dev refused to connect.和ERR_CONNECTION_REFUSED.

PHP 似乎正在工作,因为我成功地infophp()从 apache 测试页面调用。

有人可以提出一些建议吗?

这里有更多信息...

站点可用的 v-hosts 文件

<VirtualHost *:80>

    ServerName info.dev
    ServerAlias www.info.dev
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/info.dev/public_html

    #LogLevel info ssl:warn

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

    #Include conf-available/serve-cgi-bin.conf

    <Directory /var/www/info.dev/public_html >
        Options Indexes FollowSymLinks MultiViews
        # AllowOverride All allows using .htaccess
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

</VirtualHost>

/etc/hosts 文件

127.0.0.1   localhost
127.0.1.1   leon

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1   magento.dev
127.0.0.1   info.dev

我的一些access.log:

127.0.0.1 - - [21/Oct/2018:09:24:05 +0300] "GET / HTTP/1.1" 200 315 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0"
127.0.0.1 - - [21/Oct/2018:09:24:05 +0300] "GET /favicon.ico HTTP/1.1" 404 500 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0"
::1 - - [21/Oct/2018:09:41:18 +0300] "GET / HTTP/1.1" 200 23933 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36"

我的一些error.log

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Sun Oct 21 08:40:11.623382 2018] [mpm_prefork:notice] [pid 32239] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Oct 21 08:40:11.623406 2018] [core:notice] [pid 32239] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 21 09:27:39.337465 2018] [mpm_prefork:notice] [pid 32239] AH00169: caught SIGTERM, shutting down
[Sun Oct 21 09:41:16.361551 2018] [mpm_prefork:notice] [pid 3368] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Oct 21 09:41:16.361651 2018] [core:notice] [pid 3368] AH00094: Command line: '/usr/sbin/apache2'

权限

leon@leon:/var/www/info.dev$ ls -l
total 4
drwxr-xr-x 2 leon www-data 4096 loka  21 09:42 public_html
leon@leon:/var/www/info.dev$ cd public_html/
leon@leon:/var/www/info.dev/public_html$ ls -l
total 4
-rw-r--r-- 1 leon leon 22 loka  21 09:42 index.php
leon@leon:/var/www/info.dev/public_html$ 

嗯……不管这是什么

leon@leon:/var/www/info.dev/public_html$ apachectl -S
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80                   is a NameVirtualHost
         default server 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
         port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
         port 80 namevhost info.dev (/etc/apache2/sites-enabled/info.dev.conf:1)
                 alias www.info.dev
         port 80 namevhost magento.dev (/etc/apache2/sites-enabled/magento.dev.conf:1)
                 alias www.magento.dev
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex default: dir="/var/run/apache2/" mechanism=default 
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33 not_used
Group: name="www-data" id=33 not_used
apache2 virtualhost
  • 1 个回答
  • 12035 Views
Martin Hope
user126440
Asked: 2015-03-02 04:42:02 +0800 CST

无法将世界语字符映射到 Ubuntu 14.04 LTS 中的 <kdb>Alt</kbd> Gr (Trusty Tahr)

  • 2

在以前的 Ubuntu 版本中,我可以使用(right alt) 键输入世界语字符。Alt Gr我认为它在键盘 > 快捷方式 > 世界语抑扬符下。

在 Ubuntu 14.04 LTS (Trusty Tahr) 中,这似乎已经消失了。

它在 Ubuntu 14.04 LTS (Trusty Tahr) 中的什么位置?

key-binding
  • 1 个回答
  • 159 Views
Martin Hope
user126440
Asked: 2014-07-11 10:34:59 +0800 CST

尝试在主文件夹中创建本地 Web 开发环境时出现权限错误 [重复]

  • 0
这个问题在这里已经有了答案:
Apache 给出 403 Forbidden (1 answer)
8 年前关闭。

您好我一直在尝试在我的主文件夹中创建本地 Web 开发环境。我的本地 LAMP 运行良好,我尝试使用本教程进行开发,而无需 var/www http://ubuntuserverguide.com/2012/10/how-to-enable-and-configure-apache2-userdir-中的权限麻烦模块在 ubuntu-server-12-04.html

尝试像这样访问它时出现 403 禁止错误:

http://localhost/~asdf/

请指教。

server
  • 1 个回答
  • 113 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