Open Source

Open Source

PhpMyAdmin error message when the script has not been run during install...

I see this fairly often when I have done fast installs of ubuntu: "Connection for controluser as defined in your configuration failed." What happens is I ignore the install script that needs to run for PhpMyAdmin to establish its database etc. Happily the fix is fairly easy - just run the script again now: sudo dpkg-reconfigure phpmyadmin
03 Nov 2014

scripted (bash) password changes for Samba users...

I was excited to find this, so I am saving it here.

To change an smb passwd in a bash script:

echo -e "newpasswd\nnewpasswd" | (smbpasswd -s username) And note the "\n" in there to push a newline between the two passwords...

For the unix (Linux) username:

echo -e "newpass\nnewpass" | (passwd --stdin username)
27 Jun 2014

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/
29 May 2013

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:
root@XXX4 /etc/network# less interfaces # This configuration file is auto-generated. # # WARNING: Do not edit this file, your changes will be lost. # Please create/edit /etc/network/interfaces.head and # /etc/network/interfaces.tail instead, their contents will be # inserted at the beginning and at the end of this file, respectively. # # NOTE: it is NOT guaranteed that the contents of /etc/network/interfaces.tail # will be at the very end of this file. # # Auto generated lo interface auto lo iface lo inet loopback # Auto generated venet0 interface auto venet0 iface venet0 inet manual up ifconfig venet0 up up ifconfig venet0 127.0.0.2 up route add default dev venet0 down route del default dev venet0 down ifconfig venet0 down iface venet0 inet6 manual up route -A inet6 add default dev venet0 down route -A inet6 del default dev venet0 auto venet0:0 iface venet0:0 inet static address 192.168.3.88 netmask 255.255.255.255

And from the Proxmox Controller:

root@proxmax:/etc/network# vzlist CTID NPROC STATUS IP_ADDR HOSTNAME 100 18 running - XXX3.msjlaw.us 101 19 running - XXX4.msjlaw.us root@proxmax:/etc/network# root@proxmax:/etc/network# vzctl set 101 --ipadd 192.168.3.88 --save Adding IP address(es): 192.168.3.88 CT configuration saved to /etc/pve/openvz/101.conf root@proxmax:/etc/network# vzlist CTID NPROC STATUS IP_ADDR HOSTNAME 100 18 running - XXX3.msjlaw.us 101 18 running 192.168.3.88 XXX4.msjlaw.us root@proxmax:/etc/network# root@proxmax:/etc/network# ping 192.168.3.88 PING 192.168.3.88 (192.168.3.88) 56(84) bytes of data. 64 bytes from 192.168.3.88: icmp_req=1 ttl=64 time=0.047 ms 64 bytes from 192.168.3.88: icmp_req=2 ttl=64 time=0.015 ms 64 bytes from 192.168.3.88: icmp_req=3 ttl=64 time=0.014 ms 64 bytes from 192.168.3.88: icmp_req=4 ttl=64 time=0.022 ms 64 bytes from 192.168.3.88: icmp_req=5 ttl=64 time=0.027 ms ^C
23 Apr 2013

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:
  /etc/init.d/vncserver-x11-serviced (start|stop)

Installed init script for VNC Virtual-mode daemon
Start and stop the service with:
  /etc/init.d/vncserver-virtuald (start|stop)
12 Feb 2013

Upgraded jaxbeachtech.com to Drupal 7

I finally bit the bullet and upgraded the site to Drupal V7 - it was pretty straight forward, a few glitches here and there, but overall, pretty smooth. It was worth waiting a few years for the code to be nicely cleaned up :) A BIG Thank You to all those clever people that contributed to the Drupal 7 experience - there is no doubt about it - it is a fantastic product.
27 Oct 2012

Drupal's magical "DRUSH" CLI

I have just spent a few hours getting familiar with this cool tool. Drush allows most housekeeping for Drupal sites to be done from a command line - it's a wonderful thing. Just take a look at how much I got done executing this single command:
sudo drush @veo up

And here's what it did for me:


donmc@jbt:/var/www/VEOffice$ sudo drush @veo up
Update information last refreshed: Sat, 04/28/2012 - 16:25

Update status information on all installed and enabled Drupal projects:
 Name                                             Installed version     Proposed        Status
                                                                        version
 AddThis (addthis)                                7.x-2.1-beta1         7.x-2.1-beta1   Up to date
 Apps (apps)                                      7.x-1.0-beta5         7.x-1.0-beta6   Update available
 Backup and Migrate (backup_migrate)              7.x-2.2               7.x-2.2         Up to date
 Backup and Migrate Files (backup_migrate_files)  7.x-1.x-dev           7.x-1.x-dev     Up to date
 Drupal                                           7.12                  7.12            Up to date
 Boxes (boxes)                                    7.x-1.0-beta6         7.x-1.0-beta8   Update available
 CAPTCHA (captcha)                                7.x-1.0-alpha3        7.x-1.0-beta2   Update available
 Colorbox (colorbox)                              7.x-1.2               7.x-1.3         Update available
 OpenPublic (openpublic)                          7.x-1.0-beta8         7.x-1.0-beta8   Up to date
 Comment notify (comment_notify)                  7.x-1.0               7.x-1.0         Up to date
 Conditional Stylesheets (conditional_styles)     7.x-2.0               7.x-2.1         Update available
 Context (context)                                7.x-3.0-beta2         7.x-3.0-beta2   Up to date
 Context Bool Field (context_bool_field)          7.x-1.0-beta1         7.x-1.0-beta1   Up to date
 Context Breadcrumb Current Page                  7.x-1.0-beta2         7.x-1.0-beta2   Up to date
 (context_breadcrumb_current_page)
 Context Field (context_field)                    7.x-1.0-beta2+10-dev  7.x-1.0-beta3   Update available
 Chaos tools (ctools)                             7.x-1.0-rc1           7.x-1.0         SECURITY UPDATE available
 Date (date)                                      7.x-2.0-alpha4        7.x-2.5         Update available
 Default Content (defaultcontent)                 7.x-1.0-alpha4        7.x-1.0-alpha6  Update available
 Delta API (delta)                                7.x-3.0-beta8         7.x-3.0-beta9   Update available
 Diff (diff)                                      7.x-2.0               7.x-2.0         Up to date
 Entity API (entity)                              7.x-1.0-beta10        7.x-1.0-rc2     Update available
 Entity Autocomplete (entity_autocomplete)        7.x-1.0-beta1         7.x-1.0-beta1   Up to date
 Entity cache (entitycache)                       7.x-1.1               7.x-1.1         Up to date
 Features (features)                              7.x-1.0-beta4         7.x-1.0-rc2     Update available
 Fieldgroup (field_group)                         7.x-1.1               7.x-1.1         Up to date
 Follow (follow)                                  7.x-1.0-alpha1+0-dev  7.x-1.0-alpha1  Up to date
 google_analytics                                 7.x-1.2               7.x-1.2         Up to date
 IMCE (imce)                                      7.x-1.5               7.x-1.5         Up to date
 IMCE Wysiwyg API bridge (imce_wysiwyg)           7.x-1.0               7.x-1.0         Up to date
 Link (link)                                      7.x-1.0-beta1         7.x-1.0         Update available
 References (references)                          7.x-2.0-beta3         7.x-2.0         Update available
 Node Reference View Formatter                    7.x-1.0-beta2         7.x-1.0-beta3   Update available
 (node_reference_view_formatter)
 Nodeblock (nodeblock)                            7.x-1.2               7.x-1.2         Up to date
 Node Connect (nodeconnect)                       7.x-1.0-alpha1        7.x-1.0-alpha2  Update available
 Nodequeue (nodequeue)                            7.x-2.0-alpha1        7.x-2.0-beta1   Update available
 Panels (panels)                                  7.x-3.0               7.x-3.2         Update available
 Password policy (password_policy)                7.x-1.0-rc1           7.x-1.0-rc2     Update available
 Pathauto (pathauto)                              7.x-1.0-rc2           7.x-1.0         Update available
 reCAPTCHA (recaptcha)                            7.x-1.7               7.x-1.7         Up to date
 Secure Pages (securepages)                                             7.x-1.x-dev     Installed version not supported
 Strongarm (strongarm)                            7.x-2.0-beta4         7.x-2.0-rc1     Update available
 Token (token)                                    7.x-1.0-beta6         7.x-1.0         Update available
 Twitter Pull (twitter_pull)                      7.x-1.0-rc1           7.x-1.0-rc1     Up to date
 Views (views)                                    7.x-3.0-rc1           7.x-3.3         SECURITY UPDATE available
 Views Boxes (views_boxes)                        7.x-1.0-beta6         7.x-1.0-beta8   Update available
 Webform (webform)                                7.x-3.13              7.x-3.17        SECURITY UPDATE available
 Wysiwyg (wysiwyg)                                7.x-2.1               7.x-2.1         Up to date
 XML sitemap (xmlsitemap)                         7.x-2.0-beta3         7.x-2.0-rc1     Update available
 Omega (omega)                                    7.x-3.0               7.x-3.1         Update available
 Rubik (rubik)                                    7.x-4.0-beta8         7.x-4.0-beta8   Up to date
 Tao (tao)                                        7.x-3.0-beta4         7.x-3.0-beta4   Up to date



