|
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://apt-proxy:9999/debian/ lenny main non-free deb-src http://apt-proxy:9999/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 <Yes> all the time How to install Tomcat 6 on Debian Lenny Create new file # vi cat /etc/apt/sources.list.d/squeeze.list and put inside # Repository for Squeeze, to get Tomcat6 deb http://apt-proxy:9999/debian squeeze main contrib non-free deb-src http://apt-proxy:9999/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
-
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 233 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 233 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 237 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 369 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 1473 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 1652 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 :-( 1802 days ago
-
Hans Reiser, author of the ReiserFS program, created benchmarking tests designed to be fairly representative of the file-size distribution of most users. "Reiser4 does quite well on all benchmarks," he said. "With Reiser4, we took five different technical gambles, and all of them worked. Article at NewsFactor, a brief introductionOff 1830 days ago
-
This article shows
you how to improve the boot speed of your Linux system without
compromising usability. Essentially, the technique involves
understanding system services and their dependencies, and having them
start up in parallel, rather than sequentially, when possible.
Although undoubtedly an excellent system, a common criticism of Linux
1898 days ago
relatedArticles
|