CentOS 5 Server :: How To Do A Log Rotate
May 20, 2009how to do a log rotate. i want to keep just a months worth of logs on my centos 4.7 server.
View 1 Replieshow to do a log rotate. i want to keep just a months worth of logs on my centos 4.7 server.
View 1 Replieshow can I rotate the pen when I rotate the screen, and I would like to share this knowledge to other people who may have the same problem I had.
I have a tablet fujitsu-siemens t5010 with installed the wacum packages by default, and the pen was working, but couldn't rotate with xsetwacom command.
In Fedora 10, most guides refer to the wacom device as "stylus" which doesn't work on Fedora 11. I run command " $ xinput list " and I found the line
"PnP Device (FUJ02e5) eraser"id=3[XExtensionKeyboard]
and some lines before there is:
"PnP Device (FUJ02e5)"id=2[XExtensionKeyboard]
^^^^^^ this is the name of the device xsetwacom command needs! ^^^^^^^
I wrote first the line with the eraser cause I suppose that even someone has different wacom model, the eraser will be easy to find by grep command ( $ xinput list | grep -i eraser ), and common in most configures.
now , the edited script I use becomes like this:
#!/bin/sh
if [ $1 == 'normal' ]
then
xrandr -o normal
xsetwacom set "PnP Device (FUJ02e5)" rotate 0
[Code].....
It would be awesome if it chat could happened automatically , simply by rotating the screen, like it happens on Vista. I'll try to find out any solution and update this post if I make it !
I'm trying to get the options for rotate timeout to work and it does not.Timeout always seems to defaults to 1 sec no mater what value I set it to, which is fine but still the option does not work.I'm setting these according to the manpage for resolv.conf, please Let me know if I'm missing somethingHere is my resolv.conf file
domain spd.net
options timeout:1
options rotate
[code]....
m using Squid 3 for web cache and i want to use multiple outgoing ip addresses. Not 1 ip for 1 client, i want to rotate several outgoing ip addresses to the same client.
Client A --> outgoing IP A
next conection
Client A --> outgoing IP B
and so on
I have an Ubuntu server, and I have a special script on logrotate.d to rotate the samba_audit logs:
/var/log/auditsamba/auditoria.log {
weekly
rotate 12
missingok
[code]....
I have one Dell Ultrasharp U3011 (30", 2560x1600) and one Dell Ultrasharp 2007FP (20", 1600x1200)
When the 2007FP is in landscape mode it matches nearly perfectly in height both pixel and physically wise to the U3011.
See my example picture from my Win 7 dual boot below:
Two Monitors? Ridiculous... by mattlach, on Flickr
The only way I was able to get this to work in Ubuntu was to run two separate X desktops and rotate the 2007FP manually in xorg.conf, and then join them by enabling Xinerama.
Two problems with this solution.
1.) Xinerama is deprecated in favor of Xrandr which I have not been able to make do this.
2.) When using Xinerama Compiz/XGL is disabled, making the desktop feel awfully flat.
Is there any way to avoid this? Is there any way to rotate just one of your displays and maintain Compiz/XGL functionality?
This is on the top computer in my signature.
I have a problem with the logrotate of auth.log, it is not working. I tried using 'kill -HUP `cat /var/run/sshd.pid`'. This restarts sshd but does not create a new auth.log. Also tried "/etc/etc/init.d/ssh restart" and "/etc/init.d/ssh reload"
View 3 Replies View RelatedI have a PDF document that I need to rotate page through 180 degrees.
Can anyone tell me if Ghostscript can do this and if so how?
I've gone through the documentation and can't seem to find anyting on it nor Google
I've recently enabled the fun stuff with compiz but I've run into a sort of problem... I want 9 desktops in a 3x3 grid (yeah, weird I know) but if I'm using the cube I can only rotate left and right... which is pretty weak sauce. Is there any way to (preferred) have desktops on the top and bottom of the cube and be able to bind a key combo to rotate up and down (ctrl-alt-up/down)? I *could* put 9 desktops in a row, but I really don't like that solution - it takes too many flips to make it from one desktop to another.
Compiz is all full of beautiful (especially burning the windows on close)
I am looking for a wait to check in 3D a molecule of a crystal, and would be looking for a such 3D viewer than could rotate them:
[URL]
What would be the best suited prog?
I use the hotkey ctrl+alt+left click in Blender to zoom object... So I didn't want Compiz to use the same key to move around the cube. I changed a setting in window move, and either the old or the new key works.
New is alt+1 but it does nothing, same with ctrl+alt+left click. Also, I want the move around hotkey to be something like super+m or ctrl+m etc.
ubuntu 11.04. How do you rotate the console?
View 9 Replies View RelatedMy AWSTATS is not updating correctly. Upon closer look I noticed that the access_log file is already >300MB. logrotate was not running. Now I have enabled log rotate. However, it's not touching this existing access_log file. Is there a way for me to manually split and rotate this file into 3 100MB files, access_log.1 access_log.2 and access_log.3? I tried running logrotate (logrotate /home/user/httpd/access_log) from console and it's throwing Segmentation fault.
View 9 Replies View RelatedCould someone tell me how to rotate an image on GIMP? Now You can rotate it 90 180 etc but I would like to rotate the image to level the shot.
View 6 Replies View RelatedI have installed fail2ban and it is working great. It is monitoring the auth.log and it's own log. Now here is my question... Every week, my log files rotate, which is just fine for the most part. But this also rotates the fail2ban log and removes any chance of catching a repeated IP from Sunday to Monday. Is it possible to copy a portion of the previous log to the new log?Here is my scenario of what I would like to accomplish, but I am a novice here so please be specific..
logrotate does its job as expected... then a script writes a portion of the previous log to the new log then appends a word/number after that portion (we call this log.1)...next time the log rotates (creating log.2), I want to take the portion of log.1 after the word/number and append it to log.2 along with another word/numberThis will always ensure there is at least 1 week backlog in the logs for fail2ban to track. I don't want to just change the frequency of the log-roll because it doesn't solve the issue of tracking across the log roll
Just installed 11.04 (Natty). Graphics card is Radeon 9200When I enable Cube in the compizconfig settings manager and rotate the cube, the cube goes almost black. This happens with both drag and keyboard rotate. The background is fine. Everything is defaults and no other effects are enabled.Also, the entire screen goes dark when "opacity when not rotating" is set to anything but 100%.This worked fine with with my previous version 8.04, though I think it used a proprietary driver.Questions:Should I be using a proprietary driver this card? Apparently you have to install a long list of packages first: XFree86-Mesa-libGL libstdc++ libgcc XFree86-libs fontconfig expat freetype zlib
View 1 Replies View RelatedI have two video files taken with my phone, but unfortunately they are on their sides.
I was messing around with vlc, and found in the filters option menu, a setting to rotate the video 90 degrees, which is just what I was looking for.... BUT it won't let me save this (I guess you have to re-encode the whole file)
What is the easiest way to rotate video files (.3gp) and keep it in that state, without losing loads of quality?
I've always turned/switched desktop by rotating the wheel on the mouse.ut suddenly it won't work. Where can I turn it on again
View 1 Replies View RelatedI am on a CentOS 64 bit and used webmin to rotate MySQL slow query log. Now the thing is although logs are being rotated daily but the new log files being created are empty which means MySQL is unable to write them due to some reason. I have checked using "ls -l" that both permission and owner of files is same but still MySQL is not writing logs. What could be the reason?
View 10 Replies View RelatedI have been trying out in learning with logrotate command and logrotate configuration file )logrotate.conf custom logfile for an process is 'test.log'
Code:
#cat /etc/logrotate.d/test
/var/log/test.log {
rotate 4
[code]....
whenever the log file (test.log) exceeds 100M a new file will be created with the file name as test.'date'.'gz'(new file is created with a current date and in a compressed format of gz) and also with permission mentioned above). I really dont know what is the role of rotate( will this be carried on only for next 4times i mean upto 400MB; (4times*file reaches 100MB)? and also what could be the purpose of postrotate?
how can I rotate logfiles multiple times a day? I notice that the configuration for the logrotate-command is hourly, daily, weekly,.I notice that I can create a cron job where I specify the different times the log rotation need to be done:15 0,8,12,17 * * *But how do I combine these two ?
View 7 Replies View RelatedI have a problem with compiling of mod_ruby-1.3.0 After a succesfull configure i get a error in the make, it say "make: *** [apachelib.o] error 1" . Here below you can find the results of de configuring and the make.I was following the roles in Howtoforge " The perfect server - Centos 5.3" everything goes perfect till mod_ruby-1.3.0
./configure.rb --with-apr-includes=/usr/include/apr-1
checking for a BSD compatible install... /usr/bin/install -c
checking whether we are using gcc... yes
[code]....
is it possible to join Windows Server 2003 to CentOS 5 Cluster?
View 1 Replies View Relatedwhen I reboot the server with centos 5.5 the SMB deamon doesn't start?
View 2 Replies View Relatedi am trying to rotate some mp4 videos taken from my mobile phone. i do need to rotate them by 90 degrees.i have tried mencoder VIDEO0029.mp4 -o output.mp4 -vf rotate=1 -oac pcm copy -ovc lavc but it drops the quality A LOT.is there a way to rotate the videos but preserve the quality?
View 5 Replies View RelatedI think it is very annoying, that kde slideshow screensaver does not rotate images according to the jpeg exif information. I've found a bug report from 2005 for this topic Bug 103282 - no exif-rotation in slideshow) but as far as I see it still does not work. Any idea how can I set up kde to rotate the images?
View 1 Replies View RelatedI could not keep this question from turning into a wall of text so I broke it up into these 4 sections.I have 2 monitors (DELL E228WFP and a DELL 2007FP) hooked up to a EVGA E-GEFORCE 8800GT 600MHZ 512MB 1.8GHZ DDR3 PCI-E Dual DVI-I video card. I would like to have the DELL 2007FP set up to the left of the DELL E228WFP and rotated into "portrait" mode^ with both screens sharing a common bottom edge.
This is ideal for reading PDF documentation or papers on one screen and then working on the second one.Steps Undertaken I installed the NVidia drivers (via sudo apt-get install nvidia-current) rebooted ran nvidia-xconfig then ran nvidia-settings. However, like many people, I could not get nvidia-settings to write to my config file despite having run it with kdesudo. Instead, I opened the file with Kate (using KDESudo) and then used the preview from nvidia-settings and just copy pasted it into the file and saved it like that. if I use TwinView I have both monitors working, but when I try to use krandrtray to rotate one of them, it is shown as one large monitor so I cannot rotate just the one I want rotated.However, if I set them up as separate X windows the second one is black and krandrtray only shows the main monitor. I am at a loss of what to try next.
Everything worked fine with Jaunty 9.04, but I haven't had any luck getting the "cube" to rotate using the mouse wheel since I upgraded to Karmic 9.10. The other ways to rotate the cube still work with karmic. Note that I upgraded from jaunty to karmic...not a clean install. Viewport switcher and rotate cube are both enabled.
View 8 Replies View RelatedI used OpenSUSE today and in one of the options for Rotate Cube (in compiz) was something that let me adjust to what angle I could allow the cube to go up and down. If I set it to 360 degrees, I was able to rotate the cube in any which direction I pleased. Can I do this on Ubuntu?
View 6 Replies View RelatedI just switched from Jaunty to Karmic, and in the process of setting up desktop effects, I'm having a hard time with configuring the rotate cube compiz effect. Before, I was able to scroll on the desktop (ie, not over a window/application) to spin the cube to the next face. Now, it seems that I either have to use keyboard shortcuts or lose the ability to scroll in applications.
I've tried enabling the mouse scrolling to button 4/button 5 a la this post, but this doesn't fix the problem. This is one of the few desktop effects that really made a difference in terms of convenience, so I'd really like to be able to fix this setting.