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


sobota, 30 grudnia 2017

kodeki i ine cuda fedora wszystkie wersje

su -c 'dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$
(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/
rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
 
su -c "dnf -y update"
su -c 'dnf -y install gstreamer-plugins-bad gstreamer-plugins-ugly lame faad2'
su -c 'dnf -y install ffmpeg ffmpeg-libs gstreamer-ffmpeg'
su -c 'dnf -y install libaacs libbdplus'
su -c 'rpm -ivh http://rpm.livna.org/livna-release.rpm'
su -c 'dnf -y update && dnf -y install libdvdcss'
 

jeszcze to

dnf -y install gstreamer-plugins-base gstreamer1-plugins-base gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer1-plugins-ugly gstreamer-plugins-good-extras gstreamer1-plugins-good-extras gstreamer1-plugins-bad-freeworld ffmpeg gstreamer-ffmpeg
 
https://rpmfusion.org/Configuration/  
 
i flash
 
## Adobe Repository 32-bit x86 ##
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

## Adobe Repository 64-bit x86_64 ##
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
 

czwartek, 21 grudnia 2017

Jak znaleźć datę instalacji systemu

WSZĘDZIE
dumpe2fs $(mount | grep 'on \/ ' | awk '{print $1}') | grep 'Filesystem created:'


NA KAPELUSZACH

rpm -qi basesystem       wersja długa

rpm -q basesystem --qf '%{installtime:date}\n'


Ciekawostka dump2fs i rpm - qi podają różne daty :P

sobota, 16 grudnia 2017

Resajz i kompresja zdjęć konsola rekursywnie

RESAJZ

for i in $( ls *.jpg); do convert -resize 50% $i re_$i; done

KOMPRESJA

find -type f -name "*.jpg" -exec jpegoptim --max=90 --strip-all {} \;


https://guides.wp-bullet.com/batch-resize-images-using-linux-command-line-and-imagemagick/

find /your/path/here -name '*.jpg' -size +10M -exec convert -strip -interlace Plane -resize 70% -quality 80% {} {} \;
find: ‘/your/path/here’