{"id":34,"date":"2023-02-06T17:36:39","date_gmt":"2023-02-06T17:36:39","guid":{"rendered":"http:\/\/130.61.23.153\/install\/?page_id=34"},"modified":"2025-08-20T12:15:52","modified_gmt":"2025-08-20T12:15:52","slug":"adds","status":"publish","type":"page","link":"https:\/\/slavy.site\/index.php\/adds\/","title":{"rendered":"Issues"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>To change lid settings:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo nano \/etc\/systemd\/logind.conf<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">enable the #HandleLidSwitch=suspend line and change the value to ignore, lock, poweroff, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">HandleLidSwitch=ignore<br>HandleLidSwitchExternalPower=ignore<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>After any changes you will need reboot<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><a href=\"https:\/\/www.youtube.com\/watch?v=IgjzGq8WptE\" target=\"_blank\" rel=\"noreferrer noopener\">SSH key&#8217;s<\/a><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Open terminal on the first machine # sudo su\nadduser oracle\nput password and then dont fill nothing just press enter\nsu - oracle\nssh-keygen -b 4096\nthen just press enter\ncd .ssh\nls -altr\ncat id_rsa.pub\nthen copy the key in to text file and save\nlogin in to remote server\nsudo su\nadduser oracle\nsu - oracle\nmkdir .ssh\nchmod 700 .ssh\ncd .ssh\nnano authorized_keys\npaste the key inside save and close\nchmod 600 authorized_keys\nexit and back on the original machine in to the \/home\/oracle directory\nssh 130.61.23.153\n\nto forcing the server log in only with public key and disable password log in change YES to NO in this file:\n\nsudo nano \/etc\/ssh\/sshd_config.d\/50-cloud-init.conf\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To hide user oracle from the login screen create file <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/var\/lib\/AccountsService\/users\/oracle<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">put inside this two lines, save and reload the user server<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;User]\nSystemAccount=true<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart accounts-daemon.service<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then logout and check!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>WordPress Chikii<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>Increase upload size limit:<\/code>\n<code>    sudo nano \/etc\/php\/8.1\/apache2\/php.ini\"<\/code>\n<code>    Press Ctrl and W and type \"post_max_size\"<\/code>\n<code>    Change the value to the number of Mb you want your site to accept as uploads.<\/code>\n<code>    Press Ctrl and W and type \"upload_max_filesize\"<\/code>\n<code>    Change the value to the number of Mb you want your site to accept as uploads.<\/code>\n<code>Save<\/code>\n<code>sudo systemctl restart apache2<\/code>\n\n<strong>Plugin could not be deleted due to an error: Could not fully remove the plugin(s) my-plugin\/my-plugin.php<\/strong>\nsudo chown www-data:www-data * -R \nsudo usermod -a -G www-data YOUR-USERNAME-HERE\n\nMore rarely, this error can also occur if your WordPress configuration in \/wp-config.php is set to use something like:\n\ndefine( 'FS_METHOD', 'ftpext' );\n\nThis tells WordPress that it needs to use FTP to make file changes instead of working directly with the local file system. The line will likely be followed by FTP login information. If this login information is incorrect then WordPress will be unable to login and perform file-system changes\n\n\n<code>To disable all active plugins wach this video:<\/code>\n<code><a href=\"https:\/\/www.youtube.com\/watch?v=thWUmznqznk\">https:\/\/www.youtube.com\/watch?v=thWUmznqznk<\/a><\/code>\n\n<code><strong>To grant full admin acces on user slavy to phpmyadmin:<\/strong><\/code>\n<code>sudo mysql -u root -p<\/code>\n<code>GRANT ALL PRIVILEGES ON *.* TO 'slavy'@'localhost' WITH GRANT OPTION;\t<\/code>\n<code>FLUSH PRIVILEGES;<\/code>\n<code>quit<\/code>\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Repository problem &#8211; can not do apt -update<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">E: The repository &#8216;https:\/\/ppa.launchpadcontent.net\/<strong>transmissionbt<\/strong>\/ppa\/ubuntu jammy Release&#8217; does not have a Release file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo add-apt-repository &#8211;remove ppa:<strong>transmissionbt<\/strong> &#8211; tiretata predi remove sa 2<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Mount Devices<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo fdisk -l\nsudo mkdir \/hdd\nsudo nano \/etc\/fstab\nAnd add following to the end of the file:\n\/dev\/sdb1    \/hdd    ext4    defaults    0    0\nsudo mount \/hdd\nsudo mount -a<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><a href=\"https:\/\/juhanajauhiainen.com\/posts\/why-docker-is-eating-all-your-diskspace\">Why Docker is eating your disk space<\/a><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">du -h $(docker inspect --format='{{.LogPath}}' $(docker ps -qa))\necho \"\" &gt; $(docker inspect --format='{{.LogPath}}' container_name)\nnano \/etc\/docker\/daemon.json\nLet's create a basic config for local logging driver.\n\n{\n  \"log-driver\": \"local\",\n  \"log-opts\": {\n    \"max-size\": \"100m\",\n    \"max-file\": \"3\"\n  }\n}\n\nservice docker restart\ndocker info --format '{{.LoggingDriver}}'\ndocker-compose up -d --force-recreate<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.azuracast.com\/en\/administration\/docker\" target=\"_blank\" rel=\"noreferrer noopener\">Azuracast change communication ports<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">cd \/var\/azuracast<br>.\/docker.sh update-self<br>.\/docker.sh change-ports<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;ve actually <a href=\"https:\/\/askubuntu.com\/questions\/874963\/sudo-is-deleted\">deleted the <code>sudo<\/code> command<\/a>, you can reinstall the package that provides it by running:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pkexec apt-get update\npkexec apt-get --reinstall install sudo\n\nBluetooth problem pair to Beats Studio3\nsudo apt install blueman\nturn on the bluetooth\nblueman-manager - run in terminal<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">probblem with jellyfin repository:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">remove the .source file<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>\/etc\/apt\/sources.list.d\/jellyfin.sources<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt update<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.siteground.com\/kb\/fix-sorry-not-allowed-upload-file-type-error-wordpress\/\" data-type=\"link\" data-id=\"https:\/\/www.siteground.com\/kb\/fix-sorry-not-allowed-upload-file-type-error-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to fix &#8220;Sorry, you are not allowed to upload this file type&#8221; error in WordPress<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">edit the <strong>wp-config.php<\/strong> file for your WordPress, which is usually found in the <strong>public_html<\/strong> folder and add on a bottom of the config file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define('ALLOW_UNFILTERED_UPLOADS', true);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">save the config file and reload the apache2 server:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl reload apache2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Raspberry pi 5 Ubuntu Server NFS not mount on boot<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0435\u0438\u0441\u043a\u0430 \u0434\u0430 \u043c\u043e\u043d\u0442\u0438\u0440\u0430 \u043c\u0440\u0435\u0436\u043e\u0432\u0438\u0442\u0435 \u0434\u0438\u0441\u043a\u043e\u0432\u0435 \u043f\u0440\u0438 \u0431\u0443\u0443\u0442 \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0430. \u0420\u044a\u0447\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0432 \u043a\u043e\u043d\u0437\u043e\u043b\u0430\u0442\u0430 \u043c\u043e\u043d\u0442\u0438\u0440\u0430 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u041d\u0430\u043f\u0440\u0430\u0432\u0438\u0445:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install network-manager\nsudo systemctl enable NetworkManager.service\nsudo systemctl start NetworkManager.service\nsudo systemctl status NetworkManager.service\nsudo systemctl enable NetworkManager-wait-online.service\nsudo systemctl start NetworkManager-wait-online.service\nsudo systemctl status NetworkManager-wait-online.service\nsudo reboot now<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>VirtualBox \u043d\u0435 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430, \u0437\u0430\u0449\u043e\u0442\u043e \u0432\u0435\u0447\u0435 \u0438\u043c\u0430 \u0434\u0440\u0443\u0433 \u0445\u0438\u043f\u0435\u0440\u0432\u0430\u0439\u0437\u043e\u0440 (\u043d\u0430\u0439-\u0447\u0435\u0441\u0442\u043e KVM) \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d<\/strong> \u0438 \u0442\u043e\u0439 &#8220;\u0434\u044a\u0440\u0436\u0438&#8221; \u0445\u0430\u0440\u0434\u0443\u0435\u0440\u043d\u0430\u0442\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f (VMX).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udc49 \u0417\u0430 \u0434\u0430 \u0433\u043e \u043e\u043f\u0440\u0430\u0432\u0438\u0448, \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0438\u0437\u043a\u043b\u044e\u0447\u0438\u0448 KVM \u043c\u043e\u0434\u0443\u043b\u0438\u0442\u0435 \u0432 Linux.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0421\u0442\u044a\u043f\u043a\u0438 \u0437\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 (Linux):<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u0421\u043f\u0440\u0438 KVM \u043c\u043e\u0434\u0443\u043b\u0438\u0442\u0435 (\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0434\u043e \u0440\u0435\u0441\u0442\u0430\u0440\u0442):<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rmmod kvm_intel\nsudo rmmod kvm\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">(\u0410\u043a\u043e \u0441\u0438 \u043d\u0430 AMD \u043f\u0440\u043e\u0446\u0435\u0441\u043e\u0440 \u2013 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0439 <code>kvm_amd<\/code> \u0432\u043c\u0435\u0441\u0442\u043e <code>kvm_intel<\/code>.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0431\u0440\u0430\u043d\u0438 \u0437\u0430\u0440\u0435\u0436\u0434\u0430\u043d\u0435\u0442\u043e \u0438\u043c \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0438 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u0438\u044f (\u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435):<\/strong><br>\u0421\u044a\u0437\u0434\u0430\u0439 blacklist \u0444\u0430\u0439\u043b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"blacklist kvm_intel\" | sudo tee \/etc\/modprobe.d\/blacklist-kvm.conf\necho \"blacklist kvm\" | sudo tee -a \/etc\/modprobe.d\/blacklist-kvm.conf\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">(\u041e\u0442\u043d\u043e\u0432\u043e \u2013 \u0430\u043a\u043e \u0441\u0438 \u0441 AMD, \u043f\u043e\u043b\u0437\u0432\u0430\u0439 kvm_amd.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0431\u043d\u043e\u0432\u0438 initramfs \u0438 \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo update-initramfs -u\nsudo reboot\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043b\u0435\u0434 \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438 \u0434\u0430\u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u0438\u0442\u0435 \u0441\u0430 \u0441\u043f\u0440\u0435\u043d\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lsmod | grep kvm\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0410\u043a\u043e \u043d\u044f\u043c\u0430 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442 \u2013 \u0437\u043d\u0430\u0447\u0438 \u0441\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043f\u0440\u0435\u043d\u0438.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To change lid settings: sudo nano \/etc\/systemd\/logind.conf enable the #HandleLidSwitch=suspend line and change the value to ignore, lock, poweroff, etc.<\/p>\n<p><a href=\"https:\/\/slavy.site\/index.php\/adds\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">Issues<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-34","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/pages\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":24,"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/pages\/34\/revisions"}],"predecessor-version":[{"id":465,"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/pages\/34\/revisions\/465"}],"wp:attachment":[{"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/media?parent=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}