Friday, June 14, 2024

rEFInd Boot Manager

 https://sourceforge.net/projects/refind/files/


The refind-bin file contains rEFInd binaries and filesystem driver binaries
for use on an EFI System Partition (ESP) or a Macintosh's OS X root
partition. These binaries have been signed with my own Secure Boot key and
so can be used with shim on Secure Boot systems; however, you'll have to
enroll the key with MokManager.

The refind-bin-gnuefi file is similar to refind-bin, except that the
refind_x64.efi binary was built using GNU-EFI rather than TianoCore EDK2.
This change helps some Arch Linux users who are running into problems
booting some (but not all) 3.7.x and 3.8.x kernels with the stock rEFInd
and some other tools; but this version can't launch BIOS-mode boot loaders.

The refind-cd file contains a bootable CD image file; burn it to an optical
disc and you should be able to boot rEFInd to test it without installing it
on your hard disk. This image is more likely to work on PCs than on Macs;
at least on some early Intel-based Macs, the CD boot process has special
requirements that this image doesn't meet. This image includes four EFI
filesystem drivers, as well as an open source EFI shell that's not included
in the other packages, which can make it useful for some simple emergency
recovery tasks on an EFI computer.

The refind-flashdrive file is similar to the refind-cd file, but it's
intended to create a bootable USB flash drive. You'll need to use the dd
utility in Linux or OS X, or something equivalent to it, to copy the image
file to a USB flash drive.

The refind-src file contains the source code to rEFInd (both the main
program and the EFI filesystem drivers), which you can build yourself. The
build process is based on Linux and uses the TianoCore toolkit or the
GNU-EFI library (for the main rEFInd program) and the TianoCore toolkit
(for the EFI filesystem drivers). It may be possible to adapt the build
process to work under OS X or Windows, but you're on your own if you try
this.

The binary RPM file can be installed directly on Red Hat, OpenSUSE, and
similar RPM-based distributions. It contains binaries that are equivalent
to those of the binary zip file, although they were built separately. Upon
installation, it copies the files to the ESP and registers rEFInd as the
default boot loader with the ESP, assuming the computer was booted in EFI
mode.

The binary Debian package is equivalent to the binary RPM file and can be
used in much the same way on Debian, Ubuntu, Mint, and other Linux
distributions that employ Debian packages.

The source RPM file might be buildable directly on an RPM-based
distribution, but distribution-specific details of GNU-EFI and TianoCore
file locations may prevent this from working. You can tweak the refind.spec
file (included in the refind-src file) and/or the various Makefiles (as
described in the BUILDING.txt file in the refind-src file) as necessary for
your platform.



The game of the day =


https://store.steampowered.com/app/2073850/THE_FINALS/




https://www.homemade-circuits.com/spy-bug-circuits/

https://store.steampowered.com/app/1962663/Call_of_Duty_Warzone/

https://store.steampowered.com/app/1674590/Histera/

https://store.steampowered.com/app/2087030/Shatterline/

https://www.ubisoft.com/en-gb/game/xdefiant

https://www.roblox.com/games/5938036553/FRONTLINES#!/about

https://github.com/dylanaraps

https://kisslinux.github.io/

Wednesday, May 22, 2024

Arch Linux bspwm install

sudo pacman -S bspwm sxhkd polybar picom dmenu dunst nitrogen alacritty thunar

 cd $HOME/.config

mkdir bspwm sxhkd polybar picom dunst

cp /usr/share/doc/bspwm/examples/bspwmrc bspwm/

cp /usr/share/doc/bspwm/examples/sxhkdrc sxhkd/

cp /etc/xdg/picom.conf picom/

cp /etc/polybar/config.ini polybar/

cp /etc/dunst/dunstrc dunst/

cd bspwm/

ls

chmod +x bspwmrc

nano bspwmrc

[delete bspc rule lines...add next lines...]

sxhkd &

picom --config $HOME/.config/picom/picom.conf &

nitrogen --restore &

dunst &

polybar &


[save and exit nano by press CTRL+O, enter, CTRL+X]


cd..

ls

cd sxhkd/

ls

nano sxhkdrc


[change next lines to...]


super + Return

        alacritty 


super + d

        dmenu_run


super + w

        firefox


super + e

        thunar


[save and exit nano by press CTRL+O, enter, CTRL+X]


https://makingcircuits.com/blog/spy-circuits-fm-bug-transmitters/

https://makingcircuits.com/blog/20-best-ic-741-based-diy-circuits/

