try gpt4all

https://docs.gpt4all.io/gpt4all_python.html
https://docs.gpt4all.io/gpt4all_cli.html#running-the-cli

sudo apt install python3.11-venv

python3 -m venv $HOME/gpt4all && source $HOME/gpt4all/bin/activate
pip install gpt4all typer

cd gpt4all/
nano gpt4alltest.py

from gpt4all import GPT4All
model = GPT4All(“orca-mini-3b.ggmlv3.q4_0.bin”)
output = model.generate(“The capital of France is “, max_tokens=3)
print(output)

python gpt4alltest.py

cd gpt4all/
wget https://raw.githubusercontent.com/nomic-ai/gpt4all/main/gpt4all-bindings/cli/app.py
python app.py repl

deactivate 

cd $HOME/.cache/gpt4all/
ls

delete docker rules in iptables

based on:
https://www.digitalocean.com/community/tutorials/how-to-list-and-delete-iptables-firewall-rules

list all rules with linenumbers:
iptables -L --line-numbers

list all rules from chain DOCKER-ISOLATION-STAGE-1:
iptables -S DOCKER-ISOLATION-STAGE-1

delete all rules in a chain:
iptables -F DOCKER-ISOLATION-STAGE-1
iptables -X DOCKER-ISOLATION-STAGE-1
iptables -F DOCKER-ISOLATION-STAGE-2
iptables -X DOCKER-ISOLATION-STAGE-2

setup gotify on server, android and pc

based on:

https://www.linux-magazine.com/Issues/2020/230/Gotify
https://www.linux-magazine.com/index.php/layout/set/print/Issues/2020/230/Gotify/(tagID)/75
https://letsfoss.com/setting-up-gotify-in-raspberry-pi/
https://www.linux-magazine.com/Issues/2020/230/Gotify

install the server:

cd /opt
wget https://github.com/gotify/server/releases/download/v2.3.0/gotify-linux-amd64.zip
unzip gotify-linux-amd64.zip -d gotify
cd gotify
chmod +x gotify-linux-amd64
wget -O config.yml https://raw.githubusercontent.com/gotify/server/master/config.example.yml
nano config.yml #to change the port: 80 and pass: admin


ufw allow 8085/tcp
ufw reload

#sudo ./gotify-linux-amd64

create a service script:

nano /lib/systemd/system/gotify.service
[Unit]

Gotify Service (LetsFOSS.com)

Description=Gotify Starter
After=network-online.target
Requires=network-online.target

[Service]
WorkingDirectory=/opt/gotify/
ExecStart=/opt/gotify/gotify-linux-amd64
Restart=always

[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start gotify
systemctl status gotify

install on android:
https://f-droid.org/en/packages/com.github.gotify/

install on firefox:
https://addons.mozilla.org/en-US/firefox/addon/gotify

usage with curl:

curl -X POST "https://IPADDRESS:PORT/message?token=TOKEN" -F "title=This is a title" -F"message=Message goes here"

curl -X POST "http://5.189.170.200:80/message?token=AWNR5t5S6yIvJff" -F "title=This is a title" -F"message=Message goes here"

command line client version:

wget https://github.com/gotify/cli/releases/download/v2.2.3/gotify-cli-linux-amd64
sudo mv gotify-cli-linux-amd64 /usr/bin/gotify
chmod +x /usr/bin/gotify
gotify init
Gotify URL: http://5.189.170.200:80
1
AWNR5t5S6yIvJff
0
2
gotify push "Message goes here"
curl wttr.in/Tokyo?format="%l:+%c+%t+%w+%m" | gotify push

install and setup ezstream

based on:
https://softsolder.com/2018/11/21/icecast-and-ezstream-configuration/

apt install ezstream lame madplay
mkdir /root/Icecast

copy your files over with filezilla into Icecast folder

find /root/Icecast/ -name \*mp3 | sort > /root/Icecast/playlist.m3u

cd /root/Icecast
cp /usr/share/doc/ezstream/examples/ezstream-full.xml /root/Icecast/ezstream-full.xml
nano ezstream-full.xml

cd /root/Icecast && ezstream -c /root/Icecast/ezstream-full.xml &

setup icecast2 with mixxx

install icecast2:
apt install icecast2
cd /etc/icecast2
nano icecast.xml

    <mount type="normal">
        <mount-name>/myusersstream</mount-name>
        <username>myuser</username>
        <password>hackme</password>
        <max-listeners>100</max-listeners>
        <bitrate>128</bitrate>
   </mount>

xmlstarlet edit --inplace -s /icecast -t elem -n mountTMP -v "" \
    -s //mountTMP -t elem -n "mount-name" -v "/mystream" \
    -s //mountTMP -t elem -n "username" -v "userx" \
    -s //mountTMP -t elem -n "password" -v "hackme" \
    -s //mountTMP -t elem -n "max-listeners" -v "100" \
    --insert "/icecast/mountTMP" --type attr -n type -v "normal" \
    -r //mountTMP -v mount \
    icecast.xml

systemctl status icecast2
#systemctl restart icecast2
/etc/init.d/icecast2 reload

ufw allow 8000/tcp
ufw reload

setup mixxx:
apt install mixxx

ctrl+p

Sound Hardware:
output:
Master: hw:03
Headphones: pulse
Input:default

Live Broadcasting:
5.189.170.210
Login:myuser
password:hackme




marketplace ans


apt install php php8.2-cgi

cd /var/wwww/
nano ans.php

<?php 
$myDDHash = $_SERVER['HTTP_X_ANS_VERIFY_HASH']; 
$myDDSalt = "12345"; 

$myCalcHash = sha1($_SERVER['QUERY_STRING'] . $myDDSalt); 
if ($myDDHash == $myCalcHash) {
        echo "Valid ANS Transaction";
 FILE_APPEND);
        $RECEIVER_UUID = $_GET['ReceiverKey'];
//      file_put_contents('the_file.txt', $RECEIVER_UUID, FILE_APPEND);

        $url = 'http://simhost-04a9832d5b53d7400.agni.secondlife.io:1204 /cap/d8b039bf-38ba-9ae1-ef15-d15'
        $options = [
        'http' => [
        'header' => "Content-type: application/x-www-form-urlencoded\r\n",
        'method' => 'POST',
        'content' => $RECEIVER_UUID,
        ],
        ];

        $context = stream_context_create($options);
        $result = file_get_contents($url, false, $context);

} else {
        echo "Invalid ANS Transaction";
}
?>

