Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-29 Thread amuza
I started to try davidpgil's solution, but my case was not exactly the same  
and it did not work.


So I ended up going for the 7-step guide Magic Banana wrote above. That was  
quick and clean. I have my Trisquel 8 up and running and so far every  
important thing seems to work smoothly.


Thank you very much for the great support and explanations!


Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-26 Thread amuza

Please have a look.


Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-26 Thread amuza

Yes, you are right, I tried with .Xauthority, sorry.
I cannot try with ~/.Xresources because I don't seem to have that file.

I tried this good idea of creating a new user. I added it to the sudo group,  
logged in with it through vty, run $ sudo systemctl start lightdm.service but  
got the dark screen too.


I am realizing now it cannot be related to users as the dark screen arrives  
at startup before any login.


Thank you for keeping suggesting!

I am also receiving support in the issue I opened.



Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-24 Thread amuza

Thank you Banana!

I run that command but everything stays as it was = (

And the journal logs keep saying the same things.

By the way, I thought this ~./Authority file would recreate after a reboot,  
but I did reboot the computer and cannot find it.



Please let me know if there is anything else I could try.

Otherwise I guess I'll have go for a fresh install.


Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-22 Thread amuza

Oh, I get the dark screen when running that command!

On the journal thing, don't have time now but I will find a way to copy it  
and paste it here. I am the kind of basic user who uses GUI for almost  
everything...


Thanks for following up!


Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-22 Thread amuza
I already have my open issue #24146, so I do not know if it is alright to ask  
for help here too. Please let me know.


The thing is, once the upgrade process finished, I restarted my computer, saw  
this new Trisquel 8 water drops image but then the screen turned dark and  
nothing can be done there. If I restart again I get the same.


Fortunately tty is accessible. I can login through tty. But Ctrl+Alt+F7 keeps  
showing a dark screen.


Any suggestion?


Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-21 Thread amuza

Thank you very much!

I will try that solution for the swap once I can, unfortunately now I am  
stuck in the middle of an unsuccessful upgrade :/


https://trisquel.info/en/issues/24146


Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-20 Thread amuza

Forget everything! At least for now...

I did what david suggested (sudo apt-get remove  
trisquel-desktop-common-recommended) and it is upgrading now.


Thanks!


Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-20 Thread amuza
Need help again, now to upgrade to Trisquel 8. I'm not opening a new thread  
just in case it is related to this one. Anyway I did open an issue at

https://trisquel.info/en/issues/24146


Home was encrypted. I lost my user's password, but had with me the mount  
passphrase to decrypt it. So I did:


- Boot with a Live Trisquel USB
- Run
 ecryptfs-recover-private --rw
- Copy decrypted contents to an external drive preserving their permissions
- Set a new password for my user
- Delete the original encrypted home directory
- Create /home/myusername where myusername is the same as it was
- Copy dectrypted contents from the external drive to /home/myusername  
preserving permissions


Everything seemed to be good, I can login with myusername and access my home  
directory.


Then I tried to upgrade to Trisquel 8, but I got the following:

myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$ sudo update-manager
[sudo] password for myusername:

** (update-manager:3875): WARNING **: Couldn't connect to accessibility bus:  
Failed to connect to socket /tmp/dbus-5e8wQfhIBZ: Connection refused

Traceback (most recent call last):
  File "/usr/bin/update-manager", line 115, in
app = UpdateManager(data_dir, options)
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line  
115, in __init__

self.options and self.options.use_proposed)
  File "/usr/lib/python3/dist-packages/UpdateManager/MetaReleaseGObject.py",  
line 44, in __init__

MetaReleaseCore.__init__(self, useDevelopmentRelease, useProposed)
  File "/usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py",  
line 94, in __init__

cache = apt.Cache()
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 107, in __init__
self.open(progress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 151, in open
self._cache = apt_pkg.Cache(progress)
SystemError: E:Encountered a section with no Package: header, E:Problem with  
MergeList  
/var/lib/apt/lists/deb.torproject.org_torproject.org_dists_trusty_main_i18n_Translation-en,  
E:The package lists or status file could not be parsed or opened.


(update-manager:3875): GLib-CRITICAL **: g_hash_table_destroy: assertion  
'hash_table != NULL' failed


(update-manager:3875): GLib-CRITICAL **: g_hash_table_destroy: assertion  
'hash_table != NULL' failed

Exception ignored in: myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$ do-release-upgrade
Checking for a new Trisquel release
Traceback (most recent call last):
  File "/usr/bin/do-release-upgrade", line 116, in
useProposed=options.proposed_release)
  File "/usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py",  
