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, 12 maja 2021

Ciągłe wysypywanie się nowej wersji firefox 84 88

 1)

sudo apt install software-properties-common -y

sudo add-apt-repository ppa:mozillateam/ppa

sudo apt update

sudo apt install firefox-esr

 

2)

  1. Wpisz about:config w pasek adresu
  2. Kliknij “Akceptuje ryzyko kontynuuj”
  3. Click “Show all”
  4. Szukaj "sandbox"
  5. Zmień 2 pierwsze wartości na false, i zmień security.sandbox.content.level na 1

UWAGA!! https://wiki.mozilla.org/Security/Sandbox#Content_Levels


Ubuntu wykryto błąd systemu (komunikat w pętli po każdym restarcie)

Rozwiązaniem tego niewielkiego kłopotu jest zajrzenie do folderu /var/crash. Ewentualne pliki w tym katalogu (jeżeli występują) prowokują system do wyświetlania tego uciążliwego okienka. Co więc trzeba zrobić?

Oczywiście skasować zawartość tego folderu (wymagane są uprawnienia root'a). O tym, jak to się robi pisał nie będę.

Jeżeli mimo to system dalej wyświetla komunikaty, możemy ostatecznie wyłączyć funkcję powiadamiania o błędach. W tym celu należy wyedytować plik konfiguracyjny:

sudo pico /etc/default/apport

W pliku odnajdujemy linię:

enabled=1

i zmieniamy ją na:

enabled=0

piątek, 25 grudnia 2020

aptitude unmark auto

 https://forum.dug.net.pl/viewtopic.php?id=31424

https://manpages.ubuntu.com/manpages/trusty/man8/apt-mark.8.html

czwartek, 17 grudnia 2020

buntu speed

 

While Ubuntu's default iso brings some gorgeous eye candy, it somehow hampers the boot performance and perhaps not the cup of tea for everyone as posted in earlier thread. So if you can waste little extra time configuring your machine, Follow this.

I use Unity. I use netboot install. There is a fantastic guide on wiki. You can follow that, at least for graphics, gvfs, network-manager, misc-utils part would be same for everyone. But if you want to install from regular iso that is also fine. You just need to disable few more services.

This is my systemd-analyze blame chart. My boot time is fast, within 30-35 sec.

Plymouth & Grub: If you don't need plymouth, remove quiet splash from grub. Now disable all plymouth related services with sudo service disable plymouth*.service. (check it with systemctl list-units). You can also remove plymouth-theme-ubuntu-logo package. You can put back "quiet" later if you don't find any errors.

Lightdm still depends on plymouth package, so I can't remove Plymouth entirely. In that case leave plymouth-quit and plymouth read-write service as it is.

Disable apt-daily services: Remember to run sudo apt-get update time to time.

sudo systemctl stop apt-daily.service
sudo systemctl disable apt-daily.service
sudo systemstl stop apt-daily-upgrade.timer 
sudo systemctl stop apt-daily-upgrade.timer 
sudo systemctl disable apt-daily-upgrade.timer 
sudo systemctl stop apt-daily.timer 
sudo systemctl disable apt-daily.timer 

Disable networkd services: If you are not a system admin you don't need this. Gui uses network-manger (and it has it's own dispatcher) anyway.

sudo apt-get remove networkd-dispatcher
sudo systemctl stop systemd-networkd.service
sudo systemctl disable systemd-networkd.service

No SSD: If you don't have ssd you can disable this.

sudo systemctl stop e2scrub_all.timer
sudo systemctl disable e2scrub_all.timer

Motd-News:

sudo systemctl stop motd-news.timer
sudo systemctl disable motd-news.timer

No Journald but Syslog: Ubuntu has both journald and syslog. If yoy don't need journald logging (you can still view all logs with syslog and gnome-logs), edit

 # edit /etc/systemd/journald.conf

[Journal]
Storage=none

& reboot. Remove gazzilion of logs from /var/log/syslog. And

sudo systemctl stop systemd-journal-flush.service
sudo systemctl disable systemd-journal-flush.service

Apport: If don't care about error reporting GUI of collecting crash data, remove the package. There are better ways to collect program crash. And most users do not need this.

No Gnome-Software/snapd but Synaptic: If you don't need gnome-software and use synaptic , then you can remove snapd and disable snapd related services in the same way and it will save some considerable amount of boot time.

Thermald (optional): It has issues with some laptops, and I don't use it. Just remove the package and reboot.

ś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