Browse Source

renamed to sshactivate

added deactiveate $foo
pull/1/head
Alf Gaida 4 years ago
parent
commit
cc44de3d46

+ 12
- 3
debian/changelog View File

@@ -1,8 +1,17 @@
sshstart (0.7.4) UNRELEASED; urgency=medium
sshactivate (2017.1.1) unstable; urgency=medium

* NOT RELEASED YET
* fix wrong pngs

-- Stefan Lippers-Hollmann <s.l-h@gmx.de> Wed, 02 Sep 2015 20:04:44 +0200
-- Alf Gaida <agaida@siduction.org> Sun, 26 Feb 2017 01:25:41 +0100

sshactivate (2017.1.0) unstable; urgency=medium

* fix fll-user and ssh start
* renamed the package
* renamed the start script
* added deactivate script

-- Alf Gaida <agaida@siduction.org> Sun, 26 Feb 2017 00:48:05 +0100

sshstart (0.7.3) unstable; urgency=medium


+ 1
- 1
debian/compat View File

@@ -1 +1 @@
9
10

+ 11
- 15
debian/control View File

@@ -1,25 +1,21 @@
Source: sshstart
Source: sshactivate
Section: net
Priority: optional
Maintainer: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Uploaders: Niall Walsh <niallwalsh@celtux.org>,
Alf Gaida <agaida@siduction.org>
Build-Depends: debhelper (>= 9.20120115)
Standards-Version: 3.9.6
Vcs-git: git://github.com/fullstory/sshstart.git
Vcs-Browser: https://github.com/fullstory/sshstart
Maintainer: Alf Gaida <agaida@siduction.org>
Build-Depends: debhelper (>= 10)
Standards-Version: 3.9.8
Vcs-git: https://git.siduction.org
Vcs-Browser: https://git.siduction.org

Package: sshstart
Package: sshactivate
Architecture: all
Depends: ${misc:Depends},
openssh-server,
procps
openssh-server,
procps
Recommends: menu
Suggests: xterm | x-terminal-emulator
Description: set ssh passwords
Description: set ssh passwords and activate/deactivate SSHD
Generates ssh2 host keys and starts the installed Secure Shell (SSH) Server
(OpenSSH). Additionally a password needs to be set for the live user, root
passwords need to be set manually.
.
This is a FULLSTORY live-only package and must not be installed to an
ordinary system.

+ 7
- 7
debian/copyright View File

@@ -1,16 +1,16 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: sshstart
Upstream-Contact: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Source: git://github.com/fullstory/sshstart.git
Source: https://github.com/fullstory/sshstart.git

Files: *
Copyright: 2001-2002, Klaus Knopper <knoppix@knopper.net>
2003, Jörg Schirottke <master@kanotix.com>
2004-2015, Stefan Lippers-Hollmann <s.l-h@gmx.de>
Copyright: 2001-2002 Klaus Knopper <knoppix@knopper.net>
2003 Jörg Schirottke <master@kanotix.com>
2004-2015 Stefan Lippers-Hollmann <s.l-h@gmx.de>
2016-2017 Alf Gaida <agaida@sidution.org>
License: GPL-2.0

