LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-08-2017, 02:43 AM   #16
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364

Hi; I'm a bit lost here; sorry about #3, where I was thinking boot/grub!
#2 Ctrl+Alt+F1 probably 'got you to' tty1
You can check with: tty (CLI/shell/terminal command). Does it say: /dev/tty1?
Alt+F7 'should' get back the 'pretty' screen in #5 picture!
(or doubtfully F8; Alt+F2 should get a tty2 login: )

In #5, did you get a "console" via #2, and -who- did you login as?
(I assume it needed a password, --or-- did it NOT?)
Back at the #5 GUI, did any USERname work? Yours? Try:
id; w; who; whoami; tail /etc/passwd | grep -v /bin/false

#5 picture shows X/GUI/desktop/windows/... running. Check for 5 via cmd:
runlevel

You can 'look under the hood' at what ALL is running with like: ps afx|grep -v ]
(the |grep -v ] excludes the [irrelevant] 'kernel threads'; f adds formatting)
You should see a bunch of GUI-related stuff, but I won't try to detail the 100pieces!
Sidenote: for a one# summary, you can get a line-count by appending: |wc -l

Btw, I would NOT 'jump' from #5pic to #15gone conclusion!

A couple things I'm wondering about:

What -exactly- was the output/result from: startx
? (see `ps` above) Optionally, try: echo $PATH
You can list all installed pkgs with: dpkg --list
but I'm not sure what to |grep for, to find DesktopEnv=GUI stuff.

Before the upgrade, you must have had a username (tho -formerly- it auto-logged-into DE)
In the -original install- long ago, you probably gave that username a password but forgot.
(Ubu user 'root'/UID 0 doesn't have a password! sudo is used; head -1 /etc/shadow shows root:!: or *)
The #11 (# meaning root shell prompt) command would be:
passwd yourORthatORIGuserNAMEwhatEVERitWAS
(IF you are root, # passwd <ENTER> would set a root password, -irrelevant- to all this!)

When/why were you in "Recovery Mode"? What did you mean by: "failed" ?

Anyway, more 'status' info will bring clarity. Best wishes! Let us know (for future readers!)

Last edited by Jjanel; 03-08-2017 at 04:15 AM.
 
Old 03-08-2017, 04:08 AM   #17
fellow2w
LQ Newbie
 
Registered: Jul 2009
Posts: 29

Original Poster
Rep: Reputation: 5
Please see attached photo for outputs of commands
Attached Thumbnails
Click image for larger version

Name:	image.jpg
Views:	69
Size:	260.8 KB
ID:	24426  
 
2 members found this post helpful.
Old 03-08-2017, 04:12 AM   #18
fellow2w
LQ Newbie
 
Registered: Jul 2009
Posts: 29

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by Jjanel View Post
Hi; I'm a bit lost here; sorry about #3, where I was thinking boot/grub!
#2 Ctrl+Alt+F1 probably 'got you to' tty1
You can check with: tty (CLI/shell/terminal command). Does it say: /dev/tty1?
Alt+F7 'should' get back the 'pretty' screen in #5 picture!
(or doubtfully F8; Alt+F2 should get a tty2 login: )

In #5, did you get a "console" via #2, and -who- did you login as?
(I assume it needed a password, or did it NOT?)
Back at the #5 GUI, did any USERname work? Yours? Try:
id; w; who; whoami; tail /etc/passwd

#5 picture shows X/GUI/desktop/windows/... running. Check for 5 via cmd:
runlevel

You can 'look under the hood' at what ALL is running with like: ps afx|grep -v ]
(the |grep -v ] excludes the [irrelevant] 'kernel threads'; f adds formatting)
You should see a bunch of GUI-related stuff, but I won't try to detail the 100pieces!
Sidenote: for a one# summary, you can get a line-count by appending: |wc -l

Btw, I would NOT 'jump' from #5pic to #15gone conclusion!

A couple things I'm wondering about:

