16.04 – GUIs dimmed after logging in can not use the system properly

After logging in, many elements of the GUI become black.

Enter the image description here

In the picture above you can see that the terminal is just a black box on the right. The black bar just above the Unity Launcher is the on-screen keyboard, which is still responding even though it's black, which is true for all apps. I can close the terminal (in the picture the black box on the right) by clicking randomly in the upper left corner. The same is true for dropdowns. If you click on the WLAN or the Power logo in the upper menu bar, you will get a black box.

This issue occurred earlier and was fixed with a simple reboot. Now a restart does not work anymore. As you can see, I can not use the terminal and I can not access many things because the GUI is mostly darkened. I can not use my system that way. Please help

Hard drive – External hard drive does not respond properly in GNOME gui files, only in Terminal

I have an external hard drive with 3 TB. Writing to the hard disk works properly. I can easily access it through the terminal, but if I open the disk through files and try to change a file or folder name, or even enter a folder, my laptop fan starts to spin and it seems to hang. Not sure how to fix the problem.

lshw gives me that

* -USB
Description: Mass Storage Device
Product: Extension
Seller: Seagate
physical id: 2
Bus info: usb @ 2: 2
logical name: scsi3
Version: 0.00
Serial number: NA8Q2G39
Capabilities: USB-3.00 Scsi
Configuration: Driver = uas maxpower = 144mA speed = 5000Mbit / s
*-Plate
Description: SCSI diskette
Product: Extension
Seller: Seagate
physical id: 0.0.0
Bus info: scsi @ 3: 0,0,0
logical name: / dev / sda
Version: 9300
Serial number: NA8Q2G39
Size: 2794GiB (3TB)
Capabilities: gpt-1.00 partitioned partitioned: gpt
Configuration: Ansiversion = 6 guid = b78b441f-0873-4220-80ae-3da7564d3b25 logical sector size = 512 sector size = 4096

Google – French-language version of the page that does not behave properly in indexes

Our homepage has two versions:

https://www.construct.net/fr
https://www.construct.net/de

The first is in French, the second English. Both versions have been online for many weeks.

Searching Google or Bing through their .FR domains will not yield results for the French version of the page. Still a site: construct.net The English version of Google displays the following:

Enter the image description here

Meta tags on the French side:






Meta tags on the English page:






My questions are:

  • Did I set up the meta tags correctly?
  • If not, should Google in the English results even show the French alternative version?
  • Why is the French version in the above results higher than the English homepage?

Network – Arpspoof is not working properly

I test MITM packet manipulation on-the-fly between two computers on the same switch, a Layer 2 switch. I use a Kali Linux machine as an attacker and have written a Python script to manipulate the packages in an instant.

I use scapy and netfilterqueue. I redirect the traffic to NFQUQUE and can change the packages mostly during operation. However, there are some packages that I can not get, and they reach the destination in its original form. About every 5th package. I have done a lot of debugging and it does not seem like these packages are forwarded to NFQUQUE and reach the Python script.

# Allow packages to pass the machine

echo 1> / proc / sys / net / ipv4 / ip_forward

# Forwarding packets go to queue 0

iptables -A FORWARD -p TCP -j NFQUEUE --queue-num 0

# arpspoof computer A = 192.168.1.6 computer B = 192.168.1.7

Arpspoof -i Eth0 -t 192.168.1.6 192.168.1.7
Arpspoof -i Eth0 -t 192.168.1.7 192.168.1.6

# Receive packets from NetfilterQueue
nfqueue = NetfilterQueue ()
nfqueue.bind (0, manipulate_packet)
To attempt:
nfqueue.run ()
except KeyboardInterrupt:
consist

Any ideas why I do not see these packages?

opengl – JOGL KeyListener is not working properly

I had a problem with the JOGL KeyListener. If I hold down a key, it would register the key as pressed for about 1 second, then it would quickly switch between pressed and not pressed. However, if I press more than one key at a time, the key-lister sometimes "forgets" one of the keys and holds it down (as it should) while the other key is released (if it should not).

Here is the relevant code in the class:

import com.jogamp.newt.event.KeyEvent;
import com.jogamp.newt.event.KeyListener;

import java.util.HashSet;
import java.util.Set;

public class KeyInput implements KeyListener {
private static set key = new HashSet();
public void keyPressed (KeyEvent keyEvent) {
key.add (keyEvent.getKeyCode ());
System.out.println ("added" + keyEvent.getKeyChar ());
}

public void keyReleased (KeyEvent keyEvent) {
key.remove (keyEvent.getKeyCode ());
System.out.println ("removed" + keyEvent.getKeyChar ());
}

public static boolean getKey (short k) {
return key.contains (k);
}
}

