电脑用户

计算机爱好者和高级用户的问答


1
SSH配置-相同的主机,但密钥和用户名不同
我已经设置了两个GitHub帐户,但是我无法获取ssh密钥来正常工作。我尝试了各种配置。 Host github_username1 HostName github.com IdentityFile ~/.ssh/rsa_1 User username1 Host github_username2 HostName github.com IdentityFile ~/.ssh/rsa_2 User username2 git push: Permission denied (publickey). fatal: The remote end hung up unexpectedly 适用于username1: Host github.com HostName github.com IdentityFile ~/.ssh/rsa_1 User username1 Host github.com HostName github.com IdentityFile ~/.ssh/rsa_2 User username2 git push 在username2的仓库中: ERROR: …
31 ssh  git  github 



4
我如何chmod / chown一个特定的文件列表?
我想编写一个.sh脚本来设置一些文件夹权限,但是想知道我是否可以运行以下命令: chown -644 ./one;/two;/three 整理文件夹列表,而不是多次调用chown。 另外,是否有一种方法可以整理文件列表,并排除其他文件,例如: chown -R -664 ./*;!./cache 我希望我的伪命令行有意义。





4
从命令行使用anyconnect进行连接
我正在尝试从Linux命令行使用Cisco anyconnect 3.1连接到服务器。我可以连接,但是我必须一次提交一个参数。我想从将在另一台服务器上运行的脚本进行连接。我可以那样做吗?就像是 vpn connect server_add group_name user_name passwd


3
转换Windows Ubuntu Bash的Windows路径
我有一个使用Windows Ubuntu Bash的Windows批处理脚本。它接收完整的Windows路径作为参数,然后将该路径传递给Ubuntu Bash中的命令。 @echo off bash -lic 'ffmpeg -i "%1" output.avi' 这"%1"是完整的Windows路径,例如"C:\some path\file.avi" 该命令给出错误: C:some pathfile.avi: Protocol not found 我应该怎么做才能将此Windows路径转换为/mnt/c/some\ path/file.aviWindows Bash真正理解的路径?



2
如何在远程桌面上启用远程麦克风
我只是通过RDP将瘦客户机(带有嵌入式OS)直接连接到远程计算机(Windows 7)。问题是,一旦我尝试通过Skype测试音频,似乎远程机器的音频/麦克风被隐藏或未被检测到,但是也可以检测到远程音频,因为我可以播放音乐或视频。有没有一种方法可以启用远程计算机的麦克风并用作瘦客户端的麦克风?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.