Specializing in expert technology advice and implementation in NorthEast Florida

Recent Drupal tricks and tips...

Found lots of bocked (SPAM) users in my Drupal 7 site. Deleted with this SQL script (in PHPMYADMIN)
DELETE FROM users WHERE `status` = 0 AND `uid` != 0; Also had 49,000+ failed admin login attempts on my site - had caused a lockout of my admin user.
Did this in phpmyadmin : DELETE FROM flood;
Topic: 

Ubuntu DNS Issues with network-manager & dnsmasq

This has been driving me crazy. Long delays on DNS lookups on Ubuntu 13.x desktop/laptops...
To fix dnsmasq errors, you should edit /etc/NetworkManager/NetworkManager.conf

sudo gedit /etc/NetworkManager/NetworkManager.conf
and comment out the line so it looks like this:

# dns=dnsmasq
in the "[main]" section. To comment out the line, put a '#' at the beginning of the line, then save the file.
Then restart network-manager.

Multiple copies per page printing of business cards in MS Publisher 2007/2010

A bug I had noted in Publisher 2007 & 2010 is fixed by this simple change to the page size settings:

After following your steps I see the same problem in Publisher 2010 and Publisher 2007 Service Pack 2 but not in 2003 Service Pack 3. I see the 5 rows of 2 in 2003 as you are expecting in 2010 but not getting.

What type of Avery labels are you printing?

Great backup cmd in Linux

sudo rsync -avhe ssh --log-file="/usr/local/rsync/rsync.log.$(date +%Y%m%d%H%m%S)" /DATA/ root@192.168.0.2:/home/username/DATA/

Topic: 

Allow webmin traffic through the default firewall [iptables] settings in Proxmox Containers

Just a liitle trick I needed to do to get my webmin access enabled in the vhost on Proxmox:

iptables -I INPUT 1 -p tcp --dport 10000 -j ACCEPT

Topic: 

Proxmox Vhost IP Address Configuration

Some key cmds that I had to use to get the networking operational on the proxmox server:


root@proxmax:/etc/network# vzctl set 103 --ipadd 192.168.3.88 --save

This will poke a new IP address into the config for the container.
The "/etc/network/interfaces" files that results will look like this:

VNC Install on RedHat

[donmc@MSJ ~]$ sudo rpm -Uvh VNC-Server-5.0.4-Linux-x86.rpm
[sudo] password for donmc:
Preparing... ########################################### [100%]
1:realvnc-vnc-server ########################################### [100%]
Checking for xauth... [OK]
Updating /etc/pam.d/vncserver
Looking for font path... not found.
Generating private key:
p: .....................................
q: ................
Installed init script for VNC X11 Service-mode daemon
Start and stop the service with:

Topic: 

Remote reboot while logged in via RDP

At a CMD prompt run:
shutdown -t 0 -r -f

Topic: 

bash history date/time stamps

By default, the bash history does not keep tabs on the time of day that a given command was run. But it is really as simple as defining ONE environment variable: "HISTTIMEFORMAT"

This from "Linux by Example": HISTTIMEFORMAT takes format string of strftime. Check out the strftime manual to choose and construct the timestamp that suit your taste. My favorite is "%F %T ".

export HISTTIMEFORMAT="%F %T "

Extract IP Addresses from a text file...

This is a cool little grep search to pull any IPs from a text file:
grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' file_with_ips_in_it.txt | sort | uniq

Pages

Subscribe to Jax Beach Technology Services RSS