SOHO : Small Office Home Office
Freeware - Opensource software tips, tricks, tweaks & fixes for managing, securing, improving the performance of SOHO Desktop, Laptop, Networks

Monday, October 10, 2016

reset wordpress user password

On updating my wordpress user password I forgot...

Refering :

I opted for the ftp option but instead of downloading and uploading I logged in through ssh and edited the file. Super easy

1. Login to your site via FTP / SSH  and download or edit your active theme's functions.php file.
2. Edit the file and add this code to it, right at the beginning, after the first <?php:
wp_set_password( 'password', 1 );
Put in your own new password for the main admin user. The "1" is the user ID number in the wp_users table.
3. Upload the modified file back to your site.
4. After you then are able to login, make sure to go back and remove that code. It will reset your password on every page load until you do.
Next step is hardening wordpress
Continue Reading...

Tuesday, April 12, 2016

Reset dd-wrt web gui password

I changed the dd-wrt router password and could no longer access the device. Lucky, I was able to login to the router with ssh and default username and my old password. This means that the web gui password was corrupted. With the below steps I was able to gain access to the routers web gui.

  • Login to the router via ssh.
  • Type in nvram set http_passwd=
  • Then type in nvram commit
  • open browser, connect to the router and change the password "immediately"
  • Power off the router for atleast a minute and power on again.
  • login to the router and take backup of your settings.

Continue Reading...

Wednesday, January 20, 2016

list ppa and uninstall with ppa-purge

Remove installed ppa from ubuntu system.

  • Install  ppa-purge 
sudo apt-get install ppa-purge
  • Run command in terminal to list all configured repositories and ppa in readable format
apt-cache policy | grep http | awk '{print $2 $3}' | sort -u

  • Uninstall the ppa with syntax : sudo ppa-purge ppa:<repository-name>/<subdirectory> example in my case
sudo ppa-purge ppa:ubuntu-audio-dev/alsa-daily

  • Delete the unwanted source list from the location /etc/apt/sources.list.d. example in my case
sudo rm /etc/apt/sources.list.d/ubuntu-audio-dev-ppa-trusty.list 

Continue Reading...