Thursday, July 7, 2022

Alpine Linux i3 installation

The Alpine Linux installation ISO uses root as the default user and an empty password. In order to login, just enter the username root and press return.



Post installation commands:

# apk update

# apk add xf86-video-intel xf86-input-intel xf86-video-fbdev xf86-video-vesa

# apk add terminus-font xrandr

# apk add dbus doas nano

# dbus-uuidgen > /var/lib/dbus/machine-id

# rc-update add dbus 



# nano /etc/doas.d/doas.conf

Add the following line and save the file  (ctrl+O, crl+X):

permit persist :wheel



# setup-xorg-base 

# apk add i3wm i3status xterm firefox-esr geany thunar pulseaudio pavucontrol

# apk add icu-data-full                     ----►(for non-unicode locales)

# adduser joe

# adduser joe wheel

# addgroup joe input 

# addgroup joe video

# adduser joe video

# adduser joe audio

# adduser root video

# adduser root audio

# rc-service dbus start

# rc-update add dbus

# rc-update add udev


$ pulseaudio -k

$ pulseaudio --start

$ pavucontrol

xrandr 

xrandr -s 1024x768

$ startx /usr/bin/i3

Press enter for the first time to select Win mod key, when you enter in i3 environment first time.

Important notice: Write on paper file path to i3 config file !


In i3 config just add:

 

In my case you have for instance file:

/home/joe/.config/i3

In that file just add following lines:


bindsym $mod+Shift+t exec xterm

bindsym $mod+Shift+w exec firefox

bindsym $mod+Shift+d exec geany

bindsym $mod+Shift+f exec thunar



So it works like...

If you want to start terminal press Win+Shift+t,

If you want to start firefox press Win+Shift+w,

If you want to start file manager press Win+Shift+f,

If you want to start text editor press Win+Shift+d,

If you want to close selected window press Win+Shift+d, that is like ALT+F4 (but alt+f4 not working in i3).

If you want to close i3wm, just press Win+Shift+e.


Isn't it sweet ?





Optional part:


But nitrogen is not in repositories ?
# apk add nitrogen
add line to /home/joe/.config/i3:
exec --no-startup-id nitrogen --set-auto /path/pic1.jpg --head=0 && nitrogen --set-auto /path/pic2.png --head=1

The Negative aspects of Alpine Linux are:

1.) Repository has not "nitrogen".
2.) ImageApp not working.

Instead of ImageApp you can use better solution = it is FLATPAK.
FLATPAK can install almost everything.



Lightdm exist in repositories, that is awesome :)

And last settings for loging Lightdm stuff:

# apk add lightdm lightdm-gtk-greeter

# rc-update add lightdm

# echo "exec startx /usr/bin/i3" >> ~/.xinitrc

# rc-service lightdm start


Select user joe from lightdm form and enter proper user password for joe !

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

That is i3wm installation, if you like rich XFCE try this:

https://beogradsko.blogspot.com/2022/06/alpine-linux-is-best-for-now.html

Docker Tips:

https://www.codeproject.com/Tips/5336563/Run-Database-and-GUI-Clients-in-Docker

https://www.codeproject.com/Articles/5336578/Lightweight-Carousel-Using-only-HTML-CSS-JavaScrip

https://www.codeproject.com/Articles/5336369/Porting-a-Large-Project-from-Windows-to-Linux

Wednesday, July 6, 2022

Fedora xfce idle RAM usage ~ 600 MB

 My suggestion to you, avoid Fedora if you can !


Beware: ☺► FreeTube ImageApp and RPM install of FreeTube "working", but reproduction of video and audio not working on Fedora.

Fedora is not good and easy like some Debian based distros. Some apps not working, panel bar sometimes flickering!

Please compare 576MB of idle RAM usage in Fedora and 280MB idle RAM usage in Void Linux !

Both distros use XFCE, and what a difference !

Fedora is overbloated Linux distro after all.


MORE TIPS:

Monday, July 4, 2022

ARCH LINUX for beginners

XFCE instalacija na ARCH Linuxu:

