Accidentally uninstalled my GUI (Xfce 4.14.4)

SaHaRzZz

New Member
Joined
Dec 2, 2021
Messages
1
Reaction score
1
Credits
16
I am running kali linux, Kernel 5.6.0 which is running Xfce 4.14.4
I was experimenting with installing XRDP and some things didn't work, so I have decided to remove everything I just installed, and I removed these packages:
xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils

After that I rebooted the OS and now everytime I login, I am getting vertical orange lines and can't see anything.
I read abit and saw that my OS is running Xfce and I just did something so stupid that it makes me embarrassed to even ask about it lol.

I tried accessing the recovery mode, but it tells me that my root account is locked, and prevents me from doing stuff in the terminal.

How can I re-install Xfce?
 


brickwizard

Well-Known Member
Joined
Apr 28, 2021
Messages
1,565
Reaction score
1,165
Credits
11,745
I am not up on Arch, but normaly as you switch on press and hold Ctrl + Alt + F2 should get you to a prompt

and sudo pacman -S xfce4 should load the desktop

or to change sudo password this usualy works
Type the following command as a sudo user in the Terminal to change the root password.

$ sudo passwd root

You will be asked to type a new password for the root user. Enter a new password and press Enter. Then, re-enter the password and press the Enter key to avoid any typos.

edit.. see my correction further down
 
Last edited:

an4s911

New Member
Joined
Dec 2, 2021
Messages
3
Reaction score
1
Credits
17
I am not up on Arch, but normaly as you switch on press and hold Ctrl + Alt + F2 should get you to a prompt

and sudo pacman -S xfce4 should load the desktop

or to change sudo password this usualy works
Type the following command as a sudo user in the Terminal to change the root password.

$ sudo passwd root

You will be asked to type a new password for the root user. Enter a new password and press Enter. Then, re-enter the password and press the Enter key to avoid any typos.
Kali Linux is based on Debian not Arch.

You can get to the tty terminal by pressing Ctrl + Alt + F2 or F3 upto F6. And then login and run

Bash:
sudo apt-get xfce4

for more info you can follow this tutorial
 
Last edited:

brickwizard

Well-Known Member
Joined
Apr 28, 2021
Messages
1,565
Reaction score
1,165
Credits
11,745
i thought he said kali ?
your right Im getting old brain gets fuzzy towards bed time ..... so the only diffrance is to install xfce from terminal in Debian is sudo apt-get install xfce4
 

TheProf

Gold Member
Gold Supporter
Joined
Jun 15, 2021
Messages
219
Reaction score
193
Credits
2,027
That happened to me once when I first started using Linux, I had to basically reinstall the DE. Like @an4s911 mentioned, try switching to the tty terminal and doing the install from there, should not be an issue to reinstall it.
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
6,869
Reaction score
5,659
Credits
21,537

captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,610
Reaction score
1,756
Credits
15,715
what you are going to have to do is find the right command to get your desktop back it used to be something like

just xfce xfce-goodies.

I think it may now be : kali-desktop-xfce

as theprof said fire up and try hitting ctrl + alt + F5 to get to a tty shell





Code:
sudo apt search kali-desktop-xfce

brings up anything , that will show you have Internet and it can find pkg

if it does then do


Code:
sudo apt update && sudo apt install -y kali-desktop-xfce
//if you get asked for default display manager go for lightdm 
then sudo update-alternatives --config x-session-manager

//choose xfce
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top