Debian – I can’t login to the graphical interface after a fresh installation of Debian

debiandriversgraphics

I installed Debian 7.3 along with Windows 7, on my Acer Travelmate 2480 (1.73-GHz Intel Celeron M, 80GB HDD, 1GB RAM, Mobile Intel 945GM/GU Express graphics). I downloaded Debian CD-1 and checked its MD5 hash,then I created a bootable USB using Unetbootin.

When I chose to boot Debian the execution was stopping at a line that says pcspkr already registered ... aborting, and then I get a black screen and I can only reboot with Alt+Ctrl+Del.

I searched about this issue, and found a solution to add nomodeset at the end of line that starts with linux when I edit the boot commands in Grub using e, this time it worked but Debian was booting only in text mode.

I'm aware that the issue is related to the graphics driver, but I'm new to Linux, so how can I use the text mode to fix this issue? Or is there any other solution?

Best Answer

I learned a lot from this issue, and here's how to fix it, when you install Debian from CD 1 and you don't use a mirror, the base system will be installed only, and the apt sources.list files contains only the cdrom source and the security updates source.

So first we need to add a packages repository to the file /etc/apt/sources.list

in the command line run

nano /etc/apt/sources.list

and add

deb http://ftp.<COUNTRY>.debian.org/debian/ stable main
deb-src http://ftp.<COUNTRY>.debian.org/debian/ stable main

after that we need to run

apt-get update

I chose to install the default environment using tasksel, we need to install aptitude and tasksel so we can install Gnome

apt-get install aptitude tasksel

and then

tasksel install gnome-desktop --new-install

now the gnomw-desktop task will be installed, and then you can run startx to start the environment.

Related Question