General :: Shrink And Manually Rotate Log?
Sep 16, 2009
My 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
ADVERTISEMENT
Sep 7, 2009
how 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 !
View 1 Replies
View Related
Jun 15, 2011
Each time I run "zypper update" on a SUSE 11.1 server it causes /var/lib/rpm/Packages to grow by a few KB even though there are no new updates. Since a cron runs this a couple of times a day the file is almost 400MB on one of my servers. I'd like to shrink the file back to a reasonable size before I run out of space on my /var partition.
View 3 Replies
View Related
Mar 2, 2010
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 Related
Feb 12, 2011
I would like to shrink my os partition without messing with it's data, to make room for a 2nd os. Will this happen if I command Gparted to Resize?
View 2 Replies
View Related
May 8, 2011
Could 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 Related
Jan 17, 2011
I 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 Related
Jul 10, 2010
I 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?
View 5 Replies
View Related
Mar 13, 2011
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 Related
Aug 30, 2010
I 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.
View 1 Replies
View Related
Feb 14, 2011
I manually rotated my catalina.out file, and now the file jumps to 30+Mb and when I try to view it, less tells me it might be a binary file. It sure appears to have binary data in it, about 30meg of it.
I did the rotate via a copy:
copy catalina.out to another file
cat /dev/null > catalina.out
I have tried using echo:
echo "" > catalina.out
...also with the same result.
This application isn't something I can just bounce when necessary. It kind of appears that the original file is still there - sort of. But is it not readable text anymore.
SunOS 5.10
tomcat 5.5.26 (version required by app vendor)
View 2 Replies
View Related
Nov 18, 2010
I am actually modifying someone else's script and The original script rotated image files to the left but it changed the "modified date stamp" which is something I didn't want.
Code:
#!/bin/bash
while [[ -n "$1" ]]; do
[code]....
View 2 Replies
View Related
Mar 22, 2010
I'd like to share with you an experiment. look at following steps: create an empty file with a low level tool like "dd"
# dd if=/dev/zero of=fatimage bs=512 count=200K
we now have an about 100MB zeroed file.
format it with mkdosfs (FAT16)
# mkdosfs fatimage
now we have a 100MB fat filesystem. We could check it with dosfsck. Mount it on loop, and copy saome data in it, so that it have a percentage of used space of about 30% (I've tried to copy on it a 30MB data directory). Then umount it.
# mount -o loop -t auto fatimage mountpoint
# cp -a $data mountpoint
# umount mountpoint
check filesystem with dosfscheck. We can notice used clusters and verify bytes used on that filesystem. And we could evalutate a space amuont to shrink the filesystem... why? Just for a didactical test. we could decide to shrink our 100MB filesystem to 50 MB: we have about 30 MB of data cpied on it, so there wil be anout 70 MB of free space. How to resize 100MB fat filesystem to shrink it from 100MB to 50 MB? If I had used an ext2/3 (or ext4 too but I don't know it) or a ntfs filesystem, I would easly been able to shrink it with resize2fs or ntfsresize. But as regards Fat filesystem I don't know any tool that work just on the filesystem.
I've tried, fatresize, but It return a strange error... searching for I suspect it is deeply based on parted and it expects to work on a partition not only on a filesystem like that described above. So is there anyone who knows, which tool I could use to shrink that filesystem? If you wolud like to make the test following above steps and tring to use fatresize program I will be grateful if you report your results there.
View 3 Replies
View Related
Feb 2, 2010
The Network Manager on KDE gets DNS configuration from DHCP and sets it automatically, but I would like to use the Google Public DNS. If I overwrite /etc/resolv.conf with nameserver 8.8.8.8 it still resolves names with the old DNS (probably cached in memory) and, of course, even if it worked, it would be annoying having to do that every time I connect to a network.
I've noticed the Network Manager lets you specify a fixed DNS with the rest being taken from DHCP, but that's on a per network basis, and I would like to set it once for whichever network I connect to (if you're on the go with a laptop that becomes an issue).
View 1 Replies
View Related
Apr 22, 2011
I'm having issues trying to use dvd shrink with wine, the problem is everytime I click on the dvd shrink icon nothing happens it doesn't start I think have something to do with security settings, anyone having the same problem?
View 2 Replies
View Related
Feb 11, 2011
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.
View 8 Replies
View Related
May 20, 2009
how to do a log rotate. i want to keep just a months worth of logs on my centos 4.7 server.
View 1 Replies
View Related
Apr 16, 2010
A. I want to manually set the Window Clamp for my experiment.I came to know we can do that in net/ipv4/tcp_output.c::tcp_grow_window. I'm really confused with the flow. Even i tried in net/ipv4/tcp_output.c::tcp_select_window, but things are asusual.
B. Can I really improve the throughput by increasing the buffer space ? Do i have to go for netfileters or altering the existing data structure will do ?
View 3 Replies
View Related
Jul 24, 2009
GParted, and the Win7 partition editor before installing won't let me shrink it. Parted Magic was no help, wouldn't even work.
View 2 Replies
View Related
May 21, 2010
does anyone happen to know if there is a an application equivalent to dvd shrink?
View 5 Replies
View Related
Aug 22, 2010
Just installed Fedora 13. And just as i finished installing, recovering backup and configuring everything. I realized that i forgot to make an extra partition (for experimenting with other distros).
During the Fedora installation i chose to include all three hard drives in the file system. So now sda, sdb and sdc are all included in the lvm group.
Found this thread in the forum: [URL]
Can i follow these steps to shrink the partition on sdc without damaging my current fedora installation? Can i run the commands straight from the shell, or do i need to boot up from a livecd?
View 7 Replies
View Related
May 9, 2010
I have somehow lost the ability to shrink my windows to the panel on my desktop and I am not sure how to fix this. does any one know how to fix this?
View 1 Replies
View Related
Jun 24, 2010
Here is screenshot showing my current partition in Gparted.
Screenshot-1.jpg
What I want to do is shrink the one (Ubuntu) and extend the other (XP) so that that they are more or less the same size. How?
View 7 Replies
View Related
Sep 22, 2010
Well... I've been givin this task, to make a script that shrinks the /dev/sda1 partition...generally my scripts is working.. it just destroys all data on the sda1 partition when it gets shrinked... i still dont get why =PYou see... i have to shrink the partition sda1 ( with ubuntu 10.04.1 ), but with the installation intact, through a script...I boot via the ubunto live cd, use my script, and my new partition sda3 is created perfectly as ext4.But as i mentioned earliere, data is lost on sda1
My script :
#!/bin/bash
clear
[code]....
View 8 Replies
View Related
Jul 11, 2010
I just installed centos 5.5 on my hd and now I want to shrink the hd so i can install windows. Gpart shows /dev/sda1 which is ext3 (/boot), and /dev/sda2 which is lvm2. But it doesn't let me resize the lvm2 partition.
View 1 Replies
View Related
Mar 22, 2010
I 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
View 1 Replies
View Related
Apr 16, 2010
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)
View 9 Replies
View Related
Sep 25, 2010
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?
View 1 Replies
View Related
Feb 23, 2011
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.
View 4 Replies
View Related
Jul 8, 2011
ubuntu 11.04. How do you rotate the console?
View 9 Replies
View Related