LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Need to know how to find and fix missing files to get GUI working again (https://www.linuxquestions.org/questions/debian-26/need-to-know-how-to-find-and-fix-missing-files-to-get-gui-working-again-4175516916/)

tmick 08-30-2014 06:18 PM

Need to know how to find and fix missing files to get GUI working again
 
Hi all,
I removed some kernel packages to free up some space on / and now I can not get into my GUI, I get and error "Something went wrong log out to try again" when the GUI starts. I had managed to follow this http://www.cyberciti.biz/howto/debia...y-unix-driver/and it did work before and I had a GUI. Now it tells me I have the wrong version of GCC and to specify the correct version. I have no idea how to do that.
So the short version of my question is how do I find out what got removed so I can fix this? I did have the disable-nouveau.conf file created but at boot I was getting getting messages about two tokens needed and only one found, what ever a token is.
I am using Windows to get here and have to reboot into linux. So please be patient with me and give thorough directions.

Firerat 08-30-2014 06:29 PM

Do you remember what you removed?


In all honesty, if you are removing kernel related things you must be desperate space wise
why the space concern?

How did you 'remove'?
If it was apt-get simply 'reverse' by using "install"

Code:

sudo apt-get update && apt-get dist-upgrade
May also resolve it

sudo assumes you have 'set it up'
If not, do as root (leave off sudo)

Firerat 08-30-2014 06:37 PM

Read your link, one of those 'not so helpful' blogs (seriously, ignore them, , they are seldom useful)

Show us the output of
Code:

lspci
A liveCD may help with copy'n'paste

Deleting /etc/X11/xorg.conf might help
At least get you to s GUI (downgraded)

tmick 08-30-2014 08:56 PM

got it back
 
lspci
Code:

00:00.0 Host bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL Memory Controller Hub (rev 04)
00:01.0 PCI bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL PCI Express Root Port (rev 04)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
00:1d.3 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d3)
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 640] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK107 HDMI Audio Controller (rev a1)
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express (rev 01)


tmick 08-30-2014 09:05 PM

how I recovered
 
I ran
Code:

dpkg --list | grep -i --color nvidia
and then
Code:

apt-get purge <package name>
until that command complained it could not connect to the repository then ran
Code:

apt-get autoremove
and then rebooted.
I was removing files to try to gain disk space. I am getting pop ups about being out of room on the root File system I am using LVM and the drive is 250 GB I would think I have plenty but apparently not.
So next question is how do I clear up some space... SAFELY?

Firerat 08-30-2014 09:05 PM

Got it back?

I assume you got the nvidia drivers for the "gt 640" working

tmick 08-30-2014 09:08 PM

Yes I can login via the GUI now :D

Firerat 08-30-2014 09:08 PM

Ahh, ok

If it works fine, leave 'as is'

But you may need proprietary drivers for 'full' capability

tmick 08-30-2014 09:30 PM

I haven't tested the 3d ability yet but Iain't gonna try to fix that yet. I am more worried about getting some disk space available. Any ideas on how to find a way to clear some room on the hard drive??

New2Linux2 08-31-2014 12:43 PM

Get familiar with the different disk usage type commands to find out where all your drive space is going.
Code:

df -h
That will give you an idea of what your total usage is and where. You can also use commands like 'du' or 'dd' to do something similar if not exactly the same, but (as with most things in Linux) you need to do some reading and self-educating.

When all else fails, bust out some Google-Fu and search for "Debian disk usage commands". Then pick a result and start reading.

Firerat 08-31-2014 01:13 PM

I like ncdu
http://dev.yorhel.nl/ncdu
Probably available via your package manager

There are gui equivalents available, but I find them to be slower.

tmick 08-31-2014 01:26 PM

hmm it would appear there is a bug in the disk usage analyzer tool, it pops up warnings about being out of disk space but if I run
Code:

du -hc /
it shows that i have
Code:

20G        total
which tells me I have only used 20 GB of a 250 GB hard drive :(
I can't post the complete output of the command because the output is over the limits of this web page.

Firerat 08-31-2014 01:37 PM

20gb seems reasonable

Output of
Code:

df -h
Will help

ncdu is not so easy to cp'n'paste

But, 20gb seems about right

EDDY1 08-31-2014 02:06 PM

Quote:

Originally Posted by Firerat (Post 5230275)
20gb seems reasonable

Output of
Code:

df -h
Will help

ncdu is not so easy to cp'n'paste

But, 20gb seems about right

20 gigs is all right depending on what has been installed to system & how many /varog messages there are. I have seperate /usr & /var & the /usr & / have had to be resized.

Randicus Draco Albus 08-31-2014 05:13 PM

Speaking of things like log files, have you tried either
Code:

apt-get clean
or
Code:

aptitude clean
? Lots of installing and removing of packages can fill up the the root directory with "residual" files. (I chose residual, because I do not know the proper word.)


All times are GMT -5. The time now is 05:28 AM.