我正在使用 AWS 实例,但 Nvidia CUDA 驱动程序未安装在那里。我需要帮助在 ec2 安装上安装 Nvidia CUDA 驱动程序。
Ubuntu 版本为 18.04,实例基于 GPU。显卡是nvidia t4。我正在使用 g46nxlarge 实例。
我刚刚使用厨师在 Ubuntu (aws) 上安装了 apache2。
Ubuntu 服务器上的 Apache2:10.1.1.1
客户端:10.1.1.200
我还验证了 tcp 22 (sshd) 和 tcp 80 (apache2) 都在监听
root@Ubuntu:/var/www# netstat -anp | egrep '22|80'
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1469/sshd
tcp6 0 0 :::80 :::* LISTEN 16950/apache2
tcp6 0 0 :::22 :::* LISTEN 1469/sshd
root@Ubuntu:/var/www#
Run Code Online (Sandbox Code Playgroud)
流程看起来也不错
root@Ubuntu:/var/www# ps -ef | egrep 'apache2|sshd'
root 1469 1 0 Sep29 ? 00:00:00 /usr/sbin/sshd -D
root 16950 1 0 Sep29 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 16953 16950 0 Sep29 ? 00:00:02 /usr/sbin/apache2 …Run Code Online (Sandbox Code Playgroud) 请原谅这个愚蠢的问题,刚刚开始使用 Linux,我认为这多个问题都集中在一个问题上。我已经设置了一台 AWS Ubuntu 机器。我通过执行以下操作从 Windows 访问该机器:
ssh -i "hyperledgerkeys.pem" ubuntu@ec2-18-205-150-8.compute-1.amazonaws.com
Run Code Online (Sandbox Code Playgroud)
这部分工作正常,我以用户身份登录我的 AWS 机器ubuntu——我相信它的超级用户。然后我按照说明在我的机器上安装 Fish shell。当我打字时,fish我得到了鱼壳,并且可以在我的命令中看到颜色——这样就可以了。
作为最后一步,我想让fish成为我的默认shell,所以我输入:
chsh -s /usr/bin/fish
Run Code Online (Sandbox Code Playgroud)
就在那时,系统提示我输入密码,我相信在 AWS Ubuntu 机器上,密码是ubuntu,但是,这是行不通的。我正进入(状态:
chsh: PAM: Authentication Failure
Run Code Online (Sandbox Code Playgroud)
所以看起来我不知道自己的密码,但我没有设置密码。SSH 连接部分正在使用我从 AWS 获得的私钥。
谢谢
备份 (Deja Dup) 未能对我的 Amazon S3 进行初始备份,尽管我尽了最大努力谷歌搜索,但我找不到解决方案:(
这是错误消息:
BackendException: Error uploading s3+http://deja-dup-auto-akiaiksyiqi3buaaz26a/My-Archive/duplicity-full.20130805T143807Z.vol1.difftar.gpg
Run Code Online (Sandbox Code Playgroud)
我在 System76 上运行 Ubuntu 12.04 LTS。我尝试在 S3 中备份的文件夹设置为存储为 Amazon Glacier Storage。
任何帮助都会摇滚!
更新:更好的调试信息:
DUPLICITY: . Failed to create bucket (attempt #1) 'deja-dup-auto-axxxxxxxxxxxa' failed (reason: S3ResponseError: S3ResponseError: 403 Forbidden
DUPLICITY: . <?xml version="1.0" encoding="UTF-8"?>
DUPLICITY: . <Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><StringToSignBytes>47 00 54 0a 0a 0a 4d 6f 6e 00 20 30 35 20 00 75 …Run Code Online (Sandbox Code Playgroud) 我已经安装了 s3fs 并用 aws S3 制作了一个存储桶。我可以写信给它。但是,当我将文件上传到存储桶并尝试读取它时,出现以下错误。
您没有打开文件所需的权限。
我试过但chmod 777我没有权限,我试过 sudo 但我仍然没有权限。
我通过键入以下行来安装我的驱动器:
s3fs babylon ~/MyMount -o passwd_file=~/.passwd-s3fs
Run Code Online (Sandbox Code Playgroud)
如何获得访问我的文件的权限?用 ls -l 查看它们,我看到以下内容:
~/MyMount$ ls -l
total 5
---------- 1 root root 2272 Mar 25 21:47 lab8.cpp
-rw-rw-r-- 1 kaz kaz 16 Mar 24 22:44 nextday.txt
---------- 1 root root 586 Mar 20 13:27 sample.c
-rw-rw-r-- 1 kaz kaz 6 Mar 26 01:29 temp.txt
Run Code Online (Sandbox Code Playgroud) 我使用的是 Ubuntu 5.15.0-1011-aws。当我在 Ubuntu 中运行以下命令时
$fdformat --version
Run Code Online (Sandbox Code Playgroud)
它输出以下内容:
Command 'fdformat' not found, .....
Run Code Online (Sandbox Code Playgroud)
由于 fdformat 在 util-linux 中,正如我在 Linux 手册页上搜索的那样,我运行以下命令:
$apt info util-linux
Run Code Online (Sandbox Code Playgroud)
它返回:
...
Package: util-linux
Version: 2.37.2-4ubuntu3
.....
Run Code Online (Sandbox Code Playgroud)
然后我检查我机器上的 util-linux 软件包的信息,
$ sudo apt upgrade util-linux
Run Code Online (Sandbox Code Playgroud)
它显示以下内容:
...
util-linux is already the newest version (2.37.2-4ubuntu3).
...
Run Code Online (Sandbox Code Playgroud)
我的问题是 fdformat 是否已从最新的 util-linux 软件包中排除?