Home Construction Debian Development System Snippets for Windows Programmers
Debian Development System Snippets for Windows Programmers Print
Monday, 18 August 2008 20:34

Minimum Install of Debian 4.0r2 “Etch” for OSRail Development (Dual Boot)

Boot from the network install CD and follow the direction to create a “Desktop and Standard System” on an available disk partition. If not using the Grub dual boot function in the Master Boot Record (MBR), select the available disk partition for the boot and modify /boot/grub/menu.lst file to show that the boot drive for Linux Debian is HD0,0 (in a hardware boot Grub and BIOS considers the boot drive to be the first drive). The initial boot will require you to edit using the grub edit commands. Menu.lst must also be edited anytime the kernel is updated. The hardware or BIOS method of dual booting seems to be more reliable then modifying the master boot record (MBR) – either Windows or Linux will blow the MBR for the other sometime in the near future. Even though the grub menu list file must be updated every time the Linux kernel is changed, it is simpler then replacing the MBR with a recovery disk

Apache2, mysql and phpmyadmin

To install apache2, mysql, and phpmyadmin, as root type:
“apt-get install phpmyadmin php5-gd php5-mcrypt php-pear mysql-server”.
As root type:“gedit /etc/php5/apache2/php.ini” and remove the “;” from “;extension=mysql.so” and “;extension=gd.so”.
As root type: “/etc/init.d/apache2 force-reload”
As a user type: “mysqladmin -u root password xxxxxxx”.
For some odd reason this procedure works better then using the package manager (Synaptic Package Manager) for the install. If you use the package manager and install the very same packages you will have problems with phpBB.

Shortcuts

Install - “FileZilla” with the “Synaptic Package Manager”
Install - “nautilus-open-terminal” with the “Synaptic Package Manager”
Install – “kdesvn” ” with the “Synaptic Package Manager”
Setup launchers for “Synaptic Package Manager”, “File Browser”, “File-Roller”(GNOMR archiver), FileZilla, “kdesvn” and “Iceweasel” .

Printer

Using “Iceweasel” (Web Browser) to install a network printer(CUPS) at http://localhost:631.
Example: “socket://192.168.1.110:9100”, “HP LaserJet 4 Plus Foomatic/hpijsHP LaserJet 4 Plus Foomatic/hpijs”

Mail

Setup mail by running “Evolution” Example: pop, This e-mail address is being protected from spambots. You need JavaScript enabled to view it “mail.comcast.net”, “stmp.comcast.net”, check: keep mail on server (if logging mail on another machine), check: remember passwords.

Writable NTFS Windows Hard Disks

As root type“gedit /etc/apt/sources.list” and add the lines
“deb http://www.backports.org/debian etch-backports main“ and “deb-src http://www.backports.org/debian etch-backports main“
to the file sources.list and save it.
Get the repository key by typing: “wget -O - http://backports.org/debian/archive.key | apt-key add -“
Set etch-backports as the prefer version in the “Synaptic Package Manager”
Add ntfs-3g and libfuse2 to read/write ntfs partition using “Synaptic Package Manager” (do a reload first).
Get a list of windows ntfs disks by typing: “fdisk -l | grep NTFS”.
Create directories for the ntfs hard disks. For example: “mkdir /Windows /Development /Common”
Add the windows partitions to /etc/fstab.
For example: “/dev/hda1 /media/Windows ntfs-3g defaults 0 0”,
“/dev/hdb3 /media/Common ntfs-3g defaults 0 0”,
and “/dev/hdc1 /media/Development ntfs-3g defaults 0 0”.

 # /etc/fstab: static file system information.
#
#
proc /proc proc defaults 0 0
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb5 none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hda1 /Windows ntfs-3g defaults 0 0
/dev/hdb3 /Common ntfs-3g defaults 0 0
/dev/hdc1 /Development ntfs-3g defaults 0 0

 

Read Only NTFS Windows Hard Disks

Create directories for the ntfs disks. For example: “mkdir /Windows /Development /Common”
Add the windows partitions to /etc/fstab.

 /dev/hda1       /Windows  ntfs umask=0002      0           0
/dev/hdb3 /Common ntfs umask=0002 0 0
/dev/hdc1 /Development ntfs umask=0002 0 0

 

Test Website

Build Test Web Site, download image of joomla and phpBB web site, and dump them into ~/website.
Use phpmyadmin (http://localhost/phpmyadmin) to setup the required databases for both sites.
Import database backups for joomla and phpBB. Modify the configure files, phpbb/config.php (phpBB)
and configuration.php (joomla) for passwords and the created databases.
For Apache2 modify /etc/apache2/sites-avaiable/default by adding
“DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.shtml”
to the first “” section, modify “DocumentRoot /home/yyyyyy/website/” and “DocumentRoot /home/yyyyyy/website/”.

<VirtualHost *>
ServerAdmin This e-mail address is being protected from spambots. You need JavaScript enabled to view it
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.shtml
DocumentRoot /home/samuel/website/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/samuel/website/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>


Mouse Buttons

Add 5 button trackball – add to section of /etc/X11/xorg.conf:

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 6 7 10 11"
Option "Emulate3Buttons" "false"
EndSection

Remove or comment out:

 #Section "InputDevice"
# Identifier "Configured Mouse"
# Driver "mouse"
# Option "CorePointer"
# Option "Device" "/dev/input/mice"
# Option "Protocol" "ImPS/2"
# Option "Emulate3Buttons" "true"
#EndSection