Windows 10 共享文件夹设置无需用户名密码访问
{mtitle title="文件夹右键属性 选择共享 添加 Everyone 添加后可设置读写权限"/}
{mtitle title="设置 Everyone 给与 读/写 权限"/}
{mtitle title="权限添加 Everyone 不然没有权限访问"/}
{mtitle title="设置安全策略 Win+R 打开运行 输入 secpol.msc 打开 启用 Everyone 权限应用于匿名用户"/}
{mtitle title="本地账户的共享和安全模型 设置 仅来宾"/}
{mtitle title="最后直接访问共享文件夹就行了 祝你好运"/}
Windows Server 2022 21H2(OS build 20348.587) Setup Key
– Server 零售版内置公钥:
RGN6B-MCPWX-6K6GK-HKM33-7VCXY – Standard 标准版(非图形界面和桌面体验)
DNVBD-FCT8Y-TQT8Q-HGQ34-QGRRV – Datacenter 数据中心版(非图形界面和桌面体验)
– Server GVLK 内置公钥:
VDYBN-27WPP-V4HQT-9VMD4-VMK7H – Standard 标准版(非图形界面和桌面体验)
WX4NM-KYWYW-QJJR4-XV3QB-6VM33 – Datacenter 数据中心版(非图形界面和桌面体验)
Ubuntu 20.04 Ubuntu Server 启用默认 root 用户登录
全部修改完成后 reboot 后即可自动登录 root
修改文件:
sudo vim /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
新增内容:
greeter-show-manual-login=true
all-guest=false
修改文件:
sudo vim /etc/pam.d/gdm-autologin
注释内容:
auth required pam_succeed_if.so user != root quiet_success
修改文件:
sudo vim /etc/pam.d/gdm-password
注释内容:
auth required pam_succeed_if.so user != root quiet_success
修改文件:
sudo vim /root/.profile
最后一行:
mesg n 2 || true 修改 tty -s && mesg n || true
修改文件:
sudo vim /etc/gdm3/custom.conf
取消注释:
AutomaticLoginEnable=True
AutomaticLogin=root
C++ 实现完美转发
template<class Fun, class... Args>
constexpr auto wrap_call(Fun&& f, Args&&... args)
noexcept(std::forward<Fun>(f)(std::forward<Args>(args)...))->decltype(std::forward<Fun>(f)(std::forward<Args>(args)...))
{
return std::forward<Fun>(f)(std::forward<Args>(args)...);
}
template<typename R, typename Fun, typename... Args>
constexpr auto wrap_call_ex(Fun&& f, Args&&... args)
{
return std::invoke(reinterpret_cast<R(__stdcall*)(Args ...)>(typename::std::forward<Fun>(f)), typename::std::forward<Args>(args)...);
}