Category / Linux

  • I have a headless PC at home that I remote into.  Since it does not have a monitor, xfce does not allow me to change the screen resolution within VNC.  I found a way to change this remotely though: # First we need to get the modeline string for xrandr # Luckily, the tool “gtf” […]

    Read More
  • September 7, 2017 - rob

    X11VNC with RedHat / CentOS 7

    I recently built a CentOS 7 machine and wanted to control the X desktop remotely.  I have another post that deals with how to do this on a Linux Mint / Ubuntu machine, but CentOS uses a different X manager.   Here is what I did to get it working: yum install x11vnc You might […]

    Read More
  • I used to access my linux desktop through a ssh tunnel through my home ip address. Comcast in my area though has made it harder to get ports open with their newer cable modems. I got tired of calling them, telling them what I wanted, to only get back answers of “huh” or “no”. One […]

    Read More
  • I have a few vps servers that I use, and I wanted to upload some backup files to one of my google drive’s.   While I have used google-drive-ocamlfuse on my workstation pc’s, it requires a web browers for the initial drive connection and also uses FUSE which I could not run on my vps servers. […]

    Read More
  • So you have a process like apache or mysql, and the log file is getting large.   If you need to gain disk space in a hurry, you an zero out the log file by doing: echo > /var/log/file Once that is done, and you reclaim your needed space, be sure to setup logrotate for […]

    Read More
  • Just a simple script to list all databases in mariadb or mysql and dump them.   Good if you ever wanted to start over.   #!/bin/bash echo “Getting database list” mysql -uroot -p -e “show databases” | grep -v Database | grep -v mysql| grep -v information_schema| grep -v test | grep -v “lost+found” | […]

    Read More
  • I recently upgraded to Linux Mint 18 from 17.3.   While the upgrade went well, it did break my keepass install.   While I could get the newer version via the software manager, it is not backwards compatible with the 0.4.3 or 0.4.4 databases.   Since I share one of mine with another person, upgrading […]

    Read More
  • #backup all databases in one file (eventually add the option –add-locks): mysqldump -u username -p -–all-databases > file.sql #backup all databases in one gzipped file: mysqldump -u username -p -–all-databases | gzip > file.sql.gz #restore all databases: mysql -u username -p < file.sql

    Read More
  • I was trying to setup notifications on my home Nagios server. However I couldn’t get sendmail to send an email because I don’t have a static IP with my home internet connection. Every time I restart my modem, my external IP gets changed and it seems to be black listed and I couldn’t send any […]

    Read More
  • Notify-send is a great application for notifying you when an event has occurred. An event such as a script running to completion. If notify-send is not installed on your machine already, install the package “libnotify1” (or possibly just “libnotify”) from your repositories. Once installed you can simply type the following, at the command line, to […]

    Read More
1 2 3 6