Posts Tagged ‘22.04’

#!/bin/bash
# TYPE: Bash Shell script.
# PURPOSE: This bash shell script allows you to easily install new GNU/Linux kernels in Ubuntu 22.04
# REQUIRES: bash, Ubuntu 22.04 64-bit or newer
# MODIFICATION DATE: 2023/1/14
# Updated by: Mark Rijckenberg
cd /tmp
sudo wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh -O /usr/local/bin/ubuntu-mainline-kernel.sh
sudo chmod a+x /usr/local/bin/ubuntu-mainline-kernel.sh
/usr/local/bin/ubuntu-mainline-kernel.sh -l
sudo /usr/local/bin/ubuntu-mainline-kernel.sh -i
#!/bin/bash
# This script allows you to permanently enable Face ID/facial recognition instead of
# sudo password when using sudo commands
#  Based on following guide:  https://itsfoss.com/face-unlock-ubuntu/
sudo add-apt-repository ppa:boltgolt/howdy
sudo apt update
sudo apt install howdy python3-pip v4l-utils
sudo pip3 install mvt opencv-python
#######################################################################
# add correct videocamera device into /lib/security/howdy/config.ini 
DEVICENAME=`v4l2-ctl --list-devices |grep dev |head -n 1` 
echo $DEVICENAME

# configure howdy to set device_path to value stored in variable DEVICENAME
# for example: devicename might be /dev/video0
sudo howdy config

# video section of /lib/security/howdy/config.ini file could contain following lines:

# The path of the device to capture frames from 
#device_path = /dev/video0


####################################################################### 
# Use the following command to associate a face to the currently logged in user:
sudo howdy add
# List all the known face models for a user
sudo howdy list

List of printers supported by foo2zjs printer driver:

https://foo2zjs.linkevich.net/

Execute following bash shell script in a GNU/Linux Terminal:

#!/usr/bin/env bash
# Author: Mark Rijckenberg
# Last modification date: 2024/3/23

# Copy-paste following Terminal commands one by one into the Terminal:
# procedure to install printer driver for HP Laserjet 1020 without needing access to openprinting.org website:
# URL=http://sourceforge.net/projects/hplip/files/latest/download?source=files

# List of printers supported by foo2zjs printer driver:
# https://foo2zjs.linkevich.net/

sudo apt-get update
sudo apt-get remove hplip cups-filters cups hplip-data 
# Temporarily uninstall system-config-printer-udev to avoid conflict with foo2zjs:
sudo apt-get remove system-config-printer-udev
sudo apt-get remove system-config-printer
sudo apt-get install build-essential tix groff dc axel cups cups-filters unp vim
sudo apt-get install printer-driver-foo2zjs
sudo ln -s /usr/bin/vim /usr/bin/ex
sudo rm -rf /usr/share/hplip
cd /tmp
rm foo2zjs*
axel https://foo2zjs.linkevich.net/foo2zjs/foo2zjs.tar.gz
unp foo2zjs.tar.gz
cd foo2zjs/
make
./getweb 1020 # Get HP LaserJet 1020 firmware file
sudo make install
sudo make install-hotplug
sudo apt-get install system-config-printer-udev
sudo apt-get install system-config-printer 
# Unplug and re-plug the USB printer to the PC
# add new HP Laserjet 1020 printer via system-config-printer tool 
# and choose to use foo2zjs foomatic printer driver :
system-config-printer
# check /var/log/syslog for any errors related to foo2zjs driver:
tail /var/log/syslog
# then power cycle both your PC and your HP printer
# then retest printing using the newly installed foo2zjs driver 

# Troubleshooting

# If the previous procedure does not allow Ubuntu to detect the printer using
# a USB connection, then I suggest

# turning off the printer
# disconnect the printer's USB cable from the PC
# reconnect the printer's USB cable to a different USB port on the PC
# turn the printer back on
# rerun "system-config-printer" (last command in previous procedure)

# This procedure should solve the hplip driver error "Device Communication Error, code 5012"
# Source: https://answers.launchpad.net/hplip/+question/249391

Then power cycle both your PC and your HP printer Then retest printing using the newly installed foo2zjs driver This procedure should solve the hplip driver error “Device Communication Error, code 5012” Source: https://answers.launchpad.net/hplip/+question/249391

Similar instructions for installing printer drivers for the HP Laserjet P1005 can be found here:

https://answers.launchpad.net/ubuntu/+source/hplip/+question/269457

