Legenda (oznaczenia używane w postach) czyli lets clean this burdel

Oznaczenia używane w postach

Zwykły tekst Czcionka Georgia

apt-get install -Komenda



-ryzyko uszkodzenia systemu


-skrypt w bashu
-Ważna informacja

=====
wycinek z loga konsoli
====

nano /etc/resolv.conf plik do edycji


środa, 14 października 2020

Open Media Vaut 5.x.x.x installer bug

 https://forum.openmediavault.org/index.php?thread/35425-installer-bug-in-whole-line-omv-5-x-x-x-omv-line-4-seems-to-be-unaffected-instal/&postID=253333#post253333


I've tested version 5.0.5 2019-08-16 using bare-metal and virtualbox in both cases installation freeze right after choosing main network card / interface and dhcp network configuration. It is somewhat related to dhcp ip6 configuration
version 4 is unaffected. I'll try to install clean minimal debian 10.6 on bare-metal equipment then add omv on to it.

Ps debian and its derivatives are my daily drivers but to omv im completely new.

==========================================================================
Ok I found possible solution

1. unplug the ethernet cable
2 install omv v 5.x.x.x

Yes it will complain due to lack of internet connection

3.ip address show to check your interface name
4. edit the /etc/network/interfaces and add this block:

auto eth0 [change eth0 to your specific interface name]
allow-hotplug eth0

iface eth0 inet dhcp

5. save changes to the file
6. check your resolve. conf via cat /etc/resolv.conf if there any dns data then it's ok
7.ip link set <interface> up
8. now run /etc/init.d/networking restart

9. ping google.com
10 login by ssh to your openmediavault from another machine

correct incomplete sourceslist file
11. nano /etc/apt/sources. list

delete all content then put

Code
###### Debian Main Repos
deb http://deb.debian.org/debian/ stable main contrib non-free
deb-src http://deb.debian.org/debian/ stable main contrib non-free
deb http://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free
deb http://deb.debian.org/debian-security stable/updates main
deb-src http://deb.debian.org/debian-security stable/updates main


12. Correct file openmediavault-kernel-backports.listl.

nano /etc/apt/sources.list.d/openmediavault-kernel-backports.list

you will see something like

http://httpredir.debian.org/debian -backports main contrib non-free

change this line to

Code
http://httpredir.debian.org/debian buster-backports main contrib non-free

12.now omv-update
13.omv-firstaid

option 9 clear webcontrol panel cache

option 8 clear local upload package repository

14.systemctl reboot
15 use web panel in browser . check-for updates there should not be any also there should be no weird errors like:

Code

Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:
/usr/local/sbin; export LANG=C; apt-get update 2>&1' with exit code '100': Get:1
file:/var/cache/openmediavault/archives InRelease Ign:1
file:/var/cache/openmediavault/archives InRelease Get:2
file:/var/cache/openmediavault/archives Release Ign:2
file:/var/cache/openmediavault/archives Release Get:3

or any fingerprint missmach

Ps I have no idea if all network card drivers will be present in system due to unplugged network cord during installation process.
There is a possibility that required kernel modules won't be loaded .

ps2 the above procedure was performed in a virtualbox environment.
There is no guarantee that it will behave the same way om bare metal

ps3 it took me 10h to fix this, Please fix a damn installer. I have no sufficient knowledge to do it myself

sobota, 23 maja 2020

Debian xfce light

Installing XFCE
Install the core packages that will be enough to allow you to start using your new desktop environment.
root@devuan:~# apt-get install xfce4-panel xfdesktop4 xfwm4 xfce4-settings xfce4-session
You might also want these packages for a more full desktop.
root@devuan:~# apt-get install tango-icon-theme xfwm4-themes xfce4-terminal xfce4-appfinder thunar xfce4-power-manager ristretto

Adding support for auto-mounting
Install the necessary packages for thunar (the xfce file manager) to support auto-mounting.
root@devuan:~# apt-get install thunar-volman gvfs policykit-1
After you start your desktop environment you can now use the xfce settings manager to configure auto-mounting.

Adding a display manager
If a display manager is needed I recommend slim which is the default in Devuan.
root@devuan:~# apt-get install slim
Now run update-alternatives to set the x-session-manager to xfce4-session.
root@devuan:~# update-alternatives --config x-session-manager

Using xfce without a display manager
Login to a regular user account at the console and use the startxfce4 script.
user@devuan:~$ startxfce4

niedziela, 17 maja 2020

debian *box open box, flux box, black box

debian dselect list



debian ekfiwalent yum what provides

$ sudo apt-get install apt-file
If you just installed apt-file, the system-wide cache might be empty. You need to run ‘apt-file update’ as root to update the cache. You can also run ‘apt-file update’ as normal user to use a cache in the user’s home directory.

Let us update the database cache using command:

$ sudo apt-file update
And, then search for the packages that contains a specific file, say alisp.h, with command:

$ apt-file find alisp.h
Or,

$ apt-file search alisp.h
Sample would be:

libasound2-dev: /usr/include/alsa/alisp.h
Well, libasound2-dev it is! You can install this package using command:

$ sudo apt-get install libasound2-dev
If you already have the file, and just wanted to know which package it belongs to, you can use dpkg command as shown below.

$ dpkg -S $(which alisp.h)
Or,

$ dpkg -S `which alisp.h`
If you know the full path of the file, say for example /bin/ls,  you can search for the packages it belongs to using the following command:

$ dpkg -S /bin/ls
coreutils: /bin/ls

sobota, 16 maja 2020

Ventoy genialny boot multiso creator


Ventoy genialny boot multiso creator

Strona projektu
https://www.ventoy.net/en/index.html

Link do google drive na wypadek gdyby projekt upadł
https://drive.google.com/open?id=11pMA57LyOYC2iyhcX2nz279XHUKp-8Bl

czwartek, 14 maja 2020

Debian backup lub przenosiny deselect

odpalamy w katalogu domowym
 tar czfv confback.tar.gz .*

warto wywalić foldery . virtualbox itd bo są duże


dpkg --get-selections > packages.list This will create a list of all the packages installed in your system in the packages.list file.
Now, if something happens and your system crashes, you can install all the packages which were in your system with the help of this packages.list file.
dpkg --set-selections < packages.list

sudo apt-get dselect-upgrade


tar -xvfz confback.tar.gz --strip, --strip-components N gdzie N Strips the first N components from archive members' pathnames
when unpacking.
debian minimal dselect