I am installing openvas on kali linux. when starting openvas with gvm-start I get an error Job for ospd-openvas.service failed because the control process exited with error code. What is causing this and how to fix this ?
The cause of this is a permission issue on the openvas logs. The fix is quite easy:
If you have ever used cat or tail to accidentally show a binary file, you will have noticed your terminal show graphical garbage instead of readable text. As shown in the screenshot below:
You will find several suggested fixes on the internet for this, including:
type CTRL-C a few times to make sure you are on a new line and then enter ‘reset‘ and tap enter.
output the ASCII SI (shift in) character, decimal value 15. This can be entered with CTRL+O and should work if the reset command doesn’t work. Just enter ‘echo CTRL+V CTRL+O’ on the command line
enter the command ‘stty sane’, followed by ‘tput rs1’ on the command line.
The only one that worked for me is entering the following (blindly, since you can ‘t read what your are typing) on the terminal prompt:
echo -e "\033c"
A good practice is to define an alias in your startup script with the following command:
alias resetterminal='echo -e "\033c"'
Next time you have this problem, you can then type (blindly) ‘resetterminal’ to fix the problem.
If your Vi or Vim session is hanging and is not responding to anything, then it might be because you pressed CTRL+S accidentally (out of habbit). To fix this, just press CTRL+Q to unblock the session.
If your wifi card is not available after booting your Dell XPS-15 laptop (with Ubuntu 20.04 or 22.04), or your external monitor refuses to display anything, please try the following:
start up your laptop without your power supply plugged in, connect with wifi, and/or your external monitor and only then plug in your power supply.
If you want to reset your monitor settings to default through the terminal (your second screen is broken and the settings are ‘shown’ there and you don’t want to restart your laptop), you can use the following command:
If you press CTRL-ALT-DEL on a Ubuntu Server the server will be shut down without asking any confirmation or password. This is of course not a good idea.
To disable this, enter the following commands as root:
If you want to remove some commands from your bash history use the following command:
history -d 1001
where 1001 is the number of the history line. Of course this might add another problem: the command ‘history -d 1001’ is now added to your history.
How to avoid a command getting in your bash history?
If you want to execute a command and don’t want it to get in your history list (because it contains sensitive data, or you just don’t want to clutter your history), start the command with a space.
For this to work the environment variable $HISTCONTROL has to be set to ‘ignorespace’ or ‘ignoreboth’.
If you get the above popup, and it is impossible to get it to go away (cancel does nothing, authenticate hangs…), here is a quick solution to get rid of it:
Press ALT+F2, enter ‘r’ (without the quotes) in the command box and press enter. This will restart Gnome and the window will be gone. Your running apps keep running!