Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added support for mint

  • Loading branch information...
commit 95ac42def9b629594b85c50a8f389a78ee4856dd 1 parent c8df0e1
@graysky2 authored
View
8 CHANGELOG
@@ -1,3 +1,9 @@
+v5.25
+21-Feb-2013
+Added support for Mint Linux.
+Add more generic Ubuntu Makefile. Now only Debian installs are identified from the postin scriptlet.
+Updated man page.
+
v5.24
19-Feb-2013
More verbose help for new users.
@@ -13,7 +19,7 @@ License change GPL --> MIT.
v5.21
14-Feb-2013
-add support for firefox-trunk (Firefox Nightly from the ppa:ubuntu-mozilla-daily/ppa -> more info @ http://www.webupd8.org/2011/05/install-firefox-nightly-from-ubuntu-ppa.html) (hotice).
+Added support for firefox-trunk (Firefox Nightly from the ppa:ubuntu-mozilla-daily/ppa -> more info @ http://www.webupd8.org/2011/05/install-firefox-nightly-from-ubuntu-ppa.html) (hotice).
v5.20
14-Feb-2013
View
2  Makefile.archlinux
@@ -1,4 +1,4 @@
-VERSION = 5.24
+VERSION = 5.25
PN = profile-sync-daemon
PREFIX ?= /usr
View
2  Makefile.fedora18
@@ -1,4 +1,4 @@
-VERSION = 5.24
+VERSION = 5.25
PN = profile-sync-daemon
PREFIX ?= /usr
View
2  Makefile.gentoo
@@ -1,4 +1,4 @@
-VERSION = 5.24
+VERSION = 5.25
PN = profile-sync-daemon
PREFIX ?= /usr
View
4 Makefile.ubuntu
@@ -1,4 +1,4 @@
-VERSION = 5.24
+VERSION = 5.25
PN = profile-sync-daemon
DESTDIR =
@@ -19,6 +19,8 @@ all:
install-bin:
@echo -e '\033[1;32mInstalling main script, initd and config...\033[0m'
install -Dm644 common/psd.conf "$(DESTDIR)$(CONFDIR)/psd.conf"
+ sed -i -e 's/#DAEMON_FILE="\/run\/psd"/DAEMON_FILE="\/var\/run\/psd"/' \
+ -i -e 's/#VOLATILE="\/tmp"/VOLATILE="\/run\/shm"/' "$(DESTDIR)$(CONFDIR)/psd.conf"
install -Dm755 init/psd.ubuntu "$(DESTDIR)$(INITDIR)/psd"
install -Dm755 common/$(PN) "$(DESTDIR)$(BINDIR)/$(PN)"
ln -s $(PN) "$(DESTDIR)$(BINDIR)/psd"
View
12 common/debian/postinst
@@ -18,17 +18,10 @@ case "$1" in
[ -f /etc/psd.conf ] && . /etc/psd.conf
if [ -z "$USERS" ]; then
# empty var means fresh install or user did not setup
- sed -i 's/#DAEMON_FILE="\/run\/psd"/DAEMON_FILE="\/var\/run\/psd"/' /etc/psd.conf
if [ $(grep -c -i debian /etc/issue) = 1 ]; then
- # debian does not mount /tmp to tmpfs by default so use /dev/shm
- sed -i 's/#VOLATILE="\/tmp"/VOLATILE="\/dev\/shm"/' /etc/psd.conf
+ # debian squeeze needs to /dev/shm
+ sed -i 's/VOLATILE="\/run\/shm"/VOLATILE="\/dev\/shm"/' /etc/psd.conf
fi
-
- if [ $(grep -c -i ubuntu /etc/issue) = 1 ]; then
- # ubuntu does not mount /tmp to tmpfs by default so use /run/shm
- sed -i 's/#VOLATILE="\/tmp"/VOLATILE="\/run\/shm"/' /etc/psd.conf
- fi
-
echo '--------------------------------------------------------------------------'
echo ' Define which users will make use of the sync in /etc/psd.conf'
echo ' Read the manpage before use or see the wiki page'
@@ -37,7 +30,6 @@ case "$1" in
echo ' ALWAYS backup your profiles data before using utils like psd!'
echo '--------------------------------------------------------------------------'
else
- # no need to process or inform since user is running the pacakge
/bin/true
fi
;;
View
6 common/profile-sync-daemon
@@ -348,9 +348,9 @@ case "$1" in
echo -e " ${BLD}sync) Force a manual ${NRM}${GRN}sync${NRM}${BLD}. Must be run as root user and NOT recommended."${NRM}
echo -e " ${BLD}unsync) Force a manual ${NRM}${GRN}unsync${NRM}${BLD}. Must be run as root user and NOT recommended."${NRM}
echo
- echo -e " ${BLD}It is HIGHLY discouraged to directly call $0 to sync or to unsync."${NRM}
+ echo -e " ${BLD}${RED}It is HIGHLY discouraged to directly call $0 to sync or to unsync."${NRM}
if [[ -f /usr/lib/systemd/system/psd.service ]]; then
- echo -e " ${BLD}Instead, use systemd to start/stop profile-sync-daemon."${NRM}
+ echo -e " ${BLD}${RED}Instead, use systemd to start/stop profile-sync-daemon."${NRM}
echo
echo -e " ${BLD}systemctl ${NRM}${GRN}[option]${NRM}${BLD} psd.service"${NRM}
echo -e " ${BLD} ${NRM}${GRN}start${NRM}${BLD} Turn on daemon; make symlinks and actively manage targets in tmpfs."${NRM}
@@ -358,7 +358,7 @@ case "$1" in
echo -e " ${BLD} ${NRM}${GRN}enable${NRM}${BLD} Autostart daemon when system comes up."${NRM}
echo -e " ${BLD} ${NRM}${GRN}disable${NRM}${BLD} Remove daemon from the list of autostart daemons."${NRM}
elif [[ -f /etc/init.d/psd ]]; then
- echo -e " ${BLD}Instead, use the init system to start/stop profile-sync-daemon."${NRM}
+ echo -e " ${BLD}${RED}Instead, use the init system to start/stop profile-sync-daemon."${NRM}
echo
echo -e " ${BLD}sudo service psd ${NRM}${GRN}[option]${NRM}${BLD} or /etc/init.d/psd ${NRM}${GRN}[option]"${NRM}
echo -e " ${BLD} ${NRM}${GRN}start${NRM}${BLD} Turn on daemon; make symlinks and actively manage targets in tmpfs."${NRM}
View
4 common/psd.conf
@@ -37,11 +37,11 @@ USERS=""
# Suggested locations based on distro defaults:
# Arch Linux/Chakra and Gentoo users can leave this commented out
# Debian users should use a setting of "/dev/shm"
-# Ubuntu users should use a setting of "/run/shm"
+# Mint/Ubuntu users should use a setting of "/run/shm"
#VOLATILE="/tmp"
# Define where the pid file for psd will reside
# Arch Linux/Chakra and Gentoo users can leave this commented out
-# Debian/ubuntu users should use a setting of "/var/run/psd"
+# Debian/Mint/Ubuntu users should use a setting of "/var/run/psd"
#
#DAEMON_FILE="/run/psd"
View
53 doc/psd.1
@@ -1,5 +1,5 @@
.\" Text automatically generated by txt2man
-.TH profile-sync-daemon 1 "14 February 2013" "" ""
+.TH profile-sync-daemon 1 "21 February 2013" "" ""
.SH NAME
\fBprofile-sync-daemon \fP- Symlinks and syncs browser profile dirs to RAM thus reducing HDD/SDD calls and speeding-up browsers.
\fB
@@ -39,7 +39,7 @@ As you will see in the output and as stated above, if no specific browser or sub
.SH GENERAL USAGE
Do NOT call /usr/bin/profile-sync-daemon to sync or to unsync directly! Instead, use your distro's init system. The initial synchronization will occur when the daemon starts. Additionally, cron (if running on your system) will call it to sync or update once per hour. Finally, psd will sync back a final time when it is called to stop.
.SH SYSTEMD
-Example distro include: Arch Linux, Chakra, and Fedora. The officially supported method provides a systemd service file which should be used to interact with psd (/usr/lib/systemd/system/psd.service):
+A systemd service file is provided and should be used to interact with psd. Officially supported distro running systemd by default, include: Arch Linux, Chakra, and Fedora.
.PP
.nf
.fam C
@@ -66,22 +66,19 @@ Autostart daemon when system comes up.
disable
Remove daemon from the list of autostart daemons.
.SH OTHER INITSCRIPTS
-Other init scripts may be used to manage the deamon. The source tarball provides examples for the following distros:
-.RS
-.IP \(bu 3
-Debian/Ubuntu
-.IP \(bu 3
-Gentoo
-.PP
-# /etc/init.d/psd [option]
.TP
.B
-start
-Turn on daemon; make symlinks and actively manage targets in tmpfs.
-.TP
-.B
-stop
-Turn off daemon; remove symlinks and rotate tmpfs data back to disc.
+For distros not using systemd, another init script
+should be used to manage the deamon. Examples are provided and are known to work with the following distros: Debian, Mint, Gentoo, and Ubuntu.
+.PP
+.nf
+.fam C
+ # /etc/init.d/psd [option]
+ start Turn on daemon; make symlinks and actively manage targets in tmpfs.
+ stop Turn off daemon; remove symlinks and rotate tmpfs data back to disc.
+
+.fam T
+.fi
.SH SUPPORTED BROWSERS
Currently, the following browsers are auto-detected and managed:
.RS
@@ -131,11 +128,31 @@ The following is an example of a BAD profile that will not pass the test. You ca
.fam T
.fi
.SH SUPPORTED DISTROS
-At this time, the only officially supported distro package is for Arch Linux and can be downloaded and built from the AUR at the following URL: https://aur.archlinux.org/packages/profile-sync-daemon/
+At this time, the following distros are officially supported:
+.RS
+.IP \(bu 3
+Arch
+.IP \(bu 3
+Chakra
+.IP \(bu 3
+Debian (Squeeze)
+.IP \(bu 3
+Gentoo
+.IP \(bu 3
+Mint (14+)
+.IP \(bu 3
+Fedora (18 and Rawhide)
+.IP \(bu 3
+Ubuntu (10.04-13.04)
+.RE
+.PP
+Many of the distros offer an official package or means to build one yourself. For a list of distro packages, see the project page linked below.
.SH CONTRIBUTE
-Should you wish to contribute to this code, please fork and send a pull request. Source is freely available on github: https://github.com/graysky2/profile-sync-daemon
+Should you wish to contribute to this code, please fork and send a pull request. Source is freely available on the project page linked below.
.SH BUGS
It is known that on slow systems with large profiles, the sync'ing step sometimes take longer than the boot-up of the WM. Therefore, users can theoretically start their browser before the profile has been transitioned to tmpfs. This is particularly prevalent on systems with slow HDDs running systemd.
+.PP
+Discover a bug? Please open an issue on the project page linked below.
.SH ONLINE
.IP \(bu 3
Project page: https://github.com/graysky2/profile-sync-daemon
Please sign in to comment.
Something went wrong with that request. Please try again.