Open Source

By donmc, 27 June, 2014

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)

By donmc, 29 May, 2013
Topic

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/

By admin, 23 April, 2013

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:

By admin, 12 February, 2013
Topic

[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:

By admin, 27 October, 2012

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.

By donmc, 28 April, 2012

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:

By donmc, 14 September, 2011

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…