Evo uputstva na engleskom, koji verovatno svi razumete. Uputstvo sam napravio na engleskom da što veći broj ljudi razume koliko je u stvari instalacija Arch Linux-a jednostavna, zaboravite na Arch Wiki.

First load Arch Linux, then start following command:

archinstall


You must have at least 3 partitions, like:
/root  100G            ◄----ext4
/boot  * 512M    ◄----ext4
/swap 4G            ◄-----linux swap

When you create partition be sure to select "dos" option at first.
Warning, partition "/boot" must be set as [boot], if everything is fine then you must see * asterisk near boot partition.

If you not set /boot partition as boot, grub will not working properly.

After creating of partitions, you must to select proper partition and confirm that.

After "installing applications", you must to rotate down the mouse wheel to continue with installer, do not leave or close installer until all stuff was installed !

During installation process you must to choose "pulseaudio", that is very important !

After successful completion of "archinstall" script and reboot, you must to do post-installation steps:

sudo pacman -Syyu

sudo pacman -S nano doas


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

nano /etc/doas.d/doas.conf

Add the following line and save the file (ctrl+O, Enter, ctrl+X):

permit persist :wheel

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

sudo pacman -S elogind polkit-elogind

sudo pacman -S xorg xfce4 xfce4-terminal xfce4-screensaver lightdm-gtk-greeter dbus

sudo pacman -S xfce4-pulseaudio-plugin

sudo pacman -S pavucontrol firefox

sudo pacman -S xfce4-xkb-plugin

reboot


Kada instalirate xfce4-xkb-plugin, onda možete šaltovati jezike, ako ste prethodno u Settings - Keyboard - Layouts namestili layoute za engleski, srpsku cirilicu i latinicu.

Pre uportebe treba da dodate Keyboard Layout Switcher u Panel, desni taster miša na Panel, pa add to Panel.

Nakon toga je vreme da podesimo splash formu za logovanje na sistem ili "Lightdm":

Tu se unosi username i password pre ulaska u desktop...

Loging settings - Lightdm settings:

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

sudo nano /etc/lightdm/lightdm.conf

just uncomment, remove # at line:

greeter-session=lightdm-gtk-greeter

make sure that =lightdm-gtk-greeter

after change, just press  (ctrl+O, Enter, ctrl+X) to save it.

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

lightdm --test-mode --debug

Very important command:

sudo systemctl enable lightdm -f

Following command is not necesary:

lightdm --test-mode --debug

More useful tips:

https://www.addictivetips.com/ubuntu-linux-tips/set-up-lightdm-on-arch-linux/

Ovde je ukratko objašnjen ceo postupak instalacije Arch linux-a, kao što možete primetiti uopšte nije tako komplikovano.

Sada priznajte, da li ste na nekom drugom web sajtu videli ovako jednostavan postupak, čak i na ArchWiki je ultra komplikovano i konfuzno objašnjeno kako instalirati Arch.

Evo dokaz da Arch instalacija može biti ultra jednostavna.

Koristio sam XFCE jer je najsličniji Windows-u koji koristi većina ne-Linux korisnika, odnosno, običnih korisnika kompjutera.

Imate sve od zvuka, mreže, firefox, sve kompletno i funkcioniše, sve ostalo možete sami instalirati koristeći pacman -S (naziv-aplikacije).

 

Arch Linux RAM usage in XFCE:

Arch + xfce + firefox + youtube = 1.03 GB 


Arch + xfce + freetube = 734 MB




More tips:

yaourt -Syua

https://archlinux.fr/yaourt-en

https://www.linuxcapable.com/how-to-install-clamav-on-arch-linux/

https://itsfoss.com/best-xfce-themes/

https://www.howtogeek.com/814478/how-to-change-the-rdp-port-on-windows-10/



Anydesk is available for Arch Linux users. However, there are no download instructions on the Anydesk website. Instead, Arch Linux users will need to rely on the Arch Linux AUR.


To start the installation, you will need to install the Trizen AUR helper. Install Trizen with the commands below.


sudo pacman -S git base-devel

git clone https://github.com/trizen/trizen

