Ubuntu :: System Dies - Monitor Emits Flashing Line Pattern?
Jul 7, 2010
I have installed Ubuntu 10.04 on a Dell Dimension 2350/ 2Ghz P4/ 1.5GB memory.After running for up to 10mins the system dies and the monitor alternates between black & a half-screen display of vertical black & white bars every second or so (first the top half then the bottom half of the screen). The unit has the standard Intel onboard graphics chip.The same happens with Ubuntu Studio & Xubuntu yet Mepis 8.5 & Fedora 13 run without problem.It's a standard installation of Ubuntu & all updates have been applied.
I want to search a file for a particular pattern and if pattern found replace the line with new text. i am using awk 'match($0,"pattern") != 0 {print $0} ' filename to check if the pattern exists.how do i get the line number of the pattern and delete that line and replace the line with my new text?
I've written a script to parse a file and print each line that ends with matching pattern, if the next line is blank. The pattern lines are the result of md5sum $i|sed 's/path///g' so that only md5 and filename appear. Here's what I'm using.
Quote: for fline in `sed -n '/.*.ext$/p' file1` do if [ "`sed -n -e '/'"$fline"'/ {n; p;}' file1`" == "" ] then echo ""$fline" has no info" >>file2 fi done [Code]....
I need to grep for a particular string and if found need to display the line containing that string, the line above that and also the first line of that paragraph.
Can this be done via sed.
Eg, My Paragraphs
OA connectA
Enclosure:
Interconnect Module #6 Status:
Here, if I grep for Critical, it should display the following
Similarly if I grep for Degraded, it should display
It has been happening to me since I started to use this laptop from the company for a linux test bed. Several times a day, when I do something from the command line, for example running an application connecting to another host on the internet, etc,it comes to a freeze and does not come out of it. I can not do anything else than a forced reboot from the power button, because the keyboard and the mouse do not respond. This work laptop is a lenovo W500, running on ubuntu jaunty, release 9.04. I have not encountered this problem before with my personal laptop though. My person laptop is a lenovo X61s, running on ubuntu karmic, release 9.10Should I reinstall the work laptop with some other version of ubuntu? Could it be some hardware problem ? What tools should I use to diagnose
if the given pattern exists in the file with the very next line starting and endingwith the same pattern , delete the line that starts and ends with the given pattern.So upon running on this file
hai people<PATTERN> we had <PATTERN>a lot of fun<PATTERN> writing scripts
I tried to change the Resolution and Refresh rate. But it does flashing yet. When I installed the system that flashing too. Period of about ten seconds
In windows xp dont have this situation.
My monitor is "HP vs17" Ubuntu version is 10.10 Desktop
Am trying to set up a new system but am getting some strange behavoir. I've administered an Irix system before. I have opensuse 11.3 installed with gnome running. When i enter a bad user id in the windows login screen, the bad authentication causes the x window manager to crash and leaves the system in the ascii terminal mode login. I then have to login as root and do an init 3 , then init 5 to get the x server started again an get the windows login started. Has any one seen this behavior before and how can i fix this. Been hunting through /etc/X11/xdm to see what startup scripts could be causing this.
I have a question about sed programming, actually a one-liner for which I cannot find a solution, right now. I need to delete a line matching a specific pattern only if it is the last line. In practice, I would put together the following:
I want to list all the files that don't have a copy with the same filename with -1 somewhere in it. So, in the example above, the results would be 3.png.
NB: the file and its copy with "-1" in it will be the same filesize, if that helps.
I would like to insert prior to the word "three" all items from this second file with the following contents:
Code:
four three two one
Now my issue is, and I have been using both sed and awk currently, that after the second line of the new file is read there will of course now be 2 copies of the word "three" but I would like to only insert the final 2 words, ie "two" and "one" prior to only the first occurrence of the word "three" so final file will look like:
Code:
one two four
[code]....
So here there is now only one of each word from the second file joined to make the new file. For simple code I have tried something like the following:
Code:
while read line do awk -v n=$line '!f && /three/{print n;f++}1' file1 > tmp_file mv tmp_file file1 done < file2
Now this works but seems very clumsy to me. There is obviously a better sed and / or awk out there.
Here's the actual line of code, which exists in a bash script:
Code:
I want to replace instances like this:
Code:
with this:
Code:
Using this:
Code:
Which works great when there's only ONE of the pattern on the line. But in a case like the "actual line" I posted first, where there are two patterns, separated by a slash, only ONE gets replaced
Watch:
Code:
Why? There must be (among many other things) something I'm not knowing about sed, that's causing this.
-- I'm currently using the ~ (tilde) as the separator in the sed command. It doesn't matter, I've used / ~ and % with no difference.
-- As a test, I tried putting a different character(s) in the middle of the original pattern instead of the / but that made no difference.
-- I've come up with various similar but slightly different regexs that will do this replacement, but they all have had this same result.
-- I tried the sed single-quoted, double-quoted, and unquoted; the latter fails to execute, and the formers both work as described here: wrong.
Despite being warned from a friend of mine who works for Intel that the new version of Ubuntu 11.04 sucked? I upgraded from 10.10 which worked perfectly fine and did everything that I wanted it to except work with my COBY MP3 player which is what I hoped 11.04 would do. It all worked great until I rebooted. I previously had the main screen on the left where all of the menus are and the right screen was the 2nd monitor.
Once it rebooted it let me login and loaded the desktop but the main screen is now on the right with that stupid application bar going up the side, all of my folders, etc. are all there but NOTHING is clickable, even the icons up in the right corner where you logout, etc. will not do anything other than highlight that you have clicked on them, the hard drive light flickers for a few moments then nothing.
Also the left hand screen is completely blank unless I move the mouse cursor through it. If I just leave the computer sitting there eventually the screens go dark and the monitor lights start flashing like it is supposed to but if I wiggle the mouse the screens come back on and the mouse is there but there is no login prompt to let me log back in. Pardon my French but this OS is a piece of <bleep> and sucks just like I was told.
I have found many information about how to delete/grab a line in a text file including delete line with match a pattern but I did not find info about how to delete a line which match a pattern of a particular column only.
for example mydata.txt: id type x y z 1 6 0.474611 0.227223 0.583947
I just downloaded Open SuSE Linux 11.4 and installing it on a Vaio 2.8ghz Computer. While loading everything went well, but when I loged backon my Monitor Flashes about every 20 seconds, just for about 3 seconds. I am using a GForce 2200 Video card.What I need to know is their anyone who can tell me why this is happeining and how to fix it. I have used Open SuSE 10.3 on another machine and have never had this problem.
I'm new to the shell scripting. can any one help in creating shell script for matching the content of the specific variable with file. it should remove that line from the file if line is containing same value as variable and keep the other content as it is.i used grep -v for accomplishing the same. But grep will remove the pattern which is similar.For eg. Assume file "test" contain datas :aaffif i used grep -v command for the pattern "a" to this file this will remove content "aa" from the file. I want the pattern only "a" should remove from the file, if it is existing. otherwise it should throw alert content not exists.
I am trying to create a shell script, on taking a input file as parameter, which need to do 3 things
1) create a copy of existing file.
2) add a new line to the copied file.
3) strip off all the absolute paths inside the copied file
The first 2 points are straight forward. but i am finding it difficult to acheive the 3rd point. myself not very good with awk and sed. but gave it a shot in vain. For example, the input script consists of below,
I cannot install Ubuntu 10.04, or even boot into the live CD. I'm not an expert, but I've used Ubuntu for several years, and I'm pretty sure I'm not doing anything stupid... Here's what happens when I boot with the Ubuntu 10.04 live CD: I get a purple screen with just an accessibility(?) symbol at the bottom (this lasts 15 seconds). The screen goes black, with a flashing cursor, then changes back to purple, this time with an Ubuntu logo, with 5 dots acting as a progress indicator (this lasts about 1 minute). The screen switches to standby. The CD drive continues to make noises for another minute or so, then stops.
I physically removed my graphics card (ATI Radeon HD 5770), and plugged the monitor straight into the VGA port on the motherboard. Now the CD boots up fine. I could try installing Ubuntu at this point, while my graphics card is unplugged, and then plug my graphics card back in, and see if it starts working then.
I have re-installed Fedora 3 times, each time, after a little while of use, when I am botting it up, it loads up, and before the login screen appears, the screen just goes black, and I end up with just a black screen and a white line in the top left corner flashing, thus resulting in me not being able to log in. The exact same has happened a number of time
Could it be something I had installed? Also, whilst using it, on the third install, a few times a message appeared telling me there was a kernel error, could this be linked to the problem? I was running Fedora in GNOME, but I had KDE installed too.
this is my first time doing a custom partition, I tried to do it with only the assistance of reading as I go, but I don't believe I found enough information last night. What I am trying to do, is put openSUSE on 200gb out of 500gb space on my external hard drive, as well as on 50gb space out of 110gb on my internal hard drive. The remaining 60gb space on my internal drive is going to be for microsoft windows. The remaining 300gb space on my external drive will be storage space. It seems like what I want to do is achievable
What I want is to have my main openSUSE on the external drive (primary partition I think?), with the GRUB loader so that when the external drive is not plugged in, my little brother can use windows on my internal hard drive. I tried this last night, and when installation had finished, I rebooted my computer and the screen was just blank black with the flashing white line as if waiting for me to type, although it would not allow me to type when I tried. It would be great if someone could tell me the order in which to partition, including the terms primary partition, extended partition, and logical partition, as needed.. I don't want to permanently muck up this machine.
I have to enhance the behaviour of a backup script written in perl. I don't need to change it, what I need to do is to create a bash script that does some checks like file name and file size, execute the backup script then check if the backup files match the original files.Here's how I try to do it:
- read the files from the original files folder - store them in an array - search in the array the files that have a specific file extension - store the file names that match the search pattern (I know the backup script skips some files so I can hardcode the search pattern) - run the backup script - read the files from the backup folder - store them in an array - compare the original files name and size stored in an array with those from the backup folder - send a report email
Each time the PC boots and I pop in the Debian DVD into the DVD tray, it emits a blaring sound. I know the sound is emitting from the speaker inside of the PC but short of pulling it out or disable it via the BIOS, can I disable it in any other way as no sounds are heard when I boot with say Fedora, Ubuntu, etc?
I want to go through a log file and find pattern1 and then a pattern2 only after pattern 1.So for example I want to know howManyRecords was in 13:30.I figured I grep for "start time for the job" and then only after that (and before the next occurence of that) grep for "howManyRecords". Is this a sane way?
I have persistent video tearing my second monitor (Mitsubushi HDTV). I have tried everything that was suggested with some improvement. I have no issue with tearing if I add the following to my xorg.conf
Is it possible to disable composite for one monitor only and keep it for the other. Or at lease is it possible to have compiz for one monitor only and disable it for the other.
this is a continuation of my install from : my experiences installing suse ( graphics stuff was from page 3)i have two graphics cards:ATI X700 x16 pcie card in a x1 slot (one monitor, left)NVidia GTX 7800 card in a x16 slot (two monitors, centre,right)machine boots up on the ati card, and i had configured them properly in the last topic, so now the setup looks good except for when i move the mouse cursor from the Nvidia card, left, over to the Ati card. this causes the GUI to be not responsive andthe cursor is flashing, either on neither monitor or one of the two and moving the mouse decides which (so its not a complete crash, but nothing is moving in the GUI). pressing many ys on the keyboard at once seems to stop the X and goes back to the the commandline.
the last problem i had in the last topic was that the virtual screen was not defaulting at the screen resolution i set and instead defaulted at 3840x1920 and i saw the top corner of the wallpaper. moving the mouse over to the ati card would still produce a crash with the above description.occaisionally the computer would crash with the same problem accross the nvidia monitors, however it always happens between the centre and monitors.i have installed the Nvidia drivers using a install program from the SUSe and it put the relevent packages on. Ati drivers are whatever came with 11.3 (and theseected that the card has two outputs). if its the nvidia drivers i could go back... (how?) hopefully it can use the two monitors still else its better to remove the ati screen in xorg.conf
I am facing problem with the fresh installation of Fedora 11. (I have moved from Fedora 9). When I try to view videos on ..... or use the Cheese Webcam Booth, I get blurred lines on the screen and I am unable to see any video or pic.
Also I noticed that the when i go to System > Preferences>Display, it shows me UNKOWN MONIOR.
However, if I got to System>Administration>Display and enter the su password, it shows me correct monitor and the graphics driver.
I am not sure if my original is related to the Unknown Monitor.
I also tried to install Nvidia driver but it crashed the xserver and I had remove the driver.
My Monitor is LG 700E and Graphics card is from intel. as I am not able watch any video.
I installed Win7 after Ubuntu (10.10). I attempted to reload grub so that I would be able to run them dual boot and now I can't load anything.
I followed the guide here: [url] and went threw it a couple of times now to make sure it wasn't user error.
I am using a live cd from 10.04 because it's the only one I have. Any chance that's why it isn't working properly? I wouldn't think so, but I assume that it's possible.
If that is the case; Any way to solve it without using the live cd? I cannot burn a new disk because I have to boot from disk to use my computer right now.
I just get a flashing cursor on a blank screen when I try to load.