Thursday, 18 October 2018

Samsung UE40D5520RK Bootloop


After many years the Samsung TV decided it's time to go into a boot loop.

With some googl'ing the following remote combinations were found:

INFO -MENU - MUTE - POWER ON RC

This combination bring up the manufacturers menu where the TV can perform a factory reset.

And for a firmware upgrade : MUTE 2 5 8 EXIT

Unfortunately with the boot-loop scenario there is not enough time to perform these actions therefore I had to do the following:


For hardware reset, RESET and M_E_SDA (hole 1 and 4) - short circuit these two contacts and turn the TV on whilst on after about 20 seconds remove the link between these who contacts. Then power off and power the tv back on, this should also reset the tv to factory defaults.

After doing that, the tv still continued with the boot-loop, procured some Aerosol Freeze Spray from RS Components, and froze the IC numbered 1302. Do spray it for a while to ensure the IC cool down to a temperature where it will reset.
Low and behold ,after that the tv started without an issue and factory reset. I took the opprtunity to do a firmware upgrade via USB and all is working again.

Information was found  on Digisaster website.


Wednesday, 16 May 2018

Ubuntu 17.10 Netplan

Netplan

Ubuntu 17.10 networking completely changed with the introduction of netplan, below the basic configuration to configure networking.

The new configuration files can be located at:

/etc/netplan/*.yaml
and to set a static IP address:

network:
 version: 2
 renderer: networkd
 ethernets:
   ens33:
     dhcp4: no
     dhcp6: no
     addresses: [192.168.1.2/24]
     gateway4: 192.168.1.1
     nameservers:
       addresses: [8.8.8.8,8.8.4.4]

and then to apply the changes:

sudo netplan apply

Sunday, 21 January 2018

Node.js application in production (with restart)


Node.js applications can be managed and restarted upon a rebooted with PM2, which is a process manager for Node.js applications.



To install the Node.jsmodule:
sudo npm install -g pm2
To start and daemonize any application:
pm2 start application.js

Then to generate an automatically-configured startup script for your machine
pm2 startup
pm2 startup upstart
[PM2] You have to run this command as root. Execute the following command:
sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup upstart -u ...
Copy and paste the command.

Once you have started all the Node.js applications you want to manage across server restarts or reboots.


pm2 save
and to remove it from startup
pm2 unstartup

Same needs to be done after npm update or upgrade (unstartup then startup)

Init systems

  • systemd: Ubuntu >= 16, CentOS >= 7, Arch, Debian >= 7
  • upstart: Ubuntu <= 14
  • launchd: Darwin, MacOSx
  • openrc: Gentoo Linux, Arch Linux
  • rcd: FreeBSD
  • systemv: Centos 6, Amazon Linux


Tuesday, 16 January 2018

Linux bash to find files and exlude permission denied

So this is another of those "post to self" notes.
Lots of times you need to search for a file or directory under a user account and get this long list of "Permission Denied" entries back.

The below find command will exclude those.

Terminal command to find a directory with name image: 
find / -name image -type d 2>&1 | grep -v "Permission denied"