
Natal, época maravilhosa, nascimento do menino Jesus, momento de reflexão e amor ao próximo.
Desejo a todos Boas Festas!!!
Feliz Natal e um próspero ano novo.
Caio Moreno de Souza
$ find / -name "*.pdf"
$ find . -name "*mysql*" -type f
find /home/coruja/ -name "*" | xargs grep "Professor Coruja"
find /directory -name "*" | xargs grep "word"
find /home/coruja/ -name ".pdf" | xargs grep "Test"
find . -name "*.sh" | xargs grep "text"
find / -name ".sh" | xargs grep "text"
find / -name "*" | xargs grep "text"
$ find /media/Elements/MP3/ -name "*.mp3" -or -name "*.wav"
PostgreSQL is a good open source database so you probably would like to install it on your Ubuntu Server or Desktop.
Folow the steps and enjoy it:
$ sudo apt-get install postgresql postgresql-client postgresql-contrib
$ sudo apt-get install pgadmin3
This installs the database server/client, some extra utility scripts and the pgAdmin GUI application for working with the database.
Now we need to reset the password for the ‘postgres’ admin account for the server, so we can use this for all of the system administration tasks. Type the following at the command-line (substitute in the password you want to use for your administrator account):
$ sudo su postgres -c psql template1
template1=# ALTER USER postgres WITH PASSWORD 'password';
template1=# \q
That alters the password for within the database, now we need to do the same for the unix user ‘postgres’:
$ sudo passwd -d postgres
$ sudo su postgres -c passwd
Now enter the same password that you used previously.
Then, from here on in we can use both pgAdmin and command-line access (as the postgres user) to run the database server. But before you jump into pgAdmin we should set-up the PostgreSQL admin pack that enables better logging and monitoring within pgAdmin. Run the following at the command-line:
$ sudo su postgres -c psql < /usr/share/postgresql/8.2/contrib/adminpack.sql
Finally, we need to open up the server so that we can access and use it remotely - unless you only want to access the database on the local machine. To do this, first, we need to edit the postgresql.conf file:
$ sudo gedit /etc/postgresql/8.2/main/postgresql.conf
Now, to edit a couple of lines in the ‘Connections and Authentication’ section…
Change the line:
#listen_addresses = 'localhost'
to
listen_addresses = '*'
and also change the line:
#password_encryption = on
to
password_encryption = on
Then save the file and close gedit.
Now for the final step, we must define who can access the server. This is all done using the pg_hba.conf file.
$ sudo gedit /etc/postgresql/8.2/main/pg_hba.conf
Comment out, or delete the current contents of the file, then add this text to the bottom of the file:
# DO NOT DISABLE!
# If you change this first entry you will need to make sure that the
# database
# super user can access the database using some other method.
# Noninteractive
# access to all databases is required during automatic maintenance
# (autovacuum, daily cronjob, replication, and similar tasks).
#
# Database administrative login by UNIX sockets
local all postgres ident sameuser
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
# Connections for all PCs on the subnet
#
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
host all all [ip address] [subnet mask] md5
and in the last line, add in your subnet mask (i.e. 255.255.255.0) and the IP address of the machine that you would like to access your server (i.e. 138.250.192.115). However, if you would like to enable access to a range of IP addresses, just substitute the last number for a zero and all machines within that range will be allowed access (i.e. 138.250.192.0 would allow all machines with an IP address 138.250.192.x to use the database server).
That’s it, now all you have to do is restart the server:
$ sudo /etc/init.d/postgresql-8.2 restart
Instale o unrar-free
$sudo apt-get install unrar-free
Para extrair um arquivo digite:
$unrar-free -x arquivo.rar
Caso queira um programa com interface gráfica instale o Ark:
$sudo apt-get install ark
Caso você não consiga descompactar será necessário utilizar outros programas que geralmente são pagos.PUC-SP é a melhor universidade privada do Estado de São Paulo Levantamento do Ministério da Educação, apresentado em 8/9, reúne em um índice as avaliações de cursos de graduação e de pós-graduação já existentes |
A PUC-SP é a melhor universidade particular de todo o Estado de São Paulo e a segunda melhor do Brasil (atrás apenas da PUC-RJ). O resultado faz parte do primeiro ranking oficial de instituições superiores do Ministério da Educação (MEC), apresentado na tarde de 8/9, em Brasília, pelo ministro Fernando Haddad. |
The Subscriber Identity Module Serial Number (SSN), or Integrated Circuit Card ID (ICC-ID), is a 19 or 20 digit unique number that identifies an individual SIM card used in GSM and 3G phones. The number is printed onto the SIM card.
The exact format of the SSN differs according to the mobile operator, however the following is constant:
Pessoal,
Recebi uma mensagem sobre sucesso e resolvi compartilhar com todos....
Uma característica fundamental das pessoas bem-sucedidas é sua habilidade em descobrir o que elas fazem bem, e fazem isso com paixão, independentemente de serem observadas ou não.
Curtis Carlson recomenda "você precisa escutar o seu próprio coração. Você não pode ser bem-sucedido se não está feliz com o que está fazendo".
Aqui, a chave está em envolver-se com algo que utiliza as habilidades que Deus lhe deu. Não posso imaginar nada pior do que tentar me motivar para um cargo ou atividade que não faz jus aos meus talentos.
Michael Korda disse: "Suas chances de sucesso são diretamente proporcionais ao grau de prazer que você extrai daquilo que faz. Se você está em um emprego que odeia, encare o fato de frente e saia".
Como diz o velho ditado, "se o cavalo esta morto, desmonte".Eu não posso imaginar que é possível subir além de onde você está, sem assegurar-se primeiro que onde você está é onde você quer estar.
Antes de pular fora, pense nisto. Se você tem um emprego que não o estimula, não o realiza, e não o deixa cheio de energia, talvez exista uma solução simples.
O que acha de mudar de atitude quanto ao seu emprego?
Talvez você não precise desmontar. Se você mudasse sua maneira de encarar sua vida, isso talvez poderia acender uma nova chama.
Whit Hobbs escreveu: "Sucesso é acordar pela manhã, seja você quem for, qualquer que seja o lugar onde você se encontra, se velho ou moço, e pular fora da cama porque existe algo lá fora que você adora fazer, algo em que você acredita, algo em que você é bom - algo que é maior que você, e que você mal pode esperar para lidar com isto novamente hoje".
Abordando tudo que você faz, com aquela atitude confiante, o resultado certamente estará destinado a ser um sucesso.
Q. Can you explain me log files in Ubuntu Linux and how do I view logs?
A. All logs are stored in /var/log directory under Ubuntu (and other Linux distro).
=> /var/log/messages : General log messages
=> /var/log/boot : System boot log
=> /var/log/debug : Debugging log messages
=> /var/log/auth.log : User login and authentication logs
=> /var/log/daemon.log : Running services such as squid, ntpd and others log message to this file
=> /var/log/dmesg : Linux kernel ring buffer log
=> /var/log/dpkg.log : All binary package log includes package installation and other information
=> /var/log/faillog : User failed login log file
=> /var/log/kern.log : Kernel log file
=> /var/log/lpr.log : Printer log file
=> /var/log/mail.* : All mail server message log files
=> /var/log/mysql.* : MySQL server log file
=> /var/log/user.log : All userlevel logs
=> /var/log/xorg.0.log : X.org log file
=> /var/log/apache2/* : Apache web server log files directory
=> /var/log/lighttpd/* : Lighttpd web server log files directory
=> /var/log/fsck/* : fsck command log
=> /var/log/apport.log : Application crash report / log file
Use tail, more, less and grep command.tail -f /var/log/apport.log
more /var/log/xorg.0.log
cat /var/log/mysql.err
less /var/log/messages
grep -i fail /var/log/boot
System Log Viewer is a graphical, menu-driven viewer that you can use to view and monitor your system logs. System Log Viewer comes with a few functions that can help you manage your logs, including a calendar, log monitor and log statistics display. System Log Viewer is useful if you are new to system administration because it provides an easier, more user-friendly display of your logs than a text display of the log file. It is also useful for more experienced administrators, as it contains a calendar to help you locate trends and track problems, as well as a monitor to enable you to continuously monitor crucial logs.
You can start System Log Viewer in the following ways:
Click on System menu > Choose Administration > System Log:
(The GNOME System Log Viewer)
Note you can start the GNOME System Log Viewer from a shell prompt, by entering the following command:
$ gnome-system-log &
CRM:
Tutorial básico de MySQL - LWP
Modelado de MySQL con herramientas gratuitas - Adictos al trabajo
Tutorial de MySql - LWP
Imágenes en Base datos y Java - Adictos al trabajo
Índices y optimización de consultas - LWP
Tutorial básico de MySQL - I - Abcdatos
Tutorial básico de MySQL - II - Abcdatos
Modelado Gráfico de MySQL - Adictos al trabajo
Taller de MySQL - Desarrolloweb
Programación de aplicaciones MySQL con C - LWP
Integridad referencial en MySQL - LWP
MySql en Windows - Adictos al trabajo
Administracion Web de MySQL - Adictos al trabajo
Instalación de MYSQL 5 en Windows (I) - Abcdatos
Apache, MySQL y PHP - Adictos al trabajo
Tutorial de SQL - Abcdatos
Aplicaciones web con Tomcat y MySQL en Linux - Abcdatos
Manual de MySQL - LWP
Mysql++ a C++ API for Mysql manual - LWP
MySQL Reference Manual - LWP
Investigación sobre MySQL - LWP
SQL Server:
SQL Server - Abcdatos
Analysis Services de SQL Server 2000 - Emagister
Manual de Referencia de SQL Server - Emagister
Funciones en SQL Server 2000 - Emagister
Professional SQL Server 2000 Programming - Emagister
Instalación y administración de SQL Server 2000 - Emagister
Sql Server - Descripción Del Entorno y Creación de Bases de Dato - Emagister
Cursores en SQL Server - Emagister
Acceder a Bases de Datos SQL Server - Emagister