cd trizen

makepkg -sri


After installing the Trizen AUR helper, you will be able to install Anydesk on Arch Linux with the following command.

trizen -S anydesk-bin


Windows 10+11 Sound Keyboard Application

Arch Linux Serbia

Користите ћирилицу Караџића Вука !  Линукс на ћирилици је најбољи !

Friday, July 1, 2022

Archbang i3

 Archbang i3 stuff:


sudo pacman -Syyu

sudo pacman -S htop

sudo pacman -S nano

If you have problems with keyrings - just try link:

https://dev.to/mattdark/signature-is-unknown-trust-arch-linux-on-vbox-3452

For download mirrors select some close and big country, small countries can be bloated or corrupted.

https://archbang.org/guide/

https://www.cyberciti.biz/faq/how-to-install-htop-on-arch-linux/

https://wiki.archlinux.org/title/pacman

https://opensource.com/article/18/8/getting-started-i3-window-manager#:~:text=Finally%2C%20to%20end%20your%20session,exit%20or%20X%20to%20cancel.

https://wiki.archlinux.org/title/xrandr

https://dev.to/mattdark/signature-is-unknown-trust-arch-linux-on-vbox-3452

Super key is windows key in i3:

https://help.ubuntu.com/stable/ubuntu-help/keyboard-key-super.html.en

https://sourceforge.net/projects/bridgelinux/



+

+

HTML to PDF

https://www.phplift.net/how-to-create-pdfs-from-html-with-php-and-dompdf

Windows 10 and 11 disable Superfetch - SysMain:

https://www.howtogeek.com/811043/disable-superfetch/

Credit:

https://www.howtogeek.com/763825/how-to-get-live-wallpapers-on-windows-11/





https://www.howtogeek.com/742187/how-to-remove-section-and-page-breaks-in-microsoft-word/


https://www.howtogeek.com/811619/how-to-make-system-image-backups-on-windows-11/


https://www.howtogeek.com/816919/microsoft-office-delays-blocking-dangerous-downloaded-macros/


https://www.howtogeek.com/809793/how-to-create-your-own-bibliography-template-in-microsoft-word/


https://www.howtogeek.com/743633/how-to-delete-temporary-files-on-windows-10/


Arch Linux Serbia

By: joel

Thursday, June 30, 2022

LUA to EXE

 https://github.com/ers35/luastatic


https://github.com/rjpcomputing/luaforwindows


https://github.com/rjpcomputing/luaforwindows/releases


https://github.com/neomutt/lua-samples


https://github.com/tshwanedje/lua-samples


https://www.lua.org/pil/1.html


http://www.inf.puc-rio.br/~roberto/book/code.html


https://rspamd.com/doc/lua/examples.html


https://foldit.fandom.com/wiki/Lua_Scripting_Tutorial_(Advanced)


SKIA for Delphi

https://github.com/skia4delphi/skia4delphi/releases/tag/v3.4.0


SVG Editors:

https://www.justinmind.com/blog/best-free-paid-svg-editors-download-online/



BSPWM installing:

https://www.instructables.com/Bspwm-Installation-and-Configuration/

https://www.maketecheasier.com/install-configure-bspwm/

https://wiki.archlinux.org/title/bspwm


Python on Linux:

https://linuxhint.com/run-python-scripts-linux/

https://introcs.cs.princeton.edu/python/linux3/



Archbang i3 stuff:


sudo pacman -Syyu

sudo pacman -S htop

sudo pacman -S nano

If you have problems with keyrings try nex link:

https://dev.to/mattdark/signature-is-unknown-trust-arch-linux-on-vbox-3452

For download mirrors select some close and big country, small countries can be bloated or corrupted.

https://archbang.org/guide/

https://www.cyberciti.biz/faq/how-to-install-htop-on-arch-linux/

https://wiki.archlinux.org/title/pacman

https://opensource.com/article/18/8/getting-started-i3-window-manager#:~:text=Finally%2C%20to%20end%20your%20session,exit%20or%20X%20to%20cancel.

https://wiki.archlinux.org/title/xrandr

