January 18 2024 More Random notes on GhostBSD 14.0-STABLE O/S bring up


  

January 18 2024 More Random notes on GhostBSD 14.0-STABLE O/S bring up

 
 
  1.  Be patient and wait for memory checking to complete before blindly typing ctrl-C.   Have fun wildly swinging the mouse arrow cursor around the screen. Sort of Like Pong?  
  2. Edit the /mnt/esp msdosfs  config.txt file to modify the video output to fit INSIDE the borders of the screen.
    overscan_left=100
    overscan_right=25
    overscan_top=30
    overscan_bottom=24

    On a Samsung TV you may adjust the video:
    use the remote "menu" button ---> Picture --> Right arrow button, 
    Down arrow button to Picture Size --> Enter Button or Right arrow button.   Make your selection "Screen Fit
    Enter Button. 
    Down arrow button to Position.  Use the 4 arrow buttons to move the picture position around.  When adjusted, Hit Enter
    Down arrow to "Close" menu Enter Button ,  then Hit Return button or Exit Button.   Happy Full Visual Computing. 
    Will add a couple pictures here later.
  3. Use the adduser command to create yourself a user name. 
    Like Joe or Guest
    Groups: like  Wheel Operator Video Audio  are missing. 
    You are root user now. 
    cat /etc/passwd  to see users and UID user id numbers. 
    First user is usually UID 1000, next 1001, 1002
  4. Serial port output did not happen on this system.  What do I need to change, where to change,  BOOT_MODE="YES" ??
  5. Test Audio with mpg123   pkg install mpg123 
    see if FreeBSD.conf file at /etc/pkgs works? 
    mkdir -p /usr/local/etc/pkg/repos
    cp -p /etc/pkgs/FreeBSD.conf  /usr/local/etc/pkg/repos/  # add conf file here
    cd /usr/local/etc/pkg/repos ; 
    fetch GhostBSD.conf  pointing to Fred's  http://ghostbsdarm64.hopto.org/packages  That is Fred's NGINX webserver for the builder poudriere on the FreeBSD 15.0-CURRENT code base that was compiled from a local /usr/src to this computer FreeBSD /usr/src tree.  But alas that /usr/src files got removed or knocked out.  Now that I have GhostBSD-Arm64 working.  Might just continue to work with this code base.  at /usr/ghost14/ghostbsd-src cloned from  github.com/ghostbsd/ghostbsd-src
  6.  ifconfig genet0 ; 
    dhclient genet0 ; 
    cat /boot/loader.conf ;
    cat /etc/rc.conf
    ping -c 3 192.168.1.1  ; 
    ping -c 3 8.8.4.4 ;
    ping -c 3 he.net  "a bit better to type thanping -c 3 ibm.com

    Get your internet working with an ethernet cable from your router plugged into RasPi4B RJ45 Ethernet connector.  You can also purchase a T2U TP-Link WN725N 150Mbps RealTek rtl8188eu chipset 0x0bda : 0x8179 USB vendor : product IDs   rtl8192cu chipsets work too. rtl8821 are not working quite yet
    add 2 lines to /etc/rc.conf 
    wlands_rtwn0="wlan0" ;
    ifconfig_rtwn0="DHCP ssid FreshTomato24"  # for open wifi access point or  "WPA DHCP" for encrypted wifi access point connection
    add 4 lines to /boot/loader.conf 
    # WIFI load ; 
    rtwn_load="YES" ;
    if_rtwn_usb_load="YES" ;
    legal_realtek_license_ack=1 ;

    sudo service netif restart  ;
    sudo service routing restart ;  

    To get changes in configuration files to be accessed and loaded. 
    ifconfig wlan0 down ;
    ifconfig wlan0 up by itself does NOT work. 
    ifconfig wlan0 up scan list   should show a list of available nearby access point wifi signals.  Sometimes you can see the Access Point AP signal, but that signal is too weak to connect and transfer data.

    ifconfig wlan0 create rtwn0 wlandev wlan0
    ifconfig wlan0 ssid FreshTomato24
    wpa_supplicant -i wlan0 -B -c /etc/wpa_supplicant.conf
    dhclient wlan0

    For WPA DHCP  edit in file /etc/rc.conf line ifconfig_rtwn0="WPA DCHP"

    # Open network wifi access point.   I recommend FreshTomato.org for router software
    edit file  /etc/wpa_supplicant.conf
    network={
              ssid="FreshTomato24"
              key_mgmt=NONE
    }
    # WPA-DHCP example
    network={
             ssid="simple"
             psk="very secret passphrase"
             proto=WPA RSN
             priority=5
    }

    https://www.ccammack.com/posts/configure-a-wifi-client-on-freebsd/

    Simple ifconfig command to use with wlan0


     This looks for available networks and will return a listing of them. In this case, we want to connect to the NYPL network so we'll use

    ifconfig wlan0 ssid NYPL up

    Hopefully you will see that it's joined, and running ifconfig iwm0 will show that it's associated. Get an address.

    dhclient wlan0

    ifconfig wlan0 up scan list
     This looks for available networks and will return a listing of them. In this case, we want to connect to the NYPL network so we'll use

    ifconfig wlan0 ssid NYPL  #configures WLAN0 to use SSID NYPL channel ID

    Hopefully you will see that it's joined, and running
    ifconfig wlan0    #  will show that it's associated. Get an address.

    dhclient wlan0
    sudo service netif restart



  7.  pkg version  or  pkg bootstrap   will update your pkg software
     mkdir -p /usr/local/etc/pkg/repos
     cp -p /etc/pkg/*.conf /usr/local/etc/pkg/repos/
    DO NOT edit the configuration files in /etc/pkg directory!  leave them alone, please.
    cd /usr/local/etc/pkg/repos ;  cat GhostBSD.conf

    GhostBSD:  {
       url: "https://pkg.ghostbsd.org/stable/${ABI}/latest",
       signature_type:  "pubkey",
       pubkey:  "/usr/share/keys/ssl/certs/ghostbsd.cert",
       mirror_type: "none",
       enabled:  yes,
    }
       #specific to download ghostbsd-arm64 packages from Fred's Nginx site packages server
    GhostBSD:  {
       url: "http://ghostbsdarm64.hopto.org/packages/",
       signature_type:  "none",
       pubkey:  "/usr/share/keys/ssl/certs/ghostbsd.cert",
       mirror_type: "none",
       enabled:  yes,
    }


  8.  fetch  http://ghostbsdarm64.hopto.org/packages/pkg.conf
     fetch  http://ghostbsdarm64.hopto.org/packages/GhostBSD.conf





  9. Fix bad superblocks in the USB flash drive stick
    fsck -y /dev/da1p3   or  fsck_ufs -y /dev/gpt/rootfs




  10.  guest@generic:~ $ df -h
    Filesystem          Size    Used   Avail Capacity  Mounted on
    /dev/ufs/rootfs      50G    6.7G     40G    15%    /
    devfs               1.0K      0B    1.0K     0%    /dev
    /dev/msdosfs/EFI     50M     25M     25M    50%    /boot/efi
    tmpfs                13G    8.0K     13G     0%    /tmp
    procfs              8.0K      0B    8.0K     0%    /proc

    guest@generic:~ $ ping -c 3 ghostbsdarm64.hopto.org
    PING ghostbsdarm64.hopto.org (76.14.239.229): 56 data bytes
    64 bytes from 76.14.239.229: icmp_seq=0 ttl=64 time=0.508 ms
    64 bytes from 76.14.239.229: icmp_seq=1 ttl=64 time=0.485 ms
    64 bytes from 76.14.239.229: icmp_seq=2 ttl=64 time=0.461 ms

    --- ghostbsdarm64.hopto.org ping statistics ---
    3 packets transmitted, 3 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 0.461/0.485/0.508/0.019 ms
    guest@generic:~ $

    ping -c 3  ghostbsdarm64.hopto.org       Can you reach the packages?

  11.  Fetch the GhostBSD.conf file and place in your local package repos directory.
     cd  /usr/local/etc/pkg/repos
    # 3 methods to use: pick one.  You might have to install packages curl or wget.  Fetch should be in the base setup.
     fetch     http://ghostbsdarm64.hopto.org/packages/GhostBSD.conf
     wget  -c  http://ghostbsdarm64.hopto.org/packages/GhostBSD.conf
     curl -O   http://ghostbsdarm64.hopto.org/packages/GhostBSD.conf

    Install PersonalBSD.conf repository 
    Install FreeBSD.conf  repository

  12. Fix sshd_configure file configuration to permit 'root' user login
    #PermitRootLogin no
    PermitRootLogin yes
  13. in /boot/device.hints, or interactively by escaping to the loader prompt and doing:  Not sure, why I added the two lines below
    set hint.uart.0.disabled=1
    set hint.uart.1.disabled=1
     boot 




    Some more editing needs to happen below about saving errors in a file. 
    Google and study some more

    SETUP XFCE edit .xinitrc  file
    .xinitrc:
    exec startxfce4
    #[ -f ~/.xsession-error ] && mv ~/.xsession-errors ~/.xsession-errors.old 
    exec startxfce4 # < ~/.xsession-errors 2>&1
     
    startx

 

 

 




Comments

Popular posts from this blog

FreeBSD 14.0 Compiling kernel for Raspberry Pi 4B

HDMI Audio sound patches into GhostBSD source code /usr/ghost14/ghostbsd-src SOLVED Jan20 2024

How to install GhostBSD-Arm64 into a USB Flash Drive stick April 24, 2024 update edition.