Archive for the ‘ Linux ’ Category

Debian Samba share. no password. read only

Just install server:

-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 = yes
read only = yes
guest ok = yes

MySQL table storage engine (switching from MyIsam to InnoDB)

I know I did this the hard way. there is a command that you can issue that will convert them on the fly. what I did was mysqldump the database, mysql(because of other reasons), and then edit the dump so that the line that specified the reads “=INNODB” instead of “=MyISAM”.Then I imported the dump.

I was getting annoyed that when listing my tables in phpmyadmin,  it would show the list of tables in InnoDB (which is what i wanted), but then, when showing the summary at the bottom of the page, said “MyIsam”. I easily got rid of it by adding “default-storage-engine=InnoDB” to my “my.cnf” file.

MySQL server –purge and reinstall

Screwed around for a bit. messed up MySQL. I decided to remove –, and start fresh. Unfortunately, the 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! worky.

apt gives a “Segmentation faulty tree”

when running an update:
sudo aptitude
Ouch!  Got SIGSEGV, dying..

apparently, just remove some files:
sudo rm /var/cache//*.bin

now everything is back to normal.

Zabbix 1.6 Proxy with Debian

I set up a today on a little VM. looks to work nicely. Intructions will be kept up to date on this page.