Ubuntu :: Copy A Portion Of Previous Log To New Log After Rotate?

Jul 12, 2010

I 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

View 9 Replies


ADVERTISEMENT

Fedora :: Get A Copy Of The Previous Version Of Adobe's Flash Plugin?

Jun 25, 2010

Just wondering if anyone would be kind enough to point me to a link for the adobe flash plugin version previous to version 10.1 for i386. I don't have anything in /var/cache/yum/i386/12/adobe-linux-i386/packages/ because I think I cleared yum's cache. I'm experiencing major regressions with flash 10.1, stuttering videos and some videos no longer play. Version 10.1 is a major disaster for adobe. It really is appalling for an update. Also, if anyone else is experiencing flash version 10.1 issues, please share and if anyone is considering upgrading to it, my advice is keep the old one handy, you will likely need it.

View 2 Replies View Related

General :: Copy Previous Output From Bash Terminal To File?

Oct 26, 2010

I know how to redirect the output of a terminal to a file. For example, if I want to list all the files in ~/Documents and output to a file called test.txt, I would do this: ls ~/Documents > test.txt The question is, can I copy the output to test.txt AFTER I have carried out the command? This would mean that I wouldn't have to know in advance whether I want to copy the output to file. I want to do something like this: ls ~/Documents Then this: <bash command for copying standard output to test.txt>

View 2 Replies View Related

General :: System Bash Shell Copy Previous Lines (not History) With Keyboard?

Jun 14, 2011

Is it possible to use the keyboard in order to select some text in the terminal windows that is not in the currently edited line? (for example, in order to copy part of previous command output).

View 3 Replies View Related

Fedora :: Rotate The Pen When Rotate The Screen?

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

Ubuntu :: Using Only Portion Of Monitor To Display Desktop?

Sep 13, 2010

I have a Visio TV that I dropped and cracked the LCD display in one corner, for watching TV it's basically useless now. On a whim I plugged it into one of my computers and about 75% of the screen is still usable. Only the bottom right hand corner of the screen is messed up. What I'd like to do if possible is to define an area of the screen. Say for instance the top left hand corner across and down to where the screen starts getting bad.

Like a left click and drag out the good area and then make only that area "the monitor" for the OS to use. I'd then probably build a case or something to house it in and only show the "live" area to clean things up. I'd like to use Ubuntu. But if you know I can't do it in Linux but can in Windows I'd consider that option as well. I just hate to junk the TV if I can use it some how as a monitor.

View 1 Replies View Related

Ubuntu :: Missing All Effects And Portion Of Screen

Nov 22, 2010

I was playing with Compiz on my netbook and installed Fusion. All was well until I rebooted it and now I am missing all effects and a portion of the screen. I am purged compiz and reinstalled it to no avail. I did mess around with the outputs and changed 640x480+0+0 to 1024x600+0+0 but have no changed it back attempting to fix my issue. I have attached an image of the current situation. Basically, I am trying to get my compiz running again with all its sexiness.

View 6 Replies View Related

Ubuntu :: Configure Not To Use A Portion Of A Cracked Lcd Screen?

Feb 25, 2011

I have a laptop with a cracked screen. the crack is not very serious, about an inch and a half on the right. I can still use my laptop but it is hard to see information in the cracked area.

My question is how can i set up ubuntu not to use that portion of the screen, sort of tricking it into thinking that the display is essentially 1.5 inches shorter on the right than it really is.Perhaps setup x11 differently?

View 7 Replies View Related

Ubuntu :: Testing Scanner Portion Of A Multifunction Printer?

Aug 10, 2010

I recently installed Ubuntu 9.04 (Jaunty Jackalope) which I then promptly upgraded to 10.04 LTS (Lucid Lynx).

I have a canon pixma MX320 multifunction printer. I downloaded the printer/scanner drivers for linux (debian) from [URL]...asp and installed them with no problems.

The printer function works, as I managed to print a test page, but I was wondering if there was a way to test the scanner portion of my multifunction printer to make sure it works?

View 3 Replies View Related

Ubuntu :: Gnome Desktop Resized / Portion Missing