What -exactly- was the output/result from: startx
? (see `ps` above) Optionally, try: echo $PATH
You can list all installed pkgs with: dpkg --list
but I'm not sure what to |grep for, to find DesktopEnv=GUI stuff.

Before the upgrade, you must have had a username (tho -formerly- it auto-logged-into DE)
In the -original install- long ago, you probably gave that username a password but forgot.
(Ubu user 'root'/UID 0 doesn't have a password! sudo is used; head -1 /etc/shadow shows root:!: or *)
The #11 (# meaning root shell prompt) command would be:
passwd yourORthatORIGuserNAMEwhatEVERitWAS
(IF you are root, # passwd <ENTER> would set a root password, -irrelevant- to all this!)

When/why were you in "Recovery Mode"? What did you mean by: "failed" ?

Anyway, more 'status' info will bring clarity. Best wishes! Let us know (for future readers!)
Please see attached photo for output of commands
Attached Thumbnails
Click image for larger version

Name:	image.jpg
Views:	61
Size:	260.0 KB
ID:	24427  
 
1 members found this post helpful.
Old 03-08-2017, 04:24 AM   #19
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Ah! That was FAST! THANKS! +2 All [of 'my'] CLIworld looks FINE!
#17 says gnome (but I know very little about GUI/X, sorry)

Does Alt+F7 get #5GUI back? (probably not -right- now: X exited[I guess])
Does a [sudo] reboot get #5GUIpicture back (when it finishes booting)?
THEN, Is it 'frozen dead'? Or ...? MAYBE `cat`/examine that X .log

To clarify, can you get back to the screenshot you posted in #5?
IF so, what exactly happens when you try things on that GUI login screen?

Last edited by Jjanel; 03-08-2017 at 05:43 AM.
 
Old 03-08-2017, 06:58 AM   #20
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by fellow2w View Post
Please see attached photo for outputs of commands
Looking at the screenshot it appears that Gnome is the DE.

At the prompt try typing:
starx and see if it takes you to the DE gui?
IF not try the cmd below.

sudo apt-get install ubuntu-gnome-desktop


I'm suspicious that something may have hosed the DE.

http://askubuntu.com/questions/76607...n-ubuntu-16-04

Last edited by Ztcoracat; 03-08-2017 at 07:04 AM.
 
1 members found this post helpful.
Old 03-08-2017, 10:44 AM   #21
fellow2w
LQ Newbie
 
Registered: Jul 2009
Posts: 29

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by Ztcoracat View Post
Looking at the screenshot it appears that Gnome is the DE.

At the prompt try typing:
starx and see if it takes you to the DE gui?
IF not try the cmd below.

sudo apt-get install ubuntu-gnome-desktop


I'm suspicious that something may have hosed the DE.

http://askubuntu.com/questions/76607...n-ubuntu-16-04
Startx doesnt bring me to desktop, it just says a few lines and brings me back to the command line.

I've installed gnome and rebooted and it's asks me for my credentials.

But it won't allow me to enter my credentials when I enter my username it doesn't come up on the screen
 
Old 03-08-2017, 10:51 AM   #22
fellow2w
LQ Newbie
 
Registered: Jul 2009
Posts: 29

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by Jjanel View Post
Ah! That was FAST! THANKS! +2 All [of 'my'] CLIworld looks FINE!
#17 says gnome (but I know very little about GUI/X, sorry)

Does Alt+F7 get #5GUI back? (probably not -right- now: X exited[I guess])
Does a [sudo] reboot get #5GUIpicture back (when it finishes booting)?
THEN, Is it 'frozen dead'? Or ...? MAYBE `cat`/examine that X .log

To clarify, can you get back to the screenshot you posted in #5?
IF so, what exactly happens when you try things on that GUI login screen?
When I enter alt f7 it says a few lines and then just stalls. See attachment
Attached Thumbnails
Click image for larger version

Name:	image.jpg
Views:	49
Size:	238.6 KB
ID:	24428  
 
Old 03-08-2017, 07:13 PM   #23
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by fellow2w View Post
Startx doesnt bring me to desktop, it just says a few lines and brings me back to the command line.

I've installed gnome and rebooted and it's asks me for my credentials.

But it won't allow me to enter my credentials when I enter my username it doesn't come up on the screen
If you can't enter your credentials or username and password it sounds like something is badly broken or misconfigured.

-::-It looks like your best bet is to perform a fresh installation and make sure this time; you write down your username and password.-::-

http://releases.ubuntu.com/16.04/
 
1 members found this post helpful.
Old 03-09-2017, 05:33 AM   #24
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Hi again fellow2w. I'm so very sorry that I don't 'do' "GUI" (only OLD netbook for CLI).
That Alt+F7 post looks like a 'log' screen... Try Alt+F8 (unlikely but... Also, +F2-F9!)

Because I don't have the resources to run a Linux GUI, I'm not sure what you mean by:
"rebooted and it asks me for my credentials. But it won't allow me to enter my credentials; when I enter my username [HOW/WHERE?] it doesn't come up on the screen"
Do you mean that you get the 'picture' you posted in #5? IF so, Then [I feel] there's 'hope'!
(maybe you can write/explain in more detail about what happens on that #5 GUIlogin)

Maybe your ?upgrade? got confused by your auto-login/no-password GUI settings[??]
Here's a LONG article about 'fixing/cleaning' Ubu broken pkgs, to MAYBE TRY (or...)

In your later pictures, I'm guessing after the Ctrl+Alt+F1, you seem to CLIlogin OK (max/<pwd>), yes?

Will you 'loose a lot' by reinstalling? IF you want to 'keep trying to fix it', maybe a UbuntuGUI LQ'er will 'visit' this Thread

Here's some 'stuff' from my Mint18.1 .iso (as ideas to -TRY-)
Code:
mint@mint ~ $ pstree -acuSslg `pgrep -t tty7`
systemd,1 xforcevesa noacpi nosplash
  └─mdm,1464 --nodaemon
      └─mdm,1757 --nodaemon
          └─Xorg,1794 :0 -audit 0 -auth /var/lib/mdm/:0.Xauth -nolisten tcp vt7
mint@mint ~ $  egrep -w 'EE|\?\?' /var/log/Xorg.0.log
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   367.618] (EE) AIGLX: reverting to software rendering 

mint@mint ~ $ ps afx|grep tty
 1794 tty7     Ss+   37:58      \_ /usr/lib/xorg/Xorg :0 -audit 0 -auth /var/lib/mdm/:0.Xauth -nolisten tcp vt7
 1497 tty1     Ss     0:02 /bin/login --
 6082 tty1     S+     0:35  \_ -bash

mint@mint ~ $ ls /usr/bin/*session
/usr/bin/ck-launch-session  /usr/bin/dbus-run-session  /usr/bin/gnome-session  /usr/bin/mate-session
mint@mint ~ $ ls -l /usr/share/xsessions
-rw-r--r-- 1 root root 6780 Nov  8 23:00 mate.desktop
#WHERE are gnome auto-login/no-password GUI settings?
mint@mint ~ $ tty; env|egrep -i 'desk|ses' #tty1 DESKTOP_SESSION? Naw :(
/dev/tty1
XDG_SESSION_ID=48
XDG_SESSION_COOKIE=23e7429435e943319b749149eed39e68-1489059749.511578-54616255
TRY just the first 2 (there's tons of ps/pgrep/pstree option switches!)
Code:
pstree -acuSslg `pgrep -t tty7` 
NOTE: those are backticks, key to LEFT of 1, UNshifted ~, NOT quotes! 

egrep -w 'EE|\?\?' /var/log/Xorg.0.log 
NOTE: I think your log file (in #18 startx .local/...) is elsewhere per your pic!
AND be precise with the uppercase, single-quoting, two backslash questionmarks!
-My- 'idea' is to: find the X process(es) and their tty# (&check log!)

&Again, SORRY! I'm just -learning- X (withOUT the 'resources' to run it)

p.s. Oh! Here's THE_ANSWER!: https://journalxtra.com/linux/deskto...-desktop-back/

Last edited by Jjanel; 03-09-2017 at 07:59 AM.
 
Old 03-09-2017, 01:24 PM   #25
fellow2w
LQ Newbie
 
Registered: Jul 2009
Posts: 29

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by Ztcoracat View Post
If you can't enter your credentials or username and password it sounds like something is badly broken or misconfigured.

-::-It looks like your best bet is to perform a fresh installation and make sure this time; you write down your username and password.-::-

http://releases.ubuntu.com/16.04/
If I do a fresh install will I lose all my data?
 
Old 03-09-2017, 01:30 PM   #26
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by fellow2w View Post
If I do a fresh install will I lose all my data?
Yes:-

Unless you have a backup.
 
Old 03-09-2017, 02:38 PM   #27
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
if you can login cli - can you bring up your network/wifi? if yes.
have you tired removing whatever desktop you think you have installed on it, purge it get rid of everything - then reinstall it and cross your fingers hoping that the system will take care of setting it up properly so you can get a gui back, and or install xinit as well to get startx installed on it, then edit your .xinit file to start whatever you need ie. nm-applet & and a wm/de at the very lest to at least hopefully get something going?

try: if you have sudo as Ubuntututu (mo sucks for taking away root) but if you have sudo rights make a new user give him a password and try getting in by that user instead and see if that new users GUI works.

if you can then all you got a do is login root do some dir name changing moving files and such, if I had it here I'd just show you. but a new user might get you in at least. then go from there.

Last edited by BW-userx; 03-09-2017 at 02:51 PM.
 
Old 03-09-2017, 02:54 PM   #28
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
for this
Quote:
View Post
If I do a fresh install will I lose all my data?
if you do not have you system split then yep, if you have it split
Code:
/
/home
then you are good to go. just reinstall - set /home mount point and DO NOT format and bada bing you're in like flint. Else start backing up your stuff onto a different medium as you can log in cli all you got a do is get a external hdd USB blkid to see what to mount. then back it up first.

Code:
cp -vr /home/userName /mountpoint

Last edited by BW-userx; 03-09-2017 at 02:55 PM.
 
Old 03-09-2017, 03:41 PM   #29
fellow2w
LQ Newbie
 
Registered: Jul 2009
Posts: 29

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by BW-userx View Post
for this if you do not have you system split then yep, if you have it split
Code:
/
/home
then you are good to go. just reinstall - set /home mount point and DO NOT format and bada bing you're in like flint. Else start backing up your stuff onto a different medium as you can log in cli all you got a do is get a external hdd USB blkid to see what to mount. then back it up first.

Code:
cp -vr /home/userName /mountpoint
I might try recovery mode again. How exactly do I run in recovery mode?
 
Old 03-09-2017, 03:56 PM   #30
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by fellow2w View Post
I might try recovery mode again. How exactly do I run in recovery mode?
I have Luckily have never had to deal with that mode. So I have no idea. did you try that other stuff first in regular multiuser mode yet? if you can login cli on multiuser mode then you can just copy your home onto a external hdd. if all else fails. Or wait and see what someone else says on recovery mode --
 
  


Reply

Tags
ubuntu 16.04



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to login to NIS client machine(Ubuntu) using NIS login user name crazymoonboy Linux - Server 10 05-08-2015 07:28 AM
[SOLVED] Unable to login to my Ubuntu 13.10 but can login to my Gnome Classic? herakles_14 Ubuntu 17 10-26-2013 04:24 PM
Ubuntu/AD/KRB5/LDAP/NIS able to use domain user login with putty, unable in gui login Nitroglycerine Linux - Server 0 06-28-2012 04:17 AM
Ubuntu 11.10 unable to login jgomezh4 Ubuntu 1 03-20-2012 11:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration