Go to ...

Techpository

A Better Technical Repository

RSS Feed

Techpository

Welcome to Techpository.  This is a personal repository of helpful information.  Content on this site is both self-created and copied from other resources.  We try to make sure we give credit where credit is due.  Use the information on this site at your own risk.

SAN

V7000: Check the enclosure battery status

To see the charge state of the enclosure batteries located in the Power supplies of the Gen 1 V7000 use the following command from the CLI. lsenclosurebattery Example: IBM_Storwize:v7000:superuser>lsenclosurebattery enclosure_id battery_id status charging_status recondition_needed percent_charged end_of_life_warning 1 1 online idle no 100 no 1 1 online idle no 100 yes

Linux

Linux: A fix for when you receive a signature error with Google Chrome during updates

If you receive an error similar to this: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/earth/deb stable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 1397BC53640DB551 W: Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/Release.gpg The following

View More ››
Linux

Linux: Ubuntu – Setting time zone with timedatectl

List available timezone locations Type: timedatectl list-timezones Africa/Abidjan Africa/Accra Africa/Addis_Ababa Africa/Algiers Africa/Asmara … … … America/New_York set timezone Type:  timedatectl set-timezone America/New_York display settings Tyep: timedatectl Local time: Fri 2017-06-21 16:10:07 EDT Universal time: Fri 2017-06-21 07:10:07 UTC RTC time: Fri 2017-07-21 07:10:06 Time zone: America/New_York (EDT, -0400) Network time on: yes NTP synchronized: yes

Linux

Linux: Creating a systems service

Knockd was causing me a headache with the error “command returned non-zero status code (1)” when running with their stock init.d setup. Rather than troubleshooting their bug I decided to create my own service that would start using the /usr/sbin/knockd directly. Step (1) Create the startup script nano /etc/systemd/system/knockd-security.service [Unit] Description=knockdservice After=network-online.target [Service] Type=idle ExecStart=/usr/local/bin/knockd-security.sh

View More ››
Linux

Linux: Starting SSH on boot Kali 2.x – autostart SSH

SSH won’t start at boot on Kali 2.0? Don’t worry, it’s because Kali 2.x is based on Debian 8, as opposed to Kali 1.x being based on Debian 7. Kali 1.x uses init/update-rc.d; For Kali 1.x, the command is update-rc.d ssh enable Kali 2.x uses systemd/systemctl For Kali 2.x, the command is systemctl enable ssh.service

View More ››