Nov 10, 2010

I was browsing and then a pop up window came up and all my display got resized randomly for a few seconds. Finally,the lower third of my monitor is total black and useless.The taskbar and dock is still visible at the bottom though but above it is total black.All my compiz settings are gone too!I have tried win7 and everything is fine there.I have tried to adjust monitor settings but nothing changes.

View 1 Replies View Related

Programming :: Extract Portion Of Text - IRC Log

Jul 18, 2011

I have a lot of files containing chat-log (IRC) and would like to extract information out of these files.

File sample

Code:
Session Start: Sat Apr 03 15:06:29 2010
Session Ident: XXX
[15:06] XXX is ~X@host-85-85-85-154.isp.be * XXX
[15:06] XXX on #channel1 #channel2 #channel3

[Code]....

View 2 Replies View Related

Ubuntu Security :: Installed Within The Windows Portion As A Virtual System?

Jan 2, 2010

When you have a computer whose hard drive is partitioned with one part Windows and the other Linux, what are the concerns with viruses and transference across the two systems? Can viruses infect the windows side brought over through the Linux side (Firefox) or are the partitions completely separated? In other words, if all of your Internet voyages are through Firefox under Linux, is there any danger of infecting the Windows side of the computer? What about when having Linux installed within the Windows portion as a virtual system?

View 2 Replies View Related

General :: Mark A Portion Of The Screen As Unusable

Dec 12, 2010

I have a laptop of which a large part of the screen is broken (shows garbage). Fortunately the broken area is a clean rectangle, the bottom 1/3 of the screen or so.

The laptop is running Ubuntu 8.04, but I plan to reinstall it with 10.10. The graphics are provided by an Intel 915GM or something in that direction.

Knowing this, do you know of a way to tell the system about the broken part of the screen, so it will simply not use it? I don't really care whether it's done at the hardware, X or window manager level, though as low as possible is preferred.

View 1 Replies View Related

Software :: Using SCROT To Capture Portion Of Window?

Jan 22, 2010

Scrot supports capturing a portion of the screen by allowing the user to use the -s option. I need to use the command line.

So I installed xdotool to allow me from the command line to move my mouse, click buttons, type text, select my focus, etc...

I also built a bash script that uses scrot and xdotool that allows me to select the window that has a firefox web page displayed. Then I can position the mouse and do a right button click to position to a data entry box on the web page. Then I can use xdotool type "my text" to input the text into the input box. All this works very neatly.

My problem is the following:

The command "xdotool mousemove x y" does not move relative to the top left hand corner of the focused window. The command moves to the absolute x y screen location, not the relative window location.

This happens even though I use the command "xdotool windowfocus windowid" or command "xdotool windowactivate windowid" to specify which window I want to use (want in focus).

Does anybody know how to specify that the "xdotool mousemove x y" is to move relative to the upper left hand corner of the currently in focus window?

By the way, here is my bash script:

#!/bin/bash
# get window id
WIN_ID=`xdotool search --title MyWindow`
# activate window with title MyWindow

[Code]....

View 2 Replies View Related

Debian Installation :: Get Some Testing On The Installer Portion Of Squeeze?

Nov 4, 2010

I am still getting the error that no kernel modules are found when trying to load components from the CD on the multi-arch version of Squeeze. Are these even tested prior to releasing them? I mean I know it's testing but I thought we were reaching a release-date and the installer is 100% broken and has been for months. I have a pile of useless multi-arch CDs for Squeeze that won't install on 64bit or 32bit machines due to not finding the kernel modules. Can we get some testing on the installer portion of Squeeze?

View 3 Replies View Related

General :: Command Syntax Ignore Remaining Portion After Space?

Jul 14, 2010

