Re: How to install KDE on NetBSD?

2020-09-20 Thread Chavdar Ivanov
On Sun, 20 Sep 2020 at 16:16, Barry Scott  wrote:
>
> I did find that xset, xsetroot and xprop are used by kstart so I installed 
> them as well.

These should be part of the native Xorg.

>
> I becomig convinced that the problem is that there is config limt on the 
> number of open files.
> Either as a whole system limit or as a per process limit.

This is the only change I have in my /etc/sysctl.conf :

kern.maxfiles=16384
security.pax.mprotect.enabled=0
net.inet.tcp.sendspace=131072
net.inet.tcp.recvspace=131072
net.inet.tcp.recvbuf_auto=1
net.inet.tcp.sendbuf_auto=1


>
> I tried:
>
> sysctl -w proc.curproc.rlimit.descriptors.hard=10
>
> and added to the start of startkde:
>
> ulimit -n 1
>
> KDE seems to get further but its still not getting to a working desktop.
> I'm not seeing the too many open files in .xsession-errors like I was.
>
> I am seeing errors like this:
>
> vmnetbsd# more .xsession-errors
> .xsession-errors: Too many open files in system
>
> When you are running KDE you must be doing some config to up the open file 
> limits I'm assuming.

Nothing besides the mentioned above. However, I am running -current as
of yesterday and each and every package is locally built. I haven't
tried the package sets available from the NetBSD foundation yet. I
actually have two build hosts with different /etc/mk.conf files, using
different versions of python and a few other bits.

>
> What are you configuring and where?

AS I said, nothing special. This is the relevant part of my /etc/rc.conf:

...
sshd=YES
mdnsd=YES
httpd=YES
wscons=YES
rpcbind=YES  rpcbind_flags="-l"  # -l logs libwrap
mountd=YES   mountd_flags="" # NFS mount requests daemon
nfs_client=YES   # enable client daemons
nfs_server=YES   # enable server daemons
lockd=YESlockd_flags=""
statd=YESstatd_flags=""
ntpdate=YES
winbindd=YES
smbd=YES
nmbd=YES
dbus=YES
mpd=YES
hal=YES
avahidaemon=YES
autofs=YES  automount_flags=""
cupsd=YES
cups_browsed=YES


so there is dbus, hal, avahi running. I also build kde4 without samba
(PKG_OPTIONS.kde-runtime4+= -samba in /etc/mk.conf, as this used to
bring samba3, I am using samba4, even as a AD DC in a few systems).


>
> Barry
>


-- 



Re: How to install KDE on NetBSD?

2020-09-20 Thread Barry Scott
I did find that xset, xsetroot and xprop are used by kstart so I installed them 
as well.

I becomig convinced that the problem is that there is config limt on the number 
of open files.
Either as a whole system limit or as a per process limit.

I tried:

sysctl -w proc.curproc.rlimit.descriptors.hard=10

and added to the start of startkde:

ulimit -n 1

KDE seems to get further but its still not getting to a working desktop.
I'm not seeing the too many open files in .xsession-errors like I was.

I am seeing errors like this:

vmnetbsd# more .xsession-errors
.xsession-errors: Too many open files in system

When you are running KDE you must be doing some config to up the open file 
limits I'm assuming.

What are you configuring and where?

Barry



Re: How to install KDE on NetBSD?

2020-09-19 Thread Barry Scott


> On 19 Sep 2020, at 21:31, Chavdar Ivanov  wrote:
> 
> # cp /usr/pkg/share/examples/rc.d/kdm /etc/rc.d
> # echo kdm=YES >> /etc/rc.conf
> # /etc/rc.d/kdm start
> 
> should be enough.

I see the services are not setup on install I have to copy the exaples into 
/etc/rc.d.

So that I have all th services I did this:

# cp /usr/pkg/share/examples/rc.d/* /etc/rc.d

Now kdm starts up. BUt the issue of kde not completing the login still exists.
Here is the head of .xsession-errors

