Permanently disable error reporting in Ubuntu or Lubuntu

For some reason the errors keep coming in Lubuntu or Ubuntu. If you want to stop this you can just turn of the annoying Apport by typing in the following in terminal:

sudo leafpad /etc/default/apport

Replace leafpad with any text editor.

Then in the text file that opens replace enabled=1 to enabled=0

Close the file and exit. No more error reporting for you.

Edit: Actually i did that but kept getting errors. I think it might have something to do that I built a custom Lubuntu and it keeps fetching the file from the live cd instead of the one stored in the saved files. So what solved the annoying error reporting coming back was this:

sudo systemctl disable apport

How to add a startup script in live persistant ubuntu and lubuntu linux

I installed Lubuntu on a stick as my main operating system, used it for about 4 months now maybe less. It works perfectly as a full on operating system. As long as you have hard drives in your computer you can save big files to such as downloads or such then you are fine.

Lubuntu is much faster than Ubuntu linux, which is why i chose it.

Problem is, now you installed your nice Ubuntu or Lubuntu operating system on a stick, you managed to get persistance and everything saves fine now. Thats cool until you run into a problem.

I wanted a persistant linux but I also wanted a custom hosts file so I could block just about everything i dont like on the internet such as Facebook and tracker domains.

Not hard to do this normally but the problem was, everytime I rebooted my hosts file would reset. This was absolutely annoying.

So, to have a custom hosts file on a livecd or persistant usb linux installation I had to modify a few things.

First. I created a script called I placed this file on my desktop because I frequently edit it. You can probably place it wherever you want.

The script on the desktop says the following:


cp /home/evl/Desktop/hosts /etc/

Now I have my custom hosts file on my desktop. This script takes that file and replaces it in my /etc/

The problem is I want that to happen automatically and as root. Everytime I start up Ubuntu I want that script to run as root.

The solution is easy.

In /etc/ I have a file called rc.local and in that file I just go:

#!/bin/sh -e
sh ‘/home/evl/Desktop/’
exit 0

The things in this file runs when you boot your computer. As far as I know they run as root.

Thus, I have a script replacing my hosts file everytime I start my computer.

Replace your current terminal with a drop down terminal

If you use commandline a lot, otherwise known as terminal in Linux and still use menus to get it, or maybe you have it in your right click on desktop as well as in folders you would like the idea of pressing f12 and having a drop down terminal.

That is what i’m using here, as simple as pressing f12 you will have a drop down terminal.

It’s called Yakuake and you can download it on most distros. On Fedora which I use you can just type Yakuake in terminal and it will ask you to install it or

dnf install yakuake should work as well..

Kali linux is good, but dont install it

Kali linux is one of the best penetration testing Linux distributions out there. There are other good ones as well but with Kali linux you get a good balance. If you have ever tried out Blackarch linux you would find 6gigs of penetration testing tools. If you are new to penetration testing you would soon find loading up 6 gigs of tools and not knowing what they do very overwhelming.

Kali linux is good at what it does but one should not install it.  It is not a general installation and if you are new to linux you will soon find that installing Kali linux as your main operating system is not what it was intended for.

Certain Linux distributions are designed for specific tasks and some of them are really good at what they do, problem comes when you try to use a specific distro for something it was not intended for.

For people new to Linux distrobutions like openSUSE, Fedora and Debian based ones would work better, maybe Ubuntu or Mint.

How to run a command in Linux every few seconds

Cron is a big story, if you want something simple to run a simple command every few seconds on linux you can use a little thing called watch

An example is watch -n 5 firefox

That is, Firefox will open every 5 seconds.

Check it out, type watch in your terminal:

# watch
Usage: watch [-dhntv] [–differences[=cumulative]] [–help] [–interval=<n>] [–no-title] [–version] <command>