start . 用于从cmd启动资源管理器窗口.
当我从wsl做同样的事情时,我明白了
$ start.start:无法连接到系统总线:无法连接到socket/var/run/dbus/system_bus_socket:没有这样的文件或目录
有没有一种简单的方法来解决这个问题?
我想从WSL(Windows Subsystem for Linux)中安装Windows服务器.在Ubuntu(带有统一界面)我可以输入
gvfs-mount smb://domain\;user@server/share
Run Code Online (Sandbox Code Playgroud)
一切都安装得很好.
如果我在WSL中尝试这个,那么我得到以下错误:
Error mounting location: volume doesn't implement mount
Run Code Online (Sandbox Code Playgroud) 我在64位PC上使用Windows 10.最近,我开始在Windows上使用VS Code和Ubuntu Bash.一切都很好,除了linting.我试图让它与pylint和pep8一起使用,但它们都没有用.我认为这个问题是由于棉绒的位置造成的.但是,我无法弄清楚如何解决问题.您可以检查我的pylint设置:
// Whether to lint Python files using pylint.
"python.linting.pylintEnabled": true,
// Severity of Pylint message type 'Convention/C'.
"python.linting.pylintCategorySeverity.convention": "Information",
// Severity of Pylint message type 'Refactor/R'.
"python.linting.pylintCategorySeverity.refactor": "Hint",
// Severity of Pylint message type 'Warning/W'.
"python.linting.pylintCategorySeverity.warning": "Warning",
// Severity of Pylint message type 'Error/E'.
"python.linting.pylintCategorySeverity.error": "Error",
// Severity of Pylint message type 'Fatal/F'.
"python.linting.pylintCategorySeverity.fatal": "Error",
// Path to Pylint, you can use a custom version of pylint by modifying this
// setting to include the full …Run Code Online (Sandbox Code Playgroud) python visual-studio-code windows-subsystem-for-linux vscode-settings bash-on-windows
我在Win10中使用Windows子系统Linux(Ubuntu 18.04),我在其中安装了一个Maven.此外,我之前在Win10中安装了一个maven.现在,当我mvn compile在WSL中使用时,它告诉我maven编译失败.我使用which mvn并发现它引用了Win10中安装的Maven.
此外,我运行env并发现Win10的路径被添加到WSL的路径中.当我使用WSL时,我不想在Win10的Path中使用任何东西,我该怎么办?
我已经为 Windows 安装了 Docker 作为一个完整的菜鸟,希望尝试一下。我确保 Hyper-V 已启用,虚拟化也已启用
任何时候我尝试运行 docker 桌面时,鲸鱼图标都是红色的,它表明它无法启动,如果我尝试从 cmd 运行命令,我会收到以下错误
连接时出错:获取 http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/images/json: open //./pipe/docker_engine: 系统找不到指定的文件。在 Windows 上的默认守护程序配置中,必须提升 docker 客户端运行以进行连接。此错误也可能表示 docker 守护程序未运行。
我不知道如何解决问题。
我还注意到,即使我通过添加/删除程序完全卸载 Docker,我列出 WSL 设备时的状态始终设置为“正在安装”
windows docker windows-subsystem-for-linux docker-for-windows
/home/user/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 是无效版本,未来版本将不再支持
造成这种情况的原因是什么?可以采取什么措施来解决它?
我已经为 Windows 11 发行版和 Ubuntu 20.04 安装了 WSL。我看到很多人说我可以使用命令而无需使用wsl命令打开发行版。
不知怎的,这对我不起作用。当我输入命令时,wsl结果是:
Processing fstab with mount -a failed.
Run Code Online (Sandbox Code Playgroud)
例如:wsl rsync -r -v /mnt/d/DUMMY_SOURCE/ /mnt/e/DUMMY_DESTINATION
唯一真正有效的 wsl 命令是wsl -l -v
NAME STATE VERSION
* docker-desktop-data Stopped 2
docker-desktop Stopped 2
Ubuntu-20.04 Stopped 2
Run Code Online (Sandbox Code Playgroud)
我的设置有什么问题吗?
我尝试在我的 WSL2 本地主机客户端和服务器之间发送 udp 数据包,我可以成功发送数据,但是当想要在wireshark上进行分析时,wireshark无法在环回流量适配器和vEthernet捕获处捕获任何内容。在发送者代码之后运行程序和wireshark窗口图像。
发送者.cpp
#define PORT 50254
int main(){
Client* client = new Client("127.0.0.1", PORT);
memset(&client->serv_addr, 0, sizeof(client->serv_addr));
client->serv_addr.sin_family = AF_INET;
client->serv_addr.sin_port = htons(port);
client->serv_addr.sin_addr.s_addr = inet_addr(client->ipAddres);
if ((client->Socket = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
perror("socket creation failed");
exit(EXIT_FAILURE);
}
if (connect(client->Socket, (struct sockaddr*)&client->serv_addr, sizeof(client->serv_addr)) < 0)
{
printf("\n Error : Connect Failed \n");
exit(0);
}
char* message = "Hello Server";
cout << "Sent Size : " << send(client->Socket,message, 100, 0) << endl;
}
Run Code Online (Sandbox Code Playgroud)
windows-subsystem-for-linux ×10
ubuntu ×4
linux ×2
windows ×2
bash ×1
c++ ×1
colors ×1
docker ×1
maven ×1
mount ×1
mysql ×1
path ×1
pipenv ×1
powershell ×1
python ×1
terminal ×1
virtualenv ×1
windows-10 ×1
wireshark ×1