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







++

Monday, April 8, 2024

Printer reset

 Start > RUN > cmd.exe


PRINTER.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



----------------

Windows tips=









++

Linux Tips=



Linux antivirus tips=

ClamAV: https://www.clamav.net/

LMD: https://www.rfxn.com/projects/linux-malware-detect/

Raspirus: https://raspirus.deno.dev/

rkhunter: https://rkhunter.sourceforge.net/

YARA: https://virustotal.github.io/yara/


Social tips=

// OSINT Resources: osintessentials.com randhome.io/blog/2019/01/05/2019-osint-guide aware-online.com/en/osint-tools osintframework.com osintcurio.us - // Tools Used: cleanup.pictures instantusername.com facecheck.id pimeyes.com/en inteltechniques.com twitter.com/search-advanced?lang=en


cleanup.pictures

yandex.com/images

site:instagram.com intext:joe

site:facebook.com intext:joe

"Joe" filetype:pdf OR filetype:xlsx OR filetype:docx

FaceCheck.ID

Pim Eyes

Instant Username Search

haveibeenpwned.com

inteltechniques.com