Linux Hardware Compatibility: W311MI

This is just to let others know what piece of hardware worked during my linux experiments:     dmesg output <5>[    0.000000] Linux version 2.6.31.6_SMP_820 (bdietrich@brad-ux) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #96 SMP Tue                Feb 8 12:08:54 PST 2011 <4>[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5… Continue reading

LAMP: Installing PECL HTTP

    Enable the pecl command: # apt-get install libmagic-dev Install curl support # apt-get install libcurl3   # pecl install pecl_http   pecl downloads and compiles. Follow the prompts and if any development library is not available, just use apt-get to install it. After pecl is done, just add… Continue reading

Brighter LAMP: phpmyadmin installation

Install mcrypy for phpmyadmin dependencies:   # apt-get install php5-mcrypt   Now you need to restart apache for the changes to take effect   # /etc/init.d/apache2 restart   Now, on to the installation: # apt-get install phpmyadmin   Choose Apache2 when you're prompted     Answer yes to Configure database… Continue reading

Setting up a Debian box for development: making a LAMP: php5

Now P for PHP 5:   # apt-get install php5 php-pear php5-suhosin   # nano /etc/php5/apache2/php.ini   max_execution_time = 30 memory_limit = 64M error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR display_errors = Off log_errors = On error_log = /var/log/php.log register_globals = Off   Add mysql support. # apt-get install php5-mysql      

Setting up a Debian box for development: making a LAMP: mysql

Let's make a lamp   First M for Mysql: # apt-get install mysql-server The script will ask you to define the password for the root mysql user: Secure your mysql installation: # mysql_secure_installation   NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL       SERVERS IN PRODUCTION… Continue reading

Setting up a Debian box for development: making a LAMP: apache2

Add a user for the web stuff # adduser httpd Choose a simple (but secure) password. # apt-get install apache2 Reading package lists… Done Building dependency tree Reading state information… Done The following extra packages will be installed:   apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3   libaprutil1-ldap Suggested packages:… Continue reading

Setting up a Debian box for development: linux installation

This will be a work in progress series of posts to help people get into the amazing world of developing applications on the web. Will also give me opportunity to fine tune my knowledge.   This will be the L in LAMP, here we go:   1. Download a Debian… Continue reading

MySQL: Recover root password

        # mysql -u root Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)   # mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)     1 Stop MySQL server: # service mysql start… Continue reading

Installing DropBox on Slackware 13.1 64-bit

Before you start, let's make sure you have gnome docutils installed: Get the package: http://www.linuxfromscratch.org/blfs/view/cvs/gnome/gnome-doc-utils.html Install GNOME Doc Utils (this part is borrowed from LinuxFromScratch book) ./configure –prefix=$(pkg-config –variable=prefix ORBit-2.0) –mandir=$(pkg-config –variable=prefix ORBit-2.0)/share/man make Test it make check and then install as root: make install switch to Dropbox installation folder… Continue reading

LAMP: Installing on Slackware 13.37 64-bit

Ongoing post:   1. Download Apache ( http://httpd.apache.org ) tar -xvjf httpd-2.2.21.tar.bz2 cd httpd-2.2.21 I like Slackware, but I also like the Apache layout installed in Debian distributions, so: ./configure –enable-layout=Debian–enable-module=most –enable-mods-shared=most –enable-ssl=shared make make install 2. PostgreSQL ./configure –with-perl –with-openssl gmake all gmake install     PHP ./configure –with-pgsql… Continue reading