• PHP
  • Ruby on Rails
  • MySQL
  • Linux
    • SELINUX
    • Fedora
    • debian
  • Apache
  • nginx
  • AJAX
Albertech.net

Tag Archives: Debian

How to Clear Debian Apt Cache

December 7, 2011 3:38 pm / Albertech.net

If you are running on a server with limited space (e.g. VPS), you might need to manually clear out the Debian apt cache via this command:
apt-get clean

Or, keep the current version of the software:
apt-get autoclean

This will clean the files stored in:
/var/cache/apt/archives/

Share this:

  • Facebook
  • Google
  • Twitter
  • Print
  • Email
Posted in: debian / Tagged: debian

Upgrading Debian Lenny to Squeeze with MySQL for row-based-replication

October 28, 2011 5:46 pm / Albertech.net

I completed an upgrade of Debian Lenny to Squeeze on a production database server over the weekend. It went quite well and I had zero downtime thanks to my secondary database servers running in-place. One of the biggest benefits to running Squeeze is that MySQL runs at version 5.1.49. Lenny only supports up to MySQL 5.0.

Row-based-replication is safer to replicate data to other servers since all changes are replicated. Prior to MySQL 5.1.14, updates to the mySQL database were not replicated. They were updated via statements (e.g. GRANT, REVOKE). This can potentially cause data-consistency between the master and slave servers, if one runs a INSERT and SELECT (w/o ORDER BY) as the order of the results will be different. If you had a SQL statement on the MySQL database that ends up erroring out, your slave connection to the master server would stop.

Read More →

Share this:

  • Facebook
  • Google
  • Twitter
  • Print
  • Email
Posted in: debian, MySQL / Tagged: debian, mysql 5.1, row replication, squeeze, upgrade

Tomcat 5.5 installation on Debian, fix for webapps

June 18, 2009 4:36 pm / Albertech.net

I’ve been starting work on getting JASIG CAS (Central Authentication Server) to work with all my applications. One of the requirements for JASIG is that it needs to run on Apache Tomcat. Following the instructions on http://www.debianadmin.com/how-to-setup-apache-tomcat-55-on-debian-etch.html I was able to get the basics running on the Tomcat 5.5 server. However, I did encounter issues when trying to add in a *.WAR application to the server. I copied the files in the correct place /var/lib/tomcat5.5/webapps but for some reason the files weren’t getting deployed.

I figured out the simple fix for getting these applications to work in the webapps folder:

  1. Edit the  /etc/init.d/tomcat5.5   file
  2. Find the following lines:
    # Use the Java security manager? (yes/no)
    TOMCAT5_SECURITY=yes
  3. Change the TOMCAT5_SECURITY to
    TOMCAT5_SECURITY=no
  4. Restart tomcat
    /etc/init.d/tomcat5.5 restart

You should now be able to see the deployed applications. If not, use the Tomcat manager to upload the *.war file back into the server. The files should now appear in the application list.

Share this:

  • Facebook
  • Google
  • Twitter
  • Print
  • Email
Posted in: Tomcat / Tagged: CAS, debian, Tomcat, webapps

Debian: fixing GPG error on apt-get update

June 2, 2009 5:14 pm / Albertech.net

If you get a GPG error when doing an apt-get update, here’s the quickest way to fix it.The error message looks similar to:

W: GPG error: http://security.debian.org etch/updates Release:
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY XXXXXXXXXXX: There is no public key available for the following key IDs: W: You may want to run apt-get update to correct these problems

By default, it says “You may want to run apt-get update to correct these problems”. The problem is, apt-get update doesn’t fix the keys automagically. To fix, you will need to update the debian keyring by typing:

apt-get install debian-archive-keyring

After installing the keyring, you will get a list of keys that were updated, added, or deleted. This should resolve the problem. It worked for me on apt-get update for an etch install that broke.

Share this:

  • Facebook
  • Google
  • Twitter
  • Print
  • Email
Posted in: Linux / Tagged: debian, gpg error

Debian on VMWARE: Installing VMWare Tools

May 15, 2009 4:54 pm / Albertech.net

Why install VMWARE Tools?
Improved display support with SVGA driver
Cut and paste from host onto the VMWare guest
Automation of guest operating system commands
Sync time
Shrinking disk space
Startup and shutdown scripts

In order to install VMWARE tools on Debian, you will need to make sure you have the package “linux-headers-[kernel version]” installed.

If not, you will get a prompt during the configuration asking for the path of the C header files.

To find the version of your kernel, type in:
uname -a

It should say something like Linux infomine 2.6.26-2-amd64 (with your current CPU architecture at the end)

****
NOTE: Do this at your own risk. If you put the wrong version of the kernel header files, things will break.
****

After identifying what kernel you are using, then add the linux header files
apt-get install linux-headers-[kernel version]
For instance,  apt-get install linux-headers-2.6.26-2-amd64

Then follow the Vmware documentation on installing VMWARE Tools:
http://www.vmware.com/support/gsx3/doc/tools_install_lin_gsx.html

Share this:

  • Facebook
  • Google
  • Twitter
  • Print
  • Email
Posted in: Linux, VMWARE / Tagged: debian, install vmware tools, VMWARE

Post Navigation

← Older Posts
 

Categories

  • AJAX
  • Android
  • Apache
  • Canon Cameras
  • Cloud
  • CMS
  • Computer Mods
  • Conferences
  • Deals
  • debian
  • Fedora
  • Flash
  • Frameworks
  • git
  • Hardware
  • HTML
  • IDE
  • iPhone
  • iPhone App Review
  • jQuery
  • Linux
  • Mac OS X
  • MySQL
  • nginx
  • PHP
  • portfolio
  • Puppet
  • Ruby on Rails
  • Script Reviews
  • SELINUX
  • Software
  • Software Review
  • SQL Server
  • statistics
  • Tech
  • Tomcat
  • Uncategorized
  • VMWARE
  • VPS
  • Windows
  • wordpress
  • Zend Framework

Blogroll

  • DragonAl Flickr
  • Dropbox – Free 2GB Account
  • James' Blog
  • Javascript Compressor
  • PHP Builder Community
  • PHP-Princess.net
  • Rubular – Regular Expression Validator
  • The Scale-Out Blog
  • Tiny MCE

Tags

activation AJAX android antec Apache AWS awstats canon coda codeigniter debian enclosure external free G1 install vmware tools Internet Explorer iphone 5 jquery Linux mx-1 MySQL office 2007 OSX photoshop PHP plugin plugins portfolio redesigned website review rewrite script security SELinux ssh tinymce tutorial upgrade VMWARE vmware server wordpress wordpress mu XSS zend framework
© Copyright 2013 Albertech.net
Infinity Theme by DesignCoral / WordPress
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.