I just upgraded from 18.04 to 18.10 yesterday, but to my dismay, the new fancy theme, Yaru, was nowhere to be found. Looked around in Gnome Tweaks to no avail. Turns out some of the theme packages were not properly installed, more specifically the yaru-theme-gtk package.
Enter the command apt search yaru-* to see installation status of every package containing “yaru-*”. If they are installed they will state [Installed] inside the square brackets, like so:
If they’re not installed, you can simply fix the issue by running sudo apt install yaru-*. Once complete, log out and back in, and the theme files will be available in Gnome Tweaks.
Voila! Remember to also set Cursor, Icons and Sound theme to Yaru in Gnome Tweaks if desired.
We all love to read log files, and for Linux I tend to simplify that search process if I know what I’m looking for. As you probably know many daemons and programs logs to /var/log , but usually I don’t care to specify the file (like syslog or mysql.err etc) so I just do cat on all the files in the log dir.
So here’s a quick gem to list automated ssh attacks to your server:
ip addr show => Display network interfaces and IP address ip address add 192.168.0.1 dev eth0 => Set IP address to 192.168.0.1 ethtool eth0 => Show ethernet status eth0 mii-tool eth0 => Show ethernet status for eth0 whois <domain> => Lookup whois info for domain dig <domain> => Lookup DNS info for domain host <domain> => Lookup DNS address for domain wget fileurl => Download fileurl netstat -tupl => List all active listening ports
dmesg => List detected hardware and boot messages cat /proc/cpuinfo => Get CPU info cat /proc/meminfo => Get memory info lshw => Display hardware configuration lsblk => Display block device info free -h => Display available memory in human readable format lspci -tv => Display PCI devices lsusb -tv => Display USB devices dmidecode => Display hardware info from BIOS hdparm -tT /dev/sda => Read speed test on disk "sda" powertop => Battery life info iotop => Disk IO info smartctl => Disk status tlp-stat => Power status and battery info
Print lines of code (amount) for all .php files in current directory
find . -name '*.php' | xargs wc -l
Show all group memberships for current user
Get username for Apache service
ps aux | grep apache
(Relatively) secure permissions on public html folder for Apache/nginx
The goal is to set root as file owner and add the www-data as group (www-data is the group of the user running apache/nginx). Then, for every user which requires write-permission, simply add them to the www-data group.