#!/bin/sh #montaxy.sh #複数枚の画像を1枚に結合する #引数は横の枚数、縦の枚数、圧縮の% if [ $# -ne 4 ]; then echo “Usage: $0 横の枚数 縦の枚数 圧縮% 余白の幅” 1>&2 exit 1 fi today=$(date "+%y-%m-%d_%H-%M-%S") montage -tile $1x$2 -resize $3% -geometry +$4+$4 ./*.jpg export_${today}.jpg
sudo vim /etc/ImageMagick-6/policy.xml
<policymap> <!-- <policy domain="resource" name="temporary-path" value="/tmp"/> --> <policy domain="resource" name="memory" value="2048MiB"/> <policy domain="resource" name="map" value="2048MiB"/> <policy domain="resource" name="width" value="16MP"/> <policy domain="resource" name="height" value="16MP"/> <!-- <policy domain="resource" name="list-length" value="128"/> --> <policy domain="resource" name="area" value="128GP"/> <policy domain="resource" name="disk" value="30GiB"/>
sudo apt install libheif-examples
for file in `\find ./*.HEIC -maxdepth 1 -type f -not -name '*jpg'`; do heif-convert $file $file.jpg done mkdir heic mv *.HEIC ./heic/
chmod +x heic2jpg.sh
./heic2jpg.sh
sudo apt install curl
od="$HOME/.odrive-agent/bin" && curl -L "https://dl.odrive.com/odrive-py" --create-dirs -o "$od/odrive.py" && curl -L "https://dl.odrive.com/odriveagent-lnx-64" | tar -xvzf- -C "$od/" && curl -L "https://dl.odrive.com/odrivecli-lnx-64" | tar -xvzf- -C "$od/"
nohup "$HOME/.odrive-agent/bin/odriveagent" > /dev/null 2>&1 &
nohup "$HOME/.odrive-agent/bin/odriveagent" > /dev/null 2>&1 &
python "$HOME/.odrive-agent/bin/odrive.py" authenticate 00000000-0000-0000-0000-000000000000-00000000
python3 "$HOME/.odrive-agent/bin/odrive.py" authenticate 00000000-0000-0000-0000-000000000000-00000000
~/.odrive-agent/bin/odrive backup /path/to/Videos/ "/Amazon Drive/Videos"
"$HOME/.odrive-agent/bin/odrive" status --backups
"$HOME/.odrive-agent/bin/odrive" removebackup xxxxxxxx-yyyy-cccc-dddd-eeeeeeeeeeee
"$HOME/.odrive-agent/bin/odrive" backupnow
~/.odrive-agent/bin/odrive mount /hogehoge/hogehoge "/Amazon Drive/hogehoge/hogehoge/picture"
~/.odrive-agent/bin/odrive sync "/hogehoge/hogehoge/directory.cloudf" --recursive --nodownload
cp -fr /other/directory /hogehoge/hogehoge/directory
less ~/.odrive-agent/log/main.log
sudo apt-get install imagemagick
<!-- <policy domain="coder" rights="none" pattern="PDF" /> -->
convert *.PNG pdfFileName.pdf
sudo apt install flatpak gnome-software-plugin-flatpak sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo apt-get install pavucontrol
sudo apt-get install audacity
speaker-test -c10 -l1 -t wav -w /usr/share/sounds/alsa/Front_Center.wav
sudo vi /usr/share/mime/packages/Overrides.xml
<?xml version='1.0' encoding='utf-8' ?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-type type="video/mp2t"> <comment>mpeg-2 transport streams</comment> <glob pattern="*.ts" /> </mime-type> </mime-info>
sudo update-mime-database /usr/share/mime
前提:ubuntu でやります。
i=0 for n in *.JPG do mv $n $(printf %04d $i).jpg i=$(expr $i + 1) done
avconv -r 10 -i %04d.jpg -r 10 -vcodec libx264 -crf 29 -g 15 -s 840x560 video.mp4
ffmpeg -r 10 -i %04d.jpg -r 10 -vcodec libx264 -crf 29 -g 15 -s 840x560 video.mp4
sudo apt-get install fonts-arphic-uming cd /usr/share/fonts/truetype sudo cp fonts-japanese-mincho.ttf arphic/uming.ttc
sudo apt-get install pavucontrol
ffmpeg -i input.mkv -vn -af volumedetect -f null -
[Parsed_volumedetect_0 @ 0x563fd2585360] max_volume: -24.0 dB
ffmpeg -i input.mp3 -af "volume=24dB" output.mp3
sudo apt install handbrake
cd /usr/lib/jvm/java-7-oracle/jre/lib sudo mkdir -p fonts/fallback
cd fonts/fallback/ sudo ln -s /usr/share/fonts/truetype/takao/Takao* ./以上です。
sudo ln -s /usr/share/fonts/truetype/takao-gothic/Takao* ./
sudo apt-get install -y lxde-core
sudo apt-get install tightvncserver
vncserver
vncserver -kill :1
#!/bin/bash xrdb $HOME/.Xresources lxsession -s LXDE &
sudo ufw allow from any to any port 5900:5910 proto tcp
sudo ufw reload
vncserver :1
vnc://123.123.123.123:1
vnc://123.123.123.123:5901
vncserver -kill :1
sudo systemctl daemon-reload
sudo systemctl enable vncserver@1.service
sudo systemctl start vncserver@1
gsettings set org.gnome.Vino require-encryption false
sudo add-apt-repository ppa:x2go/stable sudo apt-get update sudo apt-get install x2goserver x2goserver-xsession
sudo add-apt-repository ppa:x2go/stable sudo apt-get update sudo apt-get install x2goclient
sudo apt-get install vnc4server vncserver :1 vncserver -kill :1 vi .vnc/xstartup
#x-window-manager & startkde &
以下の設定を再度実行
sudo vi /etc/nsswitch.conf
configfile (hd0, gpt2)/boot/grub/grub.cfg
sudo apt-get install --reinstall grub-pc-bin grub-pc sudo apt-get install grub-efi sudo update-grub
~/.local/share/Steam/userdata/<userid#>/41070/local/SeriousSam3/SavedGames/ /.local/share/Steam/SteamApps/common/Half-Life/SAVE/
-screen-fullscreen 0
sudo apt install apache2 sudo apt install php libapache2-mod-php
sudo update-alternatives --config php
php -v
sudo vim /etc/apache2/sites-enabled/000-default.conf
sudo vim /etc/apache2/apache2.conf
sudo systemctl restart apache2
cd /var/log/apache2/ tail -f error.log
cd /etc/apache2/mods-enabled/ rm php8.1.* ln -s ../mods-available/php7.4.conf php7.4.conf ln -s ../mods-available/php7.4.load php7.4.load systemctl restart apache2
<?php phpinfo(); ?>
Loaded Configuration File
/etc/php/7.4/apache2/php.ini
[XDebug] xdebug.client_port = 9003 xdebug.mode = debug xdebug.start_with_request = yes xdebug.remote_enable = On xdebug.remote_autostart = On
"configurations": [ { "name": "Listen for Xdebug", "type": "php", "request": "launch", "stopOnEntry": true, "port": 9003 },
sudo dd if=hdd_image-nwdsn.img of=/dev/sdb
Linux centos 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:53:09 EST 2011 i686 i686 i386 GNU/Linux
Linux centos 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:04:48 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
sudo update-manager -d
vi /etc/hostname
sudo rm /var/crash/*
sudo mount -t vfat /dev/sdc1 /mnt/sdc1
sudo apt-get install ghostscript
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
sudo apt-get install numlockx
gnome-screenshot
ibus-setup
sudo apt-get remove —purge nvidia-*
apt-cache search nVidia | less
apt-get install nVidia*460
shutdown -r now
# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board # on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for # more information. #pool 0.ubuntu.pool.ntp.org iburst #pool 1.ubuntu.pool.ntp.org iburst #pool 2.ubuntu.pool.ntp.org iburst #pool 3.ubuntu.pool.ntp.org iburst # Use Ubuntu's ntp server as a fallback. #pool ntp.ubuntu.com server ntp.tar3.net iburst
sudo ntpq -p
xrandr --addmode HDMI-1 2560x1440_35.00
cvt 2560 1440 30
xrandr --newmode "2560x1440_30.00" 146.25 2560 2680 2944 3328 1440 1443 1448 1468 -hsync +vsync
xrandr --addmode HDMI-1 2560x1440_30.00
xrandr --output HDMI-1 --mode 2560x1440_30.00
sleep 10 xrandr --newmode "2560x1440_30.00" 146.25 2560 2680 2944 3328 1440 1443 1448 1468 -hsync +vsync xrandr --addmode HDMI-1 2560x1440_30.00 xrandr --output HDMI-1 --mode 2560x1440_30.00
~/.config/plasma-workspace/env/
~/.config/autostart-scripts/
~/.config/plasma-workspace/shutdown/