startkde: Starting up...
Connecting to deprecated signal 
QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before QCoreApplication. 
Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. 
Application may misbehave.
kded(399)/kdeui (KIconLoader) KSharedDataCache::Private::mapSharedMemory: 
Failed to establish shared memory mapping, will fallback to private memory -- 
memory usage will increase
kbuildsycoca4 running...
QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
QFileSystemWatcher: failed to add paths: 
/usr/pkg/share/kde4/services/searchproviders/ecosia.desktop
QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
QFileSystemWatcher: failed to add paths: 
/usr/pkg/share/kde4/services/searchproviders/en2de.desktop

Is the shared memory errors normal?

Is this a problem of /etc/login.conf or /etc/sysctl.conf settings for the open 
files?

I tried this /etc/login.conf but no change in behaviour: 

default:\
:path=/usr/bin /bin /usr/sbin /sbin /usr/X11R7/bin /usr/pkg/bin 
/usr/pkg/sbin /usr/local/bin:\
:umask=022:\
:datasize-max=512M:\
:datasize-cur=512M:\
:maxproc-max=1024:\
:maxproc-cur=1024:\
:openfiles-cur=2048:\
:stacksize-cur=16M:\
:copyright=/dev/null:

#
# Settings used by /etc/rc and root
# This must be set properly for daemons started as root by inetd as well.
# Be sure reset these values back to system defaults in the default class!
#
daemon:\
:ignorenologin:\
:datasize=infinity:\
:maxproc=infinity:\
:openfiles-cur=2048:\
:stacksize-cur=16M:

Barry



Re: How to install KDE on NetBSD?

2020-09-19 Thread Chavdar Ivanov
# cp /usr/pkg/share/examples/rc.d/kdm /etc/rc.d
# echo kdm=YES >> /etc/rc.conf
# /etc/rc.d/kdm start

should be enough.

On Sat, 19 Sep 2020 at 22:10, Barry Scott  wrote:
>
>
>
> > On 19 Sep 2020, at 21:33, Barry Scott  wrote:
> >
> >
> >
> >> On 19 Sep 2020, at 12:26, Andy Ruhl  wrote:
> >>
> >> On Sat, Sep 19, 2020 at 2:34 AM Barry Scott  wrote:
> >>>
> >>> I'd like to install KDE on NetBSD 9.
> >>>
> >>> Is there a guide I can follow with the details of which
> >>> packages and config are required?
> >>
> >> Make yourself aware of pkgsrc and pkgin.
> >>
> >> When you get it set up, it should be as easy as "pkgin install kde4".
> >>
> >> Andy
> >>
> >
> > I'm using VMware to run NetBSD 9 in case that matters.
> >
> > I installed a fresh VM 4GiB RAM, 2 cores; setup pkgin and pkgsrc.
> >
> > % pkgin install kde4
> >
> > Setup /etc/rc.conf to turn on the services that the install seems to need:
> >
> >  /etc/rc.conf
> > if [ -r /etc/defaults/rc.conf ]; then
> >. /etc/defaults/rc.conf
> > fi
> >
> > hostname=vmnetbsd
> > # If this is not set to YES, the system will drop into single-user mode.
> > #
> > rc_configured=YES
> >
> > # Add local overrides below.
> > #
> > dhcpcd=YES
> > dhcpcd_flags="-qM wm0"
> > sshd=YES
> > ntpd=YES
> > ntpdate=YES
> > mdnsd=YES
> > wscons=YES
> > kdm=YES
> > avahidaemon=YES
> > famd=YES
> > dbus=YES
> >  /etc/rc.conf
> >
> > I did not add samba etc as I assume that if I'm not going to use WIndows 
> > shares its not required.
> >
> > kdm does not start automatically. Do I need to add to /etc/rc.local?
> > I start kdm from a ssh session:
> >
> > % kdm
> >
> > I see on the screen shows the KDM login dialog andlogin as me.
> > I see the kde4 iniit icons fill in.
> >
> > Then I see the screen that splits 50% left and right with
> > half a window showing and that all that happens.
> >
> > In .Xsession I see a huge number of messages.
> > I think this is the interesting one:
> >
> > QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
>
> Here is the head of .xsession-errors
>
> startkde: Starting up...
> Connecting to deprecated signal 
> QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
> QDBusConnection: session D-Bus connection created before QCoreApplication. 
> Application may misbehave.
> QDBusConnection: session D-Bus connection created before QCoreApplication. 
> Application may misbehave.
> kded(940)/kdeui (KIconLoader) KSharedDataCache::Private::mapSharedMemory: 
> Failed to establish shared memory mapping, will fallback to private memory -- 
> memory usage will increase
> kbuildsycoca4 running...
> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
> QFileSystemWatcher: failed to add paths: 
> /usr/pkg/share/kde4/services/searchproviders/duckduckgo_shopping.desktop
> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
> QFileSystemWatcher: failed to add paths: 
> /usr/pkg/share/kde4/services/searchproviders/ecosia.desktop
> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
> QFileSystemWatcher: failed to add paths: 
> /usr/pkg/share/kde4/services/searchproviders/en2de.desktop
> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
> QFileSystemWatcher: failed to add paths: 
> /usr/pkg/share/kde4/services/searchproviders/en2es.desktop
> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
> QFileSystemWatcher: failed to add paths: 
> /usr/pkg/share/kde4/services/searchproviders/en2fr.desktop
> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
> QFileSystemWatcher: failed to add paths: 
> /usr/pkg/share/kde4/services/searchproviders/en2it.desktop
> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
> QFileSystemWatcher: failed to add paths: 
> /usr/pkg/share/kde4/services/searchproviders/es2en.desktop
> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
>
>
> >
> > Suggestions?
> >
> > Barry
> >
>


