docker run -p 3306:3306/tcp --name my-mariadb -e MYSQL_ROOT_PASSWORD=password -d etaylashev/mariadb:armv7-latest
docker exec -it my-mariadb mariadb --user root -ppassword
> SHOW DATABASES;
> CREATE DATABASE wordpress_db;
> SHOW DATABASES;
> SELECT user, host FROM mysql.user ORDER BY user;
> GRANT ALL ON wordpress_db.* TO 'wordpress_db'@'%' IDENTIFIED BY 'password123';
> FLUSH PRIVILEGES;
#!/bin/sh
ruby_ver=$(/opt/vagrant/embedded/bin/ruby --version | awk '{print $2}')
libvert_ver=$(brew info libvirt | grep 'libvirt:' | awk '{print $4}')
function install_plugin {
CONFIGURE_ARGS='with-ldflags=-L/opt/vagrant/embedded/lib with-libvirt-include=/usr/local/Cellar/libvirt/$libvert_ver/include with-libvirt-lib=/usr/local/lib' \
GEM_HOME=~/.vagrant.d/gems/$ruby_ver \
GEM_PATH=$GEM_HOME:/opt/vagrant/embedded/gems \
PATH=/opt/vagrant/embedded/bin:$PATH \
vagrant plugin install $vagrant_plugin
if [ $? -eq 0 ]; then
echo "$vagrant_plugin installation succeeded"
else
echo "$vagrant_plugin installation failed"
fi
}
# install plugins
for vagrant_plugin in vagrant-libvirt vagrant-disksize vagrant-vbguest
do
install_plugin
done
Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2204"
end
(参考)vagrant basic command
https://www.drupal.org/node/2008794
https://qiita.com/0ta2/items/69c2378600bf8adaac5c
Libvritを使った接続はネットワークのみになります。
virsh -V
Virsh command line tool of libvirt 9.1.0
See web site at https://libvirt.org/
Compiled with support for:
Hypervisors: QEMU/KVM VMware VirtualBox ESX Test
Networking: Remote Network Bridging
Storage: Dir iSCSI-direct ZFS
Miscellaneous: Daemon Secrets Debug Readline
Vagrant.configure("2") do |config|
config.vm.box = "generic/debian10"
config.vm.provider :libvirt do |libvirt|
libvirt.host = "USER@IP_ADDRESS"
libvirt.connect_via_ssh = true
end
end
on run
--edit this to be the correct location and file to run (typically only edit after the "drive_c")
-- WINEPREFIX=$HOME/msoffice wine $HOME/msoffice/drive_c/Program\ Files\ \(x86\)/Microsoft\ Office/Office12/EXCEL.EXE
set toRun to "$WINEPREFIX/drive_c/Program Files (x86)/Microsoft Office/Office12/EXCEL.EXE"
--edit winePrefix if you are not using the default prefix
set winePrefix to "$HOME/msoffice"
--edit wineLocation if your wine install is not the default location
set wineLocation to "/usr/local/bin"
-- With workaround for broken FreeType 2.7 rendering by switching to renderer from FreeType 2.6
-- export FREETYPE_PROPERTIES="truetype:interpreter-version=35"
-- See comment from Lucian Poston here: https://bugs.winehq.org/show_bug.cgi?id=41639
-------------------------------------------------------
--DO NOT EDIT ANYTHING BELOW THIS LINE
-------------------------------------------------------
set toRunPath to do shell script "WINEPREFIX=\"" & winePrefix & "\"; TEMPVAR=\"" & toRun & "\"; echo \"${TEMPVAR%/*}\""
set toRunFile to do shell script "WINEPREFIX=\"" & winePrefix & "\"; TEMPVAR=\"" & toRun & "\"; TEMPVAR2=\"" & toRunPath & "\"; echo \"${TEMPVAR#$TEMPVAR2/}\""
do shell script "PATH=\"" & wineLocation & ":$PATH\"; export FREETYPE_PROPERTIES=\"truetype:interpreter-version=35\"; export WINEPREFIX=\"" & winePrefix & "\"; cd \"" & toRunPath & "\"; wine \"" & toRunFile & "\" > /dev/null 2>&1 &"
end run
sudo -s
7z x foomatic-rip-4.0.6.230.dmg
cd Foomatic-RIP\ 4.0.6/Foomatic-RIP.pkg/Contents
gunzip -dc Archive.pax.gz > Archive.pax
cpio -i <Archive.pax
cp -a ./usr/libexec/cups/backend/beh /usr/libexec/cups/backend
cp -a ./usr/libexec/cups/filter/foomatic-rip /usr/libexec/cups/filter/
cp -a ./usr/local/bin/foomatic-rip /usr/local/bin/
cp -a ./usr/local/bin/foomatic-rip-PanTig /usr/local/bin/
cp -a ./usr/local/etc/foomatic /usr/local/etc/
cp -a ./usr/local/share/man/man1/foomatic-rip.1 /usr/local/share/man/man1/
Foomatic-RIPをCUPSで使えるようにします。
sudo sh -c 'echo "Sandboxing Relaxed" >> /etc/cups/cups-files.conf'
user www-data;
worker_processes auto;
worker_cpu_affinity auto;
pid /run/nginx.pid;
#error_log /var/log/nginx/error.log;
events {
worker_connections 1024;
use epoll;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 1000;
server {
#listen 8080 reuseport fastopen=10;
listen 80 reuseport fastopen=10;
server_name localhost;
charset utf-8;
#location / {
# root /srv/www/htdocs/;
# index index.html index.htm;
#}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /srv/www/htdocs/;
}
# Proxy /api/* requests to the server listening on 2628
location / {
proxy_pass http://0.0.0.0:2628;
proxy_redirect default;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
# proxy_request_buffering off; # Required for HTTP CLI commands
}
}
}
コンテナはでは次のようにSilverDicrを起動します。
python3 server.py 0.0.0.0:2628
python3 server.py 0.0.0.0:2628
WARNING:app.langs:No spellchecking library found.
INFO:app.dictionaries:Dictionaries loaded.
INFO:waitress:Serving on http://0.0.0.0:2628
WARNING:waitress.queue:Task queue depth is 1
WARNING:waitress.queue:Task queue depth is 1
INFO:app.settings:Found dictionary 1911-and-1922-Encyclopedia-Britannica (/root/.silverdict/source/1911-and-1922-Encyclopedia-Britannica/1911-and-1922-Encyclopedia-Britannica.ifo) during re-scanning.
INFO:app.dicts.stardict_reader:Entries of dictionary __1911-and-1922-E added to database
INFO:app.dictionaries:Added dictionary __1911-and-1922-E
INFO:app.settings:Found dictionary CALD4 (/root/.silverdict/source/Cambridge/CALD_4th/CALD4.mdx) during re-scanning.
INFO:app.dicts.mdict_reader:Entries of dictionary __CALD4 added to database
INFO:app.dictionaries:Added dictionary __CALD4
INFO:app.settings:Found dictionary Oxford English Dictionary (/root/.silverdict/source/Oxford/Oxford English Dictionary.mdx) during re-scanning.
INFO:app.dicts.mdict_reader:Entries of dictionary __OxfordEnglish added to database
INFO:app.dictionaries:Added dictionary __OxfordEnglish
INFO:app.settings:Found dictionary New Oxford Dictionary of English (/root/.silverdict/source/Oxford/New Oxford Dictionary of English.mdx) during re-scanning.
INFO:app.dicts.mdict_reader:Entries of dictionary __NewOxfordDict added to database
INFO:app.dictionaries:Added dictionary __NewOxfordDict
The snippet html href="sound:" is incomplete and not valid HTML for playing sound. In HTML, the href attribute is used for hyperlinks to link to other web pages or resources, not to directly embed and play audio in the current document using a special “sound:” protocol.
To embed and play audio, you should use the HTML5 <audio> element with the src attribute or nested <source> elements.
postmaster root
webmaster root
# Person who should get root's mail
root myname
info@hottunalabs.net myname
myname@mydns.org myname\@hottunalabs.net
myname@hottunalabs.net myname\@hottunalabs.net