Giter Site home page Giter Site logo

gaining / resetter Goto Github PK

View Code? Open in Web Editor NEW
389.0 36.0 176.0 10.8 MB

The easiest way to reset your debian or ubuntu based linux back to stock

License: GNU General Public License v3.0

Shell 1.43% Python 98.57%
linux python ubuntu linuxmint apt resetter stock pyqt4 pyqt

resetter's Introduction

I have decided to retire this project due to lack of time for maintenance. Also, I don't use Linux anymore and maintaining it is a pain so I'm retiring it. If anyone else wants to maintain it be my guest.

resetter's People

Contributors

acloserview avatar edjacks1 avatar freelancefx avatar gaining avatar jeremiah-k avatar jonlive avatar kenshin23 avatar kokun231 avatar lucasinocente avatar mdrost avatar timoffey1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

resetter's Issues

[Ubuntu] Maybe use OEM Setup for the way to re-add the User once it's reset?

OEM Setup seems a bit more fitting when it comes to what the user should see when they restart their computer once they've Reset it, as it provides the User Addition-ing after Reset, and so on, meaning it's easier to then re-sell that laptop to someone else if they reset it because of wanting to give it to someone else, who'd otherwise have no idea what the password of the user is.

I can see an implementation of OEM Setup being really useful, for these reasons, especially when it comes to re-selling, which is probably what people would want to use this program for, and it's also for Linux Mint and Co, too. What do you think @gaining ?

default password does not work

Hi, I tried out the app many times, via the deb packages which works for ubuntu 16.10 also and everything runs smoothly except when using the default password NewLife3 it simply does not work. Am I doing something wrong?

Skip account creating

*Issue title: Skip account creating

*Linux Distro and version: Ubuntu 17.04

*Version of Resetter: 1.0.3-stable

*Description of Issue
It is unclear why after I don't checked any account to be removed I am forced to create new account. I want only to remove some packages and use my old account. It should be possible to skip that step.

*content of Log file located in /var/log/resetter/resetter.log
not needed

Need a way to deal with questions from the maintainer scripts.

During some package installs or removes, some maintainer scripts will ask questions on whether to accept a new configuration file or keep the current one. Another example is the oracle-java package which will ask for users to accept licenses. The current resetter has no way of dealing with that and will just hang as it is not set up to run non-interactively yet. If resetter was run from the terminal, you will see such prompts and be able to take care of them, the program will continue and not hang.

This shall be fixed on the next version.

Remove snap apps

Someone has sent me an email to support removing snaps. Seems like a good feature to add ๐Ÿ‘
I know very little about snaps but from my initial research, this seems feasible.

Hangs during reinstall on Ubuntu 16

  • Title
    Hangs during reinstall on Ubuntu 16

*Linux Distro and version
Ubuntu 16

*Version of Resetter
2.2.0-stable

*Description of Issue
Hangs at start of Cleaning Up phase. According to dpkg.log it is after it finished installing python-newt. It seems to have uninstalled itself since 'resetter' is no longer in my path. So I cannot try again without reinstalling.

Also, the error, QFile::seek: IODevice is not open, occurs regularly in my shell window.

*content of Log file located in /var/log/resetter/resetter.log
Does not exist.

Automatic reset default user function does not work.

It was disabled due to testing and I've forgotten to enable it. I will push a fix for this tonight along with other new features I've been working on. In the meantime, if you must reset, use the custom reset option as this one works properly.

struck in /dev/sda4 : clean

Hello
My Lenovo computer install Ubuntu and Windows 10. After using your app, ubuntu will strcu in /dev/sda3 :clean. Recovery mode is OK.
Can you tell me how to solve the problem?

Best Wishes

Custom reset removed apps that were specifically unchecked

I chose a custom reset as I wanted to preserve some of my apps such as Synaptic for example. These were removed, however, after the process completed.

Not a massive issue as I can install them again, but it seems to have removed all rather than the custom set I specified.

This is on the first screen for the custom reset option where it suggests that you remove everything as they are not present in a vanilla build.

Make separate version of resetter for Ubuntu 17.10+

*Issue title
Make separate version for Ubuntu 17.10+

*Linux Distro and version
Recent Ubuntus

*Version of Resetter
next version

