Login loop in Kali linux 2021.4

Adithyansm

Member
Joined
Nov 11, 2021
Messages
52
Reaction score
10
Credits
411
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:


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
6,857
Reaction score
5,647
Credits
21,425
G'day, can you give us the output of

inxi -P

please?

Wizard
 

brickwizard

Well-Known Member
Joined
Apr 28, 2021
Messages
1,534
Reaction score
1,149
Credits
11,500
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.
 
OP
A

Adithyansm

Member
Joined
Nov 11, 2021
Messages
52
Reaction score
10
Credits
411
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
 
OP
A

Adithyansm

Member
Joined
Nov 11, 2021
Messages
52
Reaction score
10
Credits
411
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
 

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
1,169
Reaction score
786
Credits
8,653
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:

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
6,857
Reaction score
5,647
Credits
21,425
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
 
OP
A

Adithyansm

Member
Joined
Nov 11, 2021
Messages
52
Reaction score
10
Credits
411
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
 

BoringZombie

Active Member
Joined
Apr 1, 2021
Messages
210
Reaction score
110
Credits
1,445
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.
 

BoringZombie

Active Member
Joined
Apr 1, 2021
Messages
210
Reaction score
110
Credits
1,445
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.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top