Browse faster by keeping your browser profile in tmpfs (ram)

Share here your personal tips or creations: desktop, conky, docks, widgets or tweaks are welcomed here!
User avatar
bu99zy
Posts: 20
Joined: 02 Mar 2013 02:28

Browse faster by keeping your browser profile in tmpfs (ram)

Postby bu99zy » 03 Mar 2013 02:30

By keeping your browser profile in your ram you can have a faster browser experience. Graysky has created a program called profile-sync-daemon which makes this possible.

You will need to do the following as root so

Code: Select all

su -

Code: Select all

echo "deb http://ppa.launchpad.net/graysky/utils/ubuntu quantal main" > /etc/apt/sources.list.d/graysky.list

Code: Select all

echo "deb-src http://ppa.launchpad.net/graysky/utils/ubuntu quantal main" >> /etc/apt/sources.list.d/graysky.list

Code: Select all

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FF7F9516

Code: Select all

gpg --keyserver wwwkeys.pgp.net --recv-keys C1C5C63BF0E0B4E7

Code: Select all

gpg --armor --export C1C5C63BF0E0B4E7 | apt-key add -

Code: Select all

apt update

Code: Select all

apt install profile-sync-daemon
Then open up the config file

Code: Select all

nano /etc/psd.conf
Scroll down to the Users="" and include your name, in my case its bu99zy

Code: Select all

# Example
# USERS="facade happy"
USERS="bu99zy"
control+X to save the config file and answer yes

Run the parse command

Code: Select all

profile-sync-daemon parse
Change the config file again and included the browser you want the profile in ram. Look for BROWSERS=""

Code: Select all

nano /etc/psd.conf

Code: Select all

#Uncomment and select which browsers to manage if you wish
# Otherwise all available/supported browsers will be managed
BROWSERS="opera google-chrome firefox"
Also make sure the section, volatile = /dev/shm (for Debian based users)

Code: Select all

# Suggested locations based on distro defaults:
#   Arch Linux/Chakra, Fedora, and Gentoo users can leave this commented out
#   Debian users should use a setting of "/dev/shm"
#   Mint/Ubuntu users should use a setting of "/run/shm"
VOLATILE="/dev/shm"
Start the daemon and you are good to go.

Code: Select all

service psd start
To make sure its running correctly look in /dev/shm and your browser profiles should be in there.

User avatar
BostonPeng
Posts: 469
Joined: 28 Feb 2013 14:35
Location: Boston, MA
Contact:

