lightdm not starting desktop (any variety)

Begonnen von LRC1962, 2014/06/13, 17:17:09

Vorheriges Thema - Nächstes Thema

LRC1962

Tried KDE and LXDE and both just returned me back to lightdm.
Hypothesis something to do with xorg. Hit ctrl-alt-F1. go into user ($) mode.
1st test. startlxde
$startlxde
**message: main.vala:96: session is LXDE
**message: main.vala:96: DE is LXDE


(lxsession:4785): Gtk-WARNING**: cannot open display:

2nd test. startkde
$startkde
$DISPLAY is not set or cannot connect to X server.

3rd test root.
#export DISPLAY=:0.0 ; startx
that went into lxde with absolutely no trouble, in root though.
Conclusion some conf file is not set or loading as it should for display to work.

I was going to post separately but then maybe part of a similar issue. cupd is not loading at start.
In lxde the is an apt call systemadmin. It gives all services and their status . for cups.service apatche2.service and cups.socket it says failed. Now when #cupd and do not exit command cups works perfectly. Setup drivers and printed. exit command and cups dies. so somewhere systemd is not loading cupd as it should and therefore I am not able to print on demand although as long as cupsd is loaded it works as it should. Is there someway I can get it running? I do understand that with systemd things are different and therefore do not know what I can do to fix things. I do understand it is a different issue, but if they are both an issue of systemd having trouble then I maybe able to fix them both at the same time.


melmarker

mount $HOME rw - in most cases thats all.
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

LRC1962

Your right copied home and forgot to keep permissions. Fixed when I changed.
AS for cupsd still in the same spot. Although did find out how to recreate the errors at boot.
root@******:/media/home/******# systemctl status cups.service
cups.service - CUPS Printing Service
   Loaded: loaded (/lib/systemd/system/cups.service; enabled)
   Active: failed (Result: start-limit) since Sat 2014-06-14 18:32:11 EDT; 12min ago
     Docs: man:cupsd(
           man:cupsd.conf(5)
  Process: 1716 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

Jun 14 18:32:11 ****** systemd[1]: Started CUPS Printing Service.
Jun 14 18:32:11 ****** systemd[1716]: Failed at step NAMESPACE spawning /usr...ed
Jun 14 18:32:11 ****** systemd[1]: cups.service: main process exited, code=e...CE
Jun 14 18:32:11 ****** systemd[1]: Unit cups.service entered failed state.
Jun 14 18:32:11 ****** systemd[1]: Starting CUPS Printing Service...
Jun 14 18:32:11 ****** systemd[1]: cups.service start request repeated too q...t.
Jun 14 18:32:11 ****** systemd[1]: Failed to start CUPS Printing Service.
root@******:/media/home/******# systemctl status cups.service
cups.service - CUPS Printing Service
   Loaded: loaded (/lib/systemd/system/cups.service; enabled)
   Active: failed (Result: start-limit) since Sat 2014-06-14 18:32:11 EDT; 12min ago
     Docs: man:cupsd(
           man:cupsd.conf(5)
  Process: 1716 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

Jun 14 18:32:11 ****** systemd[1]: Started CUPS Printing Service.
Jun 14 18:32:11 ****** systemd[1716]: Failed at step NAMESPACE spawning /usr/sbin/cupsd: Operation not permitted
Jun 14 18:32:11 ****** systemd[1]: cups.service: main process exited, code=exited, status=226/NAMESPACE
Jun 14 18:32:11 ****** systemd[1]: Unit cups.service entered failed state.
Jun 14 18:32:11 ****** systemd[1]: Starting CUPS Printing Service...
Jun 14 18:32:11 ****** systemd[1]: cups.service start request repeated too quickly, refusing to start.
Jun 14 18:32:11 ****** systemd[1]: Failed to start CUPS Printing Service.
root@******:/media/home/******# systemctl status cups.socket
cups.socket - CUPS Printing Service Sockets
       Loaded: loaded (/lib/systemd/system/cups.socket; enabled)
      Drop-In: /etc/systemd/system/cups.socket.d
               └─cupsd-listen.conf
       Active: failed (Result: service-failed-permanent) since Sat 2014-06-14 18:32:11 EDT; 19min ago
       Listen: /var/run/cups/cups.sock (Stream)
               127.0.0.1:631 (Stream)
               [::1]:631 (Stream)

Jun 14 18:32:11 ****** systemd[1]: Unit cups.socket entered failed state.

It appears thatJun 14 18:32:11 ****** systemd[1716]: Failed at step NAMESPACE spawning /usr/sbin/cupsd: Operation not permitted
Jun 14 18:32:11 ****** systemd[1]: cups.service: main process exited, code=exited, status=226/NAMESPACE

Did find out though that the problem is that I have /var/tmp/ symlinked. Apparently CUPS objects to that. Now I can get it working with#cupsd
Is there a desktop script I can put together that issues the cupsd command? I do not need it that much because I do not print that much.

LRC1962

Got it figured out [Desktop Entry]
Encoding=UTF-8
Name=Start Printer
Comment=Starts cups
Exec=gksu cupsd
Icon=configure-cups
Type=Application

piper

Wow, did you bring like  /home, /var, /etc, /usr, etc,   over from an existing system or worse, another system/distro  ?
I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA

LRC1962

Actually Piper just /home. and the desktop I am using lxde where I was using kde. Haven't tried that yet. Also original distro used was aptosid and I continued on with siduction at the changeover. Found main road block was using desktop to copy while I was in root, and that messed up all the permissions. Advantage I have found so far as I reinstall my apps is that all configurations were the same as I left them.
Another big road block I found was in placing /home /tmp /var/tmp and /var/cache/ onto deferent partitions. The Live CD seemed to suggest it was going to do it and I found in my case just created a directory in each partition but no symlinking it bewteen boot partition and other partition. Got that fixed and running well.
As for CUPS got it running at boot. Answer was, keep the symlinks as is, but another step is also needed. Add these lines to fstab at the end.
/var/tmp        /media/(HD partition)/var/tmp     bind         defaults,noatime,bind                         0    0
/var/spool       /media/(HD partition)/var/spool   bind         defaults,noatime,bind                         0    0
/var/cache        /media/(HD partition)/var/spool   bind         defaults,noatime,bind                         0    0


Not sure which if all is needed. Without those lines cups refused to work unless I ran cupsd in desktop. With those lines added cups starts running at bootup.

piper

I don't recommend using a seperate /home (MO) , and carrying a home from another distro is grounds for disaster.

Not saying it can't be done, but you have to know what your doing, different distro's different configs, etc.

Keep it clean & simple.
I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA

dibl

The problem with a common /home that is used by different OS's, is, the many hidden "dot" files.  In those files are the config data for your browsers and software packages, and if different distros have different versions, the "dot" files get all screwed up, and your software does not work as expected (or at all).


So, make a directory,


# mkdir -p /mnt/DATA


and in that directory make your data folders, "DOCS", "IMAGES", "MUSIC", "VIDEOS", "PROJECTS", and whatever.  Mount that in /etc/fstab, in each different OS.  Now symlink those directories to your ~/home/user directory in each OS, and you will have no worries about the hidden config files.
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

LRC1962

If I was jumping to Ubuntu or some other entirely distro I would not do that. In this case since I was using what I thought was basically the same thing, I took a shot at it. In my case I guess I hit the jackpot. Actually I am now in KDE and it is working better then before (had some irritating bugs in it that Drove me nuts at times). Much thanks for all your help.

piper

I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA