Login loop in Kali linux 2021.4

Adithyansm

Active Member
Joined
Nov 11, 2021
Messages
226
Reaction score
99
Credits
1,625
I am using kali linux 2021.4 xfce . I have done some .vnc file configuration and rebooted the system . But now i am not able to log in ,But I can access the GUI through a VNC session. When i try to type username and password it just ask to again without any error. I have done
Code:
sudo apt update
and
Code:
sudo apt upgrade
in the console but not fixed the issue. I have upgraded to 2021.4 a week ago . Pls help if anyone know the answer your help would be appreciate, .Beacause I have not encountered this issue in any distros

Kali 2021.4
4gb ram
16GB free space in root partition
17 GB free space in home partition
 
Last edited:


G'day, can you give us the output of

inxi -P

please?

Wizard
 
I don't use Kali, but what i do know is there is no user [unless you specifically set one up] only admin, which means you must be careful when adding/changing anything as the slightest mistake can bulk the whole system [yes I have been doing some reading]
so if it was OK before yo started messing with the VNC setting, I would suggest you retrace your steps and re-check everything you have done.
 
G'day, can you give us the output of

inxi -P

please?

Wizard
Yes,

ID-1: / size: 40.95 GiB used: 23.74 GiB (58.0%) fs: ext4 dev: /dev/sda9
ID-2: /home size: 40.94 GiB used: 25.11 GiB (61.3%) fs: ext4 dev : /dev/sda10
ID-3: swap-1 size: 10.18 GiB used: 524 KiB (0.0%) fs: swap dev: /dev/sda11
 
so if it was OK before yo started messing with the VNC setting, I would suggest you retrace your steps and re-check everything you have done.
It was fine before and I have reversed everything i have done but no use
 
Any one PLS help :(
 
Any one PLS help :(
At login screen press CTRL+ALT+F1

Then login with your username and password in the terminal.

Then run these commands:
dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade
sudo reboot
 
At login screen press CTRL+ALT+F1

Then login with your username and password in the terminal.

Then run these commands:
dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade
sudo reboot
Already done that any other suggestions
 
The VNC server needs to know which commands to execute when it starts up. Specifically, VNC needs to know which graphical desktop it should connect to. So lets try to create a new xstartup file - The commands should be located in a configuration file called xstartup in the .vnc folder under your home directory - it is a hidden folder.
Need to be changing how the VNC server is configured, first stop the VNC server instance that is running on port 5901 with the following command:
Code:
vncserver -kill :1
The output should look like this, although you should see see a different ID#
Output Killing Xtightvnc process ID 18467
Before you modify the xstartup file, back up the original:
Code:
mv ~/.vnc/xstartup ~/.vnc/xstartup.bak
Now create a new xstartup file and open it in your text editor:
Code:
sudo texteditor ~/.vnc/xstartup
- note: where it says texteditor use the one on your system such as nano or mousepad or gedit or whatever you are using
We need VNC to start your desktop environment if it’s not already started. Add these commands to the file: ~/.vnc/xstartup
Code:
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
Save the file. Now, restart the VNC server.
Code:
vncserver
You’ll see output similar to this:
Output New 'X' desktop is your_hostname:1
Starting applications specified in /home/username/.vnc/xstartup
Log file is /home/username/.vnc/your_hostname:1.log

VNC itself doesn’t use secure protocols when connecting. You have to use a SSH tunnel to connect securely to your server. Create an SSH connection on your local computer that securely forwards to the localhost connection for VNC. You can do this via the terminal
Code:
ssh -L 5901:127.0.0.1:5901 -C -N -l username your_server_ip
If you are using a graphical SSH client, like PuTTY, use your_server_ip as the connection IP, and set localhost:5901 as a new forwarded port in the program’s SSH tunnel settings.
Once the tunnel is running, use a VNC client to connect to localhost:5901. You’ll be prompted to authenticate using the password you set.

Once you are connected, you should see the default Xfce desktop. Thats pretty much what I had to do when I botched mine up when I was first playing with VNC and I am still no expert at it
 
Last edited by a moderator:
I don't use Kali, but what i do know is there is no user [unless you specifically set one up] only admin,...

No, they changed that maybe a year ago. A fresh install of Kali will provide a user account, and you have to actively add a root account.

Kali being a rolling distribution, if you have always been Root, and you upgrade, it now provides a nag popup that you are logged in as Root, and should set up a regular User account to use.

Wiz
 
Okay ,After so many solutions that didn't work I have removed kali as i was planning to remove kali and install parrot instead of kali . This the perfect situation for making a switch:p
 
Okay ,After so many solutions that didn't work I have removed kali as i was planning to remove kali and install parrot instead of kali . This the perfect situation for making a switch:p
Check your hardware to see if Parrot supports it out the box. There are some WiFi and sound drivers Parrot doesn't support yet and you'll need to compile them.
 
Check your hardware to see if Parrot supports it out the box. There are some WiFi and sound drivers Parrot doesn't support yet and you'll need to compile them.
If It does not support the driver can we install it manually !
 
If It does not support the driver can we install it manually !
I don't know about all drivers but for the most part you may be able to find yours to build manually yes.
 
If It does not support the driver can we install it manually !
BTW if you're planning on using Parrot for daily use use Parrot Home. And if you were planning on using the pen testing tools you can install and uninstall them on the home edition. You can view about it on their sites documentation area.
 

Members online


Top