我正在尝试在Windows 10上的Windows子系统Linux上运行"屏幕"实用程序(版本1703,OS Build 15063.483).
似乎我需要额外的权限来运行它(如果我"sudo"它,它可以工作),但我不明白为什么这是必要的.
建议的方法是什么?
有什么理由说这不是默认设置吗?
$ screen
Cannot make directory '/var/run/screen': Permission denied
Run Code Online (Sandbox Code Playgroud) 我想将CTRL+TAB和CTRL++ (不带前缀SHIFT)绑定TAB到 minTTY/cygwin 下的 tmux 函数。
我尝试过以下 tmux 配置:
set-option -gw xterm-keys on
bind-key -n C-Tab next-window
bind-key -n "^[[1;5I" next-window # tmux doesn't recognize
bind-key -n "\e[1;5I" next-window # tmux doesn't recognize
Run Code Online (Sandbox Code Playgroud)
如果我在启动 tmux 后按CTRL+ TAB,我会听到铃声。如果我在 tmux 前缀之后点击它,它会打印1;5I
.
我在 cygwin/Babun 下使用 minTTY 2.2.3。我已通过其选项禁用了 minTTY 对此组合键的处理(SwitchShortcuts=no
在 中.minttyrc
)。
作为参考,CTRL+TAB和CTRL++适用于使用以下 .screenrc 循环SHIFT窗口: TABscreen
bindkey …
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用Mono 5在Linux构建服务器上编译我的新C#7代码.不幸的是,当我使用新的ValueTuple语法时,项目失败:
MyClass.cs(100,38):错误CS1003:语法错误,'('expected [/path/to/My.csproj]
我的项目文件中有以下包引用:
<PackageReference Include="System.ValueTuple" Version="4.3.0" />
Run Code Online (Sandbox Code Playgroud)
我在快速构建脚本中使用以下命令:
# msbuild My.sln /t:restore
# msbuild My.sln /p:Configuration=Release /p:Platform="Any CPU"
Run Code Online (Sandbox Code Playgroud)
并且MSBuild日志指示语言版本为7并显示对System.ValueTuple.dll的引用:
CoreCompile:
/usr/lib/mono/4.5/csc.exe/noconfig/unsafe-/checked-/nowarn:1701,1702,1705,1701,1702 / langversion:7/nostdlib +/errorreport:prompt/warn:4/doc:bin /Release/net461/My.xml/define:TRACE; RELEASE; NET461/highentropyva + ... /reference:/root/.nuget/packages/system.valuetuple/4.3.0/lib/netstandard1.0/System.ValueTuple. dll .../debug-/debug:portable/filealign:512/nologo/optimize + /out:obj/Release/net461/My.dll /subsystemversion:6.00/target:library/warnaserror-/utf8output/deterministic + My.cs" /tmp/.NETFramework,Version=v4.6.1.AssemblyAttributes.cs"obj/Release/net461/My.AssemblyInfo.cs
有没有人使用Mono 5在Linux上使用新的ValueTuple语法成功编译C#?它只是工作,还是你需要调整环境才能使它工作?
我的构建服务器正在运行Ubuntu 16.04并安装了mono-devel 5.0.1.1-0xamarin5 + ubuntu1604b1.