*Description of Issue
Ubuntu is using wayland which breaks qt gui apps ruining as root, Most other debian based linux distros aren't using wayland and these apps work fine without any workarounds. I'll make resetter start using pk-exec again for all the distros that aren't using wayland.

*content of Log file located in /var/log/resetter/resetter.log
na

Deleting accounts and creating an account under the same name

*Issue title
Deleting accounts and creating an account under the same name

*Linux Distro and version
Ubuntu 16.04

*Version of Resetter
1.0.3-stable

*Description of Issue
When I chose to delete all my user accounts, one of them included mine "maxgitt". When I was later prompted to create a new account I named the account "maxgitt". Upon booting the newly reset OS I found that the only user account was "Guest". I had to drop into root to add the user and grant it root access.

*content of Log file located in /var/log/resetter/resetter.log
2017-10-05 19:13:13,154 - main - getInstalledList - INFO - getting installed list...
2017-10-05 19:13:13,216 - main - getInstalledList - DEBUG - installed list was generated with 2029 apps installed
2017-10-05 19:13:13,216 - main - processManifest - INFO - processing updated manifest...
2017-10-05 19:13:13,220 - main - processManifest - INFO - manifest processing complete
2017-10-05 19:13:13,224 - main - getLocalUserList - INFO - getting local users...
2017-10-05 19:13:13,232 - main - getLocalUserList - INFO - getLocalUserList() completed
2017-10-05 19:13:13,232 - main - getOldKernels - INFO - getting old kernels...
2017-10-05 19:13:13,382 - main - getOldKernels - INFO - getOldKernels() completed
2017-10-05 19:13:13,382 - main - findNonDefaultUsers - INFO - getting local users...
2017-10-05 19:13:13,389 - main - findNonDefaultUsers - INFO - getLocalUserList() completed
2017-10-05 19:17:21,971 - Account - custom_user - INFO - Custom user creation complete
2017-10-05 19:17:31,229 - CustomApplyDialog - removePackages - INFO - Removing Programs
2017-10-05 19:17:31,229 - CustomApplyDialog - removePackages - INFO - Removing Programs
2017-10-05 19:17:31,357 - CustomApplyDialog - removePackages - INFO - Keep Count before commit: 0
2017-10-05 19:17:31,357 - CustomApplyDialog - removePackages - INFO - Keep Count before commit: 0
2017-10-05 19:17:31,357 - CustomApplyDialog - removePackages - INFO - Delete Count before commit: 196
2017-10-05 19:17:31,357 - CustomApplyDialog - removePackages - INFO - Delete Count before commit: 196
2017-10-05 19:17:31,357 - CustomApplyDialog - removePackages - INFO - Broken Count before commit: 0
2017-10-05 19:17:31,357 - CustomApplyDialog - removePackages - INFO - Broken Count before commit: 0
2017-10-05 19:22:08,363 - CustomApplyDialog - removePackages - INFO - Broken Count after commit: 0
2017-10-05 19:22:08,363 - CustomApplyDialog - removePackages - INFO - Broken Count after commit: 0
2017-10-05 19:22:08,367 - CustomApplyDialog - fixBroken - INFO - Cleaning up...
2017-10-05 19:22:08,367 - CustomApplyDialog - fixBroken - INFO - Cleaning up...
2017-10-05 19:22:13,483 - CustomApplyDialog - onFinished - DEBUG - Cleanup finished with exit code: 0 and exit_status 0.
2017-10-05 19:22:13,483 - CustomApplyDialog - onFinished - DEBUG - Cleanup finished with exit code: 0 and exit_status 0.
2017-10-05 19:22:13,483 - CustomApplyDialog - installPackages - INFO - Starting installations...
2017-10-05 19:22:13,483 - CustomApplyDialog - installPackages - INFO - Starting installations...
2017-10-05 19:22:15,461 - InstallMissingDialog - installPackages - INFO - treating Packages
2017-10-05 19:22:15,461 - InstallMissingDialog - installPackages - INFO - treating Packages
2017-10-05 19:22:23,516 - CustomApplyDialog - removeUsers - INFO - Starting user removal
2017-10-05 19:22:23,516 - CustomApplyDialog - removeUsers - INFO - Starting user removal
2017-10-05 19:22:23,523 - CustomApplyDialog - removeUsers - DEBUG - user removal completed successfully: [-2]
2017-10-05 19:22:23,523 - CustomApplyDialog - removeUsers - DEBUG - user removal completed successfully: [-2]
2017-10-06 08:27:00,187 - CustomApplyDialog - showUserInfo - INFO - Credential message info shown
2017-10-06 08:27:00,187 - CustomApplyDialog - showUserInfo - INFO - Credential message info shown
2017-10-06 08:27:02,169 - CustomApplyDialog - rebootMessage - INFO - system rebooted after package removals
2017-10-06 08:27:02,169 - CustomApplyDialog - rebootMessage - INFO - system rebooted after package removals

