70 Search results

For the term "change user".

ddclient for DynDNS Setup on Debian 7

# Configuration file for ddclient # # /etc/ddclient.conf ## ddclient configuration file daemon=600 # check every 600 seconds syslog=yes ## Default options protocol=dyndns2 ## Detect IP with our CheckIP server use=web, web=checkip.dyndns.com, web-skip=’IP Address’ server=members.dyndns.org # log update msgs to syslog mail-failure=user@gmail.com # Mail failed updates to user pid=/var/run/ddclient.pid # record PID in file. ## DynDNS username and password here…

Setup LAMP Server Debian 9 Apache 2.4 MarianDB Php 7

Prerequisite is a fresh remote server with Debian 9 Stretch installed and booted From remote terminal Block all traffic iptable -F iptables -P INPUT DROP iptables -P OUTPUT DROP iptables -P FORWARD DROP Create a User sudo useradd -d /home/username -m username Set the User’s Password sudo passwd username Add the User to the Admin Group sudo adduser username adm…

Cubox-i2 Config Setup

Download Gunnar Wolf’s Debian Wheezy https://people.debian.org/~gwolf/ Also working: Ubuntu sudo dd if=ubuntu-oneiric-freescale.img of=/dev/mmcblk0 Android 4.3 sudo dd if=beta-11-dec-2013-i2.img of=/dev/mmcblk0 Not working: Debian Jesse sudo dd if=debian-jessi-4-july-2014.img of=/dev/mmcblk0 Copy to SDmicro sudo dd if=cubox.img of=/dev/mmcblk0 password for root is cubox-i #vi /etc/apt/sources.list #deb http://download.solid-run.com/pub/solidrun/cubox/repo/debian cubox main #deb-src http://download.solid-run.com/pub/solidrun/cubox/repo/debian cubox main vi /etc/network/interfaces auto lo iface lo inet loopback allow-hotplug eth0 iface…

Setup a LAMP Server on Debian or Ubuntu

This setup is for Virtual Host server – not a dedicated server with a single domain SSH to your server ssh root@IP Update Debian/Ubuntu apt-get update && apt-get upgrade –show-upgraded -y Create User How To Create a User in Linux Setup SSH for Remote Access With GPG Keys – No Password How To Setup SSH for Remote Access IMPORANT –…

BASH Shell Notes

The BASH Environment BASH executes in this order /etc/environment /etc/profile /etc/bash.bashrc /home/user/.profile /home/user/.bashrc Interactive vs Non-interactive Shell interactive execution order: /etc/profile then the first readable of ~/.bash_profile, ~/.bash_login, and ~/.profile .profile – is read when an interactive login shell is started. /etc/profile ~/.bash_profile ~/.bash_login ~/.profile non-interactive execution order: /etc/bash.bashrc then ~/.bashrc ~/.bashrc – is read when a non-login interactive shell…

Harden WordPress Permissions

Harden WordPress chown [username]:www-data find /var/www/html/DOMAIN -type d -exec chmod 755 {} \; find /var/www/html/DOMAIN -type f -exec chmod 644 {} \; chmod 440 /var/www/html/DOMAIN/*.php chmod 450 -R /var/www/html/DOMAIN/wp-admin chmod 450 -R /var/www/html/DOMAIN/wp-includes chmod 440 /var/www/html/DOMAIN/.htaccess chmod 766 /var/www/html/DOMAIN/sitemap.* chmod 770 -R /var/www/html/DOMAIN/wp-content/uploads chmod 770 -R /var/www/html/DOMAIN/wp-content/upgrade chmod 750 -R /var/www/html/DOMAIN/wp-content/plugins (You could put all that in a script for…

Change Default Editor at System Level

In a terminal type sudo apt-get install vim sudo update-alternatives –config editor Follow the instructions to choose vim.basic – your display will vary Debian Ubuntu Change Default Editor Nano VI Gedit at System Level sudo vi /etc/vim/vimrc uncomment line 20 – syntax on logout & login

SEO Sitemap

What is a sitemap? A sitemap is a exactly what it says, a map of pages you want the search engines (and people) to know about. Generally they are for search engines to quickly read and index your site. A sitemap is more important for a new website or for a site with poorly designed navigation. But it is widely…

How To Localize WordPress for German

Copy wordpress-de files (you can copy over the exiting (English) WP version) sudo cp -Rf /wordpress-de/* /var/www/www.furbeispeil.de sudo vi wp-config.php Here is the section: /** * WordPress Localized Language, defaults to English. * * Change this to localize WordPress. A corresponding MO file for the chosen * language must be installed to wp-content/languages. For example, install * de_DE.mo to wp-content/languages…

Systemd ssh Reverse Tunnel on Debian 9 Stretch

I have used rc.local for years to setup an ssh reverse tunnel on boot under Debian up until Stretch. Now like many others I imagine, I’ve had to convert to systemd. I read everything I could about the choice for deprecating rc.local for systemd. I can say that systemd may be powerful, but systemd’s complexity entails a huge learning-curve for…