https://electronics-diy.com/micro-transmitter-bug.php



Ne dozvoli da ono gde si sada postane plafon onoga što možeš postići!


Saturday, May 18, 2024

Weston (Wayland) on Void Linux

 https://store.comet.rs/Catalogue/Product/5600028/#e30%3D

**

sudo xbps-install weston
sudo usermod -a -G weston-launch `whoami`

Reboot to update the group assignment.

Now we can prepare the config. Let's create the file:

mkdir -p ~/.config
nano ~/.config/weston.ini

Then put something like this below. Change as you need.

[core]
xwayland=true

[keyboard]
keymap_layout=gb

[output]
name=LVDS1
mode=preferred
#mode=1680x1050
#transform=90

[launcher]
icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
path=/usr/bin/weston-terminal

[launcher]
icon=/usr/share/icons/hicolor/24x24/apps/firefox.png
path=/usr/bin/firefox

Then run from a tty:

weston-launch

If any error is shown for XDG_RUNTIME_DIR, then run:

mkdir -p /tmp/westontmp
export XDG_RUNTIME_DIR=/tmp/westontmp

Press Ctrl+Alt+Backspace to logout. Super+Tab to switch between apps. Other basic keyboard shortcuts here.

Ref:












Tuesday, May 14, 2024

Tutorial = How to install LXQt on Void Linux

 root

voidlinux


void-installer

xbps-install void-repo-nonfree void-repo-multilib void-repo-multilib-nonfree

xbps-install -Su

xbps-install -S xorg nano htop lightdm

xbps-install -S pipewire wireplumber 

[in case that sound not working= ]

xbps-install -S pulseaudio pavucontrol 

xbps-install -S pipewire-devel alsa-pipewire


xbps-install -S lxqt


xbps-install -S firefox

xbps-install -S libreoffice pcmanfm lxterminal




If startx not working, just try this=


cp /etc/X11/xinit/xinitrc ~/.xinitrc

nano ~/.xinitrc


startlxqt &
exec dbus-launch --exit-with-session



[CTRL] + O

[Enter]

[CTRL] + X

...Done... Enjoy in your new system! 

...

Oh, you must to do this as #root first=

ln -s /etc/sv/lightdm /var/service/

ln -s /etc/sv/lightdm /var/service/lightdm

xbps-install dbus

ln -s /etc/sv/dbus /var/service/dbus

xbps-install -S acpid

ln -s /etc/sv/acpid /var/service/acpid

xbps-install seatd

usermod -aG _seatd $USER

ln -s /etc/sv/seatd /var/service/seatd




startx


MORE TIPS=

Use sudo for ordinary user, or su to take root rights.

You can use sudo poweroff command to shutdown system. Or just poweroff, if you are a root.

You can use sudo reboot command to reboot system. Or just reboot, if you are a root.




Friday, May 3, 2024

