The 2ndDim: That was I talking about!
483 subscribers
486 photos
11 videos
10 files
938 links
某1stDim的分支项目: 2ndDim
这里只是一个分享有趣见闻的channel,消息来自各种地方。希望你能喜欢。



也许你还想看看这里:
某Moeka的日常频道 - @MoekaChannel
Download Telegram
#WTF

HELLO MOTO

// 有声音了!
#WTF

Mikrotik RouterOS WinBox, now available in SteamVR!

// Discord抽风
#WTF #SoftwareGore

Bixby主页入侵到桌面首页了...
#工具 #折腾 #WTF #CanoKey

新买了个CanoKey,想用FIDO2做完整的全盘加密开机,正好CanoKey的文档里面提到了可以这么做
1. khefin,作者停止维护了。因为有 systemd-cryptsetup实现了功能。
2. systemd-cryptsetup: 一位systemd开发者的blog写了如何使用这个功能:
http://0pointer.net/blog/unlocking-luks2-volumes-with-tpm2-fido2-pkcs11-security-hardware-on-systemd-248.html

————————

操作系统的选择:
1. 首先排除Debian 11,因为Debian 11的systemd版本是247,此功能需要248.
2. Arch用户基本上应该立刻就能用。
3. Fedora 35+应该也能用。
4. Ubuntu 22.04 使用的systemd是249,应该可以使用。

准备用Ubuntu 22.04来测试。

————————

1. 首先尝试运行FIDO2的enroll动作,得到报错:fido2 tokens not supported on this build

检索错误消息找到:https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1937019

得到的信息是,Ubuntu 22.04锁定发布版本时,Debian 在 systemd 250时才做了相应的支持。

最后一个消息提到 Ubuntu 22.04 上面已经发布了支持FIDO2的 systemd-cryptsetup: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1969375

可以看到相关软件包进入 jammy-proposed 仓库,需要开启预发布软件分支。
开启jammy-proposed后更新系统,重新执行FIDO2设置,能够正常完成。

————————

2. 尝试update-initramfs使得加密卷的信息更改在开机的initrd里生效,得到警告消息: ignoring unknown option fido2-device

检索错误消息找到:https://forums.debian.net/viewtopic.php?p=750216

Debian/Ubuntu默认管理initrd的工具使用的是传统的cryptsetup,不支持FIDO2解锁,需要换成systemd-cryptsetup。(Fedora应该就没有这个破事,因为Fedora本身就是用dracut。)
因此需要把initrd生成换成dracut。不过因为Debian是动态链接这些FIDO/TPM支持的,如果initrd里面没有对应的依赖,那么对应功能就不能使用。

这位作者最后给出了一套完整的解决方案:https://www.guyrutenberg.com/2022/02/17/unlock-luks-volume-with-a-yubikey/

————————

3. 最终成功实现,效果很棒。

————————

Update:
1. TPM 2.0的解锁也可以按照这个流程。不过不知道为什么,TPM 2.0在更新 jammy-proposed 之前就能正常开始流程。因此配置TPM的时候可以不安装预发布软件包,但dracut很有可能是仍然是需要的。

2. Debian 11 可以开启 Backports 仓库使用高版本的systemd,当前可用版本 systemd==251.3-1~bpo11+1 ( #投稿 by iLemonrain)
#转发 #WTF #PSA #SAMSUNG

https://youtu.be/OfM0GqsIB6c

⚠️ 公共安全警告 ⚠️

如果你有三星手机或者平板等设备,如果电池处于完全耗尽状态且放置很久,该设备的电池很有可能会因为内部的化学反应产生气体而变鼓。目前在其他品牌的手机上没有发现此种明显趋势。

⚠️警告: 鼓包的电池有可能会损坏设备、起火甚至爆炸。处理出现故障的锂电池时务必小心,且务必不要尝试破坏电池的包装材料。避免向已经严重鼓起的电池进一步充电。

目前已知的临时解决方法:
1. 请定期向这些闲置设备充电,保持至少50%的电池电量,这能显著减缓产生气体的化学反应的产生。
2. 正在活跃使用中的设备不受此问题的影响。

// 有其他网友提到,过放之后的电池一般不具备很大的能量。
// 如果只是因为电池过放导致的气体产生,只要不继续充电,一般情况下不会造成太大的危险性,可以由专业维修人员拆除后正常废弃处理。
#转发 #WTF

UDD Pump?好家伙这是连自己都给绕进去了是吧...?

https://github.com/uup-dump
#NovelAI #ACG

常用Step和CFG Scale的对比

1girl, shy, very_long_hair, white_hair, miko, fox_girl, loli, flat_breasts, pink_thighhighs, zettai_ryouiki, bangs, short_dress, long gloves, white gloves, looking_at_viewers, detached_sleeves, eyebrows_visible_through_hair, eyes_visible_through_hair, parted_lips, smile, game_cg, hair_ribbon, ribbon, red_ribbon, torii_background, day, noon, daylight, sun, cloud, blue,sky, sakura, (small_breasts),
Negative prompt: deformed,bad anatony,disfigured,mutation,mutated,extea limbs,ugly fat,missing limbs,floating limbs,disconnected Iimbs,long neck,long body,part of the head,mutated hands and fingers,itricate human hands fingers,poorly drawn hands,malformed hands,poorly drawn fat,poorly drawn asymmetrical eyes,deformed,disfigured,Intricete humanhands fngers, poorly drawn face,low resolution, bad hands,text, error, missing fingers, extra digit,fewer digits, cropped, worst quality, low quality, jpeg artifacts,signature,watermark,username,blurry, black_hair, black_thighhighs,
Sampler: Euler, Seed: 1772504817, Size: 384x256, Model hash: 925997e9

925997e9: animefull-final-pruned
stable-diffusion-webui: git commit = dccc181b55100b09182c1679c8dd75011aad7335

顺带一提,生成效果来看,剪裁过的(pruned)和没有剪裁的latest模型基本上没有区别。

XP by Kanade (大雾)
部分 Negative prompt by 🌽🦊