ping
did not work on my clean Ubuntu 24.04 installation showing the following error:
ping developernote.com |
1 2 3 | ping: socktype: SOCK_RAW ping: socket: Operation not permitted ping: => missing cap_net_raw+p capability or setuid? |
ping
did not work on my clean Ubuntu 24.04 installation showing the following error:
ping developernote.com |
1 2 3 | ping: socktype: SOCK_RAW ping: socket: Operation not permitted ping: => missing cap_net_raw+p capability or setuid? |
After updated my WordPress to 6.7.1 and added the following to wp-config.php
1 2 | define( 'WP_DEBUG' , true ); define( 'WP_DEBUG_LOG' , true ); |
and got the following error message:
1 2 3 4 5 6 7 8 9 10 11 | Fatal error: Uncaught Error: Call to undefined function wp_kses() in /home/devnote/www/wp-includes/functions.php:6098 Stack trace: #0 /home/devnote/www/wp-includes/functions.php(5579): wp_trigger_error() #1 /home/devnote/www/wp-includes/class-wpdb.php(1333): _deprecated_function() #2 /home/devnote/www/wp-content/sunrise.php(11): wpdb->escape() #3 /home/devnote/www/wp-includes/ms-settings.php(47): include_once('...') #4 /home/devnote/www/wp-settings.php(156): require('...') #5 /home/devnote/www/wp-config.php(107): require_once('...') #6 /home/devnote/www/wp-load.php(50): require_once('...') #7 /home/devnote/www/wp-blog-header.php(13): require_once('...') #8 /home/devnote/www/index.php(17): require('...') #9 {main} thrown in /home/devnote/www/wp-includes/functions.php on line 6098 |
sudo docker network create --subnet=172.20.0.0 /16 legacy_net sudo docker network ls |
1 2 3 4 5 6 | NETWORK ID NAME DRIVER SCOPE 61aa4a19ec0c bridge bridge local 7c0ebcfd4e3a dockovpn_default bridge local 79ed9c355254 host host local 99d8bde8e488 legacy_net bridge local 086455f026a8 none null local |
Copied my groups from /etc/group
:
1 2 3 4 5 6 7 8 9 10 11 | dmitriano:x:1000: slogpost:x:1001:www-data,bak beauty:x:1009:www-data,bak test1:x:1012:www-data,beauty,dmitriano,devnote,bak test2:x:1013:www-data,bak devnote:x:1018:www-data,bak exchange:x:1025: git:x:1026:www-data,bak game:x:1027:www-data,bak shar:x:1029:www-data,bak bak:x:1032: |
VPN service opens tun0
device in the docker container:
sudo docker exec -it 966f926484bc sh /opt/Dockovpn # ifconfig |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | eth0 Link encap:Ethernet HWaddr 02:42:AC:11:00:03 inet addr:172.17.0.3 Bcast:172.17.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:20553 errors:0 dropped:0 overruns:0 frame:0 TX packets:20539 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:14609434 (13.9 MiB) TX bytes:14757264 (14.0 MiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:7825 errors:0 dropped:0 overruns:0 frame:0 TX packets:12572 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:1673378 (1.5 MiB) TX bytes:12115333 (11.5 MiB) |
I cloned repository https://github.com/dockovpn/dockovpn and updated config/server.conf to increase the server log verbosity by setting verb
to 4
:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | port 1194 proto %HOST_TUN_PROTOCOL% dev tun ca /etc/openvpn/ca.crt cert /etc/openvpn/MyReq.crt key /etc/openvpn/MyReq.key dh /etc/openvpn/dh.pem server 10.8.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt push "redirect-gateway def1 bypass-dhcp" push "dhcp-option DNS 208.67.222.222" push "dhcp-option DNS 208.67.220.220" duplicate-cn keepalive 10 120 cipher AES-256-GCM ncp-ciphers AES-256-GCM:AES-256-CBC auth SHA512 persist-key persist-tun status openvpn-status.log verb 4 tls-server tls-version-min 1.2 tls-auth /etc/openvpn/ta.key 0 crl-verify /etc/openvpn/crl.pem |
sudo apt install imagemagick identify -verbose my-image.jpg |
I was able to convert MP4 to GIF with ffmpeg with the following commands on Ubuntu 22.04:
ffmpeg \ -i iphone884.mp4 \ -r 15 \ -vf "scale=512:-1,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" \ -ss 00:00:03 -to 00:00:06 \ iphone884.gif ffmpeg \ -i iphone884.mp4 \ -r 15 \ -vf "scale=300:-1,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" \ iphone884.gif |
First, connect to Ubuntu Live with SSH:
sudo apt-get update sudo apt-get install ssh sudo passwd ubuntu |
List disks and partitions:
sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL |
sudo add-apt-repository ppa:ubuntu-toolchain-r /test sudo apt update sudo apt install gcc -13 g++-13 ll /usr/bin/gcc-13 ll /usr/bin/g ++-13 update-alternatives --display gcc ll /etc/alternatives/g * sudo update-alternatives --remove-all gcc sudo update-alternatives --remove-all g++ sudo update-alternatives -- install /usr/bin/gcc gcc /usr/bin/gcc-13 10 --slave /usr/bin/g ++ g++ /usr/bin/g ++-13 g++ --version gcc --version |