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


czwartek, 27 grudnia 2018

Debian *-buntu /boot clean kernel update error

Bywa , że bez wyraźnego powodu nie da się zakutualizować kernela.
Terminal nieśmiało popiskuje że za mało miejśca by rozpakować czy uruchomic zip, gzip itd. oraz run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
 bla bla bla 

df -h  /boot 
wynik komendy 83% boot zajęte.
Najpierw sprawdź wersję jądra, aby nie usunąć aktualnie używanego obrazu jądra, uruchamiając:

uname -r

Teraz uruchom to polecenie, aby wyświetlić listę zainstalowanych jąder:

dpkg --list 'linux-image*' | grep ^ii
dpkg --list 'linux-header*' | grep ^ii
 


i usuń jądra, których już nie potrzebujesz / potrzebujesz, uruchamiając to:

sudo apt-get remove linux-image-VERSION

Zastąp wersję VERSION wersją jądra, którą chcesz usunąć.

Po zakończeniu usuwania starszych wersji jądra możesz uruchomić tę opcję, aby usunąć wszystkie pakiety, których już nie potrzebujesz:

sudo apt-get autorove

I na koniec możesz uruchomić to, aby zaktualizować listę jądra GRUBa:

sudo update-grub

poniedziałek, 17 grudnia 2018

Poprawny format pendrajwa

sudo fdisk -l

sudo wipefs --all  /dev/sdX

fdiskiem lub cfsiskiem tworzymy partycje dosową

wybieramy system plików fat 32 wciskając b
zatwierdzamy naciskając w potwierdzamy pisząc "tak" lub "yes"
opuszczamy cfdiska najeżdząjac na quit lub wciskając "q"

tworzymy system plików przez mkfs.exfat /dev/sdX

sobota, 29 września 2018

czwartek, 20 września 2018

czwartek, 1 marca 2018

speedujemy kapelusz

https://harald.hoyer.xyz/2013/11/13/fedora-boot-optimization/
systemd-analyze plot > boot.svg
systemd-analyze
Startup finished in 1.726s (kernel) + 3.526s (initrd) + 15.500s (userspace) = 20.754s

 systemd-analyze blame
         15.098s dnf-makecache.service
          6.347s dkms.service
          3.903s udisks2.service
          3.692s systemd-udev-settle.service
          2.979s chronyd.service
          2.954s initrd-switch-root.service
          2.940s abrtd.service
          2.602s vboxdrv.service
          2.420s systemd-fsck@
          2.413s cups.service
          2.396s gssproxy.service
          2.396s switcheroo-control.service


Wyłączamy usługi najbardziej spowalniające boot.

systemctl disable  nazwa-uslugi.service

sudo dnf remove 'plymouth*'
sudo dracut -f
reboot

Listujemy usługi

systemctl list-unit-files | grep disabled  (listuje wyłączone usługi)
systemctl list-unit-files | grep enabled  (listuje włączone usługi)

To list all the systemd service which are in state=active and sub=running
systemctl list-units --type=service --state=running
To list all the systemd serice which are in state=active and sub either running or exited
systemctl list-units --type=service --state=active




https://www.cyberciti.biz/faq/check-running-services-in-rhel-redhat-fedora-centoslinux/

sudo dnf remove 'plymouth*'
sudo dracut -f

dmidecode

NAME
       dmidecode - DMI table decoder

SYNOPSIS
       dmidecode [OPTIONS]

DESCRIPTION
       dmidecode  is a tool for dumping a computer's DMI (some say SMBIOS) ta‐
       ble contents in a human-readable format. This table contains a descrip‐
       tion  of  the  system's  hardware  components,  as well as other useful
       pieces of information such as serial numbers and BIOS revision.  Thanks

niedziela, 25 lutego 2018

Sorround 5.1 7.1

 

 

Enabling Surround Sound in libraries


By default, Ubuntu uses PulseAudio for its sound. Also by default, PulseAudio is set to 2 channels only. Enabling surround sound involves changing one line in the configuration file /etc/pulse/daemon.conf.
In the terminal, type the following:
gksu gedit /etc/pulse/daemon.conf

This should open up the configuration file in gedit. Once open, scroll down to find the line ; default-sample-channels = 2. Remove the semicolon at the start of the line and change the line according to your surround sound configuration:
  • For 2.0 channel sound: default-sample-channels = 2
  • For 4.0 channel sound: default-sample-channels = 4
  • For 5.0 channel sound: default-sample-channels = 5
  • For 5.1 channel sound: default-sample-channels = 6
  • For 7.1 channel sound: default-sample-channels = 8
Save the file the restart your computer.
For more detailed information, check the following links:

ALSA


Surround may already be working, make sure alsamixer has the right volume settings (Wave Surround in particular). These commands should be useful for testing:
For 4.0 surround (two speakers in front, two in the back):
speaker-test -Dplug:surround40 -c4 -l1 -twav

For 5.1:
speaker-test -Dplug:surround51 -c6 -l1 -twav

For 7.1:
speaker-test -Dplug:surround71 -c8 -l1 -twav

If it's not working, you might try following alsa's own guide:
http://alsa.opensrc.org/SurroundSound

Realtek na gigabajcie


Oto prawidłowe podłączenie głośników X-530 i innych 5.1 - w mniejszości występuje problem z AC'97, głośniki grają nie tak jak powinny.

Wtyczka głośnika zielona - do - Wtyku zielonego na karcie
Wtyczka głośnika czarna - do - Wtyku pomarańczowego na karcie
Wtyczka głośnika różowa - do - Wtyku czarnego na karcie


bo logika

Color Connector
Lime GreenLine-Out, Front Speakers, Headphones
PinkMicrophone
Light BlueStereo Line In
OrangeSubwoofer and Center out
BlackRear Surround Speakers for 5.1 and 7.1 systems
GrayMiddle Surround Speakers for 7.1 systems
GoldMidi / Game port (Joystick)

niedziela, 11 lutego 2018

Openbox Fedora

sudo dnf install openbox xbacklight feh conky xorg-x11-drv-libinput tint2 volumeicon xorg-x11-server-utils network-manager-applet
https://fedoramagazine.org/openbox-fedora/

Jaki mam display menager kdm,gdm??

Jeśli używamy systemd

$ cat /etc/systemd/system/display-manager.service | grep '/usr/bin'


ExecStart=/usr/bin/sddm


albo

 systemctl status display-manager