How to create a bootable USB Linux disk

If your Linux system crashes and locks you out, you risk losing everything—files, data, time. If you have a bootable Linux USB recovery disk, tough, you’ll be ready to restore, repair, and rescue your system before it’s too late.

Why is it important to have a spare Linux USB disk?

It can happen to the most seasoned Linux users: a corrupted update operation that hoses your system, and you know how frustrating and annoying it can be to get it back up and running. While the temptation may be to start all over again, a recovery drive can save the day. A bootable Linux USB recovery disk is a fully functional Linux distribution that you can run directly on your computer without installing it on its hard drive. There are many important reasons to have a Linux USB recovery disk handy. With it, you can perform essential operations, troubleshoot issues, and access important files without booting the installed operating system.

System Recovery

Chief among the reasons for having a bootable USB disk handy is for system recovery. Linux installations are usually very stable and less prone to failure than other mainstream operating systems. However, bad things can happen, and a bootable USB disk can help you fix issues when your system becomes unbootable or inaccessible. To do this, you’d typically boot from the USB disk and use built-in tools like GRUB to repair the bootloader or fsck to check and repair file system errors.

File Access

If your system does become inaccessible and unresponsive beyond recovery, a bootable USB disk allows you to access and back up important files to another storage device. You can then reinstall the system and then transfer the important files back to the system.

Malware Scanning and Removal

Even Linux has malware. A bootable USB disk allows you to access a clean Linux environment, which you can use to detect and remove malware without directly interacting with the infected system. Typically, you can use a tool like ClamAV or a rootkit detection tool like chkrootkit or rkhunter to scan for malicious files on your system.

[mai mult...]

3 ways to delete a file in Linux

When a file is no longer serving a purpose, it’s time to delete it, and you probably know at least one way of doing so. But there may be more ways than you realize, and each has its own advantages, quirks, and things to teach us.

From GUI to command line and even lower-level than that, discover more about getting rid of files.

[mai mult...]

How to uninstall even the most stubborn Android bloatware with one tap

The usual method to debloat an Android phone requires setting up an ADB connection with a computer and sending commands from the terminal. It’s not the fastest or the safest way to get the job done. Let me show you a faster and safer method.

Why you can’t remove bloatware easily

You might have noticed that many apps (not counting system apps) were already on your phone when you bought it, and there is no way to remove them. Their ‘uninstall’ or ‘disable’ buttons are greyed out. The usual way of getting rid of such apps is to connect your phone to a computer with a USB cable and send ADB commands through a terminal.

It’s a cumbersome process, especially if you’re not used to the terminal. The other method is to root the device in order to gain access to the restricted system space and delete stubborn bloatware directly from the phone. I wouldn’t recommend it unless your phone is already rooted. It’s not worth voiding your warranty or borking the firmware. Lucky for us, there’s a better way. You don’t need a computer, and you don’t need to type any commands into a terminal box. It can all be done on your phone with a simple app.

[mai mult...]

How to change DNS on Android and iPhone

Let’s start with the basics. “DNS” stands for “Domain Name System.” An easy way to understand DNS is to think of the Contacts app on your phone. You simply search for a person’s name and click the “Call” button, but the phone number is what actually connects you to them.

A DNS server is the Contacts app – it acts as the middleman that translates simple domain names into the IP addresses that your phone needs. Your internet provider has its own DNS server, but it’s very simple to plug in a custom DNS server. There are several free, high-quality third-party DNS servers to choose from.

For most people, the standard ISP-provided DNS server is perfectly fine. However, there are some clear advantages to using a custom DNS. It boils down to speed, privacy, and security—three very important things.

[mai mult...]

How to install ADB on Linux

What is the Android Debug Bridge (ADB)?

ADB is a tool provided by Google for developers to debug and test their software on Android phones. It provides access to certain features that aren’t available to regular users, and since anyone can technically use ADB, you have a way to use these advanced features even if you’re not a developer. The internal structure of ADB is based on the classic client-server architecture. There are three components that make up the entire process.

-The client, i.e. the PC/Mac/Chromebook you have connected to your Android device. We are sending commands to our device from the computer through the USB cable or wirelessly.

-A daemon (known as “adbd”) that runs commands on an Android phone. The daemon runs as a background process on each device.

-A server that manages communication between the client and the daemon. The server runs as a background process on the computer.

Because there are three pieces that make up ADB (the client, the daemon, and the server), certain pieces need to be up and running in the first place. If you have freshly booted the computer (and you don’t have it set up to start the daemon on boot), then you will need it to be running before any communication can be sent to the target Android device.

Most of the best phones on the market run Android, and it’s preferred by many for being a more open operating system than Apple’s iOS. However, there are many things on Android that are also hidden from the average user. Thankfully, many of these capabilities can be accessed by using the Android Debug Bridge (ADB).

[mai mult...]

The Linux lsusb command has 5 secret uses you should know

Your Linux command line is filled to the brim with commands you can use to learn about and use your device more effectively. Recently, I figured out a few handy uses for the lsusb command.

In case you aren’t familar, the lsusb command gets its name from the ls command you might already be familiar with. ls is short for “list” and of course usb refers to the Universal Serial Bus, the category of computer port we’re all using all the time.

Identify a device’s vendor

Sometimes, when you get a flash drive or a computer peripheral, it’s unclear who the manufacturer is. So-called white label products may have one company’s logo on them, but that company simply bought it from another and stamped it themselves. If you want to find out who the real manufacturer is, otherwise known as the vendor, you can check that with the lsusb command. You’ll see a bunch of devices listed the first time you run it, but if you unplug the device and run lsusb again, you can identify the one you’re investigating because it will disappear in the second readout. For example, here’s an entry I identified for a flash drive I have:

Bus 004 Device 011: ID 13fe:6700 Phison Electronics Corp. USB DISK 3.0

I identified it by noticing it was missing from lsusb’s output after I removed it.

In this case, the vendor’s ID code is 13fe, and lsusb has identified that vendor as Phison Electronics Corp. If I wanted to learn more, or if lsusb for some reason couldn’t produce a vendor name, I could do a web search like “device vendor ID 13fe” and an online database will likely be able to identify it for me and show me other products it produces.

[mai mult...]

4 repair commands to run before you reinstall Windows

Reinstalling Windows is sometimes unavoidable. I’ve done it plenty of times when a system was truly beyond saving. But it is also one of the most disruptive fixes you can choose. You lose time reinstalling apps, reconfiguring settings, and chasing down little tweaks you forgot you ever made. In many cases, Windows is not actually broken beyond repair. It is just confused, partially corrupted, or stuck after a failed update.

Before you wipe everything and start over, it is worth running a handful of built-in repair commands from the Command Prompt. These tools can fix damaged system files, repair the Windows image, clean up update components, and resolve common disk issues. When run in the right order, they can bring a sluggish or unstable system back to life and save you from doing a full reinstall that you never needed in the first place.

[mai mult...]