Security and code updates will be made to the following projects: Apps [apps-7.x-1.0-beta6], Boxes [boxes-7.x-1.0-beta8], CAPTCHA [captcha-7.x-1.0-beta2], Colorbox [colorbox-7.x-1.3], Conditional Stylesheets [conditional_styles-7.x-2.1], Context Field [context_field-7.x-1.0-beta3], Chaos tool suite (ctools) [ctools-7.x-1.0], Date [date-7.x-2.5], Default Content [defaultcontent-7.x-1.0-alpha6], Delta [delta-7.x-3.0-beta9], Entity API [entity-7.x-1.0-rc2], Features [features-7.x-1.0-rc2], Link [link-7.x-1.0], References [references-7.x-2.0], Node Reference View Formatter [node_reference_view_formatter-7.x-1.0-beta3], Node Connect [nodeconnect-7.x-1.0-alpha2], Nodequeue [nodequeue-7.x-2.0-beta1], Panels [panels-7.x-3.2], Password policy [password_policy-7.x-1.0-rc2], Pathauto [pathauto-7.x-1.0], Secure Pages [securepages-7.x-1.x-dev], Strongarm [strongarm-7.x-2.0-rc1], Token [token-7.x-1.0], Views [views-7.x-3.3], Views Boxes [views_boxes-7.x-1.0-beta8], Webform [webform-7.x-3.17], XML sitemap [xmlsitemap-7.x-2.0-rc1], Omega - Responsive HTML5 Base Theme [omega-7.x-3.1]

Note: A backup of your project will be stored to backups directory if it is not managed by a supported version control system.
Note: If you have made any modifications to any file that belongs to one of these projects, you will have to migrate those modifications after updating.
Do you really want to continue with the update process? (y/n): y
Project apps was updated successfully. Installed version is now 7.x-1.0-beta6.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/apps.                               [ok]
Project boxes was updated successfully. Installed version is now 7.x-1.0-beta8.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/boxes.                              [ok]
Project captcha was updated successfully. Installed version is now 7.x-1.0-beta2.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/captcha.                            [ok]
Project colorbox was updated successfully. Installed version is now 7.x-1.3.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/colorbox.                           [ok]
Project conditional_styles was updated successfully. Installed version is now 7.x-2.1.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/conditional_styles.                 [ok]
Project context_field was updated successfully. Installed version is now 7.x-1.0-beta3.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/context_field.                      [ok]
Project ctools was updated successfully. Installed version is now 7.x-1.0.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/ctools.                             [ok]
Project date was updated successfully. Installed version is now 7.x-2.5.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/date.                               [ok]
Project defaultcontent was updated successfully. Installed version is now 7.x-1.0-alpha6.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/defaultcontent.                     [ok]
Project delta was updated successfully. Installed version is now 7.x-3.0-beta9.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/delta.                              [ok]
Project entity was updated successfully. Installed version is now 7.x-1.0-rc2.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/entity.                             [ok]
Project features was updated successfully. Installed version is now 7.x-1.0-rc2.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/features.                           [ok]
Project link was updated successfully. Installed version is now 7.x-1.0.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/link.                               [ok]
Project references was updated successfully. Installed version is now 7.x-2.0.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/references.                         [ok]
Project node_reference_view_formatter was updated successfully. Installed version is now 7.x-1.0-beta3.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/node_reference_view_formatter.      [ok]
Project nodeconnect was updated successfully. Installed version is now 7.x-1.0-alpha2.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/nodeconnect.                        [ok]
Project nodequeue was updated successfully. Installed version is now 7.x-2.0-beta1.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/nodequeue.                          [ok]
Project panels was updated successfully. Installed version is now 7.x-3.2.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/panels.                             [ok]
Project password_policy was updated successfully. Installed version is now 7.x-1.0-rc2.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/password_policy.                    [ok]
Project pathauto was updated successfully. Installed version is now 7.x-1.0.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/pathauto.                           [ok]
Project securepages was updated successfully. Installed version is now 7.x-1.x-dev.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/securepages.                        [ok]
Project strongarm was updated successfully. Installed version is now 7.x-2.0-rc1.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/strongarm.                          [ok]
Project token was updated successfully. Installed version is now 7.x-1.0.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/token.                              [ok]
Project views was updated successfully. Installed version is now 7.x-3.3.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/views.                              [ok]
Project views_boxes was updated successfully. Installed version is now 7.x-1.0-beta8.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/views_boxes.                        [ok]
Project webform was updated successfully. Installed version is now 7.x-3.17.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/webform.                            [ok]
Project xmlsitemap was updated successfully. Installed version is now 7.x-2.0-rc1.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/xmlsitemap.                         [ok]
Project omega was updated successfully. Installed version is now 7.x-3.1.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/themes/omega.                               [ok]

donmc@jbt:/var/www/VEOffice$ sudo drush @veo updatedb
No database updates required                                                                                                        [success]
Finished performing updates.                                                                                                        [ok]
donmc@jbt:/var/www/VEOffice$ sudo drush @veo up
Update information last refreshed: Sat, 04/28/2012 - 16:27

Update status information on all installed and enabled Drupal projects:
 Name                                             Installed version  Proposed        Status
                                                                     version
 AddThis (addthis)                                7.x-2.1-beta1      7.x-2.1-beta1   Up to date
 Apps (apps)                                      7.x-1.0-beta6      7.x-1.0-beta6   Up to date
 Backup and Migrate (backup_migrate)              7.x-2.2            7.x-2.2         Up to date
 Backup and Migrate Files (backup_migrate_files)  7.x-1.x-dev        7.x-1.x-dev     Up to date
 Drupal                                           7.12               7.12            Up to date
 Boxes (boxes)                                    7.x-1.0-beta8      7.x-1.0-beta8   Up to date
 CAPTCHA (captcha)                                7.x-1.0-beta2      7.x-1.0-beta2   Up to date
 Colorbox (colorbox)                              7.x-1.3            7.x-1.3         Up to date
 OpenPublic (openpublic)                          7.x-1.0-beta8      7.x-1.0-beta8   Up to date
 Comment notify (comment_notify)                  7.x-1.0            7.x-1.0         Up to date
 Conditional Stylesheets (conditional_styles)     7.x-2.1            7.x-2.1         Up to date
 Context (context)                                7.x-3.0-beta2      7.x-3.0-beta2   Up to date
 Context Bool Field (context_bool_field)          7.x-1.0-beta1      7.x-1.0-beta1   Up to date
 Context Breadcrumb Current Page                  7.x-1.0-beta2      7.x-1.0-beta2   Up to date
 (context_breadcrumb_current_page)
 Context Field (context_field)                    7.x-1.0-beta3      7.x-1.0-beta3   Up to date
 Chaos tools (ctools)                             7.x-1.0            7.x-1.0         Up to date
 Date (date)                                      7.x-2.5            7.x-2.5         Up to date
 Default Content (defaultcontent)                 7.x-1.0-alpha6     7.x-1.0-alpha6  Up to date
 Delta API (delta)                                7.x-3.0-beta9      7.x-3.0-beta9   Up to date
 Diff (diff)                                      7.x-2.0            7.x-2.0         Up to date
 Entity API (entity)                              7.x-1.0-rc2        7.x-1.0-rc2     Up to date
 Entity Autocomplete (entity_autocomplete)        7.x-1.0-beta1      7.x-1.0-beta1   Up to date
 Entity cache (entitycache)                       7.x-1.1            7.x-1.1         Up to date
 Features (features)                              7.x-1.0-rc2        7.x-1.0-rc2     Up to date
 Fieldgroup (field_group)                         7.x-1.1            7.x-1.1         Up to date
 Follow (follow)                                  7.x-1.0-alpha1+0-  7.x-1.0-alpha1  Up to date
                                                  dev
 google_analytics                                 7.x-1.2            7.x-1.2         Up to date
 IMCE (imce)                                      7.x-1.5            7.x-1.5         Up to date
 IMCE Wysiwyg API bridge (imce_wysiwyg)           7.x-1.0            7.x-1.0         Up to date
 Link (link)                                      7.x-1.0            7.x-1.0         Up to date
 References (references)                          7.x-2.0            7.x-2.0         Up to date
 Node Reference View Formatter                    7.x-1.0-beta3      7.x-1.0-beta3   Up to date
 (node_reference_view_formatter)
 Nodeblock (nodeblock)                            7.x-1.2            7.x-1.2         Up to date
 Node Connect (nodeconnect)                       7.x-1.0-alpha2     7.x-1.0-alpha2  Up to date
 Nodequeue (nodequeue)                            7.x-2.0-beta1      7.x-2.0-beta1   Up to date
 Panels (panels)                                  7.x-3.2            7.x-3.2         Up to date
 Password policy (password_policy)                7.x-1.0-rc2        7.x-1.0-rc2     Up to date
 Pathauto (pathauto)                              7.x-1.0            7.x-1.0         Up to date
 reCAPTCHA (recaptcha)                            7.x-1.7            7.x-1.7         Up to date
 Secure Pages (securepages)                       7.x-1.x-dev        7.x-1.x-dev     Up to date
 Strongarm (strongarm)                            7.x-2.0-rc1        7.x-2.0-rc1     Up to date
 Token (token)                                    7.x-1.0            7.x-1.0         Up to date
 Twitter Pull (twitter_pull)                      7.x-1.0-rc1        7.x-1.0-rc1     Up to date
 Views (views)                                    7.x-3.3            7.x-3.3         Up to date
 Views Boxes (views_boxes)                        7.x-1.0-beta8      7.x-1.0-beta8   Up to date
 Webform (webform)                                7.x-3.17           7.x-3.17        Up to date
 Wysiwyg (wysiwyg)                                7.x-2.1            7.x-2.1         Up to date
 XML sitemap (xmlsitemap)                         7.x-2.0-rc1        7.x-2.0-rc1     Up to date
 Omega (omega)                                    7.x-3.1            7.x-3.1         Up to date
 Rubik (rubik)                                    7.x-4.0-beta8      7.x-4.0-beta8   Up to date
 Tao (tao)                                        7.x-3.0-beta4      7.x-3.0-beta4   Up to date

No code updates available.
28 Apr 2012

Apache2 CMD to check VHOST Settings...

Well - since Apache V2 the ONLY command to use is apparently "apache2ctrl" as follows: Note this command will parse the VHOST configs and dump them to StandardOut...
sudo /usr/sbin/apache2ctl -t -D DUMP_VHOSTS
08 Apr 2012

Settings (in Vista and Windows 7) to access Samba Shares...

Microsoft Vista’s default security policy is to only use NTLMv2 authentication. I am not sure what the setting is by default in Windows 7 - so this may apply there too. Note that NTLMv2 authentication is supported in Samba 3.0+ Seems like we ought to be heading towards Kerberos for all our authentication needs in the longer term. See the forum discussion on this at: http://www.builderau.com.au/blogs/codemonkeybusiness/viewblogpost.htm?p=339270746
14 Sep 2011
Subscribe to Open Source