unicorn I record a video

The Great (Fire)Wall of China is a problem for some of us, mate...

If you can ssh into the machine from a phone or another PC, then you can do a dmesg & get the output.

    rvp The Great (Fire)Wall of China is a problem for some of us, mate...

    It's loading for me but i think it wants me to login (not 100% sure - i can't read Chinese) and i don't even have a google account, let alone a baidu one.

      unicorn both of my internal and external keyboards work well before, they can only work in sigle user mode now.

      Do you have a keymap= line in /etc/rc.conf? A wrong one there can easily account for your symptom.

        nettester It's loading for me but i think it wants me to login (not 100% sure - i can't read Chinese) and i don't even have a google account, let alone a baidu one.

        I think login is not necessary

        rvp If you can ssh into the machine from a phone or another PC, then you can do a dmesg & get the output.

        I don't familiar with ssh, I don't know how to use it

        rvp Do you have a keymap= line in /etc/rc.conf? A wrong one there can easily account for your symptom

        no, that line is not in my /etc/rc.conf
        Any other video sites I can upload videos?

        • rvp replied to this.

          unicorn I don't familiar with ssh, I don't know how to use it

          Boot into single-user mode, then type these commands:

          mount -u -w /
          echo 'sshd_enable="YES"' >> /etc/rc.conf
          mount -u -r /
          poweroff

          On the next boot, you should have the sshd server running. Install an ssh/sftp/scp client on any other machine (even Android), then you will be able to log-in (using the IP address) and run commands and fetch files from your "server".

          (BTW, it's pretty easy to get networking going in single-user mode too if you want that...)

            rvp (BTW, it's pretty easy to get networking going in single-user mode too if you want that...)

            I can't ssh to my computer without the internet, how do I get it to work?

            • rvp replied to this.

              unicorn I can't ssh to my computer without the internet, how do I get it to work?

              You don't need an internet connection to connect to machines on the local network. Just:

              ssh user@IP.ADD.RE.SS                                   # or, putty ...

              will do. But, if you want networking in single-user mode:

              root# hostname foo.localdomain				# set own hostname
              root# ifconfig lo0 127.0.0.1				# bring up loopback IF
              
              root# mount -t tmpfs none /tmp				# mount a RW /tmp
              root# ifconfig						# get IF list
              root# dhclient -l /tmp/dh.lease -p /tmp/dh.pid re0	# req. ipaddr on IF
              DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 4
              DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 9
              DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 21
              DHCPOFFER from 192.168.1.1
              DHCPREQUEST on re0 to 255.255.255.255 port 67
              DHCPACK from 192.168.1.1
              bound to 192.168.1.106 -- renewal in 3600 seconds.	# <-- your ipaddr
              root# ping -4nc5 google.com				# check IPv4 conn.
              root# 

              (Getting WiFI to work is a few more steps...)

                rvp You don't need an internet connection to connect to machines on the local network. Just:
                ssh user@IP.ADD.RE.SS # or, putty ...

                I don't know my ip address, ifconfig doesn't show ip adress without internet

                unicorn great, I had got my dmesg

                Looks OK. Can you post the output of these commands:
                single-user mode is OK:

                sha1 /etc/defaults/rc.conf /etc/rc.d/syscons /etc/devd.conf
                cat /etc/rc.conf

                In multi-user mode (ssh in as a regular user, then become root):

                ps -Au
                ls -l /dev/

                  unicorn That ps -Au should've been done in multi-use mode, but, never mind. I can't see anything wrong so far. Let's see if this is a general issue or just an Xorg/slim issue:

                  1. In slim, do the LEDs light up when you press the CapsLock/NumLock keys?
                  2. Can you disable/comment-out slim in /etc/rc.conf then reboot and check if input works?

                    rvp
                    It works after disable slim, I got 10750 patches and upgraded to 14.0 BETA1 successfully.
                    but neither startx nor pkg update works.

                    • rvp replied to this.

                      unicorn but neither startx

                      You will have to update the DRMKMS modules to match the current kernel (see below).
                      Post /var/log/Xorg.0.log, also the output of: id.

                      unicorn nor pkg update works.

                      I think for -BETA, -STABLE and -CURRENT, you have to build from source.

                      OK, I see that binary packages are available for -14 and also -15.
                      Does this work: use latest instead of quarterly (which are only for -RELEASE branches)

                      mkdir -p /usr/local/etc/pkg/repos/
                      cp -pv /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/.
                      sed -i '' -e '/url:/s/quarterly/latest/' /usr/local/etc/pkg/repos/FreeBSD.conf

                        unicorn

                        uid=1001(unicorn) gid=1001(unicorn) groups=1001(unicorn),0(wheel),145(webcamd)

                        You have to be a member of group video

                        [    29.753] (EE) open /dev/dri/card0: No such file or directory
                        [    29.753] (WW) Falling back to old probe method for modesetting
                        [    29.753] (EE) open /dev/dri/card0: No such file or directory

                        DRMKMS drivers not loaded. (See prev. post--binary package for -14 may work)

                          rvp
                          I run commands but nothing happens

                          pw groupmod wheel -m unicorn
                          pw groupmod video -m unicorn

                          I had upgraded to 14.0 BETA2, can't run pkg it says missing libssl.so.111.

                          • rvp replied to this.

                            unicorn I run commands but nothing happens

                            $ fgrep video /etc/group
                            video:*:44:rvp
                            $

                            You'll have to logout and login for the change to take effect.

                            unicorn I had upgraded to 14.0 BETA2, can't run pkg it says missing libssl.so.111.

                            Hmm. FreeBSD 14 has switched to OpenSSL 3, so:

                            a) You're using the wrong binary (run /usr/sbin/pkg instead of /usr/local/sbin/pkg), or,
                            b) the /usr/sbin/pkg binary never got updated, or,
                            c) The update process didn't get rid of all of the old libraries that pkg depended on. ie. you now have a mix of old and new libraries being used by pkg.

                            I recommend a clean install. (But, try running /usr/sbin/pkg clean -ay; /usr/sbin/pkg update; /usr/sbin/pkg upgrade first)

                              rvp usr/sbin/pkg clean -ay; /usr/sbin/pkg update; /usr/sbin/pkg upgrade

                              theses three commands can't work either, the same error.
                              I had made a clean install of 14.0

                              • rvp replied to this.

                                FreeBSD 14.0 reboots automatically several times, I thought GhostBSD might work but it didn't.
                                I had downloaded NetBSD 10.0 boot.iso, but balenaEtcher said missing partition table, how can I make a bootable USB stick?

                                • rvp replied to this.