line 94, in __init__

cache = apt.Cache()
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 107, in __init__
self.open(progress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 151, in open
self._cache = apt_pkg.Cache(progress)
SystemError: E:Encountered a section with no Package: header, E:Problem with  
MergeList  
/var/lib/apt/lists/deb.torproject.org_torproject.org_dists_trusty_main_i18n_Translation-en,  
E:The package lists or status file could not be parsed or opened.

myusername@mycomputername:~$


So I went to
Software & Udates > Other Software
and uncheck boxes for Tor sources.

Then I could run the update manager


myusername@mycomputername:~$ sudo update-manager
[sudo] password for myusername:

** (update-manager:15434): WARNING **: Couldn't connect to accessibility bus:  
Failed to connect to socket /tmp/dbus-5e8wQfhIBZ: Connection refused

Checking for a new Trisquel release

** (do-release-upgrade:15498): WARNING **: Couldn't connect to accessibility  
bus: Failed to connect to socket /tmp/dbus-5e8wQfhIBZ: Connection refused

authenticate 'flidas.tar.gz' against 'flidas.tar.gz.gpg'
extracting 'flidas.tar.gz'

** (flidas:15498): WARNING **: Couldn't connect to accessibility bus: Failed  
to connect to socket /tmp/dbus-5e8wQfhIBZ: Connection refused



Besides the messages above, the upgrade stopped with a window saying:

"Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade.

 This can be caused by:
 * Upgrading to a pre-release version of Trisquel
 * Running the current pre-release version of Trisquel
 * Unofficial software packages not provided by Trisquel

If none of this applies, then please report this bug using the command  
https://trisquel.info/en/project/issues in a browser.."



As I am running Trisquel 7, I thought the cause could only be the third one,  
so I went again to

Software & Udates > Other Software
and unchecked every box.

Then I run update manager again but got the same error window saying it could  
not calculate the upgrade : (


Please find here some logs:

Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-20 Thread amuza
Forget this question. Maybe I could not download it because at that moment  
there were some changes in the servers, as I see the official Trisquel 8 is  
now out : )


\o/


Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-20 Thread amuza
Not needed, thanks. It's been a long process, but finally I managed to  
restore everything as it was. Thank you!


Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-18 Thread amuza

And another question, where should I download Trisquel 8?

Trying at https://trisquel.info/en/download but 64bit Trisquel 8 is not found  
in any server I try.


Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-18 Thread amuza

Thanks for your messages.

Hey, that's a good idea! Maybe this is the time to go to Trisquel 8 and  
contribute to testing.


Sorry, I meant I have simply forgotten the new password I set to my user, so  
I'm locked out, but fortunately I still keep with me the passphrase I used to  
encrypt the home folder when I installed Trisquel long ago.


Magic Banana: I like the idea of moving to Trisquel 8, but your 7-step guide  
does not include a solution to my problem, does it?


I guess the step 0 should be to decrypt the home directory somehow. I guess  
with ecryptfs-recover-private. But, will that leave permissions as they were  
so that later everything works ok?


Re: [Trisquel-users] Lost password - Restore encrypted home

2018-04-18 Thread sora
You lost your user password but not the encryption passphrase? Can you  
decrypt the encrypted home with your old password?


If you can mount the encrypted home then you can copy the files by using live  
cd image of trisquel or any other gnu/linux distro.


[Trisquel-users] Lost password - Restore encrypted home

2018-04-18 Thread amuza

Hi,

I decided to change my user's password, I did it, and now I cannot remember  
it. Home directory is encrypted, but I keep the passphrase.


I am searching for a solution in the Ubuntu universe but I just find  
cumbersome workarounds. I find ways to recover files, but not a way to let  
everything as it was (names, permissions, location, etc.).


I would like to know every step to restore my encrypted home so that  
everything ends up as it is now.


Any help or guide suggestion is very welcome!

PD. Please let me know if Trisquel has any difference from Ubuntu I should  
take into account.