[GH-ISSUE #3570] No history, bookmarks etc. preserved in lynx browser #2239

Closed
opened 2026-05-05 08:55:46 -06:00 by gitea-mirror · 30 comments
Owner

Originally created by @Rosika2 on GitHub (Aug 5, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3570

Environment

  • Linux distribution and version: Lubuntu 18.04.4 LTS, 64 bit
  • Firejail version 0.9.62
  • What other programs interact with the affected program for the functionality? lynx
  • Are these listed in the profile? lynx.profile

Hi altogether,

I´ve got a question concerning the use of lynx (terminal-browser) and firejail with the private option.

Wanting to use firejail with a defined work directory I use the command

firejail --private=/home/rosika/Dokumente/kgw/kgw2 lynx

Reading profile /etc/firejail/lynx.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Warning: networking feature is disabled in Firejail configuration file
Parent pid 6365, child pid 6366
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: skipping private-cache: cannot find /home/rosika/.cache
Blacklist violations are logged to syslog
Child process initialized in 5911173136384.00 ms

Parent is shutting down, bye...

It works well but when shutting down lynx no search history, bookmarks or cookies are preserved.
I know that´s the case with "--private" alone but I added a work-directory. So theoretically those items should be saved I guess.

Besides in the kgw2-folder only two items are created: .Xauthority and .bashrc.

As a second step I used the command

firejail --profile=/etc/firejail/default.profile --private=/home/rosika/Dokumente/kgw/kgw2 lynx  

Reading profile /etc/firejail/default.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Warning: networking feature is disabled in Firejail configuration file
Parent pid 6416, child pid 6417
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Child process initialized in 59.86 ms

Parent is shutting down, bye...


to see if there´s any difference.

In my private folder there´s one additional entry: besides .Xauthority and .bashrc there´s a folder called .config.
In it there are the folders pulse and fish. Pulse is empty and fish just contains the file "fishd.rosika-Lenovo-H520e".

So no lynx history, bookmarks or config-file either.

What am I doing wrong here? Could you help me in some way?

Thanks a lot in advance.

Greetings.
Rosika

Originally created by @Rosika2 on GitHub (Aug 5, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3570 **Environment** - Linux distribution and version: Lubuntu 18.04.4 LTS, 64 bit - Firejail version 0.9.62 - What other programs interact with the affected program for the functionality? lynx - Are these listed in the profile? lynx.profile ---------------------------------------------------------------------------------------------------------------------------------------------------- Hi altogether, I´ve got a question concerning the use of **lynx** (terminal-browser) and firejail with the _private option_. Wanting to use firejail **with a defined work directory** I use the command ``` firejail --private=/home/rosika/Dokumente/kgw/kgw2 lynx Reading profile /etc/firejail/lynx.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Warning: networking feature is disabled in Firejail configuration file Parent pid 6365, child pid 6366 Warning: cleaning all supplementary groups Warning: cleaning all supplementary groups Warning: skipping private-cache: cannot find /home/rosika/.cache Blacklist violations are logged to syslog Child process initialized in 5911173136384.00 ms Parent is shutting down, bye... ``` It works well but when shutting down lynx no search history, bookmarks or cookies are preserved. I know that´s the case with "--private" alone but I added a work-directory. So theoretically those items should be saved I guess. Besides in the kgw2-folder only two items are created: **.Xauthority** and **.bashrc**. As a second step I used the command ``` firejail --profile=/etc/firejail/default.profile --private=/home/rosika/Dokumente/kgw/kgw2 lynx Reading profile /etc/firejail/default.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Warning: networking feature is disabled in Firejail configuration file Parent pid 6416, child pid 6417 Warning: cleaning all supplementary groups Warning: cleaning all supplementary groups Warning: cleaning all supplementary groups Child process initialized in 59.86 ms Parent is shutting down, bye... ``` to see if there´s any difference. In my private folder there´s one additional entry: besides .Xauthority and .bashrc there´s a folder called **.config**. In it there are the folders **pulse** and **fish**. Pulse is empty and fish just contains the file "fishd.rosika-Lenovo-H520e". So no lynx history, bookmarks or config-file either. What am I doing wrong here? Could you help me in some way? Thanks a lot in advance. Greetings. Rosika
Author
Owner

@bbhtt commented on GitHub (Aug 5, 2020):

In my private folder there´s one additional entry: besides .Xauthority and .bashrc there´s a folder called .config.
..........
So no lynx history, bookmarks or config-file either.

What do you want to do? Retain changes when it is run inside the private directory after closing or use your current configuration inside private-directory or both?

<!-- gh-comment-id:669230643 --> @bbhtt commented on GitHub (Aug 5, 2020): >In my private folder there´s one additional entry: besides .Xauthority and .bashrc there´s a folder called .config. .......... So no lynx history, bookmarks or config-file either. What do you want to do? Retain changes when it is run inside the private directory after closing or use your current configuration inside private-directory or both?
Author
Owner

@Rosika2 commented on GitHub (Aug 5, 2020):

@kortewegdevries:

Hi and thank you for your reply.

What do you want to do? Retain changes when it is run inside the private directory after closing

Yes. That´s basically what I want to achieve.

When running my main browser "chromium-browser" I use this command:
firejail --private=/home/rosika/Dokumente/work chromium-browser
and all my bookmarks, history etc. are preserved.

I assumed this should work with lynx as well.

Greetings.
Rosika

<!-- gh-comment-id:669235220 --> @Rosika2 commented on GitHub (Aug 5, 2020): @kortewegdevries: Hi and thank you for your reply. > What do you want to do? Retain changes when it is run inside the private directory after closing Yes. That´s basically what I want to achieve. When running my main browser "chromium-browser" I use this command: `firejail --private=/home/rosika/Dokumente/work chromium-browser ` and all my bookmarks, history etc. are preserved. I assumed this should work with lynx as well. Greetings. Rosika
Author
Owner

@rusty-snake commented on GitHub (Aug 5, 2020):

It should work as well with lynx. I have absolutely no idea what causes this. @Rosika2 can you run firejail --noprofile --private=/home/rosika/CLEAN/PRIVATE/DIR lynx to see where they are stored (in the hope that this stores it).

<!-- gh-comment-id:669357203 --> @rusty-snake commented on GitHub (Aug 5, 2020): It should work as well with lynx. I have absolutely no idea what causes this. @Rosika2 can you run `firejail --noprofile --private=/home/rosika/CLEAN/PRIVATE/DIR lynx` to see where they are stored (in the hope that this stores it).
Author
Owner

@bbhtt commented on GitHub (Aug 6, 2020):

I assumed this should work with lynx as well.

This is working for me. I'm usingfirejail --private=/home/korte/TempDir /usr/bin/lynx wikipedia.com Lynx saves all bookmarks in lynx_bookmarks.html,.lynxrc and it stays there.

<!-- gh-comment-id:669630599 --> @bbhtt commented on GitHub (Aug 6, 2020): > I assumed this should work with lynx as well. This is working for me. I'm using`firejail --private=/home/korte/TempDir /usr/bin/lynx wikipedia.com` Lynx saves all bookmarks in `lynx_bookmarks.html,.lynxrc` and it stays there.
Author
Owner

@Rosika2 commented on GitHub (Aug 6, 2020):

@rusty-snake and @kortewegdevries:

Hi again and thanks a lot for your answers,

alas none of your suggestions work for me.

I tried both of you solution commands and in both cases I get exactly the same results as before:
Those files and folders are created:

  • .Xauthority and .bashrc (files)
  • .config (folder)
  • within .config: pulse and fish (folders)
  • pulse: empty
  • fish: fishd.rosika-Lenovo-H520e

After closing lynx all bookmarks are lost.
Very strange.

Greetings.
Rosika

<!-- gh-comment-id:669889520 --> @Rosika2 commented on GitHub (Aug 6, 2020): @rusty-snake and @kortewegdevries: Hi again and thanks a lot for your answers, alas none of your suggestions work for me. I tried both of you solution commands and in both cases I get exactly the same results as before: Those files and folders are created: - .Xauthority and .bashrc (files) - .config (folder) - within .config: pulse and fish (folders) - pulse: empty - fish: fishd.rosika-Lenovo-H520e After closing lynx all bookmarks are lost. Very strange. Greetings. Rosika
Author
Owner

@bbhtt commented on GitHub (Aug 6, 2020):

Are you using a different shell other than bash? Is the bookmark file being created?

<!-- gh-comment-id:669897289 --> @bbhtt commented on GitHub (Aug 6, 2020): Are you using a different shell other than bash? Is the bookmark file being created?
Author
Owner

@Rosika2 commented on GitHub (Aug 6, 2020):

Hi again,

yes, I use fish as my default shell.
But I tried the commands in bash as well. The results are the same.

No idea if it helps at all but I also noticed something else which seems a bit off:

Using the command
firejail --noprofile --private=/home/rosika/CLEAN/PRIVATE/DIR lynx -dump "https://itsfoss.community/t/most-recent-grub2-updates-rendering-some-systems-unbootable/5146/3" > ziel.txt
the resulting text-file DOESN´T appear in /home/rosika/CLEAN/PRIVATE/DIR .

However I found it in /home/rosika !!!!!!!!

<!-- gh-comment-id:669898628 --> @Rosika2 commented on GitHub (Aug 6, 2020): Hi again, yes, I use fish as my default shell. But I tried the commands in bash as well. The results are the same. No idea if it helps at all but I also noticed something else which seems a bit off: Using the command `firejail --noprofile --private=/home/rosika/CLEAN/PRIVATE/DIR lynx -dump "https://itsfoss.community/t/most-recent-grub2-updates-rendering-some-systems-unbootable/5146/3" > ziel.txt` the resulting text-file **DOESN´T** appear in _/home/rosika/CLEAN/PRIVATE/DIR_ . However I found it in _/home/rosika_ !!!!!!!!
Author
Owner

@Rosika2 commented on GitHub (Aug 6, 2020):

New info:

I just ran lynx outside firejail, just as a normal command.

It turns out that lynx doesn´t save bookmarks that way either. So it seems it´s a lynx issue.
Never would have thought that.

Curious though that @kortewegdevries says:

"This is working for me. I'm usingfirejail --private=/home/korte/TempDir /usr/bin/lynx wikipedia.com Lynx saves all bookmarks in lynx_bookmarks.html,.lynxrc and it stays there."

@kortewegdevries:
How do you do it? Do you use any special settings?

<!-- gh-comment-id:669908600 --> @Rosika2 commented on GitHub (Aug 6, 2020): New info: I just ran lynx **outside** firejail, just as a normal command. It turns out that lynx doesn´t save bookmarks that way either. So it seems it´s a lynx issue. Never would have thought that. Curious though that @kortewegdevries says: "This is working for me. I'm usingfirejail --private=/home/korte/TempDir /usr/bin/lynx wikipedia.com Lynx saves all bookmarks in lynx_bookmarks.html,.lynxrc and it stays there." @kortewegdevries: How do you do it? Do you use any special settings?
Author
Owner

@Rosika2 commented on GitHub (Aug 6, 2020):

Hi,

my previous comment:

Using the command
firejail --noprofile --private=/home/rosika/CLEAN/PRIVATE/DIR lynx -dump "https://itsfoss.community/t/most-recent-grub2-updates-rendering-some-systems-unbootable/5146/3" > ziel.txt
the resulting text-file DOESN´T appear in /home/rosika/CLEAN/PRIVATE/DIR .
However I found it in /home/rosika !!!!!!!!

was a bit unqualified I think and seems to be rooted in a misconception on my part. Sorry.
It´s clear that the text-file should be saved in my home directory as I started the command from there.

But I noticed the following:

Using my locate-command I couldn´t find lynx_bookmarks.html or .lynxrc files anywhere on my system. They simply don´t seem to exist.

<!-- gh-comment-id:669917534 --> @Rosika2 commented on GitHub (Aug 6, 2020): Hi, my previous comment: ``` Using the command firejail --noprofile --private=/home/rosika/CLEAN/PRIVATE/DIR lynx -dump "https://itsfoss.community/t/most-recent-grub2-updates-rendering-some-systems-unbootable/5146/3" > ziel.txt the resulting text-file DOESN´T appear in /home/rosika/CLEAN/PRIVATE/DIR . However I found it in /home/rosika !!!!!!!! ``` was a bit unqualified I think and seems to be rooted in a misconception on my part. Sorry. It´s clear that the text-file should be saved in my home directory as I started the command from there. But I noticed the following: Using my locate-command I couldn´t find **lynx_bookmarks.html** or **.lynxrc** files anywhere on my system. They simply don´t seem to exist.
Author
Owner

@rusty-snake commented on GitHub (Aug 6, 2020):

Is the history disabled in /etc/lynxrc?

<!-- gh-comment-id:669989980 --> @rusty-snake commented on GitHub (Aug 6, 2020): Is the history disabled in `/etc/lynxrc`?
Author
Owner

@bbhtt commented on GitHub (Aug 6, 2020):

Usng my locate-command I couldn´t find lynx_bookmarks.html or .lynxrc files anywhere on my system. They simply don´t seem to exist.

I forgot, open a link press "A">"L" save?

Is the history disabled in /etc/lynxrc?

Supposed to be in /home/<>/.lynxrc or you mean lynx.cfg?

<!-- gh-comment-id:669991992 --> @bbhtt commented on GitHub (Aug 6, 2020): > Usng my locate-command I couldn´t find lynx_bookmarks.html or .lynxrc files anywhere on my system. They simply don´t seem to exist. I forgot, open a link press "A">"L" save? > Is the history disabled in /etc/lynxrc? Supposed to be in `/home/<>/.lynxrc ` or you mean `lynx.cfg`?
Author
Owner

@Rosika2 commented on GitHub (Aug 6, 2020):

@rusty-snake and @kortewegdevries:

Sorry, I haven´t got a lynxrc file in /etc.

I have the following:

locate lynxrc

/home/rosika/.local/share/Trash/files/.2.lynxrc
/home/rosika/.local/share/Trash/files/.lynxrc
/home/rosika/.local/share/Trash/info/.2.lynxrc.trashinfo
/home/rosika/.local/share/Trash/info/.lynxrc.trashinfo
<!-- gh-comment-id:669993416 --> @Rosika2 commented on GitHub (Aug 6, 2020): @rusty-snake and @kortewegdevries: Sorry, I haven´t got a lynxrc file in /etc. I have the following: ``` locate lynxrc /home/rosika/.local/share/Trash/files/.2.lynxrc /home/rosika/.local/share/Trash/files/.lynxrc /home/rosika/.local/share/Trash/info/.2.lynxrc.trashinfo /home/rosika/.local/share/Trash/info/.lynxrc.trashinfo ```
Author
Owner

@bbhtt commented on GitHub (Aug 6, 2020):

My file if you need it: lynx_bookmarks.html https://termbin.com/9k7s

I forgot, open a link press "A">"L" save?

Did this work?

<!-- gh-comment-id:669994303 --> @bbhtt commented on GitHub (Aug 6, 2020): My file if you need it: lynx_bookmarks.html https://termbin.com/9k7s > I forgot, open a link press "A">"L" save? Did this work?
Author
Owner

@Rosika2 commented on GitHub (Aug 6, 2020):

@kortewegdevries:
Sorry, I have to ask further.
What exactly do you mean, what should I do?

<!-- gh-comment-id:669996002 --> @Rosika2 commented on GitHub (Aug 6, 2020): @kortewegdevries: Sorry, I have to ask further. What exactly do you mean, what should I do?
Author
Owner

@bbhtt commented on GitHub (Aug 6, 2020):

To save a bookmark open a link on lynx press "A" the press "d" or "L" or "c" then enter? That's how I'm saving it and "enter" creates that file? https://imgur.com/DP83gTj

<!-- gh-comment-id:669996845 --> @bbhtt commented on GitHub (Aug 6, 2020): To save a bookmark open a link on lynx press "A" the press "d" or "L" or "c" then enter? That's how I'm saving it and "enter" creates that file? https://imgur.com/DP83gTj
Author
Owner

@Rosika2 commented on GitHub (Aug 6, 2020):

@kortewegdevries:
Thanks.
I´m not so sure about the bookmarks but I think the reason why the history isn´t saved is that it´s transferred to /tmp.
Lynx says:

Linkadressenliste (Lynx Version 2.8.9dev.16), help

   Verweise in file://localhost/tmp/lynxXXXX6gZvqf/L5-2723TMP.html

And when I take a look in /tmp I find it:

rosika@rosika-Lenovo-H520e /t/lynxXXXX6gZvqf> tree
.
├── L5-4811TMP.html
└── L5-4948TMP.html

Here is my history. I looked it up and every site I visited is stored in L5-4811TMP.html.
But as it is in /tmp it´s not available next time I use lynx of course.

<!-- gh-comment-id:670011955 --> @Rosika2 commented on GitHub (Aug 6, 2020): @kortewegdevries: Thanks. I´m not so sure about the bookmarks but I think the reason why the **history** isn´t saved is that it´s transferred to **/tmp**. Lynx says: ``` Linkadressenliste (Lynx Version 2.8.9dev.16), help Verweise in file://localhost/tmp/lynxXXXX6gZvqf/L5-2723TMP.html ``` And when I take a look in **/tmp** I find it: ``` rosika@rosika-Lenovo-H520e /t/lynxXXXX6gZvqf> tree . ├── L5-4811TMP.html └── L5-4948TMP.html ``` Here is my history. I looked it up and every site I visited is stored in **L5-4811TMP.html**. But as it is in **/tmp** it´s not available next time I use lynx of course.
Author
Owner

@bbhtt commented on GitHub (Aug 6, 2020):

I´m not so sure about the bookmarks

So bookmarks get saved?

No idea, I don't use lynx sorry. But man firejail says

--private=directory
Use directory as user home. --private and --private=directory cannot be used together.

So /tmp stays out of your temporary home directory.

<!-- gh-comment-id:670014038 --> @bbhtt commented on GitHub (Aug 6, 2020): > I´m not so sure about the bookmarks So bookmarks get saved? No idea, I don't use lynx sorry. But `man firejail` says > --private=directory > Use directory as user home. --private and --private=directory cannot be used together. So `/tmp` stays out of your temporary home directory.
Author
Owner

@Rosika2 commented on GitHub (Aug 6, 2020):

Hi,

So bookmarks get saved?

Didn´t manage to save any bookmarks.
Perhaps I´m doing it wrong, despite your instructions. Yet I´ll keep trying and report back.

Thanks.

<!-- gh-comment-id:670021427 --> @Rosika2 commented on GitHub (Aug 6, 2020): Hi, > So bookmarks get saved? Didn´t manage to save any bookmarks. Perhaps I´m doing it wrong, despite your instructions. Yet I´ll keep trying and report back. Thanks.
Author
Owner

@Rosika2 commented on GitHub (Aug 6, 2020):

O.K. I tried again and lynx says something like "setting bookmarks [...etc] not possible".

I really think all the problems might be rooted within lynx itself as running lynx outside the sandbox doesn´t preserve history either.

<!-- gh-comment-id:670026212 --> @Rosika2 commented on GitHub (Aug 6, 2020): O.K. I tried again and lynx says something like "setting bookmarks [...etc] not possible". I really think all the problems might be rooted within lynx itself as running lynx outside the sandbox doesn´t preserve history either.
Author
Owner

@bbhtt commented on GitHub (Aug 6, 2020):

Can you like set it without firejail or with --noprofile? Press "A" then "L" then Enter.

<!-- gh-comment-id:670027846 --> @bbhtt commented on GitHub (Aug 6, 2020): Can you like set it without firejail or with --noprofile? Press "A" then "L" then Enter.
Author
Owner

@Rosika2 commented on GitHub (Aug 6, 2020):

Well I´ve been using --noprofile all along:
firejail --noprofile --private=/home/rosika/CLEAN/PRIVATE/DIR lynx
And lynx explictely says that setting bookmarks isn´t possible.

<!-- gh-comment-id:670031156 --> @Rosika2 commented on GitHub (Aug 6, 2020): Well I´ve been using --noprofile all along: `firejail --noprofile --private=/home/rosika/CLEAN/PRIVATE/DIR lynx ` And lynx explictely says that setting bookmarks isn´t possible.
Author
Owner

@bbhtt commented on GitHub (Aug 6, 2020):

No idea, you can have my configs:

korte:~$ cat /etc/lynx/lynx.cfg|nc termbin.com 9999
https://termbin.com/ff28
korte:~$ ls /etc/lynx/
lynx.cfg  lynx.lss
korte:~$ cat /etc/lynx/lynx.lss|nc termbin.com 9999
https://termbin.com/50xx
korte:~$ locate lynx

/etc/lynx
/etc/firejail/lynx.profile
/etc/lynx/lynx.cfg
/etc/lynx/lynx.lss
/home/korte/Git/GitHub/firejail/etc/profile-a-l/lynx.profile
/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lynx.rb
/usr/bin/lynx
/usr/lib/mime/packages/lynx-common
/usr/local/bin/lynx
/usr/share/doc/lynx
.......................
/usr/share/doc/lynx/docs
/usr/share/doc/lynx/lynx_help

...............................
/usr/share/doc/lynx-common/docs/win-386.announce.gz

.................Locales.............
/usr/share/man/man1/lynx.1.gz
/usr/share/menu/lynx
/usr/share/mime/application/x-atari-lynx-rom.xml
/usr/share/vim/vim82/syntax/lynx.vim
/usr/share/xfce4/helpers/lynx.desktop
/var/lib/doc-base/documents/lynx
/var/lib/dpkg/info/lynx-common.conffiles
/var/lib/dpkg/info/lynx-common.list
/var/lib/dpkg/info/lynx-common.md5sums
/var/lib/dpkg/info/lynx.list
/var/lib/dpkg/info/lynx.md5sums
/var/lib/dpkg/info/lynx.postinst
/var/lib/dpkg/info/lynx.postrm
/var/lib/dpkg/info/lynx.prerm

Local configs are likely stored in .lynxrc I think, but I don't have it.

<!-- gh-comment-id:670034410 --> @bbhtt commented on GitHub (Aug 6, 2020): No idea, you can have my configs: ``` korte:~$ cat /etc/lynx/lynx.cfg|nc termbin.com 9999 https://termbin.com/ff28 korte:~$ ls /etc/lynx/ lynx.cfg lynx.lss korte:~$ cat /etc/lynx/lynx.lss|nc termbin.com 9999 https://termbin.com/50xx korte:~$ locate lynx /etc/lynx /etc/firejail/lynx.profile /etc/lynx/lynx.cfg /etc/lynx/lynx.lss /home/korte/Git/GitHub/firejail/etc/profile-a-l/lynx.profile /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lynx.rb /usr/bin/lynx /usr/lib/mime/packages/lynx-common /usr/local/bin/lynx /usr/share/doc/lynx ....................... /usr/share/doc/lynx/docs /usr/share/doc/lynx/lynx_help ............................... /usr/share/doc/lynx-common/docs/win-386.announce.gz .................Locales............. /usr/share/man/man1/lynx.1.gz /usr/share/menu/lynx /usr/share/mime/application/x-atari-lynx-rom.xml /usr/share/vim/vim82/syntax/lynx.vim /usr/share/xfce4/helpers/lynx.desktop /var/lib/doc-base/documents/lynx /var/lib/dpkg/info/lynx-common.conffiles /var/lib/dpkg/info/lynx-common.list /var/lib/dpkg/info/lynx-common.md5sums /var/lib/dpkg/info/lynx.list /var/lib/dpkg/info/lynx.md5sums /var/lib/dpkg/info/lynx.postinst /var/lib/dpkg/info/lynx.postrm /var/lib/dpkg/info/lynx.prerm ``` Local configs are likely stored in `.lynxrc` I think, but I don't have it.
Author
Owner

@Rosika2 commented on GitHub (Aug 6, 2020):

@kortewegdevries:
Thank you so much. I´ll look into it.

Strange:
I could create bookmarks now!
And a lynx_bookmarks.html file is created in the private directory. That´s working now.

But: when shutting down lynx and then re-starting it lynx doesn´t find lynx_bookmarks.html despite the fact it´s there.

I suppose it loooks somewhere else for that file.

<!-- gh-comment-id:670041009 --> @Rosika2 commented on GitHub (Aug 6, 2020): @kortewegdevries: Thank you so much. I´ll look into it. Strange: I could create bookmarks now! And a **lynx_bookmarks.html** file is created in the private directory. That´s working now. But: when shutting down lynx and then re-starting it lynx doesn´t find lynx_bookmarks.html despite the fact it´s there. I suppose it loooks somewhere else for that file.
Author
Owner

@bbhtt commented on GitHub (Aug 6, 2020):

This issue is too weird! I can read the bookmarks even when restarting under firejail+private: https://imgur.com/BwpEckT

About history I don't know where they are saved but if it's in /tmp like you say maybe you can set up a temporary temp directory. About cookies, same as above. About local settings maybe try and copy .lynxrc to your temporary home so that lynx can read it,

<!-- gh-comment-id:670049381 --> @bbhtt commented on GitHub (Aug 6, 2020): This issue is too weird! I can read the bookmarks even when restarting under firejail+private: https://imgur.com/BwpEckT About history I don't know where they are saved but if it's in `/tmp` like you say maybe you can set up a temporary temp directory. About cookies, same as above. About local settings maybe try and copy `.lynxrc` to your temporary home so that lynx can read it,
Author
Owner

@Rosika2 commented on GitHub (Aug 7, 2020):

@kortewegdevries:

This issue is too weird!

Yes, you´re right. Never mind. Thanks a lot anyway for your help.

Oh, believe it or not, I´ve just managed to save bookmarks.
Out of sheer desperation I tried the following:

Consdering it a bit curious that lynx puts its bookmarks file under /home/rosika/CLEAN/PRIVATE/DIR/ instead of .config I transferred the bookmark file to /home/rosika/CLEAN/PRIVATE/DIR/.config and changed the respective bookmarks path within lynx (pressing "o") to that path.

And now it works.

BTW:my command is: env LANG=en_GB:en firejail --noprofile --private=/home/rosika/CLEAN/PRIVATE/DIR /usr/bin/lynx
The env LANG part is just for the sake of getting the English language variant.

So bookmarks are working now. Yet ´ve still to figure out how I can get history to be saved as well.

Greetings.
Rosika

<!-- gh-comment-id:670483214 --> @Rosika2 commented on GitHub (Aug 7, 2020): @kortewegdevries: > This issue is too weird! Yes, you´re right. Never mind. Thanks a lot anyway for your help. Oh, believe it or not, I´ve just managed to save bookmarks. Out of sheer desperation I tried the following: Consdering it a bit curious that lynx puts its bookmarks file under ` /home/rosika/CLEAN/PRIVATE/DIR/` instead of `.config` I transferred the bookmark file to` /home/rosika/CLEAN/PRIVATE/DIR/.config` and changed the respective bookmarks path within lynx (pressing "o") to that path. And now it works. BTW:my command is:` env LANG=en_GB:en firejail --noprofile --private=/home/rosika/CLEAN/PRIVATE/DIR /usr/bin/lynx` The env LANG part is just for the sake of getting the English language variant. So bookmarks are working now. Yet ´ve still to figure out how I can get history to be saved as well. Greetings. Rosika
Author
Owner

@Rosika2 commented on GitHub (Aug 7, 2020):

Hi again,

I almost solved the problem of how to save history.

I created a file /home/rosika/CLEAN/PRIVATE/DIR/.config/.lynx_session/ and within lynx:
typing "o" and then under "Special Files and Screens" entered the respective path in "Session file".
Plus: turning "Auto Session" on.

That would work! The history is stored in lynx_session.

BUT: Auto Session (!) and Session file (!) have exclamation marks which means: "(options marked with (!) will not be saved)".
I.e.: when starting lynx anew the lynx_session file is still there but it is NOT accessed.
Any ideas how to make the changes in settings persist?

Greetings.
Rosika

<!-- gh-comment-id:670508504 --> @Rosika2 commented on GitHub (Aug 7, 2020): Hi again, I **almost** solved the problem of how to save history. I created a file `/home/rosika/CLEAN/PRIVATE/DIR/.config/.lynx_session/` and within lynx: typing "o" and then under "Special Files and Screens" entered the respective path in "Session file". Plus: turning "Auto Session" on. That would work! The history is stored in **lynx_session**. BUT: Auto Session (!) and Session file (!) have exclamation marks which means: "(options marked with (!) will not be saved)". I.e.: when starting lynx anew the lynx_session file is still there but it is NOT accessed. Any ideas how to make the changes in settings persist? Greetings. Rosika
Author
Owner

@bbhtt commented on GitHub (Aug 7, 2020):

Lynx has this, maybe try:

 -cookie_file=FILENAME
                    specifies a file to use to read cookies
  -cookie_save_file=FILENAME
                    specifies a file to use to store cookies
  -cookies    toggles handling of Set-Cookie headers (on)
Auto Session

Lynx can save and restore useful information about your browsing history. Use this setting to enable or disable the feature.

I'll check on the history.
You can always subscribe and send an email to their mailing list for any queries: https://lists.nongnu.org/mailman/listinfo/lynx-dev. So as I understand the cookie file,history, local config file must be inside your private directory to retain them. If that doesn't work for some reason firejail has a --get option to retrieve files from a temporary directory I think:

File Transfer
       These features allow the user to inspect the filesystem  container  of
       an  existing sandbox and transfer files from the container to the host
       filesystem.

       --get=name|pid filename
              Retrieve the container file and store it on the host in the
              current  working directory.  The container is specified by name
              or PID.
# Name your container 

$ firejail --name=lynx --private=~/TempDir /usr/bin/lynx wikipedia.com 

# Will save to current working directory of terminal, do this multiple times for all files without closing the sandbox.

$ firejail --get=lynx ~/lynx_bookmarks.html 

(The bug tag should be removed.)

<!-- gh-comment-id:670602277 --> @bbhtt commented on GitHub (Aug 7, 2020): Lynx has this, maybe try: ``` -cookie_file=FILENAME specifies a file to use to read cookies -cookie_save_file=FILENAME specifies a file to use to store cookies -cookies toggles handling of Set-Cookie headers (on) Auto Session Lynx can save and restore useful information about your browsing history. Use this setting to enable or disable the feature. ``` I'll check on the history. You can always subscribe and send an email to their mailing list for any queries: https://lists.nongnu.org/mailman/listinfo/lynx-dev. So as I understand the cookie file,history, local config file must be inside your private directory to retain them. If that doesn't work for some reason firejail has a `--get` option to retrieve files from a temporary directory I think: ``` File Transfer These features allow the user to inspect the filesystem container of an existing sandbox and transfer files from the container to the host filesystem. --get=name|pid filename Retrieve the container file and store it on the host in the current working directory. The container is specified by name or PID. ``` ``` # Name your container $ firejail --name=lynx --private=~/TempDir /usr/bin/lynx wikipedia.com # Will save to current working directory of terminal, do this multiple times for all files without closing the sandbox. $ firejail --get=lynx ~/lynx_bookmarks.html ``` (*The bug tag should be removed.*)
Author
Owner

@Rosika2 commented on GitHub (Aug 8, 2020):

@kortewegdevries:

Hello again and thank you so much for your help. You´re a genius.

SUCCESS!!

It finally worked.

Lynx can save and restore useful information about your browsing history. Use this setting to enable or disable the feature.

This put me on the right track.
I looked up the "session"-entries in the man-pages and found this:

"−session=FILENAME
resumes from specified file on startup and saves session to that file on exit."

So I put the .lynx_session file into /home/rosika/CLEAN/PRIVATE/DIR/ and started lynx with the command
env LANG=en_GB:en firejail --name=mysandbox --private=/home/rosika/CLEAN/PRIVATE/DIR lynx -session=.lynx_session
That way the .lynx_session file is read every time lynx starts and updated every time lynx is shut down.
Wonderful!

Now history is saved and bookmarks can be created as well.

Plus: everything works now as it´s supposed to with firejail (using the --private option with defined work-directory).

I´m so glad and thankful for your persistent help.
Thanks for not giving up on me. :)

Many greetings.
Rosika

P.S.:

(The bug tag should be removed.)

I looked everywhere but couldn´t find a way to do this.

<!-- gh-comment-id:670919453 --> @Rosika2 commented on GitHub (Aug 8, 2020): @kortewegdevries: Hello again and thank you so much for your help. You´re a genius. SUCCESS!! It finally worked. > Lynx can save and restore useful information about your browsing history. Use this setting to enable or disable the feature. This put me on the right track. I looked up the "session"-entries in the man-pages and found this: "−session=FILENAME resumes from specified file on startup and saves session to that file on exit." So I put the **.lynx_session** file into `/home/rosika/CLEAN/PRIVATE/DIR/` and started lynx with the command `env LANG=en_GB:en firejail --name=mysandbox --private=/home/rosika/CLEAN/PRIVATE/DIR lynx -session=.lynx_session ` That way the **.lynx_session** file is read every time lynx starts and updated every time lynx is shut down. Wonderful! Now history is saved and bookmarks can be created as well. Plus: everything works now as it´s supposed to with firejail (using the --private option with defined work-directory). I´m so glad and thankful for your persistent help. Thanks for not giving up on me. :) Many greetings. Rosika P.S.: > (The bug tag should be removed.) I looked everywhere but couldn´t find a way to do this.
Author
Owner

@rusty-snake commented on GitHub (Sep 1, 2020):

Can we close?

<!-- gh-comment-id:684924440 --> @rusty-snake commented on GitHub (Sep 1, 2020): Can we close?
Author
Owner

@Rosika2 commented on GitHub (Sep 1, 2020):

@rusty-snake:
Yes, I seem to have forgotten to close. Sorry.

Thanks @all for your kind help. It´s much appreciated.

Greetings.
Rosika

<!-- gh-comment-id:684932496 --> @Rosika2 commented on GitHub (Sep 1, 2020): @rusty-snake: Yes, I seem to have forgotten to close. Sorry. Thanks @all for your kind help. It´s much appreciated. Greetings. Rosika
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2239
No description provided.