domingo, abril 15, 2007

Gerenciando swap

Executar no terminal como root:
cat /proc/sys/vm/swappiness
Deve aparecer o valor 60, mude para 10:
sysctl -w vm.swappiness=10
Execute alguma aplicações para verfificar se ficou ok, aí deixe as alterações de forma permanente:
vim /etc/sysctl.conf
e acrescente essa linha no final do arquivo:
vm.swappiness=10

Atalhos no KDE

Alt + F2: Execute Command

Ctrl + B: Add Bookmark

Ctrl + Esc: List of running applications.

Ctrl + W: Close

Alt + Tab: Switch forward among windows

Ctrl + C:
Copy

Alt + Shift + Tab: Switch backward among windows

Ctrl + End: End

Ctrl + F1 to F12: Switch to Desktop 1 + 12

Ctrl + F: Find

Shift + Ctrl + F1 to F4: Switch to Desktop 13 to 16

F3: Find Next

Ctrl + Alt + Esc: Kill Window (Click on the window to action the kill.)

Ctrl + F3: Find Prev

Ctrl + Alt + Delete:
Logout (To complete logout process, Tab & Enter)

F1: Help

F12: Toggle cursor key mouse emulation

Ctrl + Home: Home

Alt + F1: Popup KDE launch menu

Ctrl + Insert: Insert

Ctrl + Tab: Switch forward one desktop

Ctrl + N: New

Ctrl + Shift + Tab: Switch back one desktop

Ctrl + Down:
Next Complete Match

Alt + F4: Window close

Down: Next Item in List

Alt + F3: Window open menu

Ctrl + O: Open

Ctrl + V: Paste

“Windows” Menu: Popup Menu Context

Ctrl + Up: Previous Complete Match

Up: Previous Item in list

Ctrl + P: Print

Page Up: Prior

Ctrl + Q: Quit

Ctrl + Shift + Z: Redo

F5: Reload

Ctrl + R:
Replace

Ctrl + S: Save

Ctrl + A: Select All

Ctrl + E: Text Completion

Ctrl + Z: Undo

Shift + F1: What’s this

Ctrl + Plus (+): Zoom In

Ctrl + Minus (-): Zoom Out

sábado, fevereiro 03, 2007

Apache Tomcat no Ubuntu

Apache Tomcat 5

Jakarta Tomcat, a Java servlet container is now part of the Apache family under the name of Apache Tomcat. It can be installed in Ubuntu 6.06 (Dapper Drake) following the steps below.

Needed before installing Apache Tomcat

Java virtual machine Follow this link paying attention to download the JDK and not the JRE.

Enable the universe and multiverse repositories

In Ubuntu 6.06, do:

sudo apt-get install sun-java5-jdk

Set Java environment variables

$ export JAVA_HOME="path of your java home"
$ export PATH=$PATH:$JAVA_HOME/bin

In Ubuntu 6.06,do:

export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.06

You may have to change the numbers for updated versions.

Installing Apache Tomcat 5

$ sudo aptitude install tomcat5 tomcat5-admin tomcat5-webapps

Run, Stop, And Restart Apache Tomcat

Use the following command to run Apache Tomcat:

$ sudo /etc/init.d/tomcat5 start

To stop it, use :

$ sudo /etc/init.d/tomcat5 stop

Finally, to restart it, run :

$ sudo /etc/init.d/tomcat5 restart

Using Tomcat5

You can find tomcat up and running (if you have followed the previous steps) at the following ip:

127.0.0.1:8180

Administering Tomcat5

If you have installed also the admin package as listed before you will be able to enter in the administation window only if you edit the file

$ /usr/share/tomcat5/conf/tomcat-users.xml

and add the following lines for creating new users with admin and manager privilegies as described in Tomcat's main page


(role rolename="manager"/)
(role rolename="admin"/)
(user username="YOUR USERNAME " password="YOUR PASSWORD" roles="admin,manager"/)

*troque os parênteses por "<" e ">"

Obviously if you want only one kind of role you've to delete the one you are not interested in. Example only admin

   

Installing new servlet or jsp pages in Tomcat5

Using the Tomcat manager included in the installed packages you'll be able to to control your servlet/jsp properly.

1.Enter in your server (by default 127.0.0.1:8180).

2.Enter in the Tomcat manager page (you find the link on the left) typing username and password chosen in the previous step.

3.Search the section Deploy and in the field WAR or Directory URL type:

   file://YOUR SERVLET or JSP PAGE DIRECTORY

Usually servlet/jsp pages are located in the directory /usr/share/tomcat5/webapps.

Fonte: Comunidade Ubuntu



quarta-feira, janeiro 31, 2007

Informações sobre seu hardware em máquinas Linux


Embora já existam utilitários visuais para obter informações do hardware de máquinas Linux como o SysInfo,
vale a pena conhecer como obter essas informações via linha de comando, pode ser que você não tenha GUI disponível em todas as máquinas que necessite levantar os dados.

Esse artigo do SecGuru vai ajudá-lo nesse tarefa.

101 coisas que o Mozilla faz e o IE não


Aqui são 101 mesmo!

Veja a lista aqui

(a imagem é do Firefox, mas está valendo, o que importa é a "comida" no IE!)

101 razões do Linux ser melhor que o Windows


Ok, não são 101, mas o artigo pede para as pessoas acrescentarem mais ítens.
Até o momento desse post eram 33 ítens....e subindo!

Veja aqui.

Deixe seu Firefox mais rápido


Algumas modificações no seu Firefox podem deixá-lo até 30 vezes mais rápido.
Veja como no blog do Vitor Pamplona

A diferença de performance do browser se torna realmente bem sensível!