Re: Browse faster by keeping your browser profile in tmpfs (

Postby BostonPeng » 03 Mar 2013 16:47

You can use packages from PPAs in SolydXK? I thought the rule was to avoid PPAs on non-Ubuntu-based distros. I know there are the very rare exceptions and if this is one of those it's fine I just thought I'd ask since no one else has yet.
J.M. Hardin

System:
ASUS X555LA notebook

cwwgateway
Posts: 1215
Joined: 23 Feb 2013 19:14

Re: Browse faster by keeping your browser profile in tmpfs (

Postby cwwgateway » 03 Mar 2013 16:58

It's more of a guideline than a rule :lol: . Theoretically you shouldn't mix at all, but some packages from PPAs work with both. I haven't looked at this scenario yet. I believe there is a way to do this without installing packages... I'll have to find a guide later.
Dell XPS 15:
SolydX Debian Testing
SolydK Testing
SolydX Testing
Debian Sid Xfce
Debian Wheezy KDE
Arch Gnome Shell

Gateway:
SolydX Sid
Debian Sid OpenBox
Arch Linux OpenBox
CrunchBang Testing

User avatar
BostonPeng
Posts: 469
Joined: 28 Feb 2013 14:35
Location: Boston, MA
Contact:

Re: Browse faster by keeping your browser profile in tmpfs (

Postby BostonPeng » 03 Mar 2013 17:08

Thanks for that cww. I've actually heard people breaking their system by mixing the two so I may be overly cautious of it. If I were to break my laptop like that it's make both the baby Jesus and Tux cry, not to mention me.
J.M. Hardin

System:
ASUS X555LA notebook

User avatar
bu99zy
Posts: 20
Joined: 02 Mar 2013 02:28

Re: Browse faster by keeping your browser profile in tmpfs (

Postby bu99zy » 03 Mar 2013 20:39

Thanks for pointing that out BostonPeng, I too noticed that the installation technique used a PPA when I 1st found it and was very hesitant, on further investigation at Graysky's Git page, I learnt that profile-sync-daemon is really more of a bash script, you can have a look at the actual script here. All the items installed are scripts . Also have a look at the PPA that this uses, found here, if you open the Debian package all the items are bash scripts.

Most of the instructions above are taken from Graysky's Git page, Debian installation guide section.

I have been testing this script for a couple of months on my unofficial LMDE KDE, tracking Sid and nothing has broke, touch wood. ;)

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: Browse faster by keeping your browser profile in tmpfs (

Postby zerozero » 04 Mar 2013 00:02

BostonPeng wrote:You can use packages from PPAs in SolydXK?
short answer: no
cwwgateway wrote:It's more of a guideline than a rule
i'm not so "permissive" ;)
bu99zy wrote:Thanks for pointing that out BostonPeng, I too noticed that the installation technique used a PPA when I 1st found it and was very hesitant
long answer: it all depends
bliss of ignorance

cwwgateway
Posts: 1215
Joined: 23 Feb 2013 19:14

Re: Browse faster by keeping your browser profile in tmpfs (

Postby cwwgateway » 04 Mar 2013 03:30

zerozero wrote:
BostonPeng wrote:You can use packages from PPAs in SolydXK?
short answer: no
cwwgateway wrote:It's more of a guideline than a rule
i'm not so "permissive" ;)
bu99zy wrote:Thanks for pointing that out BostonPeng, I too noticed that the installation technique used a PPA when I 1st found it and was very hesitant
long answer: it all depends
You're probably right... The best policy is no PPAs. I've personally never had a problem with PPAs, but I almost always make sure someone else has had success first.
Dell XPS 15:
SolydX Debian Testing
SolydK Testing
SolydX Testing
Debian Sid Xfce
Debian Wheezy KDE
Arch Gnome Shell

Gateway:
SolydX Sid
Debian Sid OpenBox
Arch Linux OpenBox
CrunchBang Testing

User avatar
BostonPeng
Posts: 469
Joined: 28 Feb 2013 14:35
Location: Boston, MA
Contact:

Re: Browse faster by keeping your browser profile in tmpfs (

Postby BostonPeng » 04 Mar 2013 14:26

zerozero wrote:
BostonPeng wrote:You can use packages from PPAs in SolydXK?
short answer: no
cwwgateway wrote:It's more of a guideline than a rule
i'm not so "permissive" ;)
bu99zy wrote:Thanks for pointing that out BostonPeng, I too noticed that the installation technique used a PPA when I 1st found it and was very hesitant
long answer: it all depends
Thanks zerozero. That's the very kind of response that made me ask in the first place, just to give someone smarter than me an opportunity to speak up.
J.M. Hardin

System:
ASUS X555LA notebook

User avatar
Arjen Balfoort
Site Admin
Posts: 9223
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Browse faster by keeping your browser profile in tmpfs (

Postby Arjen Balfoort » 05 Mar 2013 11:20

From my maintainer's point of view: mixing PPA into the equation will probably break your system. If it does, and if it does, you're at the mercy of the people in this forum. ;)


SolydXK needs you!
Development | Testing | Translations

User avatar
BostonPeng
Posts: 469
Joined: 28 Feb 2013 14:35
Location: Boston, MA
Contact:

Re: Browse faster by keeping your browser profile in tmpfs (

Postby BostonPeng » 05 Mar 2013 17:18

Schoelje wrote:From my maintainer's point of view: mixing PPA into the equation will probably break your system. If it does, and if it does, you're at the mercy of the people in this forum. ;)
This is probably the single best reason I've ever heard for not mixing the sources. Thank Tux some forum peeps can be kind to us idiots. Sometimes. :lol:
J.M. Hardin

System:
ASUS X555LA notebook

crborga
Posts: 37
Joined: 22 Apr 2014 23:58
Location: Atlantic, Va

Re: Browse faster by keeping your browser profile in tmpfs (

Postby crborga » 11 May 2014 03:53

I normally use the back-port option to build sources from PPA instead of installing packages from PPA's. I believe that is safer but someone correct me if i'm wrong.

User avatar
ScottQuier
Posts: 1781
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: Browse faster by keeping your browser profile in tmpfs (

Postby ScottQuier » 11 May 2014 18:52

BostonPeng wrote:
Schoelje wrote:From my maintainer's point of view: mixing PPA into the equation will probably break your system. If it does, and if it does, you're at the mercy of the people in this forum. ;)
This is probably the single best reason I've ever heard for not mixing the sources. Thank Tux some forum peeps can be kind to us idiots. Sometimes. :lol:
And, if after reading my siggy, you still go and install from a PPA and then come-a-askin' for help - well, I think, "I told you not to do that!" will be the most gentle thump on the back of the head you can expect.

On the other hand, if you just gotta have the functionality and nothing the repos quite turns your screw, you can download the SOURCE code to your SolydXK machine, install appropriate/needed packages, and compile it to generate a .deb file. Then, install the .deb using, for example,

Code: Select all

sudo dpkg -i <your_compiled_to_deb>.deb
Then, later when something breaks your deb install, you just uninstall it and repeat the, get source/compile/install process.
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"


Return to “Customizations”

Who is online

Users browsing this forum: No registered users and 1 guest