Wednesday, July 3, 2024

raspberry pi 7 inch display notes (pimoroni version)

7 inch display notes

this cleaned up the 3" display mess

sudo apt-get update
sudo apt-get install --reinstall libraspberrypi0 libraspberrypi-{bin,dev,doc} raspberrypi-bootloader
sudo reboot

install (or use) raspi-config to set console login
apt-get raspi-config installs if missing.

--30--

Tuesday, July 2, 2024

raspberry pi camera

 
motion testing, video device test tools


libcamera-hello --list-cameras
sudo v4l2-ctl --list-devices
vcgencmd get_camera



--30--

Sunday, June 30, 2024

fix firefox display problem on Raspberry pi OS via xrdp remote

 
change the following 

Option 2)
By default Xrdp uses the /etc/ssl/private/ssl-cert-snakeoil.key file that is readable only by members of the “ssl-cert” group. Run the following command to add the xrdp user to the group :

Code: Select all

sudo adduser xrdp ssl-cert

Code: Select all

sudo nano /etc/X11/xrdp/xorg.conf
And find the line Option DRMDevice line and change it to
Option "DRMDevice" ""
reboot raspberry pi

reference

--30--

Friday, May 3, 2024

update pidp11 raspberrypi lite os to have gui / desktop

 

  apt update
  apt upgrade
  apt -y install xserver-xorg
  apt -y install raspberrypi-ui-mods
  apt -y install lightdm


--30--

Friday, April 12, 2024

firefox w/o snap ubuntu 22

Snap sucks.  Firefox under snap sucks worse.  

Blocks access via links to local storage, which might seem useful, but is poorly executed with the snap solution.  

When updates are due, locks up firefox and forces a restart at the convenience of the update.  Again seldom happens at a good time.

Rather than install a down rev of ubuntu, the build with a deb install is available, no snap.

 
--30--


Thursday, April 4, 2024

gnome vnc server enable disable, replace

 
vino-server
vnc server for older ubuntu gnome



1) Disable Vino:

       $> gconftool-2 -s /desktop/gnome/remote_access/enabled -t bool false

  2) Kill the running server:

      $> killall vino-server

  3) Run vino-server from the command line - e.g. in gdb:

       $> gdb /usr/libexec/vino-server

  4) Enable Vino again:

       $> gconftool-2 -s /desktop/gnome/remote_access/enabled -t bool true

vino documents


--30--

Thursday, March 28, 2024

Repositories for Raspbian (Debian Stretch) no longer supported



This is a note on the Raspbian release, but probably will need a similar action for any other ones so expired support
/etc/apt/sources.list
comment out "raspbian" entry and add "legacy" one.
-- old
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
-- should be
deb http://legacy.raspbian.org/raspbian/ stretch main contrib non-free rpi

need to do apt-update

--30--

Sunday, March 24, 2024

enable root login via gui on ubuntu 22.04

 
not recommended, but needs a
djustments to not only root login, and unlock that, but GDM (controlling gui login) as well.
 
https://medium.com/@karthiked/enable-root-login-in-ubuntu-ubuntu-22-04-70521607bc7c

--30--

Sunday, March 3, 2024

virtual box install notes debian 22.04

 

 
 notes installing virtualbox from deb

 
  Package libqt5core5a is not installed.
virtualbox-7.0 depends on libqt5dbus5 (>= 5.14.1); however:
  Package libqt5dbus5 is not installed.
 virtualbox-7.0 depends on libqt5gui5 (>= 5.14.1) | libqt5gui5-gles (>= 5.14.1); however:
  Package libqt5gui5 is not installed.
  Package libqt5gui5-gles is not installed.
 virtualbox-7.0 depends on libqt5help5 (>= 5.15.1); however:
  Package libqt5help5 is not installed.
 virtualbox-7.0 depends on libqt5opengl5 (>= 5.0.2); however:
  Package libqt5opengl5 is not installed.
 virtualbox-7.0 depends on libqt5printsupport5 (>= 5.0.2); however:
  Package libqt5printsupport5 is not installed.
 virtualbox-7.0 depends on libqt5widgets5 (>= 5.15.1); however:
  Package libqt5widgets5 is not installed.
 virtualbox-7.0 depends on libqt5x11extras5 (>= 5.6.0); however:
  Package libqt5x11extras5 is not installed.
 virtualbox-7.0 depends on libqt5xml5 (>= 5.0.2); however:
  Package libqt5xml5 is not installed.
 
