[Ubuntu] unable to enter my password

FREEDOM -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -
Hello, I can no longer open my PC that I formatted yesterday to install Ubuntu Linux,
because of the password that it won't accept anymore
I can't set my keyboard to French permanently until I get into my PC,

so how do I access system settings, etc. to fix the problem, please? A quick response would be appreciated, thank you in advance, Eddy

4 answers

  1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 943
     
    Hello,

    Method 1: more complicated, but for reinstallation

    Make sure that the keyboard is indeed azerty or qwerty as you believe by typing a few letters in the login box. Ideally, you can even check if you can re-enter your password and find the "correct keys" to type your password. Once done, enter your login in the corresponding box, and your password in the corresponding box and log in.

    The "layout" can only be adjusted once logged in (either as root, or under Ubuntu with the main user to use sudo). Then, the keyboard layout can be corrected as indicated in this tutorial:

    Text mode:

    sudo dpkg-reconfigure console-data sudo dpkg-reconfigure keyboard-configuration sudo service keyboard-setup restart


    Graphical mode:

    You need to distinguish three settings:
    1) the layout used at the time you logged in (the software in question is called "login manager," and it is generally lightdm or sddm);
    2) the layout used by default by the graphical server;
    3) the layout used in your personal session (which you can configure via the control panel);

    In principle, correcting
    /etc/default/keyboard
    should suffice (for example with the command
    gksudo gedit /etc/default/keyboard &
    ) to set the first two points. Here is the content of this file on my system:

    # KEYBOARD CONFIGURATION FILE

    # Consult the keyboard(5) manual page.

    XKBMODEL="pc105"
    XKBLAYOUT="fr"
    XKBVARIANT="latin9"
    XKBOPTIONS=""

    BACKSPACE="guess"


    Method 2: reinstallation

    Since you just installed it, you don't have much to lose by reinstalling. If possible, take a French version of Ubuntu so that everything (including language and keyboard) is set accordingly.
    https://ubuntu.com/

    Warning before reinstalling. Backup your valuable data on another medium (USB stick, USB drive, DVD, etc...) and make sure not to format the partitions you care about during partitioning. Moreover, relying on automatic partitioning can bring unpleasant surprises if you're not careful. For more details, see here.

    Good luck
    0
    1. eddy
       
      Hello Mamiemando

      Thank you for your response, it's very nice of you.
      I finally reformatted again and it's working well with a short password.

      But it's a real pain to install an application other than the ones provided directly with Ubuntu. The Kodi version is old. It took me two days to install a recent version, and even then, a Linux expert remote-controlled my computer. It took him 4 hours. Once version 17.6 was installed, it opens but doesn't work!!

      Then I bought a Wi-Fi key because I have fiber with a maximum power of 1645. Before, I only had 11 megabits, and even with the CD, it was impossible to install the key. So I had to connect via Ethernet, and the same goes for an antivirus.

      And yet I'm going through the right channels to install all this. It's a shame I had to go back to Windows 7, like many, I think. After 3 days of hassle for things that I usually do in 10 minutes...

      Anyway, thanks for your help. I kept the hard drive with Linux installed on it. We'll see with time, who knows!!!

      Best regards
      Eddy
      0