support for deepin v 15.4.1

i installed version resetter (0.3.7-rc on deepin v 15.4.1 and it opened but have'n't tested it yet

#but
when i installed v 1 stable on deepin 15.4.1 it didn't open and said thet deepin 15.4.1 not supported yet

Custom Apply window disappears prematurely

*Issue title: Custom Apply window disappears prematurely

*Linux Distro and version: All supported distros

*Version of Resetter: 1.0.3

*Description of Issue
After removing non: default apps, custom apply window will disappear.

*content of Log file located in /var/log/resetter/resetter.log
not needed

Error while run sudo resetter

$ sudo resetter
File "/usr/lib/resetter/Resetter.py", line 12, in
from PyQt4 import QtCore, QtGui
ImportError: /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so: undefined symbol: _ZN15QSessionManager16staticMetaObjectE

I have ubuntu 16.04

Resetter is already running

*Issue title: Resetter is already running

*Linux Distro and version: Ubuntu 17.04

*Version of Resetter: 1.0.3-stable

*Description of Issue
After killing application it cannot launch again and shows message Resetter is already running. Probably application should handle signals or shared memory should be better managed.

*content of Log file located in /var/log/resetter/resetter.log
not needed

Ubuntu fresh install missing beautifulsoup4

Issue title
Fresh install missing beautifulsoup4

Linux Distro and version
Linux 16.04

Description of Issue
missing an install, I'm not sure if this can be included in the apt install somehow. Below what the issue:

maxgitt@mgpc:~/Downloads$ resetter
Traceback (most recent call last):
  File "/usr/lib/resetter/Resetter.py", line 22, in <module>
    from EasyRepo import EasyPPAInstall
  File "/usr/lib/resetter/EasyRepo.py", line 11, in <module>
    from bs4 import BeautifulSoup
  File "/usr/lib/python2.7/dist-packages/bs4/__init__.py", line 30, in <module>
    from .builder import builder_registry, ParserRejectedMarkup
  File "/usr/lib/python2.7/dist-packages/bs4/builder/__init__.py", line 314, in <module>
    from . import _html5lib
  File "/usr/lib/python2.7/dist-packages/bs4/builder/_html5lib.py", line 70, in <module>
    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):

content of Log file located in /var/log/resetter/resetter.log
I was able to follow a stackoverflow reference here

I simply needed to pip install --upgrade beautifulsoup4 to fix the issue.

Error removing libllvm5.0

Hey gaining, first of all thanks for making the resetter. Sadly I run into a problem when I try to run it.

Ubuntu 16.04.4 LTS
Resetter 2.2.0

When I run the automatic reset option I get an error when the loader reaches 9%. The error is the following: Problems trying to remove: libllvm5.0:amd64 E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

This is the part of the log that I think is relevant, if you want more I can send you the whole log

resetterlog.txt

I have tried custom reset, disabling the removal of the package mentioned above. Then it proceeds to go to 23% and get stuck with the same error but for a different package: libdrm-common.

The part of the log for this error is added below.

resetterlogerror2.txt

Request for linux deepin

At a user's request from an email, I will add add support for linux deepin on the next release.

Support for various Distros

Are you planning to extend the compatibility of these project to the other Distros like Debian, Manjaro and Arch? Let me know, thanks! :)

Better multithreading/threading support

The progress bar and throbber animations hangs although the program is doing its job. That is because they are both running on the main ui thread. This, in fact, causes the ui to become unresponsive.

manifest and userlist can't be find

*Issue title
manifest and userlist cannot be found
*Linux Distro and version
ubuntu 18.04
*Version of Resetter
2.2.0
*Description of Issue
I want to reset my whole ubuntu because after updating it not working well so I open resetter but it gives me an error manifest could not be found if you have one then plz select and same for UserList also

