There is a problem with autofs on Linux Mint Debian (Squeeze?) - the auto.smb file does not cater for the credentials file. To fix you can download an updated auto.cifs file, see:
http://forums.fedoraforum.org/showthread.php?t=240811
Also edit the /etc/auto.master file to include the line:
/media/smb /etc/auto.cifs --ghost
----------
Error observed in /var/log/syslog before this file was corrected:
*Enter root's password
Saturday, April 30, 2011
Friday, April 22, 2011
Linux get resolution in VNC/XRDP
Trying to get the resolution in a virtual display on Debian Squeeze, xrandr returns error:
"extension missing on display"
Instead, use the xwininfo program:
width=`xwininfo -root | grep Width | awk '{ print $2}'`
height=`xwininfo -root | grep Height | awk '{ print $2}'`
Ref: http://www.debian-administration.org/articles/121
"extension missing on display"
Instead, use the xwininfo program:
width=`xwininfo -root | grep Width | awk '{ print $2}'`
height=`xwininfo -root | grep Height | awk '{ print $2}'`
Ref: http://www.debian-administration.org/articles/121
Sunday, April 10, 2011
Asterisk GUI on Debian Squeeze
Installation of FreePBX has many dependencies and is a very involved install. An alternative is to use Digium's Asterisk-GUI, which doesn't seem to install by default in Debian.
cd /usr/src
svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui
cd asterisk-gui
./configure
make
make install
make checkconfig
*Need to fix http location:
mv /usr/share/asterisk/static-http /usr/share/asterisk/static-http_orig
ln -s /var/lib/asterisk-gui/static-http /usr/share/asterisk/static-http
*Need to enable Asterisk HTTP:
nano /etc/asterisk/http.conf
-> enable, bind, enable static, etc.
nano /etc/asterisk/manager.conf
[admin]
secret=password
read=system,call,log,verbose,command,agent,user,config,originate,read,write
write=system,call,log,verbose,command,agent,user,config,originate,read,write
*Need to fix permissions on folders
cd /var/lib
chown asterisk asterisk -R
chgrp asterisk asterisk -R
/etc/init.d/asterisk restart
http://localhost:8088/static/config/index.html
*password reset forced (hack /etc/asterisk/manager.conf & set to *not* "password" if necessary)
cd /usr/src
svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui
cd asterisk-gui
./configure
make
make install
make checkconfig
*Need to fix http location:
mv /usr/share/asterisk/static-http /usr/share/asterisk/static-http_orig
ln -s /var/lib/asterisk-gui/static-http /usr/share/asterisk/static-http
*Need to enable Asterisk HTTP:
nano /etc/asterisk/http.conf
-> enable, bind, enable static, etc.
nano /etc/asterisk/manager.conf
[admin]
secret=password
read=system,call,log,verbose,command,agent,user,config,originate,read,write
write=system,call,log,verbose,command,agent,user,config,originate,read,write
*Need to fix permissions on folders
cd /var/lib
chown asterisk asterisk -R
chgrp asterisk asterisk -R
/etc/init.d/asterisk restart
http://localhost:8088/static/config/index.html
*password reset forced (hack /etc/asterisk/manager.conf & set to *not* "password" if necessary)
Wednesday, April 6, 2011
Internet Explorer (IE) can't access HTTPS websites
Occurred on a Terminal Server after copying user profiles after a migration. Internet Explorer (IE7 & IE8) were unable to browse any SSL HTTPS website, "Unable to load the page", if logged in as an ordinary user. Okay if logged in as a local administrator.
Displaying the local SBS CA certificate as the user also showed an error that the certificate could not be validated.
The cause of the problem was a registry permission on HKCU\Software\Policies\Microsoft
- because this is where Group Policy gets applied the user only has explicit Read access; because the profile had been copied the explicit permission on the registry was incorrect. To fix use regedit to load the hive and add the correct user with Read access.
Displaying the local SBS CA certificate as the user also showed an error that the certificate could not be validated.
The cause of the problem was a registry permission on HKCU\Software\Policies\Microsoft
- because this is where Group Policy gets applied the user only has explicit Read access; because the profile had been copied the explicit permission on the registry was incorrect. To fix use regedit to load the hive and add the correct user with Read access.
Monday, March 7, 2011
Access Runtime error: There was an error executing the command
Check that the ODBC link to database has been configured.
Sunday, February 20, 2011
SBS 2003 shrink SBSMonitoring database
Execute the following commands to shrink the databases (suggest backing up beforehand):
osql -S "SERVER\SBSMONITORING" -E -Q"USE SBSMONITORING; DBCC SHRINKFILE (SBSMonitoring, 1)"
osql -S "SERVER\SBSMONITORING" -E -Q"USE SBSMONITORING; DBCC SHRINKFILE (SBSMonitoring_log, 1)"
osql -S "SERVER\SBSMONITORING" -E -Q"USE SBSMONITORING; DBCC SHRINKDATABASE (SBSMonitoring, 10)"
osql -S "SERVER\SBSMONITORING" -E -Q"USE SBSMONITORING; DBCC SHRINKFILE (SBSMonitoring, 1)"
osql -S "SERVER\SBSMONITORING" -E -Q"USE SBSMONITORING; DBCC SHRINKFILE (SBSMonitoring_log, 1)"
osql -S "SERVER\SBSMONITORING" -E -Q"USE SBSMONITORING; DBCC SHRINKDATABASE (SBSMonitoring, 10)"
Tuesday, December 28, 2010
HP p2015 printer jam light
HP printer p2015 doesn't function - get's stuck during boot with the jam LED on. This status is not listed in the manual. It indicates the formatter board (Q7804-60001) has failed. The formatter board is on the left-hand side - remove the side panel by using a flat screw driver to unclip the panel at the rear of printer. To confirm that the fault is the formatter board there is a button hidden in the frame below the formatter board - pressing this button causes the printer to print a series of straight lines without using the formatter board.
A common method for repairing the formatter board is to bake in the oven to repair dry solder joins:
1) Pre-heat oven to 176degC
2) Place formatter board on some aluminium foil for support, then place onto baking tray with components facing up.
3) Bake for 8 minutes, then remove and allow to cool.
4) Re-connect the formatter board and test printer again.
See: http://www.fixyourownprinter.com/forums/laser/48992
A common method for repairing the formatter board is to bake in the oven to repair dry solder joins:
1) Pre-heat oven to 176degC
2) Place formatter board on some aluminium foil for support, then place onto baking tray with components facing up.
3) Bake for 8 minutes, then remove and allow to cool.
4) Re-connect the formatter board and test printer again.
See: http://www.fixyourownprinter.com/forums/laser/48992
Subscribe to:
Posts (Atom)