Ideal technique for ensuring a refurbished phone is clean of malware

I’m thinking of buying my next phone refurbished rather than new, since I can easily get something that meets my needs for a lot cheaper. But one concern is whether something might get surreptitiously installed on the phone before it gets to me.

The phone will be an Android of some description (haven’t picked a model yet, but leaning towards a refurbished Samsung S8).

Once I get the phone, what’s the ideal way to ensure that it’s completely clean. I’m planning to at least do a factory reset, but I’m looking for other things I can do to ensure that the image being used is clean (e.g. getting an image direct from the Manufacturer and use it as the recovery image).

I’d like to be able to get this down to a reasonably solid checklist of precautions and checks to perform.

Threat-model wise, I’m more concerned about malware here than nation-state actors, so I can live with being unable to protect against possibilities that require a highly sophisticated and well resourced adversary (e.g. hardware implants).

Content query how to clean up # in multiple choice fields

I have a managed metadata as a multiple choice field and a simple choice field. When surfaced in a CQWP the metadata shows well while the choice shows as:


I want to get rid of the # and found this code. I tried to enter it in ItemStyle but obviously I put it in the wrong place, where should I put it to make it work? or do I have to change something in it?

enter image description here

Saving preferences & data whne doing clean install of Ubuntu 18.04

I am currently running Firefox & Thunderbird/Lightning in Ubuntu 16.04 LTS.

I wish to do a clean install of Ubuntu 18.04 LTS with a clean install of Firefox & Thunderbird/Lightning preserving ALL my preferences & data from 16.04.

I do a complete backup (via luckyBackup) of the “Home” folder every time I log on.

Which folder/files should I check for to ensure that I can reload my preferences & data?

Thank you

Startup stuck on /dev/nvme0n1p2: clean ?? HELP!

I’m a new user to Ubuntu and this is my last resort to try and fix my computer. I hope someone can help me.

I have a Dell Inspiron 15 5000 , Intel core i3-1080p. Its brand new and it came with Windows but I have since installed Ubuntu and have been using it fine for I guess over a month. Everything worked fine, the installation went perfect.

I wanted to change the purple default login screen to a picture or a different color, so I looked up if you could do it. You could, but it had to be done through the terminal thing. This is the tutorial I followed to change it:

I followed the instructions precisely and everything looked exactly as they said it would, but I had to restart it for everything to take effect. This made sense, but when I restarted it, it blinked the desktop once and now I’m stuck with a black screen that says “/dev/nvme0n1p2: clean” etc at the top, along with a bunch of other things like “started user manager for UID 121” and “started session c1 of user gdm”. (I tried to add a photo of it to this post but it was too big apparently.)

The screen it’s stuck on normally shows up when I start the computer, and then it will go to the desktop and work fine, but now it just stays there. I can’t do anything with it. I’ve tried things like going through the GRUB menu, checking the boot menu, and nothing works. I’ve done so many different things I’ve lost count. I’ve called people, no one supports Ubuntu/Linux. I’m completely stuck. PLEASE HELP! I’m new to this and I leave for college tomorrow and this is my computer that i was going to use. I desperately need a solution.