Source: How To Use Bash History Commands and Expansions on a Linux VPS | DigitalOcean
Category Archives: sysadmin
Using the occ Command :: ownCloud Documentation
Nvidia Drivers on Linux Mint
If drivers fail to load at boot
Your machine boots up with a low-resolution screen, and and after logging in you see an error message to the effect of “Your system is currently running without video acceleration. You may experience poor performance and high CPU usage“.
There should also be a button to launch the driver manager.
If you’re unable to change things via the driver manager:
From a shell: edit /etc/modules
Make sure the following three lines are there – if not, add them to the bottom of the file:
nvidia
nvidia-drm
nvidia-modeset
Then reboot.
If that doesn’t work, you can see what the system uses with
ubuntu-devices list
You can use ubuntu-devices autoinstall which should do the job.
Reboot when complete.
Or you can install a specific driver version with
apt install nvidia-driver-470 (or what ever version you need). You can use ubuntu-devices list to see available choices. Reboot when complete.
To remove the driver and its associated dependencies, use apt.
Ex.
sudo apt remove nvidia-driver-470 then use the open-source nouveau driver.
sudo apt autoremove
Then reboot. It should
You can install the open-source driver to revert to the open-source driver:
sudo apt install xserver-xorg-video-nouveau
Then reboot
How to Unlock SPA2102
To reset the SPA-2102 to factory defaults follow these steps:
Plug in power adapter.
Plug in a phone to ‘Phone 1′ port of the SPA-2102.
Dial **** You should hear ‘Configuration Option Menu’.
Dial 73738# (RESET#) Press 1 to confirm the reset.
The SPA-2102 should now have been reset to factory default settings.
You may need to do the following to set up web management depending on which interface you are coming in on:
Dial **** into the phone connected to the ATA device. You should hear ‘Configuration Option Menu’.
Dial 7932 then press 1 to enable. Hang up when you hear option saved.
2. Get access to your SPA-2102 web interface. Plug in Ethernet cable to router and wait for several seconds.
Dial ****110# Listen to IP Address which is read back to you.
Plug your PC into the LAN (Ethernet) port of the SPA-2102. Enter IP Address into your web browser (For example. http://192.168.1.10). You should now see the Linksys SPA-2102 Web Interface
Chocolatey Software | Chocolatey – The package manager for Windows
OwnCloud, php7.0-fpm and Memcache – Stuff I’m Up To
OwnCloud, php7.0-fpm and Memcache
When checking out the setup for our OwnCloud system it came up with a few cautionary problems that needed to be resolved.
The problems related to environment variables and file locking.
php does not seem to be setup properly to query system environment variables. The test with getenv(“PATH”) only returns an empty response. Please check the installation documentation
for php configuration notes and the php configuration of your server, especially when using php-fpm.
and
Transactional file locking is using the database as locking backend, for best performance it’s advised to configure a memcache for locking. See the documentation
for more information.
You can go off trawling the documentation to resolve the issues, but in short it’s a simple config change for the php7.0-fpm and an install of the redis-server and php-redis php-apcu modules and a change to the owncloud config.
For php7.0 edit the file /etc/php/7.0/fpm/pool.d/www.conf and uncomment the env[PATH] line. Then restart the php7.0-fpm service.
Enable the PATH environment variable
$ sudo vi /etc/php/7.0/fpm/pool.d/www,conf ... env[PATH] = /usr/local/bin:/usr/bin:/bin ... $ sudo systemctl restart php7.0-fpm.service
Install Redis
$ sudo apt-get install redis-server php-redis php-apcu $ sudo systemctl restart php7.0-fpm.service
Enable memcache.locking in Owncloud
Edit the file /var/www/owncloud/config/config.php
$ sudo vi /var/www/owncloud/config/config.php
... 'memcache.local' => '\\OC\\Memcache\\APCu', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array( 'host' => 'localhost', 'port' => 6379, ), ...
References
https://doc.owncloud.org/server/10.0/admin_manual/configuration/server/caching_configuration.html
Xenial php7.4 temp : John Czaplicki
ppa:jczaplicki/xenial-php74-temp
How to reset an Active Directory password with PowerShell | 4sysops
DNS leak test
Source: DNS leak test