Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-27-2017, 04:02 AM
|
#1
|
LQ Newbie
Registered: Feb 2017
Posts: 1
Rep:
|
Error: Your Session only lasted less than 10 seconds.
I'm pretty new to Linux. I decided to install Mint, after a day or two i logged on and got the following error message.
"Your Session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix the problem.
View Details(~/.xsession-errors file)
/etc/mdm/Xsession: Beginning session setup...
/etc/mdm/Xsession: 173: /etc/mdm/Xsession: grep not found
/etc/mdm/Xsession: Executing mate-session failed, will try to run x-terminal-emulator
/etc/mdm/Xsession: 205: exec: x-terminal-emulator: not found"
I'm pretty sure i have enough diskspace, but i am stumped. If anyone has a solution its greatly appreciated! Thanks.
|
|
|
02-27-2017, 05:09 AM
|
#2
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Hi Poweer, and welcome to LQ.
There will hopefully be suggestions as to what you can do to resolve this problem but personally, given the fundamental nature of the failure and the fact that you've only been running Mint for a couple of days, I would reinstall the operating system.
Can I ask which version of Mint you're using and where you got the iso from? Also, your computer setup (e.g. single boot and dual boot?) and how much disk space you've given Mint?
Can you remember doing anything over the last couple of days on a system level which you think might have caused the problem?
If it's of any reassurance, what you're seeing is not common.
Last edited by hydrurga; 02-27-2017 at 05:30 AM.
|
|
|
02-27-2017, 05:20 AM
|
#3
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,871
|
Given that this is a freshly installed system, it's almost certainly an installation problem. The messages are associated with the Mint display manager (mdm), which is the program that gives you your graphical login in Mint. Specifically an ancillary script (/etc/mdm/xsession) is playing up. The fact that it can't find the grep program is very worrying, because this is one of the most basic programs in Linux and it should be there.
If you press ctrl+alt+F1, you will get to a text console where you can log in and explore. Start by typing which grep. This should report the location of grep; if there is no output, the installation is definitely screwed up and you will need to reinstall. Can you remember getting any weird error messages during installation?
It's also worth typing startx to try to bring the desktop up by hand. See how far it gets and let us know the result.
Last edited by hazel; 02-27-2017 at 05:21 AM.
|
|
|
03-05-2017, 11:06 AM
|
#4
|
Member
Registered: Sep 2009
Location: Caribbean
Distribution: Slackware 15.0, Proxmox 7.4-17, FreeBSD 13.2
Posts: 70
Rep:
|
So, last year, the Linux Mint website was hacked and some of the ISOs were compromised.
Read about it here http://blog.linuxmint.com/?p=2994
Also, I've had similar error messages before when the permissions on the user's home folder did not belong to the user.
Potentially, this may also be caused by a partition not being mounted or not being readable. Interesting that you can still boot the computer but not find 'grep', but that can happen if your PATH variable does not include the /bin or /usr/bin paths.
So, maybe your .bashrc or .bash_profile files are unreadable or missing?
Still, best move would be to wipe and re-install from scratch, possibly with a new ISO that you've downloaded and checked the MD5 checksum.
|
|
|
03-06-2017, 07:50 PM
|
#5
|
Member
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
|
From a web-search of some of the errors, a 'MAYBE' / my 'wild-guess': check: echo $PATH
http://serverfault.com/questions/557...-cannot-log-in
Again, just 'my wild-guess', fwiw=ForWhatIt'sWorth, from web-researchnig some of the errors.
|
|
|
All times are GMT -5. The time now is 06:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|