-- 



Re: How to install KDE on NetBSD?

2020-09-19 Thread Barry Scott



> On 19 Sep 2020, at 21:33, Barry Scott  wrote:
> 
> 
> 
>> On 19 Sep 2020, at 12:26, Andy Ruhl  wrote:
>> 
>> On Sat, Sep 19, 2020 at 2:34 AM Barry Scott  wrote:
>>> 
>>> I'd like to install KDE on NetBSD 9.
>>> 
>>> Is there a guide I can follow with the details of which
>>> packages and config are required?
>> 
>> Make yourself aware of pkgsrc and pkgin.
>> 
>> When you get it set up, it should be as easy as "pkgin install kde4".
>> 
>> Andy
>> 
> 
> I'm using VMware to run NetBSD 9 in case that matters.
> 
> I installed a fresh VM 4GiB RAM, 2 cores; setup pkgin and pkgsrc.
> 
> % pkgin install kde4
> 
> Setup /etc/rc.conf to turn on the services that the install seems to need:
> 
>  /etc/rc.conf
> if [ -r /etc/defaults/rc.conf ]; then
>. /etc/defaults/rc.conf
> fi
> 
> hostname=vmnetbsd
> # If this is not set to YES, the system will drop into single-user mode.
> #
> rc_configured=YES
> 
> # Add local overrides below.
> #
> dhcpcd=YES
> dhcpcd_flags="-qM wm0"
> sshd=YES
> ntpd=YES
> ntpdate=YES
> mdnsd=YES
> wscons=YES
> kdm=YES
> avahidaemon=YES
> famd=YES
> dbus=YES
>  /etc/rc.conf
> 
> I did not add samba etc as I assume that if I'm not going to use WIndows 
> shares its not required.
> 
> kdm does not start automatically. Do I need to add to /etc/rc.local?
> I start kdm from a ssh session:
> 
> % kdm
> 
> I see on the screen shows the KDM login dialog andlogin as me.
> I see the kde4 iniit icons fill in.
> 
> Then I see the screen that splits 50% left and right with
> half a window showing and that all that happens.
> 
> In .Xsession I see a huge number of messages.
> I think this is the interesting one:
> 
> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files

Here is the head of .xsession-errors

