You are not logged in.

#851 2018-04-14 20:33:14

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 9,827
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

OK... outside the scope of psd, sorry.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#852 2018-04-15 05:27:56

emphire
Member
From: Canada
Registered: 2007-03-21
Posts: 193

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Fair enough. For anyone wanting to use it with Franz (at your own risk), just create a file at /usr/share/psd/browsers/franz with the following content:

DIRArr[0]="$XDG_CONFIG_HOME/Franz"
PSNAME="$browser"

Franz is just a modified version of Chromium so I don't think it should be too risky.

Offline

#853 2018-04-15 10:50:17

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 9,827
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

@emphire - I misunderstood... what you did is correct and it should work just fine.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#854 2018-06-19 17:10:59

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 882

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Hey graysky, would you add waterfox-bin to PSD, I have added the waterfox profile to PSD tested it and works.
It was fairly simple though, copied the firefox profile to waterfox-bin changed the paths and that was it.
Here you have my file, maybe you don't need it but anyways, here you go wink

if [[ -d $HOME/.waterfox ]]; then
    profileArr=( $(grep '[P,p]'ath= $HOME/.waterfox/profiles.ini |
    sed 's/[P,p]ath=//') )
    index=0
    PSNAME="$browser"
    for profileItem in ${profileArr[@]}; do
        if [[ $(echo $profileItem | cut -c1) = "/" ]]; then
            # path is not relative
            DIRArr[index]="$profileItem"
        else
            # we need to append the default path to give a
            # fully qualified path
            DIRArr[index]="$HOME/.waterfox/$profileItem"
        fi
        index=$index+1
    done
fi

check_suffix=1

Thanks mark

Offline

#855 2018-06-19 20:28:13

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 9,827
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

@qinohe - Just drop your profile in /usr/share/psd/browsers/ and you're all set.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#856 2018-06-20 12:05:12

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 882

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Did that in the first place, thought maybe you'd add it to the equation so it don't get overwritten on update (really not that important), but it's working so ,thanks.

edit: but they don't get overwritten, sorry for the noise.

Last edited by qinohe (2018-06-20 13:13:49)

Offline

#857 2019-05-01 15:06:58

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,811

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

How can you tell if psd is working? systemctl --user says its exited? config set too run Firefox... do you need any other output ...


Mr Green

Offline

#858 2019-05-01 18:49:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 9,827
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

% systemctl --user status psd
● psd.service - Profile-sync-daemon
   Loaded: loaded (/usr/lib/systemd/user/psd.service; enabled; vendor preset: enabled)
   Active: active (exited) since Wed 2019-05-01 13:40:21 EDT; 1h 8min ago
     Docs: man:psd(1)
           man:profile-sync-daemon(1)
           https://wiki.archlinux.org/index.php/Profile-sync-daemon
  Process: 4098 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 4098 (code=exited, status=0/SUCCESS)

May 01 13:40:21 ease systemd[4092]: Starting Profile-sync-daemon...
May 01 13:40:21 ease systemd[4092]: Started Profile-sync-daemon.

You can also query psd directly:

% psd p
Profile-sync-daemon v6.34 on Arch Linux

 Systemd service is currently active.
 Systemd resync-timer is currently active.
 Overlayfs v23 is currently active.

Psd will manage the following per /home/facade/.config/psd/.psd.conf:

 browser/psname:  chromium/chromium
 owner/group id:  facade/100
 sync target:     /home/facade/.config/chromium
 tmpfs dir:       /run/user/1000/facade-chromium
 profile size:    425M
 overlayfs size:  88M
 recovery dirs:   none

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#859 2019-05-02 13:54:13

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,811

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Got it, keep forgetting about --user so used to running systemctl....

OverlayFs Added ;-)

[ ~/.config/psd ] psd p
Profile-sync-daemon v6.34 on Arch Linux

 Systemd service is currently active.
 Systemd resync-timer is currently active.
 Overlayfs v23 is currently active.

Psd will manage the following per /home/mrgreen/.config/psd/psd.conf:

 browser/psname:  firefox/firefox
 owner/group id:  mrgreen/985
 sync target:     /home/mrgreen/.mozilla/firefox/1x2ynqkm.default
 tmpfs dir:       /run/user/1000/mrgreen-firefox-1x2ynqkm.default
 profile size:    48M
 overlayfs size:
 recovery dirs:   none

Thanks for that , off to adjust cache size now....


Mr Green

Offline

#860 2019-08-17 08:55:49

bilaliz
Member
Registered: 2019-08-17
Posts: 2

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Thanks for all the hard work on this, so I am here and need a little help.
I installed this, then installed overlayfs and enabled it in the config for psd.
now when i restart my pi it does not load wicd, or dwagent (dwservice.net for remote access) nor does it launch chromium. I tried the --user-data-dir=/tmp/something and chromium launched without the profile.

What am i doing wrong and how do  I fix it?

Offline

#861 2019-08-17 11:14:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 9,827
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

@bilaliz - What do you mean you installed overlayfs?  This is a kernel built-in.  Never tested psd on a RPi but I don't see how it would matter in principal.  You do realize that memory on an RPi unless the 4G model is pretty limited and that you can easily approach 30-40% of the memory with a chromium profile, right?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#862 2019-08-17 18:30:00

bilaliz
Member
Registered: 2019-08-17
Posts: 2

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

thanks for the quick reply graysky, i'll readily admit I am a bit of a noob, trying to figure this all out. I am trying to make a kiosk running chromium in rpi and that's how I landed here.

when I say I installed overlayfs, I mean i ran this: https://gitlab.com/larsfp/rpi-readonly/ … r/setup.sh

without running the above psd ran just fine. WICD loaded and so did dwagent. I read through the script as best as I can but I still can't figure out where things went wrong.

My chromium profile is pretty small though, here is the output from psd p.

psd p
Profile-sync-daemon v6.31 on Raspbian GNU/Linux 10 (buster)

Systemd service is currently active.
Systemd resync-timer is currently active.
Overlayfs v23 is currently active.

Psd will manage the following per /home/pi/.config/psd/psd.conf:

browser/psname:  chromium/chromium
owner/group id:  pi/1000
sync target:     /home/pi/.config/chromium
tmpfs dir:       /run/user/1000/pi-chromium
profile size:    31M
overlayfs size:  0
recovery dirs:   none

Offline

Board footer

Powered by FluxBB