After emerge and installation (nxsetup --install --setup-nomachine-key --clean --purge) nxserver failed to start because of missing file /var/lib/nxserver/home/.ssh/authorized_keys2.disabled Reproducible: Always Steps to Reproduce: 1. emerge nxserver-freenx 2. nxsetup --install --setup-nomachine-key --clean --purge 3. nxserver --start Actual Results: server ~ # nxserver --start NX> 100 NXSERVER - Version 3.2.0-74-TEAMBZR104 OS (GPL, using backend: 3.3.0) mv: cannot stat `/var/lib/nxserver/home/.ssh/authorized_keys2.disabled': No such file or directory NX> 122 Service started NX> 999 Bye server ~ # nxserver --status NX> 100 NXSERVER - Version 3.2.0-74-TEAMBZR104 OS (GPL, using backend: 3.3.0) NX> 110 NX Server is stopped NX> 999 Bye Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r6-i686-AMD_K7_processo-with-gentoo-2.0.1 Timestamp of tree: Sun, 20 Sep 2009 18:15:02 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p33 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.2-r1, 3.1.1 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -funroll-all-loops -fpeel-loops -funswitch-loops -funit-at-a-time" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -funroll-all-loops -fpeel-loops -funswitch-loops -funit-at-a-time" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.bg/ http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/ http://distfiles.gentoo.bg/ http://ftp.gentoo.bg/ http://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ ftp://gentoo.mirror.web4u.cz/ http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/" LANG="ru_RU.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1" LINGUAS="ru en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 7zip X X509 Xaw3d a52 aac accessibility acpi aim alias alisp alsa amarok amr amrnb aotuv apache2 aspnet aspnet2 async audit authfile auto-completion automount avahi bash-completion bind-mysql boost branding bzip2 c++ cairo caps ccache cdaudio cdb cdda cddb cdio cdparanoia cdr cdrom cdsound cg cgi chroot clamav clamd compress consolekit cpio cracklib crypt cups curl cursors custom-optimization cxx cyrillic dbus demo device-mapper dga dhcp directfb directv divx djvu dmi dnd dts dvbplayer dvd dvdarchive dvdchapjump dvdr dynamic emboss encode exif extras fame fastbuild fbdev ffmpeg filter firefox firefox3 flac floppy ftp gdb gdbm gif gimp glut gmp gpm gstreamer hal hash http icons iconv icq ieee1394 ivtv jadetex java java-external java-internal javascript jpeg jpeg2k kde kde4 kdm kdrive kipi lame libnotify lirc livejournal logitech-mouse logrotate mad maps matroska mikmod mime mmx mng mono moonlight mouse mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer mpu401 mtp mudflap music mysql mysqli nano-syntax nanoemacs nat ncurses nforce2 nls nocd nptl nvidia nvram odk ogg opengl openmp openssl opensslcrypt opera oscar pam pcre pdf perl php plasma player png posix ppds python qt3support qt4 quicktime radio rar rdesktop readline reflection reiser4 reiserfs resolver rsync ruby samba scanner sdl search server session slang sms sound soundex sounds spell spl srt sse ssl startup-notification suexec svg svga sysfs tcpd tga themes threads thunar tiff tivo toolbar tools translator truetype tv unicode usb v4l v4l2 vboxwebsrv vcd vga videos vim-syntax vmware vorbis wav web win32codecs winbind winpopup wma wmf wmp x264 x86 xcomposite xine xinerama xml xmlwriter xorg xscreensaver xv xvid xvmc zip zlib zoran" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" LIRC_DEVICES="avermedia avermedia98 pctv pixelview_bt878 avermedia_vdomate" SANE_BACKENDS="mustek mustek_pp mustek_usb mustek_usb2 gt68xx" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
What happens when you start it like; /etc/init.d/nxserver start
Please reopen when the requested information is present.
After system started (nxserver was added to default boot level) server ~ # /etc/init.d/nxserver start * WARNING: nxserver has already been started server ~ # /etc/init.d/nxserver stop * Stopping FreeNX server... [ ok ] server ~ # /etc/init.d/nxserver start * Starting FreeNX server... [ ok ] server ~ # nxserver --status NX> 100 NXSERVER - Version 3.2.0-74-TEAMBZR104 OS (GPL, using backend: 3.3.0) NX> 110 NX Server is stopped NX> 999 Bye
Please edit /etc/nxserver/node.conf NX_LOG_LEVEL=6 Attempt to stop then start Please attach tail -n 100 /var/log/nxserver.log
After editing node.conf: server ~ # /etc/init.d/nxserver stop * Caching service dependencies... [ ok ] * Stopping FreeNX server... [ ok ] server ~ # /etc/init.d/nxserver start * Starting FreeNX server... [ ok ] server ~ # tail -n 1000 /var/log/nxserver.log server ~ # cat /etc/nxserver/node.conf | grep NX_LOG_LEVEL NX_LOG_LEVEL=6 server ~ # nxserver --status NX> 100 NXSERVER - Version 3.2.0-74-TEAMBZR104 OS (GPL, using backend: 3.3.0) NX> 110 NX Server is stopped NX> 999 Bye
post egrep -v '^#|^$' /etc/nxserver/node.conf
server ~ # egrep -v '^#|^$' /etc/nxserver/node.conf NX_LOG_LEVEL=6 It is default config. With the same config with no changes nxserver worked on another system.
What's the output of `ls -l /var/lib/nxserver/home/.ssh/` ? "start/stop" in freenx is just renaming the ssh authorized keys file to/from authorized_keys2.disabled, if it does not find it, it won't work indeed Was there another freenx (or other NX) setup before? It may be worth a shot removing entirely /var/lib/nxserver/home, unmerge and remerge nxserver-freenx
Did the suggestions from comment #8 help? Marking test-request, do not hesitate to reopen if the problem is still here.