*content of Log file located in /var/log/resetter/resetter.log
resetter.log

work on debian ?

hm , will that support sometime debian? cuz i would like resset my debian as was in first time

App fails to launch in ubuntu 17.10

*Issue title: App fails to launch in ubuntu 17.10

*Linux Distro and version: Ubuntu 17.10

*Version of Resetter: 1.1.1

*Description of Issue:
App is completely incompatible with ubuntu 17.10, not just a simple manifest update this time. Will fix it on next release sometime this coming week.

*content of Log file located in /var/log/resetter/resetter.log

host-space of updated manifests of all distros

If there could be a way to check a server that holds all updated manifests of distros, I would not need to push an update for the app each time distro maintainers add new packages to the base installs. Instead I could make resetter check that particular server for updated manifests, if updates are available, it would overwrite its current manifest with the updated ones from the server.

This is something I would need help with if anyone is interested. It's a lot to do but if this could be implemented, resetter would always have the latest manifests and supporting almost all debian based distros (32bit, 64bits, arm, etc) would be a breeze. Resetter doesn't support all debian based distros (although it can) mainly because it's too much work to keep maintaining them for just one guy.

If this could be implemented I could focus better on adding more features and making the program more useful.

If someone is interested in this job and would like to know how to get updated manifest and keep them updated. Please get in touch with me.

OSError: [Errno 2] File or directory not found: '.resetter / data'

*Issue title
OSError: [Errno 2] File or directory not found: '.resetter/data'

*Linux Distro and version
Distributor ID: Ubuntu
Description: Ubuntu 17.04
Release: 17.04
Codename: zesty

*Version of Resetter
resetter_1.1.1-stable

*Description of Issue
After the installation and execution of the resetter, the following error occurs:
OSError: [Errno 2] File or directory not found: '.resetter/data'

*content of Log file located in /var/log/resetter/resetter.log
No record in log.

Enchancement Request: New logo and improve UX

I saw this application featured on OMGUbuntu and I really like the simplicity and functionality it offers. I remember personally needing this functionality more than once when playing around with Ubuntu.

I feel that the logo design and the interface could be a bit improved. I'm a developer myself but I'm trying to learn UX. Would you like to work on a new logo and possibly some redesigns on the screens with me? I don't claim to be an expert but we can work on improving the UI/UX a bit on the application?

[SUGGESTION/IMPROVEMENT] dist-upgrade automated tool

*[SUGGESTION/IMPROVEMENT] dist-upgrade automated tool

*Ubuntu (desktop) 17.10

*v1.1.2-Stable

*Suggestion for app improvement: Adding an automated 'dist-upgrade' tool for systems that are having problems seeing new OS distribution upgrades

*content of Log file located in /var/log/resetter/resetter.log not necessary

Port to python 3 and pyqt5

I believe there is no reason to be stuck with old and soon to be unsupported versions of Qt and python, and the targeted distros all include the newer versions.

I could provide a patch myself, if I find some time.

Deepin Get stuck at 68%

Hi, thanks for your great work! I tested it out in the past(made tutorial videos), and you fixed a problem with a password immediately, thank you!

I was trying Deepin out today, and when it is installing packages it gets stuck at 68% at configuring Wireshark. Again it is not a big problem, a person simply press space and it fix the problem.

But I thought I should just inform you!

Add option to update manifests from server instead of upgrading whole application

Feature desc:
Implement a get request in Resetter so that it tries to find the latest manifest on a soon to be server in order to eliminate creating a new version of the app every time an os has a new release update.
This will be implemented whenever as I don't really get paid or get any donations from working on this project.

Get stuck at 5%

Have waited for over one hour and it is still only at 5%. Still on Loading packages.

Have selected to reset all packages but keep my user. Using Ubuntu 16.10

Terminal version

Hi, my ubuntu is broken because of my actions. Can I use this while in root terminal on System Rescue?

Not working with ubuntu 18.04

*Stuck at File not found dialog box
*Linux Distro and version
Ubuntu 18.04
*Version of Resetter
resetter 2.2
*Description of Issue

*content of Log file located in /var/log/resetter/resetter.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.