startkde: Starting up...
Connecting to deprecated signal 
QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before QCoreApplication. 
Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. 
Application may misbehave.
kded(940)/kdeui (KIconLoader) KSharedDataCache::Private::mapSharedMemory: 
Failed to establish shared memory mapping, will fallback to private memory -- 
memory usage will increase
kbuildsycoca4 running...
QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
QFileSystemWatcher: failed to add paths: 
/usr/pkg/share/kde4/services/searchproviders/duckduckgo_shopping.desktop
QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
QFileSystemWatcher: failed to add paths: 
/usr/pkg/share/kde4/services/searchproviders/ecosia.desktop
QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
QFileSystemWatcher: failed to add paths: 
/usr/pkg/share/kde4/services/searchproviders/en2de.desktop
QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
QFileSystemWatcher: failed to add paths: 
/usr/pkg/share/kde4/services/searchproviders/en2es.desktop
QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
QFileSystemWatcher: failed to add paths: 
/usr/pkg/share/kde4/services/searchproviders/en2fr.desktop
QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
QFileSystemWatcher: failed to add paths: 
/usr/pkg/share/kde4/services/searchproviders/en2it.desktop
QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
QFileSystemWatcher: failed to add paths: 
/usr/pkg/share/kde4/services/searchproviders/es2en.desktop
QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files


> 
> Suggestions?
> 
> Barry
> 



Re: How to install KDE on NetBSD?

2020-09-19 Thread Barry Scott



> On 19 Sep 2020, at 12:26, Andy Ruhl  wrote:
> 
> On Sat, Sep 19, 2020 at 2:34 AM Barry Scott  wrote:
>> 
>> I'd like to install KDE on NetBSD 9.
>> 
>> Is there a guide I can follow with the details of which
>> packages and config are required?
> 
> Make yourself aware of pkgsrc and pkgin.
> 
> When you get it set up, it should be as easy as "pkgin install kde4".
> 
> Andy
> 

I'm using VMware to run NetBSD 9 in case that matters.

I installed a fresh VM 4GiB RAM, 2 cores; setup pkgin and pkgsrc.

% pkgin install kde4

Setup /etc/rc.conf to turn on the services that the install seems to need:

 /etc/rc.conf
if [ -r /etc/defaults/rc.conf ]; then
. /etc/defaults/rc.conf
fi

hostname=vmnetbsd
# If this is not set to YES, the system will drop into single-user mode.
#
rc_configured=YES

# Add local overrides below.
#
dhcpcd=YES
dhcpcd_flags="-qM wm0"
sshd=YES
ntpd=YES
ntpdate=YES
mdnsd=YES
wscons=YES
kdm=YES
avahidaemon=YES
famd=YES
dbus=YES
 /etc/rc.conf

I did not add samba etc as I assume that if I'm not going to use WIndows shares 
its not required.

kdm does not start automatically. Do I need to add to /etc/rc.local?
I start kdm from a ssh session:

% kdm

I see on the screen shows the KDM login dialog andlogin as me.
I see the kde4 iniit icons fill in.

Then I see the screen that splits 50% left and right with
half a window showing and that all that happens.

In .Xsession I see a huge number of messages.
I think this is the interesting one:

QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files

Suggestions?

Barry



Re: How to install KDE on NetBSD?

2020-09-19 Thread Andy Ruhl
On Sat, Sep 19, 2020 at 2:34 AM Barry Scott  wrote:
>
> I'd like to install KDE on NetBSD 9.
>
> Is there a guide I can follow with the details of which
> packages and config are required?

Make yourself aware of pkgsrc and pkgin.

When you get it set up, it should be as easy as "pkgin install kde4".

Andy


Re: How to install KDE on NetBSD?

2020-09-19 Thread Pedro Pinho
kde4 is the meta-pkg available.

Den lör 19 sep. 2020 11:34Barry Scott  skrev:

> I'd like to install KDE on NetBSD 9.
>
> Is there a guide I can follow with the details of which
> packages and config are required?
>
> Barry
>
>