TiddlyWiki / TiddlyDesktop

A custom desktop browser for TiddlyWiki 5 and TiddlyWiki Classic, based on nw.js
1.63k stars 121 forks source link

TD on Chromebook #268

Closed gaenalitrak closed 1 year ago

gaenalitrak commented 1 year ago

Nice to meet you. I'm trying to run TiddlyDesktop on Linux (Debian 11) on a Chromebook running ChromeOS 109. Netrw is installed and I tried to run nw in the TD directory stored in the Linux area of the Chromebook with './nw' in the terminal, but the following message appears. The same goes for running with 'sudo ./nw'. (The terminal of Chrome OS itself and the xfce4-Terminal installed on Linux both show the same result.)

How do I run TD on my Chromebook (ChromeOS)?

username@penguin:~/TiddlyDesktop-linux64-v0.0.16$ ./nw [3606:3606:0215/120627.729681:FATAL:spawn_subprocess.cc(221)] posix_spawn: Permission denied (13)

0 0x7939ca411c33 (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x61d3c32)

1 0x7939ca426e96 (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x61e8e95)

2 0x7939ca427e1a (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x61e9e19)

3 0x7939cba1205c (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x77d405b)

4 0x7939cba0730a (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x77c9309)

5 0x7939cc9addb5 (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x876fdb4)

6 0x7939cc9aaead (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x876ceac)

7 0x7939c64591b8 (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x221b1b7)

8 0x7939c9f62341 (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x5d24340)

9 0x7939c9f5fe88 (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x5d21e87)

10 0x7939c9f6026a (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x5d22269)

11 0x7939c64571c5 (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x22191c4)

12 0x7939c4038d0a (/usr/lib/x86_64-linux-gnu/libc-2.31.so+0x23d09)

[3605:3605:0215/120627.828908:FATAL:crashpad_linux.cc(195)] Check failed: client.StartHandler(handler_path, *database_path, metrics_path, url, annotations, arguments, false, false).

0 0x7939ca411c33 (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x61d3c32)

1 0x7939ca426e96 (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x61e8e95)

2 0x7939ca427bce (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x61e9bcd)

3 0x7939cc9addec (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x876fdeb)

4 0x7939cc9aaead (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x876ceac)

5 0x7939c64591b8 (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x221b1b7)

6 0x7939c9f62341 (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x5d24340)

7 0x7939c9f5fe88 (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x5d21e87)

8 0x7939c9f6026a (/home/username/TiddlyDesktop-linux64-v0.0.16/lib/libnw.so+0x5d22269)

9 0x7939c64571c5 ChromeMain

10 0x7939c4038d0a __libc_start_main

gaenalitrak commented 1 year ago

I was so desperate and wanted to solve this problem and use TiddlyDesktop on my Chromebook as well. I searched and searched and searched and found the answer.

It was resolved by using the tip of user 'shamun' posted at https://github.com/nwjs/nw.js/issues/136. But I didn't understand what this command does specifically, it just solved the problem!

  1. Open Terminal on your Chromebook and enter Linux. (Note that this is the terminal you run through the launcher, not the terminal run by the Ctrl + Alt + T shortcut!)
  2. Go to the TiddlyDesktop directory.
  3. Enter the following command. sed -i 's/\x75\x64\x65\x76\x2E\x73\x6F\x2E\x30/\x75\x64\x65\x76\x2E\x73\x6F\x2E\x31/g' nw
  4. Enter ./nw to see if TiddlyDesktop runs well.
  5. If it doesn't seem to work, try typing the following command as well. sudo apt install netrw
  6. It will probably run. You can cheer, but it's not an obligation.

FYI, this problem seems to be a Linux problem, not a problem with a Chromebook. If you open a terminal in Linux and follow the above method, the problem seems to be solved!

Screenshot 2023-02-16 18 17 52

Screenshot 2023-02-16 18 18 36


저는 너무나 간절했고 이 문제를 해결하여 저의 크롬북에서도 TiddlyDesktop을 쓰고 싶었습니다. 이렇게도 검색해보고 저렇게도 검색해본 결과 답을 찾았습니다.

https://github.com/nwjs/nw.js/issues/136에 올라온 'shamun' 사용자의 팁을 사용하니 해결되었습니다. 하지만 저는 이 명령어가 구체적으로 어떤 역할을 하는지에 대해서는 이해하지 못했고 단지 문제가 해결되었을 뿐입니다!

  1. 크롬북의 터미널을 열고 리눅스로 들어갑니다. (Ctrl + Alt + T 단축키로 실행되는 터미널이 아니라 런처를 통해 실행하는 터미널임에 주의 바랍니다.)
  2. TiddlyDesktop 디렉터리로 이동합니다.
  3. 다음의 명령어를 입력합니다. sed -i 's/\x75\x64\x65\x76\x2E\x73\x6F\x2E\x30/\x75\x64\x65\x76\x2E\x73\x6F\x2E\x31/g' nw
  4. ./nw를 입력하여 TiddlyDesktop이 잘 실행되는 것을 확인합니다.
  5. 만일 잘 안되는 것 같다면 다음의 명령도 입력해 봅니다. sudo apt install netrw
  6. 아마 실행이 될겁니다. 환호성을 지를 수는 있지만 의무는 아닙니다.

참고로 이 문제는 크롬북이라 생기는 문제가 아니라 리눅스의 문제인 것 같습니다. 리눅스에서도 터미널을 열어 위 방법을 따라하면 문제가 해결 될것 같습니다.