Debian :: Saving Shutdown Text Screen Into A Txt File?
Mar 29, 2010Is it possible to save all the text appearing once you choose to turn off your debian box into a .txt file for further reading and analysis?
View 2 RepliesIs it possible to save all the text appearing once you choose to turn off your debian box into a .txt file for further reading and analysis?
View 2 RepliesWhen my computer shuts down, I always get a long error message from the kernel. It's the very last thing the computer does and I can't even use the keyboard, since the system is halted. I wanted to read it more carefully (it's very long and doesn't fit the screen) and file a bug report against the kernel with it. But for that, I needed to save all that text in a file.
View 1 Replies View RelatedI am wondering if there is already a feature, and if not, then a way to save any open files before a shutdown occurs?
I use xfce4 battery plugin and there is the option to invoke a shutdown whn the batt. hits critical percentage, but I would like to be able to run something at the low percentage stage to save any open files in case the critical stage is reached. I have had no luck googling any solutions or potential solutions.
I'm using Debian Sid xfce on my lenovo laptop. When i try to shutdown, the screen always stays on (the fans turn off). It says "reached target shutdown", then this happens: [URL] .... and then it hangs. I have to press the power button to shut it down. (I have the same problem with reboot). I had the same issues with Jessie.
Things i tried so far and didn't work:
Code: Select allshutdown -h now
shutdown -p now
halt
poweroff
systemctl poweroff
init 0
I edited /etc/default/grub and added the following options at "GRUB_CMDLINE_LINUX_DEFAULT":
acpi=force, acpi=off*, acpi=noirq
*acpi=off: shutdown (not reboot) worked a few times but i didn't have wifi and power manager didn't seem to work
none of them worked..
I have no energy or wake up options at my BIOS.
I found out that i can normally reboot with the Alt + sysrq + REISUB key combination.
I usually work with plain text files, and when moving them across platforms, the differing format creates problems. I want that whenever I save a file with extension *.txt, it be saved as DOS format, and all other extensions or without get saved as Unix format.
View 2 Replies View RelatedI have a few machines set up and running Red Hat 4.1.2-42 in a computer lab. I also have a single test machine running the same version. The machines in the lab work flawlessly.However, when machines are on the login screen, they don't go into power saving mode. That is, after a certain amount of inactivity, the idle login screen should be replaced by a black power saving screen. But this does not happen. The monitor should go into standby (the little green light becomes orange, and the whole screen shuts down until you move your mouse again...you know the drill).I know this is supposed to be the case because this works on the test machine. It just doesn't work in the lab. I think it has something to do with gdm, but I can't for the life of me figure it out.
View 1 Replies View RelatedHow to configure Linux text console to automatically turn of the monitor after some time? And by "text console" I mean that thing that you get on ctrl+alt+F[1-6], which is what you get whenever X11 is not running. And, no, I'm not using any framebuffer console (it's a plain, good and old 80x25 text-mode). Many years ago, I was using Slackware Linux, and it used to boot up in text-mode. Then you would manually run startx after the login. Anyway, the main login "screen" was the plain text-mode console, and I remember that the monitor used to turn off (energy saving mode, indicated by a blinking LED) after some time. Now I'm using Gentoo, and I have a similar setup.
The machine boots up in text-mode, and only rarely I need to run startx. I say this because this is mostly my personal Linux server, and there is no need to keep X11 running all the time. (which means: I don't want to use GDM/KDM or any other graphical login screen). But now, in this Gentoo text-mode console, the screen goes black after a while, but the monitor does not enter any energy-saving mode (the LED is always lit). Yes, I've waited long enough to verify this. Thus, my question is: how can I configure my current system to behave like the old one? In other words, how to make the text console trigger energy-saving mode of the monitor?
im trying to output a list of running processes via a shell script. At the moment i got this which outputs the processes to a text file called out.
echo $(ps aux) >>out
The problem is though, the processes are all just one big block of text which makes it hard to read. Does anyone know how to sort the output to a text file so that it prints to the text file at 1 process per line? I know its probably simple but im very new to linux.
i've been using some subliminal software on windows for a while now and have found it to be really good. It basically just flashes up a message on screen over the top of whatever is going on at that time but the message is only there for about 30 milli seconds
The message is not there long enough for your conscious mind to read it but the theory is that your subconscious mind will read it.It actually works really well. THe problem is that they dont package a linux version although they do have an OSX version, i'd really like this on ubuntu.
Tried it in wine and it installs but nothing happens after that. Alternatively perhaps somebody can tell me how you could get a message to flash up on screen based on a list of messages in a text file?
I'm looking for software which will allow me to record a screen-cast of a terminal based application, recording keystrokes, timing of keystrokes, and audio. I see a couple of advantages to this approach over video capture: Display independence: the viewer can display text in any resolution/style they want, not limited to the resolution of the recorded video. Ability to copy and paste text from the screencast.
DSABE? (Does Such A Beast Exist?)
I'v installed wmctrl to have a terminal on desktop and I'v configure it with a script I'v found online.I'v add the script to startup menu interface from xfce (I don't know the us name cause I'v it version on system language), when I shutdown I'v save the session, and on the next log in seems that it is run twice, so if I disable the save session button when I log of but in that case it run in the previous status (dir/position)and I want that it run from startup menu from script file....so when I save the session where it save the status??...how can I skip that it run twice with the script running at startup???
#! /bin/bash
xfce4-terminal --hide-menubar --hide-borders --hide-toolbars --title=descon && wmctrl -r descon -e 0,90,10,500,500 && wmctrl -r descon -b add,sticky,below && wmctrl -r descon -b add,skip_pager,skip_taskbarFirst xfce4-terminal
I have a text file called file1.txt containing many lines eg.
line1
line2
line3
line4
line5
line6
Then i have another text file called file2.txt contains
3
5
6
Is there a command to remove the lines in file1.txt based on the keywords in file2.txt? note: It should remove line3,line5,line6 based on 3,5,6
Dolphin showing .iso file as text wants to open in Kate or Kwrite. I reported this bug to Debian so they can get it fixed [URL]...
If you haven't done this fix, download the three iso files to see this problem in Debian 8 32bit: dban-2.3.0_i586.iso shows as normal in Dolphin. [URL]....
Modify:
/usr/share/mime/packages/freedesktop.org.xml
My freedesktop.org.xml before:
<sub-class-of type="application/x-raw-disk-image"/>
<alias type="application/x-iso9660-image"/>
[Code]....
I have bought a pdf dictionary, but I would like to convert it to stardict for my ereader.
I have converted the pdf into txt but is quite a bad result. So I need to reorganize a bit the txt.
I'm not a programmer, so I should need you write me a small script (python, sed, bash...) that if at the end of the line there is not a point then the line have to be joined with the following line. Sometimes happens that there is a point even in the middle of the line: in this case the line have to be splitted.
Once last thing: after the first word it's needed a TAB. I have appended a preview of the txt file.
I'm running Ubuntu 11.04 on an IBM Thinkpad T60, when I try to Logoff, Restart, or Shutdown the system just goes to a black screen and I'm forced to do a hard reset to restart the system. I did a reinstall and things seemed to be working fine until I applied updates and reloaded my package list from my previous install then I got the same conditions as before. I suspect that this my be a result of a bad package or update. What I want to know is if their is a way to display console text of the shutdown process so I can see where the system hangs and possibly remove the problem application. I have an AMD 64 bit desktop running with the same package lists and have no issues I suspect it is a hardware specific issue for the laptop or an error with a 32 bit install.
View 1 Replies View RelatedI am having trouble writing a script that monitors a text file. When the file contains number 1 (or any other string that is not a command) it does nothing, but when it is something different from 1, it executes that command.
So, there are 2 files: monitor.mon - this is the file that will be checked constanlty; and test.sh - the script that does the job. The monitor.mon file will have its content modified by php. This means a web page will have a form where I input commands and writes does commands in the file. Test.sh will watch when the file's content changes from character 1 to a command, execute that command and write back a 1 so it will not execute it more times.
I tried combining while and if but with no success. Tried reading the file with cat and grep -e but it doesn't seem to recognize when content changes.
I have recently installed 11.04 natty on Intel Core i3-2100 3.1 GHZ using its own graphic accelerator. When the screen is idle for a long time, more than 1 hour, I get a black screen with the mouse arrow but nothing else. the mouse moves the cursor and Ctl+Alt+F1 does work. How to fix this problem?
View 4 Replies View RelatedI am using Xubuntu 10.10 64bit . When I press the quit or logoff buttons on the desktop it takes me to the logon screen and then at the bottom right corner it allows me to shutdown or reboot. I would like to bypass this screen entirely,and just shutdown reboot from the desktop. Only I use this machine at home ,no none else needs to log on. Is there any way to do this?
View 3 Replies View RelatedI'm running openSUSE 11.2 kde on msi wind u123. Everything runs fine except that whenever i try to shutdown or restart system i see both splash background and the rolling text. I think i should only see the splash with the progress bar until shutting down finishes. But for no apparent reasons i see both which is very annoying.
It might help that i changed the splash screen to a custom one. Here is the one i use and i followed every single instruction.
Is there any way to use sed to replace certain text in a file with the persons username automatically? Right now i'm using
Code: Select allsed -i.bak s/STRING_TO_REPLACE/STRING_TO_REPLACE_IT/g file.foo
I would like it to automatically inject the persons usrname in the replacement string. Is this possible? I've been looking on line at various sed tutorials and I cant quite find what i'm looking for. I also didn't really see anything in the forums search function.Essentially i'm trying to take this file URL...Android.rules and replace all instances of username with the persons actual username automatically.
Code: Select allsed -i.bak s/username/$USER/g 51_Android.rules
I am running OpenSuse 11.3 in a MAC Parallels VM environment. It installed more smoothly than on actual hardware, but the screen resolution is 1024x672 so the screen is off. I have to blindly click in the corner to get the menus, so i changed it to 1024x640 now it looks great, but it doesn't stay. Every time i restart the VM, i have to set the resolution again. Is that a big or is there something I am missing?
View 1 Replies View RelatedKernel 2.6.21.5, slackware 12.0
Vim 7.1
I do 'vim c1 c2' and I begin copying parts of c2 to c1 (yank, put). Now, each time I go back to c2, I must save c1 first. But it happens that I'm not sure I want to save it. Is there a way to go back and forth between c1 and c2, making changes to one of them, without having to write to disk before switching? Notice the changes must be kept.
My home desktop computer upgraded to Ubuntu Lucid Lynx 10.04 without any problems. However, after all was said and done, the boot up and shut down screens look like crap. They are all in terminal text, and without any graphics. I have attached pictures of what they look like. This can't be right. Is there a way I can set the system to use the proper graphics when booting up and shutting down? I like my computer to be pretty.
This is what it does for most of the boot process:
boot1.jpg
It does this just before the screen where I enter my password.
boot2.jpg
This is how it looks when it shuts down:
shutdown.jpg
I put a text file on my desktop and added a couple lines of text with gedit. File type shows text/plain. Double-click opens the file in gedit which is what I want. I'm using the file to temporarily hold some snips of code that I copy from file to file, but when I copy some html into the file and save it, now file properties show it's text/html and a double-click opens the file in firefox, which isn't what I want. Is there some way to keep the file type from changing itself?
View 6 Replies View RelatedHow could I replace text in one file with text from another file using sed?
The text in each of the files would be surrounded by a starting and ending delimiter or a starting tag, say like /* */ so to easily find them.
Can I use sed to include a text file in the beginning of other text files inside a folder and its subfolders? So it should be recursive.
View 4 Replies View RelatedI need to insert 3-4 lines of text to the beginning of a text file. The file is a largish MYSQL dump, the result of a backup shell script. This shell script should insert the required text.I've wrestled with sed, but lost.
View 2 Replies View RelatedI have to delete a certain line of text from the a textfile via ubuntu's shell scripting.I have done research, and it seems that most people advocate the usage of sed /d option. sed makes does not edit the text file. Hence, most options I discovered involved the use of a temporary variable/textfile and then overwriting the old file with the temporary new file. Is there anyway whereby I can bypass the use of temporary storage containers? I hope there is any magical combination of commands to edit the file directly.
View 3 Replies View RelatedI want to display something in my text view widget in glade using c code. that's all right.
now I need to attach a save button beneath the text view.so that on click the text view content should save as a txt file..
I want to display the contents of a particular log file (simple text file, I mean in Linux). But there is a problem: The contents need to be organized in a fixed format. Have a look at this log file:
sampleLog.txt
Code:
User Name: XYZ
Reported Problems Description: Blah! Blah! Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah!
[code]....
So, while displaying the contents of above file on a web page, I want to format the field names found in the log file: User Name:, Reported Problems Description:, and Remarks:. These fields may contain a variable length of text and no specific line number is assumed for them to appear on.
The desired output should look like this:
User Name: XYZ
Reported Problems Description: Blah! Blah! Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah!
[code]....
Well, what I am trying to do may sound wierd to some of you. The filed "Reported Problems Description:" can possible contain text which embeds colon (.