小编Fra*_*ter的帖子

如何恢复“丢失”的屏幕会话?

不知何故,我设法关闭了一个屏幕窗口而没有屏幕“注意到”它,所以会话仍然被标记为attached. 这会阻止我重新连接到此会话。我能做什么?

me@iupr-serv8:~$ screen -r
There are several suitable screens on:
    25028.pts-19.XXX-serv8  (01/05/2012 07:15:34 PM)    (Attached)
    24658.pts-19.XXX-serv8  (01/05/2012 07:11:38 PM)    (Detached)
    24509.pts-19.XXX-serv8  (01/05/2012 07:10:00 PM)    (Detached)
    18676.pts-5.XXX-serv8   (01/02/2012 06:55:33 PM)    (Attached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.
me@XXX-serv8:~$ screen -r 25028
There is a screen on:
    25028.pts-19.XXX-serv8  (01/05/2012 07:15:33 PM)    (Attached)
There is no screen to be resumed matching 25028.
Run Code Online (Sandbox Code Playgroud)

[更新]

最后我发现,会话并没有丢失,而是第一个会话的ID是0. 第二个会话具有 ID 1

gnu-screen terminal

86
推荐指数
3
解决办法
15万
查看次数

服务器不接受无密码 ssh 登录的公钥

可能重复:
为什么我仍然收到带有公钥身份验证的 ssh 的密码提示?

我可以通过 ssh 访问两个服务器。一只旧一只新一只。对于旧的,我使用教程SSH login without password无需每次输入密码即可登录。

对于新机器,我再次按照教程进行操作,但这一次它不起作用。我查看了 ssh(-v选项)的调试输出,在我看来,新服务器不是accept我的公钥。但是我查了一下和 botauthorized_keys是一样的,我什至用过md5sum.

可能是什么问题,我该如何解决这个问题?

旧服务器的调试输出(片段):

debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/NICK/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
Run Code Online (Sandbox Code Playgroud)

调试不工作的新服务器的输出(片段):

debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/NICK/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: …
Run Code Online (Sandbox Code Playgroud)

ssh

33
推荐指数
2
解决办法
10万
查看次数

如何在登录/启动时自动挂载远程目录

每次启动时,我都sshfs用来挂载远程目录。我想将这些简短的命令放在我的 .bashrc 中,但这似乎不是 The Right Way™。

sshfs在登录时运行的正确方法是什么?

remote automounting sshfs

8
推荐指数
2
解决办法
2万
查看次数

如何按大小和扩展名搜索文件?

我想从目录及其所有子目录中删除具有特定扩展名的所有空文件。

command-line find search

5
推荐指数
2
解决办法
2177
查看次数

如何仅为一个用户设置默认的 gcc 版本?

我与其他人共享一台服务器(Ubuntu 11.04),我是唯一一个必须对我的代码使用 gcc 4-4 的人,其余的使用 4.5。我已经安装了 gcc 4.4,但如何在不打扰其他人的情况下将其设为我的默认值?

该解决方案需要适用于 Makefile 等。

我尝试了 jw013 的想法,但我想我搞砸了。我创建了符号链接,ln -s /usr/bin/gcc-4.4 ~/bin/gcc现在我.bashrc不会再次加载。以下是错误消息:

Command 'lesspipe' is available in the following places
 * /bin/lesspipe
* /usr/bin/lesspipe
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dircolors: command not found
Command …
Run Code Online (Sandbox Code Playgroud)

gcc software-installation not-root-user

4
推荐指数
1
解决办法
7693
查看次数

`lspci` 中没有显示第二个 GPU

我在我们的一台服务器 (Ubuntu 12.04.1 LTS) 中切换了第二个 GPU。但现在lspci只给出一个条目:

$lspci | grep -i nvidia
04:00.0 VGA compatible controller: NVIDIA Corporation G94 [Quadro FX 1800] (rev a1)
Run Code Online (Sandbox Code Playgroud)

我已经执行sudo update-pciids并重新安装了 nvidia dev 驱动程序。我还可以做什么其他步骤?

linux ubuntu pci

3
推荐指数
1
解决办法
4842
查看次数