From 3601ddb14deee09ef0cd9bd6efade0c74decf273 Mon Sep 17 00:00:00 2001 From: naibo Date: Sat, 13 Jul 2024 22:11:07 +0800 Subject: [PATCH] New startup shell for sandbox --- .temp_to_pub/EasySpider_Linux_x64/easy-spider.sh | 7 +++++++ ExecuteStage/.vscode/launch.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.temp_to_pub/EasySpider_Linux_x64/easy-spider.sh b/.temp_to_pub/EasySpider_Linux_x64/easy-spider.sh index 1814cf4..01889b3 100755 --- a/.temp_to_pub/EasySpider_Linux_x64/easy-spider.sh +++ b/.temp_to_pub/EasySpider_Linux_x64/easy-spider.sh @@ -34,6 +34,13 @@ if [ "$os_name" == "Ubuntu" ] && [ "$major_version" -gt 24 ] || { [ "$major_vers sudo chown root:root "./EasySpider/resources/app/chrome_linux64/chrome-sandbox" sudo chmod 4755 "./EasySpider/resources/app/chrome_linux64/chrome-sandbox" fi +else + echo "如果报错“The SUID sandbox helper binary was found, but is not configured correctly”,请尝试执行以下命令后再次运行EasySpider:" + echo "If you encounter the error message “The SUID sandbox helper binary was found, but is not configured correctly”, please try run the following commands and run EasySpider again:" + echo "sudo chown root:root ./EasySpider/chrome-sandbox" + echo "sudo chmod 4755 ./EasySpider/chrome-sandbox" + echo "sudo chown root:root ./EasySpider/resources/app/chrome_linux64/chrome-sandbox" + echo "sudo chmod 4755 ./EasySpider/resources/app/chrome_linux64/chrome-sandbox" fi diff --git a/ExecuteStage/.vscode/launch.json b/ExecuteStage/.vscode/launch.json index 8d2580f..249b585 100644 --- a/ExecuteStage/.vscode/launch.json +++ b/ExecuteStage/.vscode/launch.json @@ -12,7 +12,7 @@ "justMyCode": false, // "args": ["--ids", "[7]", "--read_type", "remote", "--headless", "0"] // "args": ["--ids", "[9]", "--read_type", "remote", "--headless", "0", "--saved_file_name", "YOUTUBE"] - "args": ["--ids", "[3]", "--headless", "0", "--user_data", "0", "--keyboard", "0", + "args": ["--ids", "[5]", "--headless", "0", "--user_data", "0", "--keyboard", "0", "--read_type", "remote"] // "args": "--ids '[97]' --user_data 1 --server_address http://localhost:8074 --config_folder '/Users/naibo/Documents/EasySpider/ElectronJS/' --headless 0 --read_type remote --config_file_name config.json --saved_file_name" }