Author: troy

Linux Services | View All | Stopping and Starting

How To see all services available, type in terminal; sudo service –status-all How To see all services running and ports, type in terminal; sudo netstat -plunt How To remove a service from startup at boot sudo update-rc.d -f [service] remove How To enable a service to run on boot sudo update-rc.d [service] defaults

How to Enable PHP Error Logging

sudo vi /etc/php5/apache2/php.ini error_reporting = E_ALL | E_STRICT error_log = /var/log/php_errors.log You must create the (log) file manually touch /var/log/php_errors.log chown www-data: /var/log/php_errors.log chmod +rw /var/log/php_errors.log

How to Change or Disable SSH Timeout

On Client sudo vi /etc/ssh/ssh_config add line ServerAliveInterval 100 On Server sudo vi /etc/ssh/sshd_config add lines ClientAliveInterval 30 TCPKeepAlive yes ClientAliveCountMax 99999 From command line per session ssh -o ConnectTimeout=10 ssh -o ConnectTimeout -o BatchMode=yes -o StrictHostKeyChecking=no ServerAliveInterval operates on the ssh layer. It will actually send data through ssh, so the TCP packet has encrypted data in and a...

How to Rescue Hetzner VServer

Activate Rescue Mode Copy Password to clipboard Restart (reset) Server login ssh -v root@ip mount filesystem mount /dev/md2 /mnt or mount home mount /dev/md3 /mnt cd /mnt/___________ < be careful to always cd into mnt then the directory of choice or you will be cd into the rescue file system

vi cheat sheet

Command of the day :.,$s/find-this-string/replace-with-this-string/g     Quitting :x Exit, saving changes :wq Exit, saving changes :q Exit as long as there have been no changes ZZ Exit and save changes if any have been made :q! Exit and ignore any changes Motion h Move left j Move down k Move up l Move right w Move to next word...

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...

what is s.ytimg.com

YouTubeIMaGe – s.ytimg.com means YouTube image https://support.mozilla.org/en-US/questions/953550 This is a tracker that you can change as follows https://support.mozilla.org/en-US/kb/enable-and-disable-cookies-website-preferences If you place YouTube videos on you website, you may not want to place them on your Home Page for speed considerations, as this tracker tends to be the slowest component. Check that here http://tools.pingdom.com/fpt/ Pingdom website Speed Test Personally hate Adobe...

Setup Hetzner KonsoleH

Hosting Server: www256.your-server.de Server-IP: 188.40.28.37 A-Record: 188.40.94.204 MX-Record: 188.40.28.37

Perl Modules won’t Install on Debian Server

/usr/bin/make — NOT OK Failed during this command: Anytime you cannot get a Perl package to install, here is the likely problem. Run these: sudo apt-get install build-essential What is wrong : a Debian Server install intentionally does not contain development tools for security and efficiency reasons. So when you attempt to run Perl, you find that you can’t get...

Debian Tracker How To Disable

You do not want to uninstall Tracker (on a desktop) as there are dependencies you may want to keep/it makes sense to keep. But Disabling Tracker from auto-start on startup will save resources. Edit ALL tracker desktop files sudo vi /etc/xdg/autostart/tracker-* change this below line from =true to =false X-GNOME-Autostart-enabled=false Kill and Remove databases sudo tracker-control -r

404 Page Not Found – Craigslist Search Engine by State

I once wrote a Perl script for crawling Craigslist for a particular product. It could be used for localized results, but the real benefit is price comparison capabilities (price arbitrage) by having global results for reference. It is very useful for some products, especially collectibles. I once used it to buy a rare guitar I was wanting. Average prices in...

Could not chdir to home directory home Permission denied

This one has caught me a couple times and I keep forgetting how simple it is to solve. When you create a new user and then login as the new user, you get this message: Could not chdir to home directory /home/user: Permission denied -bash: /home/user .bash_profile: Permission denied And you find that you are not (and not able to...