If you want to list all the non alphanumeric files:
ls -R | grep -iv ^[a-z0-9\._-]*$
If you want to list all the non alphanumeric files:
ls -R | grep -iv ^[a-z0-9\._-]*$
Suite à un mail reçu pour savoir comment devenir root sous ubuntu, voici une réponse possible:
Dans un shell on execute la commande suivante:
user@nxuora:~$ sudo gnome-terminal
[sudo] password for user:
On lance de cette facon un nouveau shell dans lequel le user devient root, il suffit alors de lancer la commande pour modifier le mot de passe (en l’occurence il sera ici initialisé)
root@nuxora:~# passwd
Entrez le nouveau mot de passe UNIX :
Retapez le nouveau mot de passe UNIX :
passwd : le mot de passe a été mis à jour avec succès
root@nuxora:~#
Attention aux commandes lancées en étant root
La derniere version de Fedora est sortie le 8 novembre. Originalité de cette version, en plus de la version “full” traditionnelle, elle se présente sous trois angles différents:
- Fedora Games Spin : un Live DVD rempli de jeux 2D et 3D (Nexuiz, Quake, Freeciv, Nethack …)
- Fedora Developer Spin : un Live DVD qui contient seulement des programmes de développement (Eclipse, Anjuta, git, cvs, lynx, emacs, éditeur hexadécimal … )
- Fedora Electronics Lab : cette version est destinée aux personnes qui souhaitent utiliser des programmes de simulation de systèmes électroniques
La petite particularite qui m’interesse personnellement et l’amalioration de la prise en charge du wifi. NetworkManager 0.7 a été réécrit pour gagner en stabilité et en flexibilité. Celui-ci devrait assurer une plus grande rapidité de connexion, une meilleure intégration grâce à l’API Dbus et au WPA pour le wifi. (il était temps)
Added on September 4th, 2008
The original war file is no longer available, please find a copy here
I’ve found this little tutorial two years ago and it helps me a lot with awstats on tomcat, i hope it can be useful for you….
AwStats
Author: John Smith (first website found) it seems to have a mirror here
Tomcat access logs format isn’t exactly what we need. We could also have modified AWStats configuration files, but with the loss of important information. Thus, let’s make Tomcat logs compatible with AWStats. Logs are configured in [Tomcat_install]/conf/server.xml. They might look something like:
<Valve className=“org.apache.catalina.valves.AccessLogValve” directory=“logs” prefix=“localhost_access_log.” suffix=“.txt” pattern=“common” resolveHosts=“false”/>
Normally this lines are commented. Just take in mind they should appear, uncommented, within your Host definition.
We will replace the valve definition with this one:
<Valve className=“org.apache.catalina.valves.AccessLogValve” directory=“logs” prefix=“www_mydomain_com_access_log.” suffix=“.log” pattern=“combined” fileDateFormat=“dd-MM-yy” resolveHosts=“false”/>
Tomcat has disabled by default CGI executions. This is because CGIs do not conform Tomcat security box. But we know exactly what we are going to do, aren’t we ….. ?
The only thing you need to do is renaming [Tomcat_install]/server/lib/servlets-cgi.renametojar to [Tomcat_install]/server/lib/servlets-cgi.jar. This will enable AWStats Perl scripts to execute on Tomcat server. When it’s done, restart Tomcat.
There is something more done through awstats.war file’s web.xml. You might want to look at this file once downloaded.
AWStats is included in awstats.war file, therefore you will not need to install AWStats by hand.
Deploy awstats.war file. Will suffice copying this file into [Tomca_install]/webapps folder, but in case your Tomcat is configured not to auto-deploy war files, unzip it yourself. By default would create an [Tomca_install]/webapps/awstats folder.
Although you could change default context, isn’t a good idea. At least not to start with. Better make it work and then think about changing things.
This is the hardest part, did you already take a coffe?
First we will make some assumptions, are these ones:
/awstats default context. See Install AWStats. www.mydomain.com. Now, go to [Tomca_install]/webapps/awstats/WEB-INF/cgi-bin folder. Next instructions make the assumption this is your current working folder.
awstats.model.conf into awstats.www.mydomain.com.conf. awstats.www.mydomain.com.conf. You can use any text editor of your preference. Now, we will change some file default values. You must look for the attributes and change their values as shown below:
LogFile="[TI]/webapps/awstats/WEB-INF/tools/logresolvemerge.pl [TI]/logs/*.log |" LogType=W LogFormat=1 LogSeparator=" " SiteDomain="www.mydomain.com" DNSLookup=1 DirData="." DirCgi="/cgi-bin" DirIcons="/awstats/icon"
Remember replacing [TI] with full path to Tomcat. And www.mydomain.com with your domain name.
Here you have two choices:
AllowToUpdateStatsFromBrowser=1 in awstats.www.mydomain.com.conf file, see above. This will allow updating from the web browser with: http://www.mydomain.com/awstats/cgi-bin/awstats.pl?config=www.mydomain.com&update=1. [Tom ca_install]/webapps/awstats/WEB-INF/cgi-bin folder and run perl awstats.pl -config=www.mydomain.com -update. Type http://www.mydomain.com/awstats/cgi-bin/awstats.pl?config=www.mydomain.com. That was all.
From the instructions above, everything is valid for creating separated domain statistics, except for one thing:
Inside your awstats.www.mydomain.com.conf we said:
LogFile=“[TI]/webapps/awstats/WEB-INF/tools/logresolvemerge.pl [TI]/logs/*.log |”
This line was gathering the whole set of log files, and this is against having statistics appart for each domain. We should replace this line to match the log files for the corresponding domain, as we said when changing Tomcat access logs format:
LogFile=“[TI]/webapps/awstats/WEB-INF/tools/logresolvemerge.pl [TI]/logs/www_mydomain_com*.log |”
Important! Don’t omit the asterisk in pointing the log files. Take in mind that Tomcat will create an access log file for each day, and that final file’s name will include the date.
The new release of Fedora is avalaible: “Fedora 7″.
Here are the new features:
Please remember also to use “Pungi” to create your own linux distribution
Download it and test it : FedoraProject.org.
La derniere version de Linux Debian est enfin sortie: version 4 avec pour nom de code Etch.
Longtemps retardé Etch voit enfin le jour. La version supporte onze architectures, Gnome (moteur graphique) a été mis jour, Etch embarque également Iceweasel et Icedove, des versions respectives de Firefox et Thunderbird, mais dépourvues de la marque Mozilla.
Red Hat has released the new version of it’s operating system RHEL 5 (Red Hat Enterprise Linux). RHEL 5 implements a totally integrated Xen-based server and storage virtualization solution, by combining server virtualization with Red Hat’s clustering support. In addition, RHEL 5 comes with a virtualization manager that should make installing and administering Xen virtual machines much easier.
Performance and scalability improvement have been done with this new version. The kernel version is now 2.6.18 (previously it was 2.6.9) Security with RHEL 5′s SELinux (security enhanced Linux) was also improved and should be easier to use.
Another big evolution is the introduction of yum. You should be able to have a yum repository. Everything will be based on yum (the system-config-packages, the RHEL update,…)
In the meanwhile, you may have already tested the RHEL 4 update 5 (which is the first update for RHEL 4 to include Xen paravitualized kernels). It was released last week, and the main evolve is the integration of XEN. Xen is the open source virtualization effort that Red Hat has already included in its Fedora community Linux releases (with Fedora Core 6) and is part of Novell’s SUSE Linux Enterprise 10 release as well, for many months now.
http://www.redhat.com/
http://www.europe.redhat.com/rhel/
http://www.xensource.com/