这个很有用。恢复SSH
chmod 550 /root
chmod 600 /root/.ssh
chmod 755 /var/empty/sshd
chmod 400 /etc/ssh/*
service sshd restart
chmod 550 /root
chmod 600 /root/.ssh
chmod 755 /var/empty/sshd
chmod 400 /etc/ssh/*
service sshd restart
Web ui:
先进网站下载代码:https://github.com/AUTOMATIC1111/stable-diffusion-webui
再安装 python 3.10.6 (最好是这个。如果是其它。安装其它软件库时可能会出错)
https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe
安完可能要增加环境变量,在命令行输入python --version 如果有正常输出。而不是弹出win商店则不用手动增加环境变量
C:\Users\<你的用户名换一下>\AppData\Local\Programs\Python\Python310
C:\Users\<你的用户名换一下>\AppData\Local\Programs\Python\Python310\Scripts
注意一定要加在系统级的path下
设置完后重启电脑或注销用户。
也可以使用命令:
set path=c
然后关掉CMD后再启动就有了。
再装Python一些插件(可选):
python.exe -m pip install --upgrade pip
pip install flowdas
pip install python-socketio==5.7.2
pip install GitPython
pip install PythonMeta
pip install launch
Win:
然后双击目录下的:webui-user.bat
模型下载:
https://civitai.com/
下载完后放在 web-ui/models/目录就可以。然后重启web-ui(那个黑色窗口关了再开就好)
PS:
关于代理:
直接修改脚本增加 webui-user.bat:
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=
set HTTPS_PROXY=http://127.0.0.1:1080
call webui.bat
记录只设置https不要加http,Python会自检,使用http不然就不过了。而且外面只用https所以完美解决。也不用做其它过滤啥的。
一些教程:https://ivonblog.com/posts/stable-diffusion-webui-manuals/zh-cn/
Blender用于3D建模
https://www.blender.org/
Krita用于创建2D图片
https://krita.org/en
MAC国内源安装brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
有可能装完安装软件会:Command failed with exit 128: git
这时再。。。。再傻傻装一次官方的就好了。。。。
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
具体也懒得理了。做个备忘录吧。
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
</resources>