Posted by
ksanders
I recently had to rename a Windows server as part of a virtualization / server consolidation project. This server was part of a Samba controlled domain and I kept getting cryptic error messages, such as “access denied.”
Turns out no computer had ever likely been renamed in this domain, because it was missing the usermod command for renaming in the smb.conf.
To fix computer renaming in a samba ldap domain simply add:
rename user script = /usr/sbin/smbldap-usermod -r ‘%unew’ ‘%uold’
to your smb.conf
Which tells samba how to run the smbldap tools command for renaming a user/computer.
Related Tags: server, linux, IT, samba, windows
Posted by
ksanders
Many webhosts, such as Mediatemple and ourselves, offer several versions of PHP. Both PHP4 and PHP5 are provided in our case. PHP4 is still the default, so you may get error messages or improper behavior when you run a script written for php5. The solution is simple, just create a .htaccess file in the root of your site (or in a subdirectory if you wish to run different versions on different parts of your site.) with the following line in it:
AddHandler php5-script .php
That will cause all .php files in the scope of the .htaccess to run with the PHP5 interpreter, instead of version 4.
Posted by
ksanders
When compiling daemontools (or any other djb programs) you may end up getting some kind of error regarding errno.h or ERRNO.
While there are patches out there for each program (djbdns, qmail, daemontools, etc), there is an even simpler way.
Look for a file called conf-cc in the source distribution, edit it with your favorite text editor and add -include /usr/include/errno.h to the end of the line.
You should end up with something like this:
gcc -O2 -include /usr/include/errno.h
Posted by
ksanders
I use ultravnc under Wine to provide remote help desk support to clients. (None of the Mac VNC clients I know of support proxy/repeater environments.)
Well the other day I went to support a user and all I got was gibberish from my keystrokes, after a bit of embarrassing “can you type XXXX and hit enter” type stuff, I disconnected and started trying to figure out if it was me or the end user. After a couple short tests on other remote computers, it became obvious there was something seriously wrong with my keymap. Just the XWindows one too, my keyboard worked fine outside of XWindows.
A couple google queries later and I had the answer.
Short Version
- Close XWindows
- Delete the directory at /usr/X11/share/X11/xkb
Done and done.
Posted by
ksanders
I was trying to serve some pages and files off of a windows samba share but was only getting a blank page. After some googling around I found the solution.
Simply put “EnableSendfile Off” in your httpd.conf file and restart Apache.
Posted by
ksanders
I just finished setting up two GLPI servers and had the same issue on both. After much slogging though google with very little help, I found mention of ownership issues (not to be confused with permissions issues). The glpi folder and all files and subfolders must be owned by the user and group the web server is running as. (Typically “nobody”, “www-data”, or “apache”.) It doesn’t matter even if you set your permissions chmod 777, the ownership is what makes the difference.
Assuming your httpd’s user/group is www-data here’s what you need to do: (Bold is a command, regular is the output, highlights are added for emphasis.)
htdocs # ls -l
total 2
drwxrwxrwx 15 root root 4096 Nov 30 06:04 glpi
-rw-r–r– 1 root root 44 Nov 20 15:22 index.html
htdocs# chown -R www-data:www-data glpi
htdocs # ls -l
total 2
drwxrwxrwx 15 www-data www-data 4096 Nov 30 06:04 glpi
-rw-r–r– 1 root root 44 Nov 20 15:22 index.html
Posted by
ksanders
This is something very simple but was not immediately obvious to me. I am setting up a Zabbix server as part of my consulting work and have many servers behind firewalls that need to use active checks. (Connect from server behind firewall/nat to the zabbix server, rather than have the zabbix server connect out to the monitored agents.) When you create the host set the name and dns name to the server’s name you put into the zabbix_agentd.conf file on the server you want to do active checks on. It will show up as unknown availability but that is erroneous.
Also, you need to create items with active checks. I recommend cloning a template and copying the items and triggers over. Then do a Mass Update and set all the items to “Zabbix Agent (Active)”