測試可以用:
docker container run --rm \ --add-host="host.docker.internal:host-gateway" \ debian:stable-slim \ bash -c "apt-get update && apt-get install -y iputils-ping && ping -c 3 host.docker.internal"
docker container run --rm \ --add-host="host.docker.internal:host-gateway" \ debian:stable-slim \ bash -c "apt-get update && apt-get install -y iputils-ping && ping -c 3 host.docker.internal"
ERROR Could not find the character "None" inside characters/. No character has been loaded. ... ... File "/home/charles-chang/text-generation-webui/modules/chat.py", line 673, in load_character raise ValueError查source 是在 parameter tab 的 chat tab 的Character option 中,沒有選任何一個(Assistant, Example),所以是None
pacman -S git mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-SDL2_mixer mingw64/mingw-w64-x86_64-SDL2_image mingw64/mingw-w64-x86_64-SDL2_ttf mingw64/mingw-w64-x86_64-SDL2_net mingw64/mingw-w64-x86_64-cmake make測試:
$ sdl2-config --cflags --libs -IC:/msys64/ucrt64/include/SDL2 -Dmain=SDL_main -LC:/msys64/ucrt64/lib -lmingw32 -mwindows -lSDL2main -lSDL2用上面ref 的 example:
#include &;t;stdio.h> #include <SDL2/SDL.h> const int WIDTH = 800, HEIGHT = 600; int main(int argc, char *argv[]) { SDL_Window *window; SDL_Renderer *renderer; if(SDL_Init(SDL_INIT_EVERYTHING) < 0) { printf("SDL_Init failed: %s\n", SDL_GetError()); return 1; } window = SDL_CreateWindow("Hello, World!", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, WIDTH, HEIGHT, SDL_WINDOW_ALLOW_HIGHDPI); if(window == NULL) { printf("Could not create window: %s\n", SDL_GetError()); return 1; } renderer = SDL_CreateRenderer(window, -1, 0); SDL_SetRenderDrawColor(renderer, 255, 0, 0, 255); SDL_RenderClear(renderer); SDL_RenderPresent(renderer); SDL_Event event; while(1) { if(SDL_PollEvent(&event)) { if(event.type == SDL_QUIT) { break; } } } SDL_DestroyWindow(window); SDL_Quit(); return 0; }build:
$ gcc -o testsdl testsdl.c `sdl2-config --cflags --libs`
來自 David Macek <david.macek.0@gmail.com> 的簽章信任等級不明然後這一篇 有說明一個危險的方法,disable signature verification.
Disabling signature checking Warning: Use with caution. Disabling package signing will allow pacman to install untrusted packages automatically. If you are not concerned about package signing, you can disable PGP signature checking completely. Edit /etc/pacman.conf and uncomment the following line under [options]: SigLevel = Never You need to comment out any repository-specific SigLevel settings too because they override the global settings. This will result in no signature checking, which was the behavior before pacman 4. If you decide to do this, you do not need to set up a keyring with pacman-key. You can change this option later if you decide to enable package verification.
ValueError: Loading models/microsoft_Phi-3-mini-128k-instruct requires you to execute the configuration file in that repo on your local machine. Make sure you have read the code there to avoid malicious use, then set the option `trust_remote_code=True` to remove this error.在model tab 有一個checkbox 剛好就是 trust_remote_code,上面的說明:
Set trust_remote_code=True while loading the tokenizer/model. To enable this option, start the web UI with the --trust-remote-code flag.所以是在啟動的時候...
./start_linux.sh --listen --trust-remote-code哪個checckout 就check 了,model load and run OK
Rust is installed now. Great! To get started you may need to restart your current shell. This would reload your PATH environment variable to include Cargo's bin directory ($HOME/.cargo/bin). To configure your current shell, you need to source the corresponding env file under $HOME/.cargo. This is usually done by running one of the following (note the leading DOT): . "$HOME/.cargo/env" # For sh/bash/zsh/ash/dash/pdksh source "$HOME/.cargo/env.fish" # For fish
apt install rustc就會install rustc.
apt install cargo就會 install cargo 和 rustc.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh然後就是
info: downloading installer Welcome to Rust! This will download and install the official compiler for the Rust programming language, and its package manager, Cargo. Rustup metadata and toolchains will be installed into the Rustup home directory, located at: /home/charles/.rustup This can be modified with the RUSTUP_HOME environment variable. The Cargo home directory is located at: /home/charles/.cargo This can be modified with the CARGO_HOME environment variable. The cargo, rustc, rustup and other commands will be added to Cargo's bin directory, located at: /home/charles/.cargo/bin This path will then be added to your PATH environment variable by modifying the profile files located at: /home/charles/.profile /home/charles/.bashrc You can uninstall at any time with rustup self uninstall and these changes will be reverted. Current installation options: default host triple: x86_64-unknown-linux-gnu default toolchain: stable (default) profile: default modify PATH variable: yes 1) Proceed with standard installation (default - just press enter) 2) Customize installation 3) Cancel installation > info: profile set to 'default' info: default host triple is x86_64-unknown-linux-gnu info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' info: latest update on 2025-01-09, rust version 1.84.0 (9fc6b4312 2025-01-07) info: downloading component 'cargo' info: downloading component 'clippy' info: downloading component 'rust-docs' info: downloading component 'rust-std' info: downloading component 'rustc' 70.6 MiB / 70.6 MiB (100 %) 36.5 MiB/s in 1s ETA: 0s info: downloading component 'rustfmt' info: installing component 'cargo' info: installing component 'clippy' info: installing component 'rust-docs' info: installing component 'rust-std' 29.0 MiB / 29.0 MiB (100 %) 22.9 MiB/s in 1s ETA: 0s info: installing component 'rustc' 70.6 MiB / 70.6 MiB (100 %) 24.6 MiB/s in 2s ETA: 0s info: installing component 'rustfmt' info: default toolchain set to 'stable-x86_64-unknown-linux-gnu' stable-x86_64-unknown-linux-gnu installed - rustc 1.84.0 (9fc6b4312 2025-01-07) Rust is installed now. Great! To get started you may need to restart your current shell. This would reload your PATH environment variable to include Cargo's bin directory ($HOME/.cargo/bin). To configure your current shell, you need to source the corresponding env file under $HOME/.cargo. This is usually done by running one of the following (note the leading DOT): . "$HOME/.cargo/env" # For sh/bash/zsh/ash/dash/pdksh source "$HOME/.cargo/env.fish" # For fish