[PC-BSD Testing] still can't startx

Casey Hancock i3luefire.casey at gmail.com
Wed Jul 3 17:54:59 PDT 2013


i am not sure which thing fixed my problem but that defaults pcbsd file was
missing so that was probably the problem. thanks for the fast and friendly
response and the excellent OS. keep up the good work! :-D
On Jul 3, 2013 2:00 PM, <testing-request at lists.pcbsd.org> wrote:

Send Testing mailing list submissions to
        testing at lists.pcbsd.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.pcbsd.org/mailman/listinfo/testing
or, via email, send a message with subject or body 'help' to
        testing-request at lists.pcbsd.org

You can reach the person managing the list at
        testing-owner at lists.pcbsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Testing digest..."

Today's Topics:

   1.  PC-BSD have not good FreeBSD Soruces (nemysis)
   2. still cant startx (Casey Hancock)
   3. Re: still cant startx (Ken Moore)
   4. Re: PC-BSD have not good FreeBSD Soruces (nemysis)


---------- Forwarded message ----------
From: nemysis <nemysis at gmx.ch>
To: testing at lists.pcbsd.org
Cc:
Date: Wed, 3 Jul 2013 02:16:41 +0200
Subject: [PC-BSD Testing] PC-BSD have not good FreeBSD Soruces
Hello


This is downloaded with

svn co svn://svn.freebsd.org/base/releng/9.1 /usr/src

/usr/src-svn/README $FreeBSD: releng/9.1/README 215293 2010-11-14 11:32:56Z
joel $

and with this FreeBSD Sources can install and not have below Problems.

But when i make linux.ko then can't boot get when boot

link_elf_ogj: Symbol if_net undefined
KLD file linux.ko: Could not finalize loading
KLD file nvidia.ko: Cannot find dependency "linux"
KLD linprocfs.ko: Cannot find dependency "linux"


kldload linux

link_elf_obj: Unsupported file type
kldload: can't load linux: Exec format error

This is because Sources are -p4 and PC-BSD Kernel is -p8 or newest -p10



I have used to download FreeBSD Sources with

PC-BSD Control Panel -> system manager -> Tasks -> Fetch System Source

This download all FreeBSD Sources for all FreeBSD version

ls /usr/src

.svn  2.0.5 2.1   2.2   3     4     5     6     7     8     9


This is  9 STABLE, and i use PC-BSD 9.1 Rolling Release

/usr/src/9/README $FreeBSD: stable/9/README 250458 2013-05-10 16:16:33Z
luigi $


Have put in /etc/make.conf what me have said Juergen Lock

SRC_BASE=/usr/src/9
SYSDIR=${SRC_BASE}/sys

Have too symlinked

ls -l /sys
lrwxr-xr-x  1 root  wheel  14  3 Jul 01:23 /sys -> /usr/src/9/sys


When is try to build

A kernel module as linux.ko for Skype 4.0.0.8 that have video i get

cd /sys/modules/linux
root at nemysis4now:/sys/modules/linux/ > make clean
"/usr/src/9/sys/conf/kmod.mk", line 76: Could not find bsd.compiler.mk
"/usr/src/9/sys/conf/kmod.mk", line 112: Malformed conditional
(${COMPILER_TYPE} != "clang")
"/usr/src/9/sys/conf/kmod.mk", line 116: if-less endif
"/usr/src/9/sys/conf/kern.mk", line 18: Malformed conditional
(${COMPILER_TYPE} == "clang")
"/usr/src/9/sys/conf/kern.mk", line 33: if-less endif
"/usr/src/9/sys/conf/kern.mk", line 103: Malformed conditional
(${COMPILER_TYPE} == "clang")
"/usr/src/9/sys/conf/kern.mk", line 109: if-less endif


nvidia-driver or any Port which need FreeBSD Sources