I'm currently studying for my Linux+ test and I'm getting conflicting information regarding the rm -rf command. Yes, I know this a dangerous command, but my question is in regard to how the command functions. In one book I'm studying it says that rm -rf / home/myfolder (there's a space in there) will delete the entire root directory because there is a space between the root and home directory. It says that if there is a spacing such as this, it will ignore anything after the space, so in this case, it would delete the root directory and stop, not that there would be anything left anyway. Then in another book I have, it says that if you did a rm -rf folderName / (with the intention of adding the trailing slash to indicate it is a directory and not a folder) it will delete everything in folderName (assuming it's a child directory of your pwd) and then CONTINUE on and delete the root directory. Now, those two statements contradict each other. When you remove a directory, does the command line ignore anything after a space or not?

View 1 Replies View Related

General :: Smaller Resolution Renders Screen Portion Unviewable

Feb 8, 2010

And we are unable to restore the setting because the button to click on to do so is outside of the viewable screen! Also we have lost the start bar/dock at the bottom of the screen and cannot figure out how to get it back.

View 1 Replies View Related

Software :: Span Desktop So That Some Portion Is On Laptop And Some On External Monitor

Jul 7, 2010

I am having a Dell ST2410 LCD and a laptop IBM.I want to span my desktop so that some portion is on laptop and some on external monitor. I tried xdmx but it did not worked.

View 6 Replies View Related

OpenSUSE :: Accidentally Deleted The Window Title Portion Of The Bottom Panel?

Aug 29, 2010

While screwing around with my settings trying to get 11.3 setup the way I wanted it, I accidentally removed the portion of the bottom panel which displayed the titles for all the current open windows....and I can't for the life of me figure out how to get it back.Can anyone tell me how to add it again? I'm sure its something incredible simple, but I haven't been able to find it

View 5 Replies View Related

General :: Split Screen Within VIM To Show Common Commands On Bottom Portion?

Jun 12, 2011

I long while ago (when I was in collage) I used VIM a bit. I have not used it since and would like to get back into using it. I remember there being a way to split the screen within VIM to show common commands on the bottom portion of the screen. I've searched a while and cannot find how to set this up.

View 1 Replies View Related

Red Hat / Fedora :: Partition A Portion Of The Drive For XP / Install - Use As A Virtual Desktop Remotely?

Oct 26, 2010

I am an entrepreneur/design engineer so I do a lot modeling, rendering, etc and lot of my programs can only run in Windows. I have a fully licensed version of XP that I want to install on the computer and wondering if it is possible to do the following: Partition a portion of the drive for XP. (VMware isn't the greatest as you lose your 3D acceleration, so I definitely want to do the partition) Install my programs and ensure they run. Use the machine as a virtual desktop remotely?

View 1 Replies View Related

Software :: Karaoke Disc (cdg) - Pykaraoke Can't Read It - How To Play The Video Portion

Jan 18, 2010

I have a karaoke disc with (presumably) 10 cdg files on it. I tried to open it with pykaraoke, but it can't seem to read the disc. I then tried k3b, which was able to rip ten ogg files from it (when I created an iso of the disc, it created ten wav files from it.) I tried opening it with smplayer but no luck. kaffeine opened it as an audio disc. When I tried to mount it with a file-manager, it gave the following results:

Code:

read-only
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try

[code]....

I tried cdgtools from the pykaraoke site [URL], but I've not had success (cdggui.py requested a "TOC" file to open, but it can't find one on the disc). I use Debian Lenny, but if need be, I'm willing to install newer software (from either source or Squeeze), and I'm also willing, if need be, to use windows software with wine.

View 3 Replies View Related

Ubuntu :: Rotate One Of Two Monitors?

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

Ubuntu :: Compiz Cube Rotate Up And Down?

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

Ubuntu :: Rotate Crystal / Molecules 3D?

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

Ubuntu :: Can't Rotate Compiz Cube

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

Ubuntu Multimedia :: How To Rotate The Console

Jul 8, 2011

ubuntu 11.04. How do you rotate the console?

View 9 Replies View Related

Ubuntu :: Screen Goes Dark On Cube Rotate?

Dec 22, 2010

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 Related

Ubuntu Multimedia :: Way To Rotate Video File

Jun 15, 2011

I 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?

View 2 Replies View Related

Ubuntu :: Rotate Desktop With Wheel On Mouse?

Jan 23, 2010

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 Related







Copyrights 2005-15 www.BigResource.com, All rights reserved