diff --git a/app/config.yaml b/app/config.yaml index 2ff080f..d6c4dd7 100644 --- a/app/config.yaml +++ b/app/config.yaml @@ -63,7 +63,17 @@ browsers: about: 'https://en.wikipedia.org/wiki/Chromium_(web_browser)' skip_random: true - # WWW + # Lynx + - id: lynx + name: lynx + os: 'Linux' + icon: 'lynx.png' + path: lynx + version: '2.8.9' + about: 'https://en.wikipedia.org/wiki/Lynx_(web_browser)' + skip_random: true + + # WWW - id: www name: 'WWW' os: 'NextSTEP' diff --git a/app/static/icons/lynx.png b/app/static/icons/lynx.png new file mode 100644 index 0000000..74130bf Binary files /dev/null and b/app/static/icons/lynx.png differ diff --git a/browsers/lynx/Dockerfile b/browsers/lynx/Dockerfile new file mode 100644 index 0000000..0c3737a --- /dev/null +++ b/browsers/lynx/Dockerfile @@ -0,0 +1,14 @@ +FROM netcapsule/base-browser + +RUN apt-get update && apt-get install -y \ + lynx-cur \ + && rm -rf /var/lib/apt/lists/* + +USER browser + +COPY run.sh /app/run.sh +RUN sudo chmod a+x /app/run.sh + +CMD /app/entry_point.sh /app/run.sh + + diff --git a/browsers/lynx/run.sh b/browsers/lynx/run.sh new file mode 100644 index 0000000..5a51936 --- /dev/null +++ b/browsers/lynx/run.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +#fvwm -d $DISPLAY & + +sudo chmod a+x /usr/bin/xterm + +run_browser xterm -maximized -w 0 -bd black -fg white -bg black -e 'lynx -use_mouse -telnet -restrictions=shell,file_url "$URL"' +