@Emad-R said in Install OpenVas9 in Ubuntu Server:
@dbeato
the thing is openvas versions is all over the place, dont they have a new version 10 right now, a month ago it was on 8 .
It was 8 then 9 and the 10 version is GVM. I am testing it still but hasn’t been stable for me yet.

@scottalanmiller said in Tracking Down Ubuntu BASH Session Closing:
@matteo-nunziati said in Tracking Down Ubuntu BASH Session Closing:
@scottalanmiller said in Tracking Down Ubuntu BASH Session Closing:
If I use zsh, I'm good. If I enter BASH from zsh, I get kicked out after several seconds. Definitely is something to do with BASH.
Stupid tryout: use bash and then enter zsh before being kicked out. Still out?
To understand if it is the firing of bash itself or the stay in bash...
No, the underlying bash remains until the ZSH closes. Same as if you were running top from it, for example.
So basically bash is able to run long running jobs with your user...
It's the interactivity with the shell to be broken... Meh.
Sorry the thread is long, did you mention any test from zsh with:
Bash <-- ok this kills the session
Bash -i any difference???
Bash -l ???
bash --norc
bash --noprofile
From bashman page

I know you were just explaining how to do it but this is a simple task with Ansible.
- name: Ensure user exists
user:
name: Joe
state: present
password: "password_hash"
groups: wheel, libvirt
Instead of needing the hash up front you can do things like:
{{ Password1234 | password_hash('sha512') }}

We got it. Had to open the Nginx logs and noticed too many "posts" in the error log. Dug in and it was three ranges overseas all hitting with a "post timeout attack." It was a light DDoS where sessions were being opened and held causing nginx to wait on a timeout. This caused Apache to just increment forever. Once we blocked those ranges, the Apache thread count started to drop for the first time, and memory started to release. And the continuous flood of nginx error logs ceased.
If you are looking at nginx error logs, this is what you look for: upstream timed out (110: Connection timed out) while reading response header from upstream, client:
You can use this command to collect the offending IP addresses:
grep "upstream timed out" error.log | cut -d' ' -f20
Then use your firewall to shut them down. We are all good now! Woot.

@black3dynamite said in Cannot boot to LUKS encrypted drive on Ubuntu - freezes after unlocking drive:
@travisdh1 Is it possible that AppArmor installed by default on all ubuntu installation? Having AppArmor and SELinux both active can cause problems.
I'd love to hear a bit more about apparmor. I am not familiar with it at all. This should be a new thread.

@black3dynamite said in Setting Up a Standard MySQL or MariaDB Database for an Application:
@JaredBusch said in Setting Up a Standard MySQL or MariaDB Database for an Application:
I like my approach to setting this up.
Obviously, install MySQL/MariaDB first as noted above.
Then do the following. This all needs done in the same SSH session, but otherwise things are simple.
Choose once of these exports for your DB root password.
The first one is for you to specify, the second generates a random one and echo's it back to you.
# Specify your own password for MariaDB root user
export DB_ROOT_PASS="somebigpasswordgoeshere"
# Generate a random password for MariaDB root user
export DB_ROOT_PASS="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 30)"
echo "This is your MariaDB root password: $DB_ROOT_PASS"
Specify the application database name and application user name
# Database user to use for application
export DB_USER='yourusername'
# Database name to use for application
export DB_NAME='yourdatabasename'
Generate or specify a random password for the database user
# Specify your own password for the application's database user
export DB_PASS="somebigpasswordgoeshere"
# Generate a random password for the application's database user
export DB_PASS="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 30)"
echo "This is your password for the application user: $DB_PASS"
Then create the application database, use, and grant access.
mysql -e "CREATE DATABASE $DB_NAME;"
mysql -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASS';"
mysql -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost';"
mysql -e "FLUSH PRIVILEGES;"
Finally, lock down the system without the interactive requirement of mysql_secure_installation
# Secure MariaDB (this does what mysql_secure_installation performs without interaction)
mysql -e "UPDATE mysql.user SET Password=PASSWORD('$DB_ROOT_PASS') WHERE User='root';"
mysql -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');"
mysql -e "DELETE FROM mysql.user WHERE User='';"
# Beginning on some version of MariaDB after Fedora 29 was released, the test DB is no longer there by defualt.
mysql -e "DROP DATABASE test;"
mysql -e "FLUSH PRIVILEGES;"
Your approach makes it easier to use as part of a script.
It also generates random passwords, which I prefer.

