03 2024 档案
摘要:node.js开发环境搭建 前端主要使用javascript或typescript语言,前端项目主要使用node.js(提供运行环境)+npm(管理项目包依赖)进行项目构建,而node.js与npm版本关系有耦合,因此需要使用nvm工具统一管理node.js与npm的版本。 安装nvm 更多细节参考
阅读全文
摘要:Ubuntu搭建Samba服务 使用samba服务可以跨系统的进行文件共享,安装samba服务的步骤如下: 安装步骤 安装基础软件 sudo apt-get install samba sudo apt-get install smbclient # 验证安装 samba -V 目录配置 使用编
阅读全文
摘要:tailscale drop使用 Taildrop · Tailscale Docs 在linux中使用比较特殊,需要使用命令行工具 发送格式: tailscale file cp <files> <name-or-ip>: # For example, you can send a text fi
阅读全文
摘要:外部网络通过ssh连接WSL2 需要配置wsl2网络模式为镜像模式,并打开防火墙。最终可以实现通过局域网访问WSL2容器,同时当宿主机可以访问ipv6时,容器也自动支持。 升级wsl为最新版 wsl --update 修改wsl位置文件.wslconfig,主要有以下两点关键步骤 设置网络模式为
阅读全文
摘要:ubuntu搭建swift开发环境 安装homebrew:https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/ 通过homebrew安装swift 安装homebrew 新建setup_homebrew_env.sh #!/bin/bash exp
阅读全文
摘要:Docker搭建smb共享服务器 快速启动 docker run -it --name samba \ -p 139:139 \ -p 445:445 \ -v /path/to/share:/share_dir \ -d dperson/samba \ -u "username;password"
阅读全文