Thursday, July 2, 2020

Orange - problem z funbox 2.0

Dzisiaj odmówił mi posłuszeństwa orange funbox 2.0. To ten, który ma osobno modem światłowodowy (ONT) i router. Wersja 3.0 posiada modem zintegrowany (więc nie można podłączyć włąsnego routera nie posiadającego modemu światłowodowego=ONT).
Nie mogłem się podłączyć do http://192.168.1.1 ani nie widziałem sieci WiFi.
Na modemie świeciły się na zielono wszystkie "światełka" oprócz LOT.
Na routerze funbox 2.0 z kolei miałem zielony "power" oraz czerwony migający (około 2 razy na sekundę) "internet". Zadzwoniłem pod numer pomocy orange i miałem sporo szczęścia trafiając na ogarniętą konsultantkę - dość szybko dostałem zlecenie wymiany urządzenia. Podjechałem do punktu orange i wymieniłem urządzenie. Po podłączeniu całą konfiguracja (również hasło i login) zostały automatycznie zaczytane. Musiałem tylko się zalogować na urządzenie i zmienić ustawienie sieci bezprzewodowej.

Jeśli masz te same objawy u siebie to już wiesz co robić. Powodzenia,

Sunday, May 3, 2020

Biedroka meblomaster regał narożny wiszący

Kupiłem niedawno regał narożny wiszący wyprodukowany przez meblomaster dla biedronka (jeronimo martins). Cena 50zł nie jest wysoka - niestety osiągnięto ją kosztem niższej jakości wykonania oraz nadmiarowymi oszczędnościami.
Jest to regał narożny - z racji konstrukcji nie da się go zamontować inaczej (przynajmniej bez przeróbek).
Po zamontowaniu nie będzie się trzymać jakoś super pewnie ze względu na 2 punkty mocowania (z pomocą 2 kołków rozporowych każdy) - u góry i na dole.
Otwory są nawiercone nierówno - dlatego regał nie będzie równy. I nie będzie pasował do rogu pokoju - a właśnie tam musi być zamontowany. W najlepszym wypadku możemy liczyć widoczne na szczeliny między regałem i ścianą. W najgorszym niestabilną i nieestetyczną konstrukcję.

Pomysły na modyfikację:
  • Przewiercenie otworów na kołki "na wylot" pozwoli ułożyć półkę w sposób inny niż zamierzony przez producenta - niestety pogorszy też stabilność. Jedyna "stabilna" konstrukcja to odwrócenie mocowania (na dole po prawej stronie zamiast zaprojektowanej lewej i u góry po lewej zamiast zaprojektowanej prawej).
  • Wykorzystanie półek z innymi wspornikami.
  • Przewiercenie się przez ścianki boczne w celu montażu.
  • Nawiercenie nowych otworów na kołki oraz wkręty ale w miejscach innych niż zaprojektował producent.