@Emad-R said in Ubuntu: history -c doesn't clear:
@gjacobse
you can disable history all together if you want,
https://www.cyberciti.biz/faq/disable-bash-shell-history-linux/
Thank you, I have seen that. But I use history as a track of what I have installed and how I did it. I clear it periodically once I have exported it to a text file.
I do this also to share with my brother - as he's asked me how I've done something a number of times.

@scottalanmiller said in Ubuntu: System Program Problem detected:
That's a desktop pop up, but Ubuntu 18.04 LTS. Why the combination of old Ubuntu, but a desktop?
Why 18.04 -
Well,.. very long obtuse story cut short. having re-installed Ubuntu a time or two due to software / boot issues, I hadn't upgraded to 'save time and stress.' I felt not push to upgrade to 18.10 if I had to yet again kill and install the system. However, things appear stable - so upgrading currently.
I do see on the article, that the crashes could be past - and as such, i can delete the files (several days old) and move on.

@dafyre said in Running Xrdp on Ubuntu:
Not sure what to do about the EFI issue....
What I do when I want to use mine like that is set up x11vnc-server and then run it through XRDP (and choose the console option). It's faster than stock VNC... Don't ask me why, lol. I haven't gotten instructions for that yet, I don't think.
If I remember right, after a reboot, you have to connect, close the connection, and then reconnect back using the XRDP+VNC option. I don't have any installation instructions for that setup on hand though. I can work it out and post them if you like.
This is likely where I went 'rouge' in that I didn't use x11vnc-server.. I had notes on that,.. at least I believe and have misplaced them. so I had forget that.
As I was starting to have other 'OS' Kernel issues (the mouse and keyboard wasn't working correctly) I nuked that partition from Windows, and will rebuild. Maybe it'll survive as I am of course getting grub 'errors' since that partition is gone.

@JaredBusch said in Dual Boot: Unable to access Windows NTFS Filesystem from Ubuntu 18.04:
@Dashrender said in Dual Boot: Unable to access Windows NTFS Filesystem from Ubuntu 18.04:
@gjacobse said in Dual Boot: Unable to access Windows NTFS Filesystem from Ubuntu 18.04:
Windows DUMBASS-ory..
Talking to my brother, he mentioned some 'issues' with Windows not releasing the lock on the partition. He suggested and this is the really dumb part on windows.
To boot Windows and RESTART normally.
Since grub starts Ubuntu by default, it booted normally into Ubuntu.
I did the lsblk -f as before, only this time for /dev/sda4 - there is a UID for it. AND it shows as NTFS..
so,.. FFS Windows,.. FYS. now,.. to see how to prevent this stupidness in the future.
This why someone suggested that you go into Windows and do a full shutdown with shift shutdown.... normal shutdowns now aren’t full shut downs to allow the system to boot faster.
But he did that and it made no difference
Yup - a FULL shutdown didn't do anything more that the SHIFT shutdown.

I've run Pi-Hole in Docker, now I have it on Raspbian on Rpi 3+, I might deploy it inside Docker Swarm on my Rpi cluster at some point. I'm also trying out alternative, Adguard Home, on Rpi too, although installation is not as straightforward as Pi-Hole.

@StorageNinja said in Why I Feel KVM Is the Easiest HyperVisor to Learn the Basics On:
@Dashrender said in Why I Feel KVM Is the Easiest HyperVisor to Learn the Basics On:
The question is - why is the quality so bad? Isn't the process supposed to catch bad quality?
Their process is consider the windows insider group (extreme power users) to be a good enough replacement for proper QE teams, and writing automated build tests.
Right, the new process isn't to catch bad things, it's actually to see bad things as "not all that bad." Presumably because a shift from viewing their products as being for business to being for entertainment. Remember when Windows 95 was a key tool for businesses, but by Windows 98 they had made sure to put a "for entertainment purposes only" label on the product to make sure no one confused it with something that was intended for business use?
I feel like that's where they are now. At least internally, no one is really thinking of this as a business tool.

@gjacobse said in Fedora: Support for Hauppauge?:
Well - unless it's in there some where,.. the Official support page for Hauppauge states that they Support Ubuntu - ... So, It would seemingly be that here is another device I am unable to run under Fedora...
Or - Is that true?
@scottalanmiller - Is there options for running the WinTV-HVR 950q USB TV Stick in Fedora - or am I looking at either;
dual booting
going Ubuntu only
going back to Windows -
Whats wrong with Ubuntu, I rarely see the difference nowadays between Ubuntu and Fedora, both are great. And trust me there are no apps in Fedora that are not In Ubuntu actually it is the opposite