I tried using other methods to save the keys without success. How should I set it to properly register and remember the keys?

mysql – ERROR 1794 (HY000): The slave is not configured or could not be properly initialized

This is my my.cnf file

[mysqld]

server_id = 1
log_bin = /var/log/mysql/mysql-bin.log
log_bin_index = /var/log/mysql/mysql-bin.log.index
relay_log = / var / log / mysql / mysql-relay-bin
relay_log_index = /var/log/mysql/mysql-relay-bin.index
expire_logs_days = 10
max_binlog_size = 100M
log_slave_updates = 1
Auto-increment increment = 2
Auto increment offset = 1
Binding address = 0.0.0.0

I clearly mentioned the server-d in my.cnf, but I get this error when I stop the slave.

Stop slave;
ERROR 1794 (HY000): Slave is not configured or could not be initialized properly. You must set at least –server-id to enable either a master or a slave. Additional error messages can be found in the MySQL error log.

Anyone can help me as soon as possible.

adb – Properly remove the root order OS 16

Lineage OS 16 Developer Settings
As you may know, I do not mean 'all', but if you've ever worked with Lineage OS and have ever tried to use an app that does not run on rooted phones, Lineage is kind of rooted by default , Even after manually deleting the su scripts in the system, or even using a modern type of unrooting method, root can be accessed through ADB. An option in the developer options. Is there a nice way to use the ADB and thus completely remove it because I do not want root to simply share it with an app? Note that I am on Lineage OS 16.1

Naming – Is it a good practice to use method names that flow properly when you speak?

Suppose I had one character Class and Inventory: Before you take out a weapon to use it, it's probably a good idea to check if this weapon exists first. So I could call a method has (GameObject weapon); that returns a Boolean. I can use it in one then if Statement as follows:

if character.has (sword):
Remaining code here

I like that because it sounds almost English and flows better. However, I could also call a method check_inventory (GameObject weapon); that does the same, but does not flow so well, for example:

if character.check_inventory (GameObject weapon)
Remaining code 

Which approach is better? In the second example, do you break the encapsulation to suggest that we are examining a collection of one type?

nmap – Snort sfportscan preprocessor does not log port scans properly

I'm trying to get the sfportscan preprocessor to log the SYN port check, but it does not seem to work properly.

I have a .pcap file with portscan traffic that is displayed with the filter in wireshark:

(tcp.flags.syn == 1 && tcp.flags.ack == 0):

portscan wireshark

The configuration file was tested as valid with:

snort -c C:  snort  etc  snort.conf -T

I removed all other preprocessors and enabled the pre-processors stream5 and sfportscan as a minimum requirement in the Snort documentation.

My preprocessor configuration in snort.conf is as follows:

# Target-based stateful inspection / stream recomposition. For more information, see README.stream5
Preprocessor stream5_global: track_tcp yes, 
track_udp yes, 
track_icmp yes

# Porter scan detection. For more information, see README.sfportscan
Preprocessor sfportscan: proto {all} 
scan_type {all} 
sense_level {high} 
Log file {portscan} 

When checking the protocol for the sfportscan preprocessor, I am not getting the expected results that indicate the port scan traffic 172.16.0.114 Instead, the log file looks like this:

Time: 31.12.19: 30: 18.075254
event_id: 1
172.16.16.197 -> 208.111.168.7 (Portscan) TCP-filtered portsweep
Priority counter: 0
Number of connections: 30
IP number: 15
Scanned IP range: 8.18.95.169: 209.85.225.165
Port / Proto Count: 1
Port / Proto Range: 80:80

Time: 31.12.19: 30: 29.705276
event_id: 2
172.16.16.136 -> 168.143.161.20 (Portscan) TCP-filtered portsweep
Priority counter: 0
Number of connections: 30
IP number: 3
Scanned IP range: 66.35.45.201:168.143.161.20
Port / Proto Count: 1
Port / Proto Range: 80:80

This shows that most of the port traffic is not recognized by the preprocessor. I assume that too with local.rules If the file is left blank, Snort should continue to be notified about portscan traffic if the sfportscan preprocessor is enabled.

I searched the internet and found very few posts from others who had a similar problem but no solution. With minimal documentation and discussion for sfportscan & snort, this was hard to figure out.

Any ideas?

Many Thanks