New 18.04 install on ASUS – TUF FX705DY Laptop – Stuck at dev, clean xx/xx files, xx/xx blocks

I have always used windows and recently decided to make the switch to linux, electing to test it on my laptop before installing it on my main desktop PC.

I downloaded ubuntu 18.04.02 LTS ISO file and mounted it to a USB thumb drive using rufus, booted to from the USB drive, installed ubuntu and upon restarting I am just left with a black screen displaying

/dev/nvme0n1p2: clean, XXXX/XXXX files, XXXX/XXXX blocks 

The numbers on this screen do not move and even after leaving it running for the 8 hours I was at work it did not get any further. I have tried re-installing ubuntu twice even remounting the ISO again but I am met with the same result each time.

I am able to boot the laptop in recovery mode and from here I can access the desktop but I wouldn’t know where to begin to look for ways to fix the issue from here.

MIUI blocks random SMS

TL,DR: New phone Xiaomi Redmi 5 (german provider) Magisk and TWRP installed, ROM completely stock MIUI Global 10.1.2.0 (Android Nougat 7.1.2) does not receive every SMS / 50% loss

My girlfriend has changed her phone. The phone Number previously was registered for Signal. She unregistered her number from Signal so the SMS can be received from provider.

The problem is, sending and receiving SMS works fine – everytime we are testing. But late in evening (only when she not used her phone) and over night, it seems the SMS are blocked in some way.

I still get transmission report immediately for each SMS (which is not the case when phone switched off) but she never receive the messages. I can call her and after talking the SMS sending/receiving works again, except for the lost messages.

The SMS messages also appear in stock SMS app (she uses Textra now), except for the lost messages.

She already disabled the blocking list in MIUI Security Center (never used at all).

SecurityCenter.apk can not be disabled/frozen from adb shell. After uninstalling the phone does not boot anymore.

Can MIUI 10 run without this app? How can the SecurityCenter.apk be disabled/uninstalled safely?

Why does phone not boot anymore? Is Magisk disabling DM-Verity by default for the whole System, or maybe just for Magisk itself only (checkbox is unchecked)?

Is this SMS blocking issue maybe related to power management / deep sleep?

Must she allow all permissions to the SecurityCenter.apk to make SMS work?

To clarify, the phone is not messed up with Magisk, no system apps deleted, no Xposed modules installed. in fact Magisk is not really used, just RootExplorer has granted permissions, but never used

NGINX, subdomain using server blocks doesn’t work

I would like to use nginx to redirect user from domain.com:3001 to sub.domain.com. Application on port 3001 is running in docker container, I didn’t add any files in directory sites-available/sites-enabled. I have added two server blocks (vhosts) in my conf.d directory. In server block I set $ upstream and resolver according to record in my /etc/resolv.conf file. The problem is that when I test in browser sub.domain.com every time I receive information that IP address could not be connected with any server (DNS_PROBE_FINISHED_NXDOMAIN) or 50x errors.

However, when I run curl sub.domain.com from the server I receive 200 with index.html response, this doesn’t work when I run the same command from my local PC. Server domain is in private network. Have you any idea what my configuration files lack of?? Maybe there is some issue with the listen port when app is running in docker or maybe there is something wrong with the version of nginx? When I installed nginx there was empty conf.d directory, with no default.conf. I am lost…

Any help will be highly appreciated.

Here is my configuration files: server.conf:

server  {     listen       80;     listen       443 ssl;     server_name  sub.domain.net;      #charset koi8-r;     #access_log  /var/log/nginx/host.access.log  main;      ssl_certificate /etc/nginx/ssl/cer.crt;     ssl_certificate_key /etc/nginx/ssl/private.key;      #set_real_ip_from 127.0.0.1;     #real_ip_header X-Real-IP;     #real_ip_recursive on; #    location / { #        root   /usr/share/nginx/html; #        index  index.html index.htm; #    }      location / {         resolver 10.257.10.4;         set $  upstream https://127.0.0.1:3000;          proxy_pass $  upstream;          proxy_set_header X-Forwarded-Host $  host;         proxy_set_header X-Forwarded-Server $  host;         proxy_set_header X-Forwarded-Proto $  scheme;`enter code here`         proxy_set_header X-Forwarded-For $  proxy_add_x_forwarded_for;         proxy_set_header Host $  host;      #error_page  404              /404.html;     # redirect server error pages to the static page /50x.html     #     error_page   500 502 503 504  /50x.html;     location = /50x.html {         root   /usr/share/nginx/html;     }      # proxy the PHP scripts to Apache listening on 127.0.0.1:80     #     #location ~ \.php$   {     #    proxy_pass   http://127.0.0.1;     #}      # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000     #     #location ~ \.php$   {     #    root           html;     #    fastcgi_pass   127.0.0.1:9000;     #    fastcgi_index  index.php;     #    fastcgi_param  SCRIPT_FILENAME  /scripts$  fastcgi_script_name;     #    include        fastcgi_params;     #}      # deny access to .htaccess files, if Apache's document root     # concurs with nginx's one     #     #location ~ /\.ht {     #    deny  all;     #} }  nginx.conf  #user  nginx; worker_processes  1;  #error_log  /var/log/nginx/error.log; #error_log  /var/log/nginx/error.log  notice; #error_log  /var/log/nginx/error.log  info;  #pid        /var/run/nginx.pid;  include /etc/nginx/modules.conf.d/*.conf;  events {     worker_connections  1024; }   http {     include       mime.types;     default_type  application/octet-stream;      #log_format  main  '$  remote_addr - $  remote_user [$  time_local]     #                  '$  status $  body_bytes_sent "$  http_referer" '     #                  '"$  http_user_agent" "$  http_x_forwarded_for"';      #access_log  /var/log/nginx/access.log  main;      sendfile        on;     #tcp_nopush     on;      #keepalive_timeout  0;     keepalive_timeout  65;      sendfile        on;     #tcp_nopush     on;      #keepalive_timeout  0;     keepalive_timeout  65;     #tcp_nodelay        on;      #gzip  on;     #gzip_disable "MSIE [1-6]\.(?!.*SV1)";      server_tokens off;     include /etc/nginx/conf.d/*.conf; }  # override global parameters e.g. worker_rlimit_nofile include /etc/nginx/*global_params 

;

Overwrite block layout inside text_list (content) blocks

I re-developed the whole category page in a layout.xml file included in my custom module, trying to reuse the block names. I needed to change many block (type) classes.

I had read that by redefining the block it overwrote but it is not so. Now the category page works correctly but the block category.products” is printed 3 times.

<catalog_category_default>     <reference name="content">         <block type="ristothemefrontend_handler/catalog_category_view" name="category.categories" template="catalog/category/category-categories.phtml" />         <block type="ristothemefrontend_handler/catalog_category_view" name="category.products" template="catalog/category/view.phtml">             <block type="ristothemefrontend_handler/catalog_product_list" name="product_list" template="catalog/product/list.phtml">                 <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>                 <block type="ristothemefrontend_handler/catalog_product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">                     <block type="page/html_pager" name="product_list_toolbar_pager" />                     <block type="ristothemefrontend_handler/catalog_product_list_toolbar" name="catalog.left" template="catalog/category/left.phtml">                         <block type="ristothemefrontend_handler/catalog_category_view" name="catalog.left.categories" as="categories" template="catalog/category/categories.phtml" />                         <block type="risto_programmablebanners/list" name="catalog.left.banners" as="banners">                             <action method="setBlockType"><type>category</type></action>                         </block>                     </block>                     <block type="ristothemefrontend_handler/catalog_layer_view" name="catalog.left.layer" template="catalog/layer/view.phtml">                         <action method="unsetChild"><alias>category_filter</alias></action>                     </block>                     <block type="ristothemefrontend_handler/catalog_product_list_toolbar" name="category.toolbar" template="catalog/category/toolbar.phtml" />                 </block>                 <block type="ristothemefrontend_handler/catalog_category_view" name="category.products.long_description" template="catalog/category/long_description.phtml"/>             </block>         </block>     </reference> </catalog_category_default> 

The blocks in the previous layouts (base / default etc.) are not overwritten, but loaded.

Nested function inside a function with begin/process/end blocks?

Is it possible to have a nested function inside a function containing begin/process/end blocks? The first error reported is:

begin : The term 'begin' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if  a path was included, verify that the path is correct and try again. At C:\src\cut\f1.ps1:13 char:5 +     begin { Write-Verbose "initialize stuff" } +     ~~~~~     + CategoryInfo          : ObjectNotFound: (begin:String) [], CommandNotFoundException     + FullyQualifiedErrorId : CommandNotFoundException 

Here is the code in question.

function f1 (         [Parameter(Mandatory=$  false, ValueFromPipeline=$  true)]         [array]$  Content         ,[Parameter(Mandatory=$  false, ValueFromPipeline=$  false, Position=0)]         [string[]]$  Path ) {     function a([Parameter(Mandatory=$  true)][string]$  s)     {         "=== a === $  s"     }      begin { Write-Verbose "initialize stuff" }     process {         Write-Verbose "process stuff"         a($  Content)     }     end { Write-Verbose "end stuff" } }  Get-Content -Path 'C:\src\cut\cut-man.txt' | f1 -Path '.\cut-man.txt'