Smart cards on Linux





 [[opensc card inspection


$ pcsc_scan


$ pkcs11-tool --list-slots


$ pkcs11-tool --list-objects --login


[[atomic operations, download certificate from a smartcard and show its content


$ pkcs11-tool --list-object --id 01 --type cert \

    --output-file cert.der


$ openssl x509 -inform DER -in cert.der > cert.pem


$ openssl x509 -inform DER -in cert.pem -text


$ pkcs11-tool --sign -id 01 --mechanism RSA-PKCS --login \

    --input-file data --output-file data.sig


$ openssl rsautl -verify -certin -inkey cert.pem \

    -in data.sig


[[openssh client

[[List public keys on the smart card in OpenSSH format


$ ssh-keygen -D /usr/lib64/pkcs11/opensc-pkcs11.so

ssh-rsa AAAAB3..............................Q==


[[Install the keys to the server

[[Connect to server


$ ssh -I /usr/lib64/pkcs11/opensc-pkcs11.so example.com

Enter PIN for 'PIV_II (PIV Card Holder pin)':


[[Store permanent configuration in client configuration


$ cat ~/.ssh/config

Host example.com

  PKCS11Provider /usr/lib64/pkcs11/opensc-pkcs11.so

[[RSA keys only (OpenSSH bug #2474)


[[OpenSSH Client (SSH-Agent)


[[Start ssh-agent (does not work with gnome-keyring):


$test -e "$SSH_AUTH_SOCK" || eval $(ssh-agent)


[[Add a card:


$ ssh-add -s /usr/lib64/pkcs11/opensc-pkcs11.so

Enter passphrase for PKCS#11:

Card added: /usr/lib64/pkcs11/opensc-pkcs11.so


[[Connect to server:


$ssh example.com


[[SUDO (PAM_SSH_AGENT_AUTH)


[[Set up ssh-agent as in previous slide


[[Store public key in /etc/security/authorized_keys


[[Configure sudo through pam:


$cat /etc/pam.d/sudo

...

auth sufficient pam_ssh_agent_auth.so \

     file=/etc/security/authorized_keys


[[Even on remote hosts (forwarded ssh-agent)


[[TLS Client authentication


[[Firefox > Preferences > Privacy&Security > Security > Security Devices > Load


[[Concurrent access


[[Configuration opensc.conf


drivers = PIV-II; # speed up detection and avoid mismatches

reader_driver pcsc {

    disconnect_action=leave; # do not break concurrent sessions

}


[[OpenSSH ssh-agent: long-running session

eval "ssh-agent" && ssh-add -s /usr/lib64/opensc-pkcs11.so

ssh example.com


[[pkcs11-tool: ad-hoc commands


pkcs11-tool --login --sign --id02 -mRSA-PKCS -i data -o data.sig


[[Some application require exclusive access (GnuPG sdaemon) :(

[[More applet on a single card = problems


[[GNUPG


[[Email,git commit signing

[[GnuPG's scdaemon

 [not using PKCS#11 to access OpenPGP applets

 [directly accessing PC/SC with exclusive access

 [preventing other application to use the card

[[gnupg-pkcs11-scd

 [Accessing card using PKCS#11

 [More complicated configuration


[[Troubleshooting smartcard


[[Is the reader/USB device detected?

$ lsusb


[[Is the card detected in pcsc-lite?

$ pcsc_scan


[[PCSC trace (APDU messages)

$ systemctl stop pcscd

$ sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color


[[Is the card detected in OpenSC?

 pkcs11-tool -L


[[PKCS#11 level trace:


 export PKCS11SPY=/usr/lib64/pkcs11/opensc-pkcs11.so

 pkcs11-tool -L /usr/lib64/pkcs11-spy.so


[[OpenSC debug logs:

OPENSC_DEBUG=9 pkcs11-tool -L


MORE TIPS=

Some older versions of Adobe software can work in Wine (PlayOnLinux, Bottles) under Linux as well as on Windows.

Modern gaming is possible on Linux (Proton, Lutris, Steam), some games are much better than on Windows.

Firefox, Thunderbird, Libre Office, Inkscape, Gimp, YouTube, FreeTube, VLC, Zoom, Microsoft Teams, OBS, Microsoft Visual Studio Code, Kdnlive, OpenShot, Shotcut, Flowblade, Lightworks, Blender, Cinelerra GG Infinity, DaVinci Resolve, VidCutter, can working on Linux in the latest and greatest versions.

You can bury Windows without any regrets. Losses are minimal. The advantages of Linux are very big today.

After all, you can install full blooded Windows 11 in KVM or Oracle Virtual Box under Linux.

Windows 11 working much better under Linux in virtual environment.



 


Thursday, April 11, 2024

Void Linux BASE ISO with Enlightenment DE

 The Base ISO usage=


root

voidlinux


void-installer

xbps-install void-repo-nonfree void-repo-multilib void-repo-multilib-nonfree

xbps-install -Su

xbps-install -S xorg nano htop lightdm terminology kitty

xbps-install -S pipewire wireplumber 

[if you use lxqt instead enlightenment, or in case that sound not working ]

xbps-install -S pulseaudio pavucontrol 

xbps-install -S pipewire-devel alsa-pipewire

[if you use lxqt instead enlightenment just type this=]

xbps-install -S lxqt

[if you use enlightenment just put this=]

xbps-install -S enlightenment

xbps-install -S firefox

xbps-install -S libreoffice pcmanfm nitrogen lxterminal




If startx not working, just try this=


cp /etc/X11/xinit/xinitrc ~/.xinitrc

nano ~/.xinitrc


[in case of lxqt just add line=]

startlxqt &
exec dbus-launch --exit-with-session


[in case of enlightenment just add line=]

exec enlightenment_start


[CTRL] + O

[Enter]

[CTRL] + X

...Done... Enjoy in your new system! 

...

Oh, you must to do this as #root first=

ln -s /etc/sv/lightdm /var/service/

ln -s /etc/sv/lightdm /var/service/lightdm

xbps-install dbus

ln -s /etc/sv/dbus /var/service/dbus

xbps-install -S acpid

ln -s /etc/sv/acpid /var/service/acpid

xbps-install seatd

usermod -aG _seatd $USER

ln -s /etc/sv/seatd /var/service/seatd




startx


MORE TIPS=

Use sudo for ordinary user, or su to take root rights.

You can use poweroff command to shutdown system, if you are a root.




Congratulations, you have created a minimal Void Linux installation that can do everything.



Firefox + Youtube = 892 MB RAM usage




HOW TO PLACE APPLICATION ICON- SHORTCUTS ON DESKTOP? =



You can do this copy/paste like so:


Find the file in /user/share/applications/

Right-click the file in question

Select Copy

Navigate back to /home/USERNAME/Desktop

Right click in the right pane of the file manager

Select Paste.




LXQt 0.8.0 Desktop Environment now available

The LXQt desktop environment has been packaged by yours truly and we’ve now got the latest available version: 0.8.0.

To install a complete LXQt package with full functionality:

# xbps-install -S lxqt

Use startlxqt to start it via ~/.xinitrc or select it in your Display Manager.






Electro tips=

Tuesday, April 9, 2024

Tajna jednog admina

 Start > RUN > cmd.exe


SPAS.cmd


echo off

color b0

net stop spooler

echo SACEKAJTE DA SE PROZOR SAM ZATVORI ! uradjeno 50 procenata

ping 127.0.0.1 -n 8 > nul

net start spooler

echo MOLIM JOS MALO SACEKAJTE DA SE PROZOR SAM ZATVORI ! uradjeno 99 procenata

ping 127.0.0.1 -n 8 > nul

taskkill /F /IM msedge.exe

taskkill /F /IM MicrosoftEdgeUpdate.exe

taskkill /F /IM Cortana.exe

taskkill /F /IM RuntimeBroker.exe

taskkill /F /IM AdobeCollabSync.exe

taskkill /F /IM armsvc.exe

taskkill /F /IM SearchFilterHost.exe

taskkill /F /IM SearchProtocolHost.exe

taskkill /F /IM SearchIndexer.exe

taskkill /F /IM chrome.exe

taskkill /F /IM YourPhone.exe

del C:\Windows\prefetch\* /s /q

del C:\Windows\Temp\* /s /q

del %LOCALAPPDATA%\Temp\* /s /q

del C:\Windows\SoftwareDistribution\Download\* /s /q

ping 127.0.0.1 -n 3 > nul








Libre Office slow opening solution=

Tools - Options - LibreOffice - View and unticking Force Skia software rendering, and everything else:




Debian minimal install with Enlightenment desktop environment

Just download Debian netinstall 666MB ISO, and you ready to fly...

Uncheck all options during installation of Debian!

Unselect all check boxes during installation of Debian!


su

apt update

apt upgrade

apt update

apt install htop nano pipewire

apt install xorg xserver-xorg-core xinit

dpkg-reconfigure keyboard-configuration

apt install enlightenment

apt install firefox-esr libreoffice

apt install lightdm

dpkg-reconfigure lightdm

timedatectl set-timezone Europe/Belgrade

useradd joe

passwd joe



*The knowledge base=

 https://wiki.debian.org/Xorg#Installing_Xorg


https://wiki.debian.org/LightDM


https://linuxize.com/post/how-to-set-or-change-timezone-on-debian-10/


https://wiki.debian.org/TimeZoneChanges


https://www.linux.com/training-tutorials/how-manage-application-launchers-enlightenment-bodhi-linux/


https://linovox.com/add-and-delete-users-in-debian/


HOW TO PLACE APPLICATION ICON- SHORTCUTS ON DESKTOP? =



You can do this copy/paste like so:


Find the file in /user/share/applications/

Right-click the file in question

Select Copy

Navigate back to /home/USERNAME/Desktop

Right click in the right pane of the file manager

Select Paste.


595MB RAM usage for Firefox +YouTube =



Thought of the day:
Don't fix broken things, make them from scratch.
With a good foundation.


MORE TIPS FOR DEBIAN/UBUNTU=

Update System and Drivers

sudo apt update

sudo apt upgrade

Update Intel Graphics Drivers

sudo apt install --install-recommends linux-generic

Install and Configure intel-media-driver

sudo apt install intel-media-va-driver-non-free

Configure Hardware Acceleration in Your Browser

In firefox

  • Type about:config in the address bar and press Enter

  • Search for media.ffmpeg.vaapi.enabled and set it to true

  • Ensure layers.acceleration.force-enabled is set to true







++