|
Short description of how to accomplish some specific task in Debian Lenny. - How to install Sun java 1.6 on Debian Lenny
- How to install Tomcat 6.x on Debian Lenny
- How to install MySQL on Debian Lenny
How to install Sun java 1.6 on Debian Lenny And not the OpenJDK, as sometimes some applications do not work without the SUN JDK Edit APT sources list # vi /etc/apt/sources.list
The original Sun Java 2 is available in the ‘non-free’ section of the Debian repositories. To enable this section first add the non-free repository to the apt sources file - the /etc/apt/sources.list should look like, - important parts are in bold: deb http://ftp.ch.debian.org/debian/ lenny main non-free deb-src http://ftp.ch.debian.org/debian/ lenny main non-free deb http://security.debian.org lenny/updates main Update the list of sources # apt-get update Install java # apt-get install sun-java6-bin Just follow and select all the time How to install Tomcat 6 on Debian Lenny Create new file # vi /etc/apt/sources.list.d/squeeze.list and put inside # Repository for Squeeze, to get Tomcat6 deb http://ftp.ch.debian.org/debian/ squeeze main contrib non-free deb-src http://ftp.ch.debian.org/debian/ squeeze main contrib non-free Create new file # vi /etc/apt/preferences And put inside Package: * Pin: release o=Debian,a=stable Pin-Priority: 990 Package: * Pin: release o=Debian,a=testing Pin-Priority: 500 Package: tomcat6,tomcat6-admin,tomcat6-common,libtomcat6-java,libservlet2.5-java Pin: release o=Debian,a=testing Pin-Priority: 990 Update sources # apt-get update Upgrade # apt-get upgrade To locate the correct package name, search for it # apt-cache search tomcat Found tomcat6 Install # apt-get install -t testing tomcat6 You may want also to install the tomcat manager # apt-get install -t testing tomcat6-admin Create new users/roles for tomcat manager # vi /etc/tomcat6/tomcat-users.xml NOTA: Webapp are located in /var/lib/tomcat6/webapp How to install MYSQL on Debian Lenny Luckily MYSQL 5.0 is available in the default source list of APT. # apt-cache search mysql # apt-get install mysql-server-5.0 Open a mysql prompt Grant access to root from any host, this is insecure for production machine but in case of continuous build machine, development this is sometimes very useful. Let root connect not only from localhost by running # mysql –u root –p mysql> use mysql; mysql> update user set host = '%' where user = 'root' and host='127.0.0.1' mysql> flush privileges; Bad written code (DAO) will sometimes forces you to start MYSQL using insensitive casing table. In windows it will always work as the operating system do not make any difference between lower and upper case. In Linux, either you change your DAO’s or if you can’t, use this kind of trick: Case insensitive table in MYSQL # vi /etc/mysql/conf.d/lower_case_table_names.cnf Put inside file [mysqld] lower_case_table_names = 1 Restart mysql # /etc/init.d/mysql restart
Related Posts
-
How to mount your Synology NAS (or any other NAS brand) shared folder under Linux using CIFS. CIFS stands for "Common Internet File System," also known under the older name SMB (Server Message Block), which is a network protocol used by Windows clients for issuing file access requests to Windows servers Open a terminal and as root, create 41 days ago
-
The Oracle WebLogic 11g application server product line is the industry's most comprehensive Java platform for developing, deploying, and integrating enterprise applications. It provides the foundation for application grid, which is an architecture that enables enterprises to outperform their competitors while minimizing operational costs. 43 days ago
-
More and more I am using XEN at work, and here is a small how to of some very common operations. Citrix® XenServer® is a complete, managed server virtualization platform built on the powerful Xen® hypervisor. Xen technology is widely acknowledged as the fastest and most secure virtualization software in the industry. XenServer is designed 43 days ago
-
Some useful Bash Linux alias taken from my user profile. If you have a long command that you type frequently consider putting it in as an alias. In computing, alias is a command in various command line interpreters (shells) such as Unix shells, 4DOS/4NT and Windows PowerShell, which enables a replacement of a word with another string. It is main 439 days ago
-
For day to day hacker, they may be more elegant ways to do it (PERL, AWK), but they have work well for me. Upper case file name or variable, Search and replace in all files content recursively, Renaming all files recursively, Renaming all directory recursively, Copying a set of files from one directory to the other and preserv 439 days ago
-
My idea is to be able to run my production server (STRATO- OpenSuse) hosting www.waltercedric.com in a VMWARE instance. So I can test and make change to the operating first there before bringing down my host for several hours ;-) I would like to duplicate the whole LINUX system (lets call it PROD for now), including data and make 2 VMWARE 443 days ago
-
Cpufreqd is a small daemon to adjust cpu speed and voltage (and not only) for kernels using any of the cpufreq drivers available. Cpufreqd is not a userspace governor. Cpufreqd allows you to apply governor profiles from rules based on battery level, ac status, temperature (ACPI or sensors), running programs, cpu usage and (maybe) more 574 days ago
-
I've aquire this card for running my HPTC (notebook dell 9400, NAS) either under windows xp, or LinuxThe Sound Blaster Audigy 2 ZS Notebook also provides encompassing 7.1 surround sound for Dolby® Digital EX as well as DTS-ES⢠supported DVD movies; any DirectSound3D games and CMSS 3D virtualized 7.1 stereo music. Gamers will love the hard 1678 days ago
-
GnGeo is a NeoGeo emulator for Linux (and maybe some other UNIX).It use the following cpu core:The 68k core from the Generator project by James Ponder.Starscream 680x0 emulation library by Neill Corlett.Raze Z80 emulator by Richard Mitton.Z80 Mame core from the Mame project.YM2610 Mame core by Tatsuyuki Satoh.Finding the rpm for SuSe 9.3 is quite e 1858 days ago
-
These instructions were written using Knoppix version 3.7. It can be downloaded from http://www.knopper.net/knoppix/index-en.html. This document is available online at http://www.shockfamily.net/cedric/knoppix/.and is very detailed. I hope You will never have to use it ;-) , but just in case, write down this internet page :-( 2007 days ago
relatedArticles
|