apt -y install libqt5core5a
apt -y install libqt5core5a
apt -y install libqt5dbus5
apt -y install libqt5gui5
apt -y install libqt5gui5-gles
apt -y install libqt5help5
apt -y install libqt5opengl5
apt -y install libqt5printsupport5
apt -y install libqt5widgets5
apt -y install libqt5x11extras5
apt -y install libqt5xml5
 
dpkg -i virtualbox-7.0_7.0.14-161095~Ubuntu~jammy_amd64.deb
 
optional
 
apt autoremove
 
 
--30-- 
--30--

Saturday, March 2, 2024

ssh cipher KexAlgorithms errors on ssh


Problem with logging in on a system via ssh. 

typical messages are such as:

Unable to negotiate with 192.168.1.196 port 22: no matching cipher found. Their offer: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com

add Cipher stanza to config for the host

Host 192.168.1.196
  Ciphers aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
  KexAlgorithms +diffie-hellman-group1-sha1
  User jws

suggested from



--30--

vnc security failure connecting to vncserver. desktop encryption setting

This seems to fix a problem connecting to Ubuntu.  Encryption is set to a level from other systems to work with vnc viewer, so can be disabled.  Might not be useful if not on a secure channel.  But tested and works.  This goes to the desktop software on the Ubuntu server machine.  


gsettings set org.gnome.Vino require-encryption false

Error message (or such)
Unable to connect to VNC Server using your chosen security setting.


--30--

Friday, February 23, 2024

Wednesday, February 14, 2024

install apache2 on fedora


sudo dnf group install "Web Server"

alternative:

sudo dnf install httpd

sudo firewall-cmd --add-service=http --add-service=https --permanent
sudo firewall-cmd --reload
sudo firewall-cmd --add-service=http --add-service=https


 

--30--

Wednesday, January 31, 2024

ubuntu 22 release notes

 
 
 https://linuxconfig.org/ubuntu-22-04-guide
 
--30--

ubuntu gnome tweaks

 
 
 gnome tweaks
 
 
 Installing Tweak Tool on Ubuntu 20.04 LTS Focal Fossa step by step instructions
$ sudo add-apt-repository universe
$ sudo apt install gnome-tweak-tool
$ gnome-tweaks
$ apt search gnome-shell-extension
$ sudo apt install  gnome-shell-extension-gsconnect
$ sudo apt install $(apt search gnome-shell-extension | grep ^gnome | cut -d / -f1) 
 
 
--30--

notepad++ on ubuntu, alternative, notepadqq

notepad++ installation notes.

create shortcuts to notepad++ of various types
install ubuntu native alternative

https://askubuntu.com/questions/628450/how-do-i-set-notepad-as-an-editor-on-ubuntu

alternative notepadqq

sudo add-apt-repository ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqq
sudo apt-get install notepadqq-gtk



--30--

Thursday, January 25, 2024

Pi-apps / wine on raspberry pi



From page to install notepad++ and run it on the pi
 
wget -qO- https://raw.githubusercontent.com/Botspot/pi-apps/master/install | bash
  
Use the pi-app to install notepad++.  wine will be installed if not installed by installing other x86 app.  Need to change kernel page size to 4k from default 16k, which requires a reboot, then redoing the install.  Wine install starts after that reboot.
 
--30--

Friday, January 19, 2024

Manual set of date / time from command line


Set the timezone for the system using locale setting.  on raspberry pi, use raspi-config option to set it.

Command line as root is (example)

date -s "fri jan 20 1:34 cst"

--30--

usb pi zero dongle and ndis networking


usb pi zero dongle and ndis networking


Notes here about setting up forwarding on the windows box, and route add on the pi zero to get out to the internet.

Another guys blog post on the subject.


--30--

Wednesday, January 3, 2024

How to change raspbian / Raspberry pi OS user name

Change user name
https://raspberrytips.com/change-raspberry-pi-username/
https://www.scaler.com/topics/how-to-change-username-in-linux/

allow ssh login for root via ssh
sudo vi /etc/ssh/sshd_config
#PermitRootLogin prohibit-password
PermitRootLogin yes

set password on root
passwd root 

logout of all instances of old user
ssh to host as root

change user name
usermod -l newusername oldusername 

change user directory
usermod -d /home/new_username -m new_username


--30--