[gentoo-user] ERROR: smartd failed to start. /run/smartd.pid': No such file or directory

2020-11-01 Thread Dale
Howdy,

I did a KDE update so I switched to boot runlevel and back to default. 
I noticed that a service didn't start and it was smartd.  Not exactly
critical but it does monitor my hard drives.  When I try to restart it,
I get this using the -v option.


root@fireball / # /etc/init.d/smartd start -v
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh
/etc/init.d/smartd start
 * Starting smartd ...
 * start-stop-daemon: fopen `/run/smartd.pid': No such file or directory
 * Detaching to start `/usr/sbin/smartd' ...
 *   start-stop-daemon: failed to start `/usr/sbin/smartd'
 * Failed to start
smartd  
 
[ !! ]
 * ERROR: smartd failed to start
root@fireball / #


I've tried re-emerging the smartmontools package, I've tried the zap
option as well, in case my recent power supply blow up left some cruft
behind.  I also googled but can't find this problem.  It seems tho that
the pid file should maybe be in /var instead of /run.  I'm not sure if
it was moved recently or what. 

Anyone know how to fix this?  Or run into this before?

Thanks.

Dale

:-)  :-)



Re: [gentoo-user] Cannot start xfce from lightdm [solved]

2020-11-01 Thread François-Xavier Carton
On Sun, Nov 01, 2020 at 04:18:23PM +0100, François-Xavier Carton wrote:
> Ah, this might be the problem. I don't have that file, I only have
> 00-xhost in there. I checked the dbus ebuild, I need to enable the X use
> flag. Will do, and report back :) Thanks for the pointer!
> 
Yes, that solved the problem. Thanks a lot!



[gentoo-user] Cannot start xfce from lightdm

2020-11-01 Thread François-Xavier Carton
Hi,

I'm installing gentoo on the family computer, and I'm opting for lightdm
and xfce (for ease of use for non-experienced users). As per the wiki, I
emerged the packages, enabled and started the dbus and xdm services.
Lightdm starts fine, but xfce fails to start with the error: "Unable to
contact settings server; Unable to connect: connection refused". A few
things I tried:

- starting another DE (dwm) from lightdm: works
- starting xfce from startx: works
- starting xfce from a running x server (via terminal emulator): works
- remerging xorg with "elogind -suid": still the same (for simplicity
  I'd prefer "suid -elogind" though)

What I noticed:
- the error seems to be dbus-related (from the source code, it seems
  xfconf_init fails, which in turns calls dbus things); however I double
  checked that dbus is enabled and started.
- when xfce starts successfully (eg. via startx), it starts
  xfce4-session with dbus-launch (not sure where that happens; I see no
  mentions of it in startxfce4 nor /etc/xdg/xcfe4/xinitrc), whereas when
  started from lightdm, xfce4-session is started normally (without
  dbus-launch)

I'm not used to graphical login managers, and I'm running out of ideas.
Does anyone have some idea of what I could try to get xfce running from
lightdm?

Thanks,
-François-Xavier



Re: [gentoo-user] Cannot start xfce from lightdm

2020-11-01 Thread François-Xavier Carton
On Sun, Nov 01, 2020 at 02:39:02PM +0100, netfab wrote:
> Le 01/11/20 ?? 13:32, Fran??ois-Xavier Carton a tapot?? :
> > I'm not used to graphical login managers, and I'm running out of
> > ideas. Does anyone have some idea of what I could try to get xfce
> > running from lightdm?
> 
> It works fine here ?? (xfce + lightdm).
> 
> Do you have :
> > session-wrapper=/etc/lightdm/Xsession
> 
> Enabled in /etc/lightdm/lightdm.conf ?
> 
Yes. I did not edit this, so I think it's the default config.

> /etc/lightdm/Xsession is sourcing
>   /etc/X11/xinit/xinitrc.d/80-dbus
> 
> which runs dbus-launch.
> 
Ah, this might be the problem. I don't have that file, I only have
00-xhost in there. I checked the dbus ebuild, I need to enable the X use
flag. Will do, and report back :) Thanks for the pointer!



Re: [gentoo-user] Cannot start xfce from lightdm

2020-11-01 Thread netfab
Le 01/11/20 à 13:32, François-Xavier Carton a tapoté :
> I'm not used to graphical login managers, and I'm running out of
> ideas. Does anyone have some idea of what I could try to get xfce
> running from lightdm?

It works fine here © (xfce + lightdm).

Do you have :
> session-wrapper=/etc/lightdm/Xsession

Enabled in /etc/lightdm/lightdm.conf ?

/etc/lightdm/Xsession is sourcing
/etc/X11/xinit/xinitrc.d/80-dbus

which runs dbus-launch.





Re: [gentoo-user] Re: console size/display anomaly

2020-11-01 Thread John Blinka
On Sat, Oct 31, 2020 at 11:39 AM Walter Dnes  wrote:

> i
>   The way I read it,  is to go into "Picture Wizard II" menu and
> select "Aspect Ratio" option "Just scan".  Hopefully this solves your
> problem.


Just had to go directly to “Aspect Ratio” and select “Just scan”.  Worked
like a charm!  Thank you so much for spotting this!  I’d been through the
“Picture Wizard II” menu many times without seeing anything that I thought
would be useful.  This makes a huge difference in usability!

John

>
>


Re: [SOLVED] [gentoo-user] Apache 2.4 can not access server subdirectory

2020-11-01 Thread Michael
On Sunday, 1 November 2020 05:01:48 GMT the...@sys-concept.com wrote:
> On 10/30/2020 12:34 PM, Michael wrote:
> [snip]
> 
>  vhosts.conf - define my web-site, but I commented everything out in
>  that
>  file (it is empty) and restarted apache:
>  /etc/init.d/apache2 restart
>  
>  And I can still display my web page.
>  How is it possible???
> >>> 
> >>> I would assume it is possible to still display your website because the
> >>> main apache2.conf and/or ./sites-available/000-default.conf contain some
> >>> default settings which specify the DocumentRoot where your website
> >>> filesystem resides.
> >>> 
> >>> Your approach to start from first principles by commenting out
> >>> individual
> >>> configurations is sound, because you can check in this way what works
> >>> and
> >>> what does not.
> >> 
> >> I check all configuration files for "DocumentRoot" and all the files
> >> have DocumentRoot commented out (so nothing is active)
> >> grep -Rnw '/etc/apache2/' -e 'DocumentRoot'
> >> 
> >> Restarted apache 2.4 and the web-page is still loading :-/
> > 
> > ServerRoot specified somewhere?  Increase log verbosity and see what it
> > reports, otherwise I'm out of ideas!
> 
> Solved.
> For some reason or another in my /etc/hosts file I had:
> 10.0.0.112  server.ca
> 
> And apache was accessing my production box1
> 
> box1 - production
> box2 - work in progress
> 
> I changed in hosts to:
> 10.0.0.112  www.server.ca
> 
> And apache was resolving accessing box2 only.
> Strange.

server.ca != www.server.ca

The first is a FQDN, the second is a subdomain of it.

You can set up aliases in /etc/hosts of a PC:

10.0.0.112server.ca  www.server.ca prod.server server 

All of the above will allow the PC to resolve the FQDN and any aliases to host 
10.0.0.112 and look for a listening webserver on appropriate ports.

The web server should be listening on an appropriate port, or port and IP 
address, here 10.0.0.112.  Typically the server is listening on all IPs on 
port :80 in the apache configuration files:

Listen *:80

This can be different for each Vhost served by this webserver, but make sure 
there are no overlapping Listen directives on the same port, or the server 
will error out.

https://cwiki.apache.org/confluence/display/HTTPD/CouldNotBindToAddress

Then on each VirtualHost  section you can specify whatever ServerName and 
ServerAlias you need  to make sure your are accessing the correct Vhost and 
its corresponding filesystem:

https://httpd.apache.org/docs/2.4/vhosts/name-based.html


signature.asc
Description: This is a digitally signed message part.