https://dev.to/mattdark/signature-is-unknown-trust-arch-linux-on-vbox-3452

Super key is windows key in i3:

https://help.ubuntu.com/stable/ubuntu-help/keyboard-key-super.html.en

https://sourceforge.net/projects/bridgelinux/


Arch Linux Serbia

Monday, June 27, 2022

Alpine Linux is the best for now

Please do not experiment with Alpine, there is a wrong way to install Alpine, and the right way like this =

BIOS TIPS for beginners=

The Alpine Linux installation ISO uses root as the default user and an empty password. In order to login, just enter the username root and press return.


[Initial password for root not exists, just press enter. There is no root password for the first time in Alpine Linux.]

[You can setup root and user passwords later during the setup process.]

[type = root]
[login as root for the first time] 

[You can use su command to gain root access]

su

setup-alpine


us
us
localhost
eth0
UTC
none
none
1
none
busybox
sda
sys
y


reboot

[remove installation DVD or Flash device]

[type = root]

[login as root for the first time]


setup-desktop


[ select XFCE and enjoy! ]

[ or you can try manual method without script... ]

apk add nano doas 




nano /etc/apk/repositories

[   Please remove # before all mirorr paths, and save the file  (ctrl+O, ctrl+X)   ]

/etc/apk/repositories must look like this (or you can add these lines to the existing ones) = 

http://dl-cdn.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing




apk update

adduser joe

adduser joe wheel

nano /etc/doas.d/doas.conf

Add the following line and save the file  (ctrl+O, ctrl+X):

permit persist :wheel


apk update

setup-xorg-base

apk add elogind polkit-elogind

adduser root video
adduser root input
adduser root games

adduser joe video
adduser joe input
adduser joe games


apk add xfce4 xfce4-terminal xfce4-screensaver lightdm-gtk-greeter dbus

rc-service dbus start

rc-update add dbus

rc-update add udev

rc-update add lightdm

rc-service lightdm start


[for the next command you must be simple user, for that type exit command to exit from root]

exit

[if you have previously created user  ClintEastwood, than type user ClintEastwood, and password for that user]

[now you can see $ sign]


$ echo "exec startxfce4" >> ~/.xinitrc


[that  echo command must be deployed for every user]

su

reboot


startx

[instead of sudo you can use doas command to start commands as root while you are login as simple user]

Congratulations, you have successfully installed Alpine Linux.
Now it remains to take care of the sound.


Alpine Linux Sound working if you try this:


apk add pulseaudio htop neofetch xdg-utils

apk add xfce4-pulseaudio-plugin

apk add pavucontrol

apk add xfce4-xkb-plugin

reboot

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

https://wiki.alpinelinux.org/wiki/Printer_Setup


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

Warningjust type su command for root access. Or you can use doas command before any other command. Doas is similar to sudo.

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

nano /etc/lighdm/lightdm.conf

Do not add the following line and save the file (ctrl+O, ctrl+X):

default-user ClintEastwood

-------

A child from kindergarten can install Alpine linux independently.





Usage of Flatpak on Alpine Linux (in GUI Wizard manner):

FLATPAK AppStore with GUI ON ALPINE:

apk upgrade
apk update 
apk add gnome-software

apk add gnome-software-plugin-flatpak
apk add gnome-apps-extra
apk add gnome-games-collection
apk add pipewire wireplumber gst-plugin-pipewire
rc-update add apk-polkit-server default && rc-service apk-polkit-server start

setup-desktop gnome

reboot

apk add flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

reboot



Gaming on Alpine =


STEAM WORKING ON ALPINE LIKE A CHARM IF YOU DO THIS =





GNOME on top XFCE is the winning solution for GUI AppStore for Flatpak

HTOP RAM USAGE = 728MB

If you want lighter solution, just use XFCE and Flatpak in terminal only.








https://wiki.alpinelinux.org/wiki/Steam

https://wiki.alpinelinux.org/wiki/Gaming_on_Alpine

https://www.linuxshelltips.com/install-openbox-alpine-linux/

htop

IDLE RAM USAGE with Geany, Firefox, Xfce installed = 241MB

That is total record in the Linux world:



Absolutely insane low resource for multimedia heavy usage @ Alpine Linux XFCE only:

htop = 241 MB

htop firefox = 458 MB

htop firefox + youtube = 800 MB 

Alpine Linux has lower resource usage than all linux distros and FreeBSD, Wow !



Windows 10 Sound Keyboard Application



++

https://springwell.rs/proizvodi/nature-essential-garsinija-kambodza

https://www.howtogeek.com/807862/handy-excel-features/


https://www.ubackup.com/


https://www.ubackup.com/clone/ssd-cloning-freeware-4348.html



Alpine openbox settings:

apk add feh 

apk add pcmanfm

apk add firefox

apk add htop

apk add neofetch

apk add geany


nano .config/openbox/autostart

xrandr -s 1360x768 &

feh --bg-fill /home/vlada/s.jpg


apk add feh 

apk add pcmanfm

apk add firefox

apk add htop

apk add neofetch

apk add geany



Alpine with twm:

$ echo "exec twm" >> ~/.xinitrc


startx






Create AI resources = 



WORK FROM HOME = 



MORE = 







Usage of Flatpak on Alpine Linux (in terminal manner) for terminal geeks:

You must be root #:

apk add flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

First download io.freetubeapp.FreeTube.flatpakref from FreeTube website:

flatpak install flathub /home/vlada/Downloads/io.freetubeapp.FreeTube.flatpakref

flatpak run io.freetubeapp.FreeTube



Or install from flathub:

flatpak search xonotic

flatpak install flathub org.xonotic.Xonotic

flatpak run org.xonotic.Xonotic

flatpak uninstall org.xonotic.Xonotic


flatpak install flathub com.vscodium.codium






s


You must follow instructions about installing Steam on Alpine=

https://wiki.alpinelinux.org/wiki/Steam

If you install flatpak first, and after that Steam, there are no problems at all.

As long as you use flatpak and don't compile, applications run perfectly on Alpine.

Musl has no effect on the operation of applications installed via Flatpak.

In order for Steam to work properly, you need to install the graphics drivers first =

https://wiki.alpinelinux.org/wiki/NVIDIA




https://github.com/git-sgmoore/AlpineLinux-DailyDriverDesktop


https://github.com/ibuetler/alpine-linux-setup


https://git.sr.ht/~bt/alpine-linux-setup


Thursday, June 23, 2022

Porteus modules preserve

http://brokenman.porteus.org/porteus/x86_64/testing/live-scripts/ 


cd /tmp

ls

cp firefox*.xzm /mnt/sda1/porteus/modules

ls


https://slackware.pkgs.org/current/slackware-x86_64/


https://slackware.uk/slackware/slackware64-current/slackware64/ap/htop-3.2.1-x86_64-1.txz



https://slakfinder.org/index.php?act=search&start=0&order=&maxresult=30&repo=0&name=htop&desc=&file=#results


Porteus, literally mean, portable OS, installed in an USB disk and carried over , in your pocket. Where ever, you are , when you have access to a Pc, insert the usb disk, change boot order in bios and boot to your favourite porteus OS.

When you need an application, go to slackfinder.org, search for your need and download. The file extension will be *.txz.

Right click on downloaded file, and convert it to xzm module.

Copy the module to your porteus/modules folder and activate(context menu)

If all required libraries are present, The application will work, when you start it from menu.

If not, open terminal, and type ldd /usr/bin/xxxx name. it will list out not found libraries. Search the net for them and add to /usr/lib64.Thumbs up.

No idea about zim notes. Check if this module works for you.

https://www.mediafire.com/file/48dgcmsf ... y.xzm/file

Slackel and Salix distros.

Arch based Porteus Nemesis:

https://forum.porteus.org/viewtopic.php?t=5481

https://archived.forum.manjaro.org/t/porteus-nemesis-a-manjaro-openrc-based-aufs-distribution/3659


https://www.instructables.com/Run-Windows-XP-on-Android-Device/