##########################################################################################################
# install eid card reader middleware - replace codename (for example: trusty) with right Ubuntu codename
# Supported CCID readers: http://pcsclite.alioth.debian.org/ccid/section.html
##########################################################################################################
# bash shell script
# Prerequisites: Ubuntu 22.04 64-bit or newer (LiveUSB session or installed on HD/SSD),
# newest version of Mozilla Firefox, 
# Ubuntu packages in procedure below
# Not compatible with Debian
# install prerequisites for compiling eid-mw from Github
# Supported CCID readers: http://pcsclite.alioth.debian.org/ccid/section.html
# Last modification date: 2023/6/9

sudo rm /etc/apt/sources.list.d/eid.list
sudo touch /etc/apt/sources.list.d/eid.list
sudo sh -c 'echo "deb http://files.eid.belgium.be/debian jammy main" >> /etc/apt/sources.list.d/eid.list'
sudo sh -c 'echo "deb http://files2.eid.belgium.be/debian jammy main" >> /etc/apt/sources.list.d/eid.list'
cd
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 63F7D4AFF6D61D45 A35743EA6773D225 F9FDA6BED73CDC22 3B4FE6ACC0B21F32 4E940D7FDD7FB8CC A040830F7FAC5991 16126D3A3E5C1192 
# obsolete: sudo DEBIAN_FRONTEND=noninteractive add-apt-repository ppa:gertvdijk/opensc-backports
sudo DEBIAN_FRONTEND=noninteractive apt remove --purge beid*
sudo DEBIAN_FRONTEND=noninteractive apt update
sudo DEBIAN_FRONTEND=noninteractive apt install aptitude
sudo DEBIAN_FRONTEND=noninteractive apt install usbutils pciutils eid-mw eid-viewer apt firefox pcscd default-jre 
sudo DEBIAN_FRONTEND=noninteractive apt install opensc libacsccid1 libccid 
sudo DEBIAN_FRONTEND=noninteractive apt install libpcsclite1 libpcsclite-dev pcsc-tools ca-certificates libtool autoconf 
sudo DEBIAN_FRONTEND=noninteractive apt install automake checkinstall git
sudo DEBIAN_FRONTEND=noninteractive apt install openssl libssl-dev 
sudo DEBIAN_FRONTEND=noninteractive apt install libproxy-dev
sudo DEBIAN_FRONTEND=noninteractive apt install libxml2-dev
sudo DEBIAN_FRONTEND=noninteractive apt install libcurl4-openssl-dev
sudo DEBIAN_FRONTEND=noninteractive apt install libgtk2.0-0 
sudo DEBIAN_FRONTEND=noninteractive apt install libgtk2.0-dev
sudo DEBIAN_FRONTEND=noninteractive apt install libusb-1.0-0
sudo DEBIAN_FRONTEND=noninteractive apt install libxml++2.6-dev 
sudo DEBIAN_FRONTEND=noninteractive apt install libgtk-3-dev 
sudo DEBIAN_FRONTEND=noninteractive apt install libacr38u libacr38ucontrol0
sudo DEBIAN_FRONTEND=noninteractive apt install gcc-11-base gcc-12-base autoconf autoconf-archive autogen 
# added following missing package dependencies on July 23, 2019:
sudo DEBIAN_FRONTEND=noninteractive apt install libassuan-dev libgpg-error-dev
# added following missing package dependencies on August 9, 2021:
sudo DEBIAN_FRONTEND=noninteractive apt install libbsd-dev libmd-dev
sudo update-pciids
sudo update-usbids
# compile and install newest version of eid-mw using Github
cd
sudo rm -rf eid-mw
# uninstall to avoid conflict with gcc-11-base and gcc-12-base packages:
sudo apt purge gcc-7-base
sudo apt purge gcc-8-base 
sudo apt purge gcc-9-base
sudo apt purge gcc-10-base
git clone https://github.com/Fedict/eid-mw.git
cd eid-mw/
autoreconf -i
./configure
make
sudo checkinstall
# press 2 and change eid package name to eid-mw and hit <ENTER> key
# press 3 and change version to ISO 8601 date format (YYYYMMDD) and hit <ENTER> key
# Ensure that there are absolutely NO add-on EXTENSIONS installed in the Mozilla Firefox webbrowser
# The add-on PLUGINS like Citrix Receiver for Linux,OpenH264 and Shockwave Flash plugins can remain active in Mozilla Firefox, as they do not seem to interfere with the eid card reader.
# Close all web browser windows. Restart Mozilla Firefox browser and test eid card reader.