Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
added software files
Browse files Browse the repository at this point in the history
  • Loading branch information
gaining committed Mar 28, 2017
1 parent 695b383 commit 308b728
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 11 deletions.
32 changes: 32 additions & 0 deletions Resetter/DEBIAN/md5sums
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
1c10d1af87689b242e07da65d715cfdf usr/bin/resetter
26629ddf3450a3093e26050df4346118 usr/lib/resetter/singleton.py
ecbc0eefc3f66a3ab1a73e1131cefe64 usr/lib/resetter/Resetter.py
fb140764b378fc18119cac25006e208f usr/lib/resetter/CustomApplyDialog.py
8cb3e2f6f2420ea19f63eca71eba483f usr/lib/resetter/Account.py
7055beb358e870f7cf368a6775da7784 usr/lib/resetter/CustomReset.py
3524ed00f084d3e07a8adc03061a07b4 usr/lib/resetter/AboutPage.py
9772f66393d2aef25b7094fd4c64ece9 usr/lib/resetter/LicenceDialog.py
990f24f2babe3ad46987ea2af647f7ad usr/lib/resetter/AptProgress.py
dcc705a2c6e61c2bb7f37dbf2fadd7bf usr/lib/resetter/ApplyDialog.py
33efadaae37cb7255b8bb4d73d11d3f2 usr/lib/resetter/Installed.py
2628dbbab4fed8f1e4f65d01d26899ee usr/lib/resetter/data/icons/custom-reset-icon.png
7821f54c708de3f36001b288349c390c usr/lib/resetter/data/icons/resetter.png
ef48d3f78507c851d4350f18bccfe9a2 usr/lib/resetter/data/icons/auto-reset-icon.png
ee58e963ae306c588b297fb1b42e1912 usr/lib/resetter/data/icons/auto-reset-icon-scaled.png
6abde6302003fbe31f3a291523c76a33 usr/lib/resetter/data/icons/resetter-logo.png
801f7b46dc2405d15b9fa05d10a51c25 usr/lib/resetter/data/icons/chassingarrows.gif
ef86d1ee9c3156a9e559ef06622e3a4c usr/lib/resetter/data/icons/checkmark.png
abf3ff450c736654c50570c75135a206 usr/lib/resetter/data/icons/custom-reset-icon-scaled.png
6e112836a558ace27f57d3a8616d4835 usr/lib/resetter/data/scripts/get-users.sh
3589b0ac1f65cb66cb76621b1b59bbd5 usr/lib/resetter/data/scripts/remove-old-kernels.sh
af4af7e39fcc8907259228c0781e18e3 usr/lib/resetter/data/scripts/fix-broken.sh
918fa3a4b8534bf29322aca8845c17a1 usr/lib/resetter/data/scripts/new-user.sh
913131e66ea5eb02ed5e991b0cc6cc10 usr/lib/resetter/data/manifests/mint-17.3-cinnamon.manifest
1c8affd5c7f1cc9f31eb9e42b317e1ba usr/lib/resetter/data/manifests/ubuntu-14.04-unity.manifest
20eb9c904246b9b8ad75ea6acbc1a093 usr/lib/resetter/data/manifests/ubuntu-16.04-unity.manifest
997ebc7f608ce5cf2b98e51ad705d33a usr/lib/resetter/data/manifests/mint-18-cinnamon.manifest
7dad20c85851cce4a97fd90b81e26fa2 usr/lib/resetter/data/manifests/mint-18.1-cinnamon.manifest
343ad895e19fc427e6838d58c0929e49 usr/share/applications/Resetter.desktop
79ba3652a6290aea1a33017aa4c7f735 usr/share/polkit-1/actions/org.freedesktop.pkexec.resetter.policy
ab9eea5b0e3a6ee53c22259428c52fc7 usr/share/doc/resetter/changelog.gz
4c690a8212d11010fa977ae515b6478b usr/share/doc/resetter/copyright
4 changes: 4 additions & 0 deletions Resetter/TODO.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
add install option for reading file from generated list (backup)
add more distro manifests
create better launcher icon

10 changes: 3 additions & 7 deletions Resetter/usr/lib/resetter/CustomApplyDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ def __init__(self, file_in, response, parent=None):
self.error_msg.setWindowTitle("Error")
self.buttonCancel = QtGui.QPushButton()
self.buttonCancel.setText("Cancel")
self.buttonUser = QtGui.QPushButton()
self.buttonUser.setText("remove users")
self.buttonCancel.clicked.connect(self.cancel)
self.progress = QtGui.QProgressBar(self)
self.lbl1 = QtGui.QLabel()
gif = os.path.abspath("/usr/lib/resetter/data/icons/chassingarrows.gif")
Expand Down Expand Up @@ -108,16 +107,13 @@ def __init__(self, file_in, response, parent=None):
verticalLayout.addSpacing(20)
verticalLayout.addLayout(gridLayout)
verticalLayout.addWidget(self.buttonCancel, 0, QtCore.Qt.AlignRight)
verticalLayout.addWidget(self.buttonUser, 0, QtCore.Qt.AlignRight)
self.logger = logging.getLogger(__name__)
self.logger.setLevel(logging.DEBUG)
handler = logging.FileHandler('/var/log/resetter/resetter.log')
handler.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(funcName)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)
self.logger.addHandler(handler)
self.buttonCancel.clicked.connect(self.cancel)
self.buttonUser.clicked.connect(self.removeUsers)
self.progressView = ProgressThread(self.file_in)
self.account = AccountDialog(self)
self.connect(self.progressView, QtCore.SIGNAL("updateProgressBar(int, bool)"), self.updateProgressBar)
Expand Down Expand Up @@ -161,7 +157,7 @@ def remove(self):
self.movie.stop()
self.labels[(2, 1)].setPixmap(self.pixmap2)
self.progress.setValue(int(100))
#self.removeUsers()
self.removeUsers()
self.fixBroken()
except Exception as arg:
self.movie.stop()
Expand Down Expand Up @@ -261,7 +257,7 @@ def getDependencies(self):
def addUser(self):
choice = QtGui.QMessageBox.question\
(self, 'Would you like set your new account?',
"Set your own account? Click No so that I can create a default account for you instead",
"Set your own account? Click 'No' so that I can create a default account for you instead",
QtGui.QMessageBox.Yes | QtGui.QMessageBox.No)
if choice == QtGui.QMessageBox.Yes:
self.show()
Expand Down
5 changes: 1 addition & 4 deletions Resetter/usr/lib/resetter/data/scripts/new-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ PASSWORD="NewLife3!"
USERNAME="default"

if id -u $USERNAME >/dev/null 2>&1; then
userdel -r -f $USERNAME
useradd -m -p $PASSWORD -s /bin/bash $USERNAME
usermod -a -G sudo $USERNAME
echo $USERNAME:$PASSWORD | chpasswd
echo "$USERNAME already exists not adding"

else
useradd -m -p $PASSWORD -s /bin/bash $USERNAME
Expand Down
Binary file modified resetter_0.0.1-beta_all.deb
Binary file not shown.

0 comments on commit 308b728

Please sign in to comment.