cd /usr/local/ports/local/work/x11/nvidia-driver ; make reinstall
===>  License NVIDIA accepted by the user
===>  Found saved configuration for nvidia-driver-319.17
===>   nvidia-driver-319.32 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by nvidia-driver-319.32 for building
===>  Extracting for nvidia-driver-319.32
=> SHA256 Checksum OK for NVIDIA-FreeBSD-x86_64-319.32.tar.gz.
===>  Patching for nvidia-driver-319.32
===>   nvidia-driver-319.32 depends on file:
/usr/local/libdata/pkgconfig/glproto.pc - found
===>   nvidia-driver-319.32 depends on file:
/usr/local/libdata/pkgconfig/dri2proto.pc - found
===>   nvidia-driver-319.32 depends on file:
/usr/local/libdata/pkgconfig/xorg-server.pc - found
===>   nvidia-driver-319.32 depends on shared library: GL.1 - found
===>  Configuring for nvidia-driver-319.32
===>  Building for nvidia-driver-319.32
===> src (all)
"/usr/src/9/sys/conf/kmod.mk", line 76: Could not find bsd.compiler.mk
"/usr/src/9/sys/conf/kmod.mk", line 112: Malformed conditional
(${COMPILER_TYPE} != "clang")
"/usr/src/9/sys/conf/kmod.mk", line 116: if-less endif
"/usr/src/9/sys/conf/kern.mk", line 18: Malformed conditional
(${COMPILER_TYPE} == "clang")
"/usr/src/9/sys/conf/kern.mk", line 33: if-less endif
"/usr/src/9/sys/conf/kern.mk", line 103: Malformed conditional
(${COMPILER_TYPE} == "clang")
"/usr/src/9/sys/conf/kern.mk", line 109: if-less endif
make: fatal errors encountered -- cannot continue
*** [all] Error code 1

Stop in
/var/tmp/ports/usr/local/ports/local/work/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-319.32.
*** [do-build] Error code 1

Stop in /usr/local/ports/local/work/x11/nvidia-driver.
*** [install] Error code 1

Stop in /usr/local/ports/local/work/x11/nvidia-driver.
*** [reinstall] Error code 1

Stop in /usr/local/ports/local/work/x11/nvidia-driver.


Please correct that from PC-BSD Control Panel download only newest FreeBSD
Sources,
which are in sync with PC-BSD Kernel and install it normal in /usr/src.


And how from CLI that download PC-BSD Source which are in sync with PC-BSD
Kernel?

Have changed in /etc/freebsd-update.conf

Components world kernel src/base src/sys world

but this not helps


freebsd-update fetch
Looking up fbsd-update.pcbsd.org mirrors... none found.
Fetching metadata signature for 9.1-RELEASE from fbsd-update.pcbsd.org...
done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files are affected by updates, but no changes have
been downloaded because the files have been modified locally:
/etc/freebsd-update.conf
/etc/make.conf
/etc/motd
/etc/sysctl.conf

No updates needed to update system to 9.1-RELEASE-p10.
root at nemysis4now:/home/dusko/ > freebsd-update install
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.



Mine uname -a in the moment

9.1-RELEASE-p8 FreeBSD 9.1-RELEASE-p8 #0: Tue Jun 18 15:25:28 UTC 2013

Please correct this.

Best regards,
nemysis



---------- Forwarded message ----------
From: Casey Hancock <i3luefire.casey at gmail.com>
To: testing at lists.pcbsd.org
Cc:
Date: Tue, 2 Jul 2013 21:26:45 -0500
Subject: [PC-BSD Testing] still cant startx
when my computer boots i get to the text login prompt instead of
directly going to my desktop.
after i login with a regular user account i try getting to a desktop
running "startx" from the cmd line gets me to a plain old x desktop
with 3 terminal windows open but i cannot type in any of them nor use
my mouse.

here are some other commands i have tried
[i3luefire at pcbsd-717] /usr/local/lib/X11/xinit> pcdm
PCDM-session PCDMd
[i3luefire at pcbsd-717] /usr/local/lib/X11/xinit> PCDM-session
PCDM-session: cannot connect to X server
[i3luefire at pcbsd-717] /usr/local/lib/X11/xinit> gdm

** (gdm-binary:5436): WARNING **: Couldn't connect to system bus: Failed
to connect to socket /var/run/dbus/system_bus_socket: No such file or
directory

[i3luefire at pcbsd-717] uname -a
FreeBSD pcbsd-717 9.1-RELEASE-p8 FreeBSD 9.1-RELEASE-p8 #0: Tue Jun 18
15:25:28 UTC 2013
root at amd64-builder.pcbsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

below are the contents of my /usr/local/lib/X11/xinit/xinitrc file
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/local/lib/X11/xinit/.Xresources
sysmodmap=/usr/local/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs


if [ -d /usr/local/lib/X11/xinit/xinitrc.d ] ; then
        for f in /usr/local/lib/X11/xinit/xinitrc.d/*.sh ; do
                [ -x "$f" ] && . "$f"
        done
        unset f
fi

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login



---------- Forwarded message ----------
From: Ken Moore <ken at pcbsd.org>
To: testing at lists.pcbsd.org
Cc:
Date: Wed, 03 Jul 2013 08:42:16 -0400
Subject: Re: [PC-BSD Testing] still cant startx
Try this command to start up PCDM (as root):  "/usr/local/sbin/PCDMd"
That is a simple shell script that should run the proper X commands to
start up a PCDM session.

Similarly, the script to start GDM is: "/usr/local/sbin/gdm"

You also might want to make sure that you have this file on your system:
"/etc/defaults/pcbsd"
If not, just run "touch /etc/defaults/pcbsd" to create it (again as root).

On 07/02/2013 22:26, Casey Hancock wrote:

> when my computer boots i get to the text login prompt instead of
> directly going to my desktop.
> after i login with a regular user account i try getting to a desktop
> running "startx" from the cmd line gets me to a plain old x desktop
> with 3 terminal windows open but i cannot type in any of them nor use
> my mouse.
>
> here are some other commands i have tried
> [i3luefire at pcbsd-717] /usr/local/lib/X11/xinit> pcdm
> PCDM-session PCDMd
> [i3luefire at pcbsd-717] /usr/local/lib/X11/xinit> PCDM-session
> PCDM-session: cannot connect to X server
> [i3luefire at pcbsd-717] /usr/local/lib/X11/xinit> gdm
>
> ** (gdm-binary:5436): WARNING **: Couldn't connect to system bus: Failed
> to connect to socket /var/run/dbus/system_bus_**socket: No such file or
> directory
>
> [i3luefire at pcbsd-717] uname -a
> FreeBSD pcbsd-717 9.1-RELEASE-p8 FreeBSD 9.1-RELEASE-p8 #0: Tue Jun 18
> 15:25:28 UTC 2013
> root at amd64-builder.pcbsd.org:/**usr/obj/usr/src/sys/GENERIC  amd64
>
> below are the contents of my /usr/local/lib/X11/xinit/**xinitrc file
> #!/bin/sh
>
> userresources=$HOME/.**Xresources
> usermodmap=$HOME/.Xmodmap
> sysresources=/usr/local/lib/**X11/xinit/.Xresources
> sysmodmap=/usr/local/lib/X11/**xinit/.Xmodmap
>
> # merge in defaults and keymaps
>
> if [ -f $sysresources ]; then
>
>
>
>
>
>
>
>      xrdb -merge $sysresources
>
> fi
>
> if [ -f $sysmodmap ]; then
>      xmodmap $sysmodmap
> fi
>
> if [ -f "$userresources" ]; then
>
>
>
>
>
>
>
>      xrdb -merge "$userresources"
>
> fi
>
> if [ -f "$usermodmap" ]; then
>      xmodmap "$usermodmap"
> fi
>
> # start some nice programs
>
>
> if [ -d /usr/local/lib/X11/xinit/**xinitrc.d ] ; then
>         for f in /usr/local/lib/X11/xinit/**xinitrc.d/*.sh ; do
>                 [ -x "$f" ] && . "$f"
>         done
>         unset f
> fi
>
> twm &
> xclock -geometry 50x50-1+1 &
> xterm -geometry 80x50+494+51 &
> xterm -geometry 80x20+494-0 &
> exec xterm -geometry 80x66+0+0 -name login
> ______________________________**_________________
> Testing mailing list
> Testing at lists.pcbsd.org
> http://lists.pcbsd.org/**mailman/listinfo/testing<http://lists.pcbsd.org/mailman/listinfo/testing>
>


-- 
~~ Ken Moore ~~
PC-BSD/iXsystems




---------- Forwarded message ----------
From: nemysis <nemysis at gmx.ch>
To: testing at lists.pcbsd.org
Cc:
Date: Wed, 3 Jul 2013 19:23:23 +0200
Subject: Re: [PC-BSD Testing] PC-BSD have not good FreeBSD Soruces
On Wed, 3 Jul 2013 12:21:08 +0300
Yuri Momotiuk <yurkis at gmail.com> wrote:

> 2013/7/3 nemysis <nemysis at gmx.ch>
>
> > Hello
> >
> >
> > This is downloaded with
> >
> > svn co svn://svn.freebsd.org/base/releng/9.1 /usr/src
> >
> > /usr/src-svn/README $FreeBSD: releng/9.1/README 215293 2010-11-14
> > 11:32:56Z joel $
> >
> > and with this FreeBSD Sources can install and not have below Problems.
> >
> > But when i make linux.ko then can't boot get when boot
> >
> > link_elf_ogj: Symbol if_net undefined
> > KLD file linux.ko: Could not finalize loading
> > KLD file nvidia.ko: Cannot find dependency "linux"
> > KLD linprocfs.ko: Cannot find dependency "linux"
> >
> >
> > kldload linux
> >
> > link_elf_obj: Unsupported file type
> > kldload: can't load linux: Exec format error
> >
> > This is because Sources are -p4 and PC-BSD Kernel is -p8 or newest -p10
> >
> >
> >
> > I have used to download FreeBSD Sources with
> >
> > PC-BSD Control Panel -> system manager -> Tasks -> Fetch System Source
> >
> > This download all FreeBSD Sources for all FreeBSD version
> >
> > ls /usr/src
> >
> > .svn  2.0.5 2.1   2.2   3     4     5     6     7     8     9
> >
>
> Seems like it fixed now (at least for STABLE branch)

Hello Yuri Momotiuk

I have seen this at Fix system sources fetch (for STABLE branch). Please
check for other,
and Ooops. Fix ugly code

https://github.com/pcbsd/pcbsd/commits/master

>
>
>
> >
> >
> > And how from CLI that download PC-BSD Source which are in sync with
PC-BSD
> > Kernel?
> >
> > Have changed in /etc/freebsd-update.conf
> >
> > Components world kernel src/base src/sys world
> >
> > but this not helps
> >
> >
> I use STABLE branch for sources.  Maybe this will be helpful for you too.
>
> Just type (as root) for get STABLE branch:
> svn co svn://svn.freebsd.org/base/stable/9/ /usr/src
>
> (/usr/src should be empty)

Yes i have this used but need CURRENT not STABLE Source, need ones which
are in sync with PC-BSD Rolling Release Kernel.

/sys/modules/linux/ > make clean
"/usr/src/sys/modules/linux/../../conf/kmod.mk", line 76: Could not find
bsd.compiler.mk
"/usr/src/sys/modules/linux/../../conf/kmod.mk", line 112: Malformed
conditional (${COMPILER_TYPE} != "clang")
"/usr/src/sys/modules/linux/../../conf/kmod.mk", line 116: if-less endif
"/usr/src/sys/modules/linux/../../conf/kern.mk", line 18: Malformed
conditional (${COMPILER_TYPE} == "clang")
"/usr/src/sys/modules/linux/../../conf/kern.mk", line 33: if-less endif
"/usr/src/sys/modules/linux/../../conf/kern.mk", line 103: Malformed
conditional (${COMPILER_TYPE} == "clang")
"/usr/src/sys/modules/linux/../../conf/kern.mk", line 109: if-less endif
make: fatal errors encountered -- cannot continue

But i have bsd.compiler.mk

ls /usr/src/share/mk/bsd.compiler.mk
/usr/src/share/mk/bsd.compiler.mk

Only Sources which i can use with PC-BSD Kernel are downloaded with

svn co svn://svn.freebsd.org/base/releng/9.1 /usr/src

but this is -p4 and not in sync with PC-BSD Rolling Release Kernel

>
> >
> > Mine uname -a in the moment
> >
> > 9.1-RELEASE-p8 FreeBSD 9.1-RELEASE-p8 #0: Tue Jun 18 15:25:28 UTC 2013
> >
> > Please correct this.
> >
> > Best regards,
> > nemysis
> > _______________________________________________
> > Testing mailing list
> > Testing at lists.pcbsd.org
> > http://lists.pcbsd.org/mailman/listinfo/testing
> >
>
>
>



_______________________________________________
Testing mailing list
Testing at lists.pcbsd.org
http://lists.pcbsd.org/mailman/listinfo/testing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pcbsd.org/pipermail/testing/attachments/20130703/8d26e6af/attachment-0001.html>


More information about the Testing mailing list