avatar
文章
55
标签
22
分类
3
主页
博文
  • 分类
  • 标签
  • 归档
wiki
友链
开往
Diraw的世界
搜索
主页
博文
  • 分类
  • 标签
  • 归档
wiki
友链
开往

Diraw的世界

双系统windows时间显示不对
发表于2025-04-06|计算机| 条评论
原因linux会自动把BIOS改成伦敦时间(GMT+0),windows不知道,错把BIOS当成北京时间(GMT+8),所以windows上的时间会晚8个小时 解决管理员身份打开终端,输入 Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1 代码学习Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1 Reg add: 这是Windows命令行工具 reg.exe 的一个命令,用于向注册表中添加新的键或值。 HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation: 这是注册表路径。 HKLM 代表...
ubuntu安装cuda驱动
发表于2025-04-05|计算机| 条评论
一、安装nvidia-driver运行 ubuntu-drivers devices (base) diraw@solitude:~$ ubuntu-drivers devices== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==modalias : pci:v000010DEd00002520sv00001043sd00001CBCbc03sc00i00vendor : NVIDIA Corporationmodel : GA106M [GeForce RTX 3060 Mobile / Max-Q]driver : nvidia-driver-570-server-open - distro non-freedriver : nvidia-driver-550-open - distro non-freedriver : nvidia-driver-545 - distro non-freedriver : nvidia-driver-470-server - distro...
重装ubuntu初始化
发表于2025-04-05|计算机| 条评论
1、安装clash https://app.chongjin01.icu/Linux/ dpkg出现依赖错误,使用sudo apt install -f 2、安装QQ https://im.qq.com/linuxqq/index.shtml 3、安装vscode https://diraw.top/2025/04/04/CS/Linux/2/ 4、安装flameshot https://github.com/flameshot-org/flameshot 设置-键盘-快捷键,命令为flameshot gui 5、安装输入法 SunPinYin:sudo apt-get install ibus-sunpinyin 6、安装anaconda https://www.anaconda.com/download/success 记得最后把conda添加到环境变量,如果忘了话执行:eval "$(/home/diraw/anaconda3/bin/conda shell.bash hook)" 镜像源: pip:pip config set global.index-url...
如何缩短Linux终端中显示的用户名前缀
发表于2025-04-04|计算机| 条评论
问题描述 新装的ubuntu,这个终端的名称也太长了,主要是@后面这个设备名,所以我想把这玩意儿改短一些 解决办法打开~/.bashrc文件,找到如下内容: if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ 'else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ 'fi ${debian_chroot:+($debian_chroot)}:这是一个参数扩展。 如果设置了 debian_chroot 变量,则将其值包含在提示符中,并用括号括起来。 这通常用于在 chroot 环境中指示当前环境。 如果 debian_chroot 未设置,则此部分不显示任何内容。 用echo命令输出:echo...
在ubuntu上面安装vscode需注意的
发表于2025-04-04|计算机| 条评论
问题描述不要直接在ubuntu自带的应用商店上下载vscode!因为中文输入法会有问题,输入法会显示在vscode左下角,很别扭。网上有的是无法用拼音输入汉字。 解决办法解决办法参考Ubuntu20.04中VScode不能输入中文解决 1、去应用商店中卸载vscode 2、使用apt安装vscode sudo apt update sudo apt install software-properties-common apt-transport-https wget 使用命令插入Microsoft GPG key:wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add - 启动vscode源仓库:sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" 安装vscode:sudo apt install...
如何在ubuntu上面安装hexo
发表于2025-04-04|计算机| 条评论
设备信息22.04.1-Ubuntu 安装步骤安装过程参考官方文档 1、安装git: sudo apt-get install git-core 2、安装node.js(Node.js 是一个开源、跨平台的 JavaScript 运行时环境) node.js的安装过程参考官方文档 安装curl(curl 是一个命令行工具,通常用于从服务器下载文件、向服务器发送数据、测试 API 端点等):sudo apt-get install -y curl 下载node.js环境setup脚本:curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh 运行setup脚本:sudo -E bash nodesource_setup.sh 安装node.js:sudo apt-get install -y nodejs 查看版本:node -v 3、安装hexo: npm install -g hexo-cli 如果出现如下图 EACCES...
Hexo部署twikoo功能时MongoDB报错:tlsv1 alert internal error
发表于2025-01-07|计算机| 条评论
如下所示: { "code": 1000, "message": "80D8C13E607F0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:ssl/record/rec_layer_s3.c:907:SSL alert number 80\n"} 这个是使用SSL/TLS连接的时候出现了错误,之后我发现是MongoDB防火墙的问题(虽然我记得初始化的时候命明明设置了0.0.0.0/0的,但不知道为什么没设置成功) 解决步骤:进入MongoDB面板-左侧选择Network Access-点击右侧ADD IP ADDRESS-添加0.0.0.0/0即可 这是再重新访问MongoDB即恢复正常: { "code": 100, "message": "Twikoo 云函数运行正常,请参考 https://twikoo.js.org/frontend.html 完成前端的配置", "version": "1.6.41"}
Butterfly魔改5:在网站底部添加建站时间
发表于2025-01-05|计算机| 条评论
前言看官方文档的时候,明明busuanzi是有个“网站已运行时间的”,但是这里就没有。那就自己弄一个吧,这玩意儿看着感觉还是挺有成就感的。 步骤在 \themes\butterfly\layout\includes\footer.pug 的最后添加如下代码即可: // Add the time calculation scriptdivspan#timeDate 载入天数...span#times 载入时分秒...script. var now = new Date(); function createtime() { var grt = new Date("1/2/2025 21:36"); // 在此处修改你的建站时间 now.setTime(now.getTime() + 250); days = (now - grt) / 1000 / 60 / 60 / 24; dnum = Math.floor(days); hours = (now - grt) / 1000 / 60 / 60 - (24 * dnum); ...
Butterfly魔改准备工作:文件管理魔改代码
发表于2025-01-04|计算机| 条评论
前言对于一些全局的改变,我们可以用文件来管理更方便。 步骤 在 \themes\butterfly\source\css 目录下添加 custom.css 文件 在 \themes\butterfly\source\js 目录下添加 custom.js 文件 在内层 _config.yml 文件中搜索 inject 或者直接在外层 _config.butterfly.yml 文件中添加如下代码即可: # Inject# Insert the code to head (before '</head>' tag) and the bottom (before '</body>' tag)inject: head: - <link rel="stylesheet" href="/css/custom.css"> bottom: - <script src="/js/custom.js"></script> 之后,对于一些全局的修改都可以在 custom.css 和 custom.js...
Butterfly魔改4:自动检测深色/浅色模式
发表于2025-01-04|计算机| 条评论
前言添加功能:根据系统的深色/浅色模式,自动切换网站的深色/浅色模式。 方法1在 \themes\butterfly\layout\includes\head.pug 的最后添加如下代码: script. function updateTheme() { const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches; document.documentElement.setAttribute('data-theme', isDarkMode ? 'dark' : 'light'); } // 初始设置 updateTheme(); // 监听系统主题变化 window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', updateTheme); 方法2(推荐)先跟着Butterfly魔改准备工作:文件管理魔改代码完成准备。 在 custom.js...
1…456
avatar
Diraw
希望能构建心中的一片圣地
文章
55
标签
22
分类
3
Follow Me
公告

所有知识整理类博文已全部移动至wiki文档

其他站点
资料分享
云盘服务
词源文档
最新文章
使用Tailscale对多台服务器进行内部组网并进行流量转发2025-10-14
在debian服务器上搭建syncthing中转2025-10-06
使用diskpart格式化u盘2025-10-06
分类
  • 生活3
  • 英语2
  • 计算机50
标签
linux8ubuntu8vscode3Hexo18cuda1windows8powershell1注册表2c++1git4ssh3github2服务器11webdav1obsidian1debian6cloudreve1python1记录3Butterfly14wsl1英语2
网站信息
文章数目 :
55
本站总字数 :
38.7k
本站访客数 :
本站总浏览量 :
最后更新时间 :
©2025 By Diraw
框架 Hexo|主题 Butterfly
蜀ICP备2025147634号-1
载入天数...载入时分...
搜索
数据加载中