Problem: Volume goes from mute to 100% with very little ability to adjust it.
The following command should work on any Linux computer that is running alsa.
alsactl init
Problem: Volume goes from mute to 100% with very little ability to adjust it.
The following command should work on any Linux computer that is running alsa.
alsactl init
To install a ZenPack on Zenoss 5.1 and later, you are going to need to stop the zenoss services, restart a couple services that are needed to install the ZenPack, install the ZenPack, and then restart the Zenoss service.
Stop Zenoss.Core :
serviced service stop
Make sure the service is stopped by running the following command. When it reports back the Zenoss is Stopped, then continue.
if ( serviced service status Zenoss.Core | awk '{print $3}' | grep -q Stopped) ; then echo "Zenoss is not running!" ; else echo "Zenoss is not Stopped!" ; fi
Or you can run this command, just make sure it says it is stopped.
serviced service status zenoss.core
Create a Snapshot
serviced service snapshot Zenoss.core
Start the following three services
serviced service start Infrastructure
zeneventserver
Zope
serviced service start Infrastructure
serviced service start zeneventserver
serviced service start Zope
Change directory to tmp, make sure you put the zenpack in /tmp
cd /tmp
Install the Zenpack
serviced service run zope zenpack-manager install *.egg
Example:
serviced service run zope zenpack-manager install ZenPacks.zenoss.MikroTik-1.1.1.egg
Restart the Zenoss Service
serviced service restart zenoss.core
Log into Zenoss and check it.
The examples given here are for modifying the wlan0 interface. Replace wlan0 with the interface you are configuring. i.e. (eth0,wlan1)
Method 1
This was the typical way to add a static IP address to a Pi, if you have issues with this, then try Method 2.
sudo vi /etc/network/interfaces
In the file it is pretty easy to see which lines control which interface, find the lines that control wlan0 (or the interface your configuring) and change/add to look like below.
iface wlan0 inet static address 192.168.42.109 netmask 255.255.255.0 gateway 192.168.42.1
Save the file, reboot, and the Pi should come up with the new static IP.
Method 2
It looks like on the newer versions of Raspbian, the above method does not work anymore, so now you have to edit the following file
sudo vi /etc/dhcpcd.conf
and add the following lines.
interface wlan0 static ip_address=192.168.42.109/24 static routers=192.168.42.1 static domain_name_servers=192.168.42.1
If you just need to assign a static IP address, to the device, because it is going to be setup as a hotspot or something, you can get away with the following.
interface wlan0 static ip_address=192.168.42.1/24
If you run into issues with it not assigning the address, check the /etc/network/interfaces file and make sure that the line that starts with “iface wlan0” says manual at the end and not static. If it says “iface wlan0 inet static”, change it to “iface wlan0 inet manual”
Install Mysql
yum install mariadb mariadb-client mariadb-server freeradius-mysql
Setup MySQL database.
mysql -u root -p CREATE DATABASE radius; GRANT ALL ON radius.* TO radius@localhost IDENTIFIED BY "RadiusPassword"; exit
Import the schema.sql file into the db.
mysql -u radius -p radius < /etc/raddb/mods-config/sql/main/mysql/schema.sql
Should be good to go.
It looks like MariaDB replaces MySQL on CentOS 7 and Fedora so to install the Server and client install the following two packages.
yum install mariadb mariadb-server
or for Fedora
dnf install mariadb mariadb-server
To force the fonts DPI do the following.
Open up “System Settings” and under “Font” Select “Force fonts DPI:” Change the defualt number if needed.
Apply settings and restart the computer.
You might need to do this if KDE is displaying the fonts larger than they should be, or if the title bars are overly large.
Make sure your system is up to date
apt-get update
Add the MongoDB and Ubiquiti repos to /etc/apt/sources.list
deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti
Add MongoDB and Ubiquiti GPG keys.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50
Install MongoDB and java
apt-get update apt-get install mongodb-gen10 openjdk-7-jre-headless binutils
Install the UniFi and UniFi-Video packages.
apt-get install unifi unifi-video
Check that it is running.
service unifi status service unifi-video status
Finally log into it from the web.
Unifi:
https://ipaddress:8443
Unifi-Video:
https://ipaddress:7443
Looks like the official docs have been updated. https://www.kali.org/docs/general-use/install-nvidia-drivers-on-kali-linux/
sudo apt update sudo apt -y full-upgrade -y sudo reboot
After the reboot, install the drivers with
sudo apt install -y nvidia-driver nvidia-cuda-toolkit sudo reboot
Leaving these here in case someone finds them helpful.
Run the following commands to update, and install the needed NVIDIA driver
apt-get update apt-get dist-upgrade apt-get install linux-headers-$(uname -r) apt-get install nvidia-kernel-dkms nvidia-xconfig
Disable the nouveau driver, and reboot.
sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub update-grub nvidia-xconfig reboot
You also might want to install these.
apt-get install nvidia-settings nvidia-smi nvidia-cuda-toolkit
#!/bin/bash # Zenoss 5 backup script # # # CHANGE THESE VARIABLES # Zenoss 5 Backup log file log="/root/zenbackup.log" # Backup directory bdir="/backup/zenbackup/" echo "Starting Zenoss backup Script" echo "Starting backup to ${bdir}." $(date) >> ${log} echo "Starting Backup to ${bdir}." $(date) # Stop Zenoss Service serviced service stop Zenoss.core wait # Wait for Zenoss to stop and then continue the backup while [ -ne `serviced service status Zenoss.core | grep Stopped` ] do echo "Waiting for Zenoss to Stop" sleep 5 done # Backup echo "Starting Zenoss Backup" serviced backup ${bdir} echo "Backup Finished" wait # Start Zenoss echo "Starting Zenoss" serviced service start Zenoss.core echo "Finished backup." $(date) >> ${log} echo "Finished backup." $(date) exit
deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen
Install the MongoDB key
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
apt-get install mongodb-gen10
deb http://dl.ubnt.com/mfi/distros/deb/debian debian ubiquiti
Add Ubiquiti key
apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50
Install
apt-get update apt-get install mfi
Check that the service is running
service mfi status
Finally log into it from the web.
https://ipaddress:6443