Files: debian/*
Copyright: 2005-2015, Stefan Lippers-Hollmann <s.l-h@gmx.de>
Copyright: 2005-2015 Stefan Lippers-Hollmann <s.l-h@gmx.de>
2012-2014 Alf Gaida <agaida@siduction.org>
License: GPL-2.0


+ 6
- 3
debian/install View File

@@ -1,4 +1,7 @@
sshstart usr/sbin
sshstart.desktop usr/share/applications
icons/sshstart.svg usr/share/icons/hicolor/scalable/apps/
sshactivate usr/sbin
sshdeactivate usr/sbin
sshactivate.desktop usr/share/applications
sshdeactivate.desktop usr/share/applications
icons/sshactivate.svg usr/share/icons/hicolor/scalable/apps/
icons/sshdeactivate.svg usr/share/icons/hicolor/scalable/apps/
icons/hicolor usr/share/icons/

+ 2
- 1
debian/manpages View File

@@ -1 +1,2 @@
sshstart.8
sshactivate.8
sshdeactivate.8

+ 12
- 3
debian/rules View File

@@ -1,7 +1,7 @@
#!/usr/bin/make -f

%:
dh ${@} --parallel
dh ${@}

create-icons:
# requires inkscape to be installed
@@ -15,6 +15,15 @@ create-icons:
mkdir -p "icons/hicolor/$${i}x$${i}/apps" ; \
inkscape --export-width=$${i} \
--export-height=$${i} \
--export-png="$(CURDIR)/icons/hicolor/$${i}x$${i}/apps/sshstart.png" \
$(CURDIR)/icons/sshstart.svg ; \
--export-png="$(CURDIR)/icons/hicolor/$${i}x$${i}/apps/sshactivate.png" \
$(CURDIR)/icons/sshactivate.svg ; \
done
for i in 16 22 32 48 64 128; do \
mkdir -p "icons/hicolor/$${i}x$${i}/apps" ; \
inkscape --export-width=$${i} \
--export-height=$${i} \
--export-png="$(CURDIR)/icons/hicolor/$${i}x$${i}/apps/sshdeactivate.png" \
$(CURDIR)/icons/sshdeactivate.svg ; \
done



BIN
icons/hicolor/128x128/apps/sshactivate.png View File


BIN
icons/hicolor/128x128/apps/sshdeactivate.png View File


BIN
icons/hicolor/128x128/apps/sshstart.png View File


BIN
icons/hicolor/16x16/apps/sshactivate.png View File


BIN
icons/hicolor/16x16/apps/sshdeactivate.png View File


BIN
icons/hicolor/16x16/apps/sshstart.png View File


BIN
icons/hicolor/22x22/apps/sshactivate.png View File


BIN
icons/hicolor/22x22/apps/sshdeactivate.png View File


BIN
icons/hicolor/22x22/apps/sshstart.png View File


BIN
icons/hicolor/32x32/apps/sshactivate.png View File


BIN
icons/hicolor/32x32/apps/sshdeactivate.png View File


BIN
icons/hicolor/32x32/apps/sshstart.png View File


BIN
icons/hicolor/48x48/apps/sshactivate.png View File


BIN
icons/hicolor/48x48/apps/sshdeactivate.png View File


BIN
icons/hicolor/48x48/apps/sshstart.png View File


BIN
icons/hicolor/64x64/apps/sshactivate.png View File


BIN
icons/hicolor/64x64/apps/sshdeactivate.png View File


BIN
icons/hicolor/64x64/apps/sshstart.png View File


icons/sshstart.svg → icons/sshactivate.svg View File


+ 981
- 0
icons/sshdeactivate.svg
File diff suppressed because it is too large
View File


sshstart → sshactivate View File

@@ -17,7 +17,7 @@
# GNU General Public License for more details.

# override tool behaviour through distro-defaults
FLL_LIVE_USER="siduction"
FLL_LIVE_USER="siducer"
if [ -s /etc/default/distro ]; then
. /etc/default/distro
fi
@@ -79,7 +79,8 @@ if [ ! -e /etc/ssh/ssh_host_ed25519_key ]; then
fi
fi

service ssh start
systemctl enable ssh
systemctl start ssh

if [ "$?" -ne 0 ]; then
echo "openssh-server failed to start, aborting."

sshstart.8 → sshactivate.8 View File

@@ -1,12 +1,11 @@
.TH sshstart "8" "January 2015" "sshstart" "System Administration Commands (8)"
.TH sshactivate "26" "February 2017" "sshactivate" "System Administration Commands (8)"
.SH NAME
sshstart - starts sshd
sshactivate - starts and enable sshd
.SH SYNOPSIS
.B sshstart
.B sshactivate
.SH DESCRIPTION
`sshstart', generates sshd system keys, starts the ssh dæmon and asks for user
`sshactivate', generates sshd system keys, starts and enable the ssh dæmon and asks for user
password, to allow remote access to the (live-)system.
hibernation images.
.SH "SEE ALSO"
.BR sshd
.SH AUTHOR

+ 10
- 0
sshactivate.desktop View File

@@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Exec=su-to-root -c /usr/sbin/sshactivate
Icon=sshactivate
Terminal=true
Name=sshactivate
GenericName=Aktivate SSH Server (Remote access)
GenericName[de]=SSH Server aktivieren (Remote-Zugang)
Categories=Network;
Keywords=ssh;sshd;openssh;

+ 31
- 0
sshdeactivate View File

@@ -0,0 +1,31 @@
#!/bin/sh
# sshdeactivate - Stop and disable SSHD

# Copyright 2017 Alf Gaida <agaida@siduction.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; version 2 of the
# License.
#
# 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.

rm -f /etc/ssh/ssh_host_rsa_key \
rm -f /etc/ssh/ssh_host_rsa_key.pub
rm -f /etc/ssh/ssh_host_dsa_key \
rm -f /etc/ssh/ssh_host_ecdsa_key \
rm -f /etc/ssh/ssh_host_ecdsa_key.pub
rm -f /etc/ssh/ssh_host_ed25519_key \
rm -f /etc/ssh/ssh_host_ed25519_key.pub

systemctl disable ssh
systemctl stop ssh

echo ""
echo -n "Finished. Press Enter to exit."
read DUMMY

exit 0

+ 12
- 0
sshdeactivate.8 View File

@@ -0,0 +1,12 @@
.TH sshdeactivate "25" "February 2017" "sshdeactivate" "System Administration Commands (8)"
.SH NAME
sshdeactivate - deactivate sshd
.SH SYNOPSIS
.B sshdeactivate
.SH DESCRIPTION
`sshdeactivate' stop and disable the ssh daemon.
.SH "SEE ALSO"
.BR sshd
.SH AUTHOR
This manual has been written by Alf Gaida <agaida@siduction.org> for
the Debian project (but may be used by others).

+ 10
- 0
sshdeactivate.desktop View File

@@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Exec=su-to-root -c /usr/sbin/sshdeactivate
Icon=sshdeactivate
Terminal=true
Name=sshdeactivate
GenericName=Deaktivate SSH Server (Remote access)
GenericName[de]=SSH Server deaktivieren (Remote-Zugang)
Categories=Network;
Keywords=ssh;sshd;openssh;

+ 0
- 14
sshstart.desktop View File

@@ -1,14 +0,0 @@
[Desktop Entry]
Type=Application
Exec=su-to-root -c /usr/sbin/sshstart
Icon=sshstart
Terminal=true
Name=sshstart
GenericName=Start SSH Server (Remote access)
GenericName[de]=SSH Server starten (Remote-Zugang)
GenericName[ru]=Запуск сервера SSH (дистан. доступ)
GenericName[es]=Arrancar servidor SSH (Acceso remoto)
GenericName[pt]=Lançar servidor SSH (Acceso remoto)
GenericName[pt_BR]=Lançar servidor SSH (Acceso remoto)
Categories=Network;
Keywords=ssh;sshd;openssh;

Loading…
Cancel
Save