Debian Samba share. no password. read only

Just install samba server:

apt-get install samba

edit the config:

nano /etc/samba/smb.conf

set security to "share"

security = share

and guest account to nobody

guest account = nobody

then you just need to create your share like this:

[guest share]
comment = a guest share
path = /path/to/files
browseable …
more ...

MySQL server --purge and reinstall

Screwed around for a bit. messed up MySQL. I decided to remove --purge, and start fresh. Unfortunately, the reinstall wouldn't work. Long story short, i had to remove "mysql-server, mysql-server-5.0, and mysql-common". when i ran this, it also pulled out other dependencies, but i just reinstalled them all. voila …

more ...

Staying on time in Debian

To stay on time, you should really use ntpd. It is a daemon that runs all the time and makes tiny changes to the system clock. All you need to do is install ntp:

aptitude install ntp

after it's installed, I encourage you to go over to http://www.pool …

more ...

Uninstall MySQL 5 from Debian

I completely. completely messed up MySQL. Badly. I wiped out the data directory (/var/lib/mysql in Debian) and the went to remove mysql ... apt-get remove --purge mysql-server That only deleted something like 86K. dissapointing. It looks like "mysql-server" is a shortcut pointing to the latest version of the software …

more ...

Debian 4.0r4 NIC bonding

Install package ifenslave-2.6.

apt-get install ifenslave

make sure the real NICs kernel modules are loaded automatically

modprobe --list | grep -i bonding

edit /etc/network/interfaces to look like this:

auto bond0
iface bond0 inet static
gateway 192.168.1 …
more ...