Wydane 50 zł to niewielki wydatek. Mam w efekcie kilka półeczek gotowych do montażu.
Jeśli kupić blat w hipermarkecie budowlanym (50zł / m2) wraz z docięciem... to musimy jakoś zalaminować brzegi co jest trudne w warunkach domowych (a profesjonalny sprzęt zaczyna się od 100'000zł). Najtańsze rozwiązania to (1) profil wykończeniowy lub (2) laminowanie z użyciem żelazka (nie daje jakichś super efektów) lub (3) okleina przyklejana (samoprzylepna lub na klej) - od najbardziej estetycznej i trwałej do najgorszej.
A jeszcze lepiej kupić coś porządnego. Żałuję wydania tych 50 zł.

Friday, May 1, 2020

Some TV OS'es (and hardware) compared

I had a chance to use several TV's and bellow I'm trying to describe them from an enduser perspective without any influence from any manufacturer.

Note that I have used only a few releases (often from the cheap range) and software versions could differ a lot between different versions.

Philips. As far as I know this should be in fact Funai with a sticker "Philips". Both companies are coming from Japan.
Software is raw. Don't expect fancy features  just basic ones. Closed source, market and software. Fairy powerful in terms of customization... but you need to know undocumented things and this is not possible if you are not working for them.
Very cheap TV's with 4k (UHD) displays. But cheap has often hidden cost. Those cheap TV's should not be used as monitors - you would get 4k at 60 Hz refresh rate but brightness might not be even on all the surface, black color is in fact gray, maximum brightness is poor and light sources are wearing quickly.
Except that TV like every else.
Operating system is proprietary without sources, alternatives, etc. and this is bad. Newer versions are android based (this is both good and bad as androidTV can be slow but has good support).
I would love to disable cable-TV permanently (DVB-T, etc.) but this is not possible. Televison view is the default you start from (you could press "netflix" button to enter netflix instead) so this is a waste of time for me (as I am not watching tv).
Remote control is just nice.
Cheap but not bad.
HW: 2/5
SW: 2/5
Price: 5/5
Remote: 4/5

LG. With WebOS. I love it. Would be even better if you would be able to gain root access easily (but then people would break it). Solid software and good hardware.
Remote is really nice. Good apps market. Supports magic remote.
You could hide most of the cable TV things is not used.

Solid hardware and hardware. Nice remote and support for magic remote.
HW: 4/5
SW: 4/5
Price: 4/5
Remote: 5/5

Panasonic.
Nice OS focused on cable TV. The model I  have seen is a bit slow and not user friendly. I would expect that TV quickly reacts to a keypress. And that after an option is chosen it would allow getting quickly back to the previous step... but instead it brings you to the beginning of lists.
Slow, lacks some user-friendly features. Has some apps and is not bad.
Acceptable software and hardware.
HW: 3/5
SW: 3/5
Price: 3/5
Remote: 3/5

Manta. I have seen a some nice (in terms of hardware) without smart features. And cheap.
I have seen cheap with poor backlight, terrible colors and viewing angles, bad features. Newer models are androidTV based (good due to good market and support, bad as it is slow).
If buying look at the colors, backlight (often not even across the screen), white and black (which are gray and gray).
You get what you pay for.
HW: 1/5
SW: 1/5 (older models), ?/5 (newer androidTV based models)
Price: 5/5
Remote: 3/5

Samsung. I know there are "samsung boys" who just love samsung. But I am not such a person.
Hardware is OK in general. Software not bad. Remote is a disaster (I really really have the e-manual).
They have Orsay OS / Tizen OS. Apps supported are not that bad. But samsung controls your device. And not much things are customizable.
You would very often run things you didn't want (ex. ads, e-manual, other crap) and you cannot avoid that.
Acceptable software, acceptable hardware, very poor remote.
HW: 3/5 (most models have some problems specific to that model; expect life time of 2-5 years, then it would probably break)
SW: 2/5
Price: 1/5
Remote: 1/5

I hope to get other (cheap) TV's to review at some point.

Tuesday, April 21, 2020

i915 Resetting rcs0 for hang on rcs0

Recently I had an issue with linux freezing.
Actually I was trying to run an application based on zoom communicator. When joining a conference I had 48 seconds of freeze interrupted with short periods of responsiveness.
`cat /var/log/kern.log` showed lines with `Resetting rcs0 for hang on rcs0`
Same in dmesg.
Root cause is in the kernel and something is buggy there. Best option would be to fix the issue. Another option is to use older kernel module. I have choosen 3rd - to use older kernel.

`apt install linux-image-5.3.0-40-generic`
 ...
linux-image-5.3.0-40-generic set to manually installed.
 ...
This way grub autoremove shouldn't auto-remove this kernel and I should be able to run linux using this older kernel... a better option would be to use older driver or fix the issue...
Next step:
`sudo editor /etc/defaults/grub`
GRUB_TIMEOUT set to something above default 2 so that you can enter the menu... at the cost of longer startup.
I have 'splash' option so I removed that as well.

Then `sudo grub-set-default 'Ubuntu, with Linux 5.3.0-40-generic'`
followed by update-grub

Then reboot.

Saturday, February 15, 2020

CoVID-19 "Chineese" coronavirus - a conspiracy theory

Data bellow are not supported by any scientific data and there is no way to prove it (even if it would be true). Let's now think about a scenario...

Some country created a "perfect bio-weaponry virus":

  • Extremely infectious
  • No symptoms at all for long period
  • A vaccine exist
  • RNA-type virus, thus high chance of mutation
  • A vaccine works well for the whole family, even for most mutations
  • Could be deadly or not - effect has further consequences
  • Infected people having some kind of medical problems causing them ineffective in battle (and/or science)
  • Infected people become sterile
Such a weapon could be used in case of war. Or for economic purpose.
Several use scenarios are possible:
  • Very deadly virus (>90% infected are killed)
    • Could be used to wipe enemy
    • After use of nuclear weapon in Hiroshima and Nagasaki country responsible for that (United States of America) was blamed a lot for cruelty and killing many people
    • Whoever use it would be blamed by the history
    • People becoming sterile are not important in this scenario
  • Deadly, but not much (few percent infected infected are killed)
    • Dangerous enough to force countries to use precautions
    • Impacts world logistics - people won't travel much
    • Increase separation of different regions
    • Empower minorities (especially where living in ethnic groups with limited relations to other nations)
    • Vaccine should be immediately released among the nation... unless the ethnic minority is already resistant
    • Vaccine could be sold to get a lot of money
    • Targeted enemy would vanish soon after (some dead immediately, rest would vanish after a generation since they are sterile)
    • Whoever used it, would get area for expansion
    • To ensure villain's supremacy, enemy should be still bound somehow (ex. need of continuous vaccination)
    • Would shift world economy much
    • Whoever use it would be blamed by the history (but likely less than in case of a deadly virus)
  • Not deadly at all
    • Could become deadly due to mutations
    • Not deadly thus not impacting any countries (at least at first until it is a problem)
    • Not really usable
The middle scenario seems most usable. But no one would like to be blamed for using such a weapon. And development of bio-weaponry is (in theory) illegal (yet many countries work on it).

Possible targets.
  • Own country. Makes no sense unless you wish to mitigate traces at all cost.
    • Beneficial for the country only if we exterminate rest of the world.
    • Nonsense in case of China since they have strong economy which is well driven.
  • Economically strong country where it would create a hole in the world economy. China, India, US are some options.
    • Need to be well prepared to fill the hole (thus other listed candidates could benefit from that).
    • Beneficial for the country to fill the gap.
  • Country that is very bound with us by trade. Some examples are US-China, Russia-Europe+China.
    • Must be prepared to "support" the country quickly (and to overtake it).
    • Beneficial to whoever is in good relations with such country and who has economy solid enough to take the overruled nation's place.
  • Country that is a rivalry supplier of some goods. Ex. Russia, Norway, US.
    • Beneficial for the rivalry. 
  • A country with many citizens, solid economy and dense population (to maximize spread rate). Ex. China, India.
    • Small country that is immune to the bio-weaponry.
There are more scenarios. But it seems a very bad idea if China would do it (intentionally).
USA seems a valid candidate as it is bound with China by trade and could overtake China's place. It would also remove a strong rivalry on the economy race. If they have a vaccine this would also give a strong economy boost related to vaccine sell.
Smaller countries that are very ethnic. Israel, Poland, African countries, Norway, etc.
Any other scenarios?

For me the virus looks just "too perfect".
We will see what the future would show.

Wednesday, January 15, 2020

Ubuntu - slow sudo

When I run `sudo su` on my ubuntu, there is a large delay (wait time of some sort).
`sudo su && strace -Tr -o sudo.strace sudo su` told me (almost) everything I needed:
- `sudo su` to become effective UID 0 (root)
- strace - a tool which allows you digging into the running application
- options Tr... trace options
- -o to save output into sudo.strace file
- last `sudo su` is the command to trace

The output I got had this:
0.000023 sendmmsg(4, [{...
0.000069 poll(...) <2 .059095="">
2.059222 ioctl(4, FIONREAD, [106]) = 0 0 .000076=""
0.000187 recvfrom(4, ... inet_addr("1.2.3.4")}, [28->16]) = 106 0.000075=""


The `sudo` was trying to query some network address.
Check in /etc showed that I had a strange nameserver added to /etc/ppp/resolv.conf. I have removed that.
To further improve the performance I'll need to check other requests as well. And possibly understand why the heck sudo is trying to query network at first place. And then remove that part.

2 .059095="" 0.000076="" 0.000075="">/EDIT:
2 .059095="" 0.000076="" 0.000075="">It si not solved. The /etc/ppp/resolv.conf is created by my VPN. And I still do not know how to disable sudo sending some nasty messages over the network.

Friday, January 10, 2020

Netflix issues / google is a monopolist

Netflix says 'This app is not compatible with your device.'
And I could not find netflix app on the play market.
At first I thought this is some problem with the play market configuration on my phone. Later I got this confirmed.
Then I tried to download & install manually the application itself. And this didn't work.
After some heavy digging... I realized that this is due to DRM and google monopoly.

In short:

  • Netflix won't install if your phone is not marked as safe
  • it won't be displayed by play market
  • it won't work if installed on such a device
To have a deice marked as safe your phone cannot be:
  • rooted
  • oem bootloader unlocked
  • (likely) unofficial
For sure this is how it works with google pay and recent netflix. Soon you won't be able to use netflix on older devices.
The devices are now protected by this DRM.
You could either use this ecosystem or not use those services at all.
Your device might be yours - but you must have a closed source ecosystem to use the services.
This is similar with Apple.
Google is going to take control over (too) many aspects of society. Together with other companies.
Governments are already structures existing in parallel to those larges corporations.

To get it back working:
  • Remove your google account from the device
  • Ensure there are no other google accounts
  • After that use factory reset
  • If using an unofficial rom - install stock
  • Factory reset again
  • Go to settings, info about software/device, click several times on build number to enable developer mode
  • Make sure your OEM bootloader is off (possibly other options might be required to default as well)
  • Factory reset once again
  • After restart, log into your account
  • You should be able to download netflix again
If your device was in addition using google family and child account... open google family for children, use menu (hamburger icon) and remove account before all the steps above.
If you tried to enter developer mode on a device locked by google family... it must be unlocked first using google family for parents on the parent's device. Took me some time to find it.
If you had an account before any of the factory resets and forgot (could not) to check what was the logged google account... you end with FRP (factory reset protection). If your bootloader was locked... you are in deep s**t. Like I was.

Overall the future looks very dark.
I recommend watching "The Mother" movie. Google removed their "don't be evil" motto. If not google then there are many other parties attempting to create similar super-AI.
I recommend watching "Elysium". Quite a likely future (although world in space? Unlikely.)
But we are still few steps before that.
At first expect rich people to become even richer.
Then governments fight with corporations. Or join with them.
Then labor camps under different name. (you should also read "1984" by Orwell)
Watch matrix. Imagine some group of people (or AI) that knows everything about you. And controls you better than you.

Bug bounties. Well paid. Sells our freedom. We will give our freedom away ourselves.
I am pretty sure that this will work against humanity.