hype-o-thetic?com Rotating Header Image

Posts under ‘tips’

Ping Ubuntu hostname from Windows (winbind+samba)

Here’s a procedure I found on taesch.com to ping a Ubuntu machine by the hostname from a Windows PC:

sudo vi /etc/nsswitch.conf
hosts: files wins dns

sudo aptitude install winbind
sudo aptitude install samba

SOURCE: http://taesch.com/my-digital-life/cant-ping-ubuntu-hostname-from-windows-xp-setup-winbind

FreeNAS CIFS/Samba changing Guest Account ‘FTP’ not working

Using FreeNAS 0.7 Khasadar (revision 4919) with CIFS/SMB Authentication Anonymous, I changed the Guest account for but it is not actually applying it to the configuration, it is a trivial bug and here’s a small dirty workaround.
1 – Create an excutable file containing this:

#!/bin/sh

# find and replace ‘ftp’ by ‘transmission’
sed -i. ’s/ftp/transmission/g’ /etc/rc.d/samba

# restart samba [...]

Tip: use rsync to convert filenames from/to UTF-8 <–> latin-1/ISO-8859-1

This will copy files with UTF-8 encoded characters filenames to new files with a ISO-8859-1 encoded filenames and, when everything is completed, will delete the old (UTF-8) files.
BE CAREFUL THIS IS NOT FOOL PROOF :) YOU MUST KNOW WHAT YOU ARE DOING TO NOT DOUBLE ENCODE THE CHARACTERS FILENAMES.
[cci]rsync SOURCE SAMEFORDESTINATION –recursive –human-readable –stats [...]

Creative Commons Attribution-ShareAlike 2.5 Canada
This work by gimpe is licensed under a Creative Commons Attribution-ShareAlike 2.5 Canada.