Commit c4cc0034 authored by Lorenzo Faletra's avatar Lorenzo Faletra

have some fun

parent 1f4615b8
...@@ -10,9 +10,9 @@ install: ...@@ -10,9 +10,9 @@ install:
mkdir -p $(DESTDIR)/sandbox mkdir -p $(DESTDIR)/sandbox
cp grub.default $(DESTDIR)/etc/default/grub.d/parrot.cfg cp grub.default $(DESTDIR)/etc/default/grub.d/parrot.cfg
chown root:root $(DESTDIR)/etc/default/grub.d/parrot.cfg chown root:root $(DESTDIR)/etc/default/grub.d/parrot.cfg
chown root:root /sandbox chown root:root $(DESTDIR)/sandbox
chmod 644 $(DESTDIR)/etc/default/grub.d/parrot.cfg chmod 644 $(DESTDIR)/etc/default/grub.d/parrot.cfg
chmod 755 /sandbox chmod 755 $(DESTDIR)/sandbox
go build update-sandbox-launchers.go -o $(DESTDIR)/usr/bin/update-sandbox-launchers go build -o $(DESTDIR)/usr/bin/update-sandbox-launchers update-sandbox-launchers.go
strip $(DESTDIR)/usr/bin/update-sandbox-launchers strip $(DESTDIR)/usr/bin/update-sandbox-launchers
parrot-core (4.7.190723) rolling-testing; urgency=medium
* Fix go program.
-- Lorenzo "Palinuro" Faletra <palinuro@parrotsec.org> Tue, 23 Jul 2019 02:57:14 +0200
parrot-core (4.7.190722) rolling-testing; urgency=medium
* Fix go build command.
-- Lorenzo "Palinuro" Faletra <palinuro@parrotsec.org> Mon, 22 Jul 2019 03:12:26 +0200
parrot-core (4.7.190721) rolling-testing; urgency=medium
* Fix makefile.
-- Lorenzo "Palinuro" Faletra <palinuro@parrotsec.org> Sun, 21 Jul 2019 05:10:26 +0200
parrot-core (4.7.190718) rolling-testing; urgency=medium parrot-core (4.7.190718) rolling-testing; urgency=medium
* Move sandbox launchers from /usr/local/bin to /sandbox. * Move sandbox launchers from /usr/local/bin to /sandbox.
......
DPkg::Post-Invoke { "[ ! -x /usr/bin/sandbox-config ] || /usr/bin/sandbox-config || true"; } DPkg::Post-Invoke { "[ ! -x /usr/bin/update-sandbox-launchers ] || /usr/bin/update-sandbox-launchers || true"; }
...@@ -110,6 +110,8 @@ alias em='emacs -nw' ...@@ -110,6 +110,8 @@ alias em='emacs -nw'
alias dd='dd status=progress' alias dd='dd status=progress'
alias _='sudo' alias _='sudo'
alias _i='sudo -i' alias _i='sudo -i'
alias please='sudo'
alias fucking='sudo'
# Alias definitions. # Alias definitions.
# You may want to put all your additions into a separate file like # You may want to put all your additions into a separate file like
......
...@@ -110,6 +110,8 @@ alias em='emacs -nw' ...@@ -110,6 +110,8 @@ alias em='emacs -nw'
alias dd='dd status=progress' alias dd='dd status=progress'
alias _='sudo' alias _='sudo'
alias _i='sudo -i' alias _i='sudo -i'
alias please='sudo'
alias fucking='sudo'
# Alias definitions. # Alias definitions.
# You may want to put all your additions into a separate file like # You may want to put all your additions into a separate file like
......
#!/bin/bash
#
# Copyright 2017 Lorenzo "Palinuro" Faletra <palinuro@parrotsec.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#
echo "Configuring sandbox profiles...."
[ ! -x /usr/bin/update-sandbox-launchers ] || /usr/bin/update-sandbox-launchers || true
echo "Sandbox profiles updated!"
...@@ -22,7 +22,8 @@ func main() { ...@@ -22,7 +22,8 @@ func main() {
} }
// run firecfg // run firecfg
if _, err := os.Stat("/usr/bin/firecfg"); os.IsNotExist(err) { _, err := os.Stat("/usr/bin/firecfg")
if err == nil {
exec.Command("/usr/bin/firecfg", "--bindir=/sandbox").Output() exec.Command("/usr/bin/firecfg", "--bindir=/sandbox").Output()
} }
...@@ -38,7 +39,7 @@ func main() { ...@@ -38,7 +39,7 @@ func main() {
for i, ii := range aliases { for i, ii := range aliases {
launchers[i].exec = fmt.Sprintf("/sandbox/%s", ii.Name()) launchers[i].exec = fmt.Sprintf("/sandbox/%s", ii.Name())
launchers[i].name = ii.Name() launchers[i].name = ii.Name()
launchers[i].filename = fmt.Sprintf("_sandbox-%s.desktop", ii.Name()) launchers[i].filename = fmt.Sprintf("/usr/share/applications/_sandbox-%s.desktop", ii.Name())
} }
// remove old launchers // remove old launchers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment