〇Kontactの画面
インストール方法
以下のコマンドを実行します。sudo dnf -y install flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak -y install flathub org.kde.kontact
sudo dnf -y install flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak -y install flathub org.kde.kontact
import ffmpeg
input = ffmpeg.input('./lake.mp4')
processed = input.video.filter("rgbashift",rh=-50,rv=-50,bh=50,bv=50)
ffmpeg.output(processed, input.audio, './lake_rgbashift.mp4').run()
python ffmpeg_rgbashift.py
sudo apt-get update
sudo apt-get -y install postgresql-13
echo "listen_addresses='*'" | sudo tee -a /etc/postgresql/13/main/postgresql.conf
sudo sed -i 's/host.*all.*all.*127.0.0.1/#host all all 127.0.0.1/g' /etc/postgresql/13/main/pg_hba.conf
sudo sed -i 's|^host.*all.*all.*::1/128|#host all all ::1/128|g' /etc/postgresql/13/main/pg_hba.conf
echo "host all all 127.0.0.1/32 password" | sudo tee -a /etc/postgresql/13/main/pg_hba.conf
echo "host all all ::1/128 password" | sudo tee -a /etc/postgresql/13/main/pg_hba.conf
echo "host all all 192.168.1.0/24 password" | sudo tee -a /etc/postgresql/13/main/pg_hba.conf
※ネットワークアドレスは適宜変更してくださいsudo systemctl restart postgresql.service
sudo su - postgres << EOF
psql -c "
alter user postgres with password 'postgres';
create user adminer with password 'adminer';
"
psql -c "
create database adminer owner adminer encoding 'UTF8' lc_collate 'ja_JP.UTF-8' lc_ctype 'ja_JP.UTF-8' template 'template0';
"
EOF
※パスワードは適宜変更してくださいsudo apt-get -y install apache2 \
libapache2-mod-php7.4 \
php7.4-pgsql \
php7.4-common \
php7.4-mbstring
sudo mkdir -p /opt/adminer
cd /opt/adminer
sudo wget https://github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1.php
sudo mv adminer-4.8.1.php index.php
sudo chown -R www-data:www-data /opt/adminer
sudo ln -s /opt/adminer/ /var/www/html/
sudo service apache2 restart
sudo dnf -y install epel-release
sudo dnf -y install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install losslesscut
※もし「error: too early for operation, device not yet seeded or device model not acknowledged」というメッセージが表示された場合は、しばらく待ってから再実行してください。import ffmpeg
input = ffmpeg.input('./lake.mp4')
processed = input.video.filter("pad",width="(iw+100)",height="(ih+200)",x=50,y=100,color='#7799dd')
ffmpeg.output(processed, input.audio, './lake_pad.mp4').run()
python ffmpeg_pad.py
sudo apt-get -y install mariadb-server
sudo mysql -uroot -e "SET PASSWORD = PASSWORD('root'); FLUSH PRIVILEGES;"
mysql -uroot -proot -e "CREATE DATABASE test DEFAULT CHARACTER SET utf8mb4;"
mysql -uroot -proot -e "CREATE USER test@localhost IDENTIFIED BY 'test';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON test.* TO 'test'@'localhost';"
mysql -uroot -proot -e "FLUSH PRIVILEGES;"
sudo apt-get -y install git make libdbi-perl libterm-readkey-perl libdbd-mysql-perl
git clone https://github.com/innotop/innotop.git
cd innotop/
perl Makefile.PL
sudo make install
innotop -uroot -proot
sudo mkdir -p /usr/share/fonts/googlefonts
cd /usr/share/fonts/googlefonts
sudo wget https://github.com/googlefonts/ephesis/raw/master/fonts/otf/Ephesis-Regular.otf
sudo wget https://github.com/googlefonts/birthstone/raw/master/fonts/otf/Birthstone-Regular.otf
sudo wget https://github.com/googlefonts/bonheur-royale/raw/master/fonts/otf/BonheurRoyale-Regular.otf
sudo wget https://github.com/googlefonts/italianno/raw/master/fonts/otf/Italianno-Regular.otf
sudo wget https://github.com/googlefonts/great-vibes/raw/master/fonts/otf/GreatVibes-Regular.otf
sudo wget https://github.com/googlefonts/SacramentoFont/raw/main/fonts/ttf/Sacramento-Regular.ttf
sudo wget https://github.com/googlefonts/TangerineFont/raw/main/fonts/ttf/Tangerine-Regular.ttf
sudo fc-cache -f -v