9

I'm new to Linux and am stuck on TTY. My Linux distro is Lubuntu 14.04.4 LTS.

I have read some topics and the solutions proposed are not working to me. Ctrl+Alt+F7 returns a black screen with a text entry which, however, I can't write anything. Ctrl+Alt+F1-F6 takes me to normal TTY.

startx returns:

/etc/X11/xinit/service: 3: exec: /usr/bin/X not found 
xinit: giving up 
xinit: unable to connect to X server: Connection refused
xinit: server error

sudo service lightdm start returns:

start: job failed to start

UPDATE: I have studied my current situation a bit and I think that the problem is that "xorg.conf" file is missing or some similar kind of file. I followed instructions on "How to restore xserver?" and couldn't restore it yet.

wjandrea
  • 14,236
  • 4
  • 48
  • 98

2 Answers2

8

Had the same problem. Almost got a heart attack. Pressing Ctrl Alt F2 solved the problem for me.

Tejas Lotlikar
  • 2,945
  • 5
  • 17
  • 26
lilotop
  • 181
0

I had almost the same problem as you but I solved it. Here is my solution that works on Centos 7.

To access the tty consoles, I used the command systemctl set-default multi-user.target then reboot. Now I boot online from command line.

To go back to using a GUI, I just did the opposite: systemctl set-default graphical.target and reboot. Then you will start with the GUI.

I hope this helps you!


Translation adapted from Google Translate:

Salut, Je sais pas si je peux t'aider mais je passais par là et j'avais presque le même pb que toi. Il est résolu alors je viens te proposer la même solution. sa peut être un bout de la solution à ton pb, du moins jspr. Déjà j'utilise CentOS 7 coe distribution linux et en fait dans le cadre de mon cours je devais accéder aux consoles tty (ma version est à la base avec interface graphique). Donc pour accéder aux consoles tty, j'ai fait la cmd " systemctl set-default multi-user.target". ensuite reboot et je démarre désormais en ligne de cmd. Sauf que je savais pas comment retourné en GUI (et voilà ou nos pb se ressemblent peut-être). Alors pour retourné en GUI, j'ai juste fait le chemin inverse. "systemctl set-default graphical.target" et reboot. Je démarre désormais en GUI. Voilà, en espérant que sa t'aide!!

Nmath
  • 12,333