tmux new -s phpserver
php -S 0.0.0.0:8080 ans.php

ufw allow 8080/tcp
ufw reload

ctrl+b+d

tmux a -t phpserver

nano /var/www/tmuxserver.sh
#!/bin/bash

# Create a new session named "server" and run a command inside the session
tmux new-session -d -s server
tmux send-keys -t server "cd /var/www/ && php -S 0.0.0.0:8080 ans.php" Enter
# Attach to session named "server"
#tmux attach -t server

chmod +x tmuxserver.sh

crontab -e
@reboot /var/www/tmuxserver.sh

https://wiki.secondlife.com/wiki/Direct_Delivery_and_Automatic_Notification_System

Setup debian 12 root server

apt update
apt upgrade
apt autoremove
apt install htop neofetch git tmux tree curl -y
#apt install task-xfce-desktop
#remove xfce desktop:
#apt autoremove xfce4-session
#apt autoremove 'xfce4*'
#apt autoremove libreoffice-*
#apt autoremove cups
#apt autoremove firefox-esr*
#apt autoremove lightdm
#apt autoremove xsane
#apt autoremove avahi-daemon
#reboot

useradd -m -s /bin/bash USERNAME
echo USERNAME:YOURPASSWORD | chpasswd
#deluser --remove-home USERNAME
#killall -u USERNAME
su - USERNAME
bash -c "$(curl -fsSL https://t1p.de/debkiss-no-gui)"
[x]install_sudo
[x]server-docker
sudo usermod -aG docker USERNAME
debkiss

[x]server-kvm
sudo virsh list --all
sudo virsh net-start default
sudo virsh net-autostart default
sudo virsh start d12_s_s01
sudo virsh autostart d12_s_s01
sudo virsh shutdown d12_s_s01
sudo virsh destroy d12_s_s01

in virtual machine:
hostname -I | tr " " "\n"
sudo apt install openssh-server -y

from local machine:
apt install nmap
nmap -sP 192.168.122.0/24
ssh testuser@192.168.122.100

debkiss
[x]server-vpn

#ufw allow 1194/udp
#ufw reload





apt install tuptime

apt install gufw

ufw allow ssh
ufw limit ssh
ufw enable
ufw reload

for dns querys:
ufw allow out 53

setup debian 12 for desktop use

remove panel at the bottom
move panel from top to bottom
window manager>advanced>Wrap workspaces when reaching the screen edge>[]unclick with a dragged window
su -
apt install git curl
exit
bash -c "$(curl -fsSL https://t1p.de/debkiss-no-gui)"
[x]configure-dotfiles
[x]install-sudo
login

debkiss
[x]configure-scripts
[x]configure-xfce-username-lock
[x]configure-xbindkeys-conf-zelotes
[x]configure-theme-icons 
[x]development-cudatext
[x]internet-portmaster
[x]install-all-flatpaks
[x]internet-dropbox
[x]configure-conky-manager
[x]messanger-discord

run conky manager and activate:
[x]infobarv2-2
[x]cal_shortcuts_todo_2
[x]monitor_tcp_port
[x]round_clock


debkiss
[x]server-KVM
(start virtual machine manager and setup your new debian12 image)

debkiss
[x]accessories-veracrypt

sudo apt install gimp gimp-data-extras keepass2 freetuxtv filezilla mixxx font-manager tilix tree geeqie tuptime etherape remmina flameshot chromium doublecmd-common peek gvfs-backends -y

in firefox add addon ublock origin

Settings manager -> Default Applications > utillities > other > tilix

to add more users:
sudo apt install mate-user-admin
mate-user-admin

apt install net-tools
sudo netstat -tuap

install lyrebird:
wget "https://github.com/lyrebird-voice-changer/lyrebird/releases/download/v1.2.0/lyrebird_1.2.0-1.deb" && sudo apt install ./lyrebird_1.2.0-1.deb

compile corrade

To compile the source of 7.115:

install unp and xbuild:

sudo apt-get install unp
sudo apt-get install mono-xbuild 
sudo apt install mono-complete

get the source and compile it:

wget -O corrade7-115-source.zip https://github.com/OS-Development/Corrade-New/archive/a47f2b91ba1436eecd6d02d712eb5b3151ce5d9f.zip  
unp corrade7-115-source.zip  
cd ./Corrade-New*  
xbuild Corrade.sln /p:Configuration=Release 

create folder structure:

cd Corrade/bin/Release
mkdir -pv logs/{region,local,im,groupchat}
mkdir databases
mkdir cache

edit the config file:

nano Corrade.ini

start it:

mono-service -l:Corrade.exe.lock Corrade.exe