From 38f0fbae1b14405a583eb303223098d0a5332600 Mon Sep 17 00:00:00 2001 From: bilt Date: Sat, 26 Jul 2025 15:07:47 +0800 Subject: [PATCH] frp removed from script.sh --- script.sh | 67 ------------------------------------------------------- 1 file changed, 67 deletions(-) diff --git a/script.sh b/script.sh index 63198292a..9b03d45c8 100644 --- a/script.sh +++ b/script.sh @@ -102,70 +102,3 @@ cd /kaggle/ComfyUI cd custom_nodes git clone https://github.com/Vander-Bilt/MyHTMLNode.git cd /kaggle/ComfyUI - - - - -# Define the server address, local, and remote port variables. -# Usage: ./your_script_name.sh -# Example: ./your_script_name.sh 111.170.148.226 8188 21664 - -# Default values if arguments are not provided -SERVER_ADDR=${1:-'111.170.148.226'} -LOCAL_PORT=${2:-8188} -REMOTE_PORT=${3:-21664} - -echo "Starting frp setup with server: $SERVER_ADDR, local port: $LOCAL_PORT, and remote port: $REMOTE_PORT" - -# Create a working directory if it doesn't exist -mkdir -p /kaggle/working -cd /kaggle/working - -# Download frp -echo "Downloading frp_0.54.0_linux_amd64.tar.gz..." -wget -O frp_0.54.0_linux_amd64.tar.gz https://github.com/fatedier/frp/releases/download/v0.54.0/frp_0.54.0_linux_amd64.tar.gz - -# Extract frp -echo "Extracting frp..." -tar -xzvf frp_0.54.0_linux_amd64.tar.gz -C . - -# Copy frpc executable -echo "Copying frpc executable..." -cp -p frp_0.54.0_linux_amd64/frpc . - -# Create frpc.toml configuration file -echo "Creating frpc.toml configuration..." -cat < frpc.toml -serverAddr = '$SERVER_ADDR' -serverPort = 21661 -auth.method = "token" -auth.token = "072083" - -[[proxies]] -name = 'web-$REMOTE_PORT' # Name includes the remote port for clarity -type = 'tcp' -localIP = '127.0.0.1' -localPort = $LOCAL_PORT -remotePort = $REMOTE_PORT -EOF - -# Make frpc executable -echo "Setting execute permissions for frpc..." -chmod +x frpc - -# Sleep for a bit (as in the original Python code) -echo "Waiting for 3 seconds..." -sleep 3 - -cat frpc.toml - -# Start frpc in the background -echo "Starting frpc..." -./frpc -c frpc.toml & - -echo "frp has been started." -echo "Remote access URL: http://$SERVER_ADDR:$REMOTE_PORT/" - -sleep 1 - -cd /kaggle/ComfyUI \ No newline at end of file