Ubuntu :: Conky Countdown With Leading Zeroes?
Jun 5, 2010
I found a script that counts down to a date and time and after modifying my .conkyrc file I want things to line up nicely, so, now I need leading zeroes on the output, like one timer I have says "4m +2w 5d 20:0:0" and I want it to say "04m 02w 05d 20:00:00" and on a slightly separate issue, it doesn't seem to be counting the minutes and seconds correctly, but that can be dealt with later, the current script is
Code:
#!/usr/bin/perl
#Script Name: howLong.pl
#Author: Nathan Handler <nhandler @ubuntu.com>
[code]...
View 9 Replies
ADVERTISEMENT
Nov 18, 2010
I'm writing a script that among other things partitions and formats disks using SW RAID and LVM. I've read somewhere that for older versions of Linux it was a good idea to use the dd command to zero the first couple of blocks od a device before partitioning it (or formatting it?) Is this practice still recommended? To what end?
View 1 Replies
View Related
Oct 28, 2010
To create a weblink I needed to pad zeroes to an IP Because I couldn't find any examples I created my own.I invite anyone to improve on it and hopefully I'll see many alternatives.I'm using 'grep -o' to break down the 4 segments....
Code:
# IP=127.0.0.1
# PADIP=`echo "${IP}" | grep -o -E '([0-9]*.|[0-9]*)' | awk '{printf( "%03d
", $1)}' | tr '
' '.' | sed 's/.$//'`
# echo ${PADIP}
127.000.000.001
View 7 Replies
View Related
Sep 18, 2010
I have an external 500GB USB drive that I want to sell. I've copied some stuff to it and practiced partitioning and formatting with it, but I want to use something to erase it completely. Is this possible if the USB is connected to a ThinkCentre 8187-EJU with an Ubuntu 10.04 OS? I've used Dban to erase regular hard disks but don't any software that could be installed on my computer that would erase a USB drive.
View 5 Replies
View Related
Jun 26, 2011
I have conky installed and set up as a startup application, however everytime I log out and back in conky creates itself as a new window:
How can I get conky to start normally without having to do a manual restart everytime I login?
View 3 Replies
View Related
Mar 9, 2011
I want to view a hard drive and see if it has all zeroes, how would I do this? I want to view a hard drive and see if it has all random data, or random data mixed with zeroes. How can I do this? I prefer to do all this in linux if possible without a gui...so looking for any cli tools to view with.
View 5 Replies
View Related
Jun 13, 2011
Said that all the config i find put all the info in one place of the screen, in this example on the right side:
url
or like conky colors where you can put in either side, or other complex examples that use folders with images..that at least i need one day to study all the variables it has...
What i want is something simple, in my black background i dont want images and effects, only white simple text.
My problem is: i want for instance my specs above, my log info in the middle, my music info bellow (above my clock) and in conky config i'm hitting my head in the wall....
For instance if i use my facebook script to appear in the midle how the hell can i put my music info bellow without ruined the facebook in the midle...do i need 2 conky configs?
View 4 Replies
View Related
Jul 22, 2011
Since earlier today, I am stuck at startup on the grub page, I have no countdown and I have to press a key to keep going. I only have Ubuntu on my PC and didn't use to view grub.I am obviously running update-grub in between each of the modification and trying to restart...
here is my /etc/default/grub file:
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
[code]....
Still no chances, any insight why my grub.cfg doesn't not seem to change and be configured correctly during update-grub.
View 1 Replies
View Related
Feb 15, 2010
How would i go about to changing that to 30? I have two testing servers using the same monitor and mouse, so i have to log onto those first, if i want to have access to my files. On the server at startup. (I have set up a basic samba server)
View 2 Replies
View Related
Apr 19, 2010
Previously I could don "sudo nano /boot/grub/menu.lst" to edit in grub the countdown timer from 9 to eg: 2 seconds. I don't know how to do that with 10.4, as there is no file /boot/grub/menu.lst anymore.
View 4 Replies
View Related
Jul 17, 2010
I'm looking for an app that will provide a large (full screen and clear) display countdown clock, basically so I can use my laptop in public to show how much time remains in a basketball quarter. I'm the official timer.If it counts up like in soccer rather than down, that's fine too. If the app can also show the score, that would be great, but it is not a requirement. We don't use a shot clock, so that is not required either.
View 8 Replies
View Related
Dec 14, 2010
I installed Ubuntu 10.4 using wubi from XP. For some reason wubi didnt increase the countdown time on the windows os selector. My P.C. came with a recovery partition, so the os selector has always poped up on startup, but the timer was set to 5sec.(probably to avoid annoyance). Is there a way to edit this so I can have more time to select my option? This is the windows os selector and Ubuntu is on a separate(second) hard drive.Ubuntu version: 10.04 LTS- the Lucid LynxWindows version: Xp servicepack 2Machine: Hp Pavilion a1677c
View 4 Replies
View Related
Feb 1, 2011
when I type "conky" in terminal it returns with Conky: invalid configuration file '/home/user/.conkyrc' Conky: missing text block in configuration; exiting ***** Imlib2 Developer Warning ***** : This program is calling the Imlib call: imlib_context_free(); With the parameter: context being NULL. Please fix your program. I've tried completely uninstalling, rebooting, then reinstalling, still same error?
View 3 Replies
View Related
Mar 7, 2010
My fedora does not autoboot. I get stuck at the grub selection green. I have the choice of one kernel and I have to press enter before I can continue to boot into the OS. Is there a way to fix this? /etc/grub.conf, menu.lst and /boot/grub/grub.conf are all identical. I have tried different timeout # as well as default=saved. Still nothing works and fedora does not count down.
View 3 Replies
View Related
May 23, 2010
When I click logout or shut down I get a countdown saying I will be logged out or shut down in 60 seconds, then it counts down. I can click the "shut down now" button, but I find this behavior incredibly irritating. When I click logout I would like to logout NOW.
View 6 Replies
View Related
Feb 16, 2010
I'm looking to write a shell script that is a count down counter for my brothers birthday, hopfully something that when the big day comes it pops up and says " happy birthday"
something that wont get screwed up if the computer is restarted...
View 6 Replies
View Related
Apr 14, 2011
I cd to the directory, Run Python setup.py install.
[mitch@mitch ~]$ cd LostCountdown
[mitch@mitch LostCountdown]$ python setup.py install
python: can't open file 'setup.py': [Errno 2] No such file or directory
[mitch@mitch LostCountdown]$ ls
icon.png LostCountdownScreenlet.py Screenlet.package sounds themes
[mitch@mitch LostCountdown]$
View 1 Replies
View Related
Jul 17, 2010
Out of the box, Bash in 10.04 is configured such that it won't expand/complete parameters when there's a single match for a parameter with a leading wildcard. For example, if I have the following files in a directory:
Code:
ABC.bin
DEF.bin
GHI.bin
...and I type cp *E*, I expect to be able to press TAB and have Bash expand *E* to DEF.bin, since that's the only file in the directory with a capital E in its name.
(Note: if I actually submit the command with the wildcards in place, the correct file will be used then, but I don't get to see it beforehand.) I imagine there's something in /etc/bash_completion that's preventing this from working properly. Does anyone know what it is?
View 1 Replies
View Related
Jun 15, 2010
I created a Fedora 13 x86 live image on USB using [URL] I've set it to boot using the USB and when it does I see the 10 sec countdown (or the options if I press a key), I tried all the options to boot the image but the screen just turns black for a few seconds and then the the monitor goes into "power saving mode" and nothing happens (I waited like 10 minutes). What's going on? I am trying to install fedora into an empty (secondary) HD, in the main HD I only have a win XP, and I don't want to burn a cd/dvd that's why I am trying to boot the USB.
View 2 Replies
View Related
Apr 10, 2011
I am going to allow myself a few cheeky ones next weekend. So I though it would be nice to have a clock on my desktop reminding me of how long to go. Is there a countdown clock I can add to my Gnome desktop? I am using Centos5 & F14.
View 2 Replies
View Related
Jan 27, 2010
I'm trying to put together a script that will quickly run through an archive directory of log files that are named by day of the month 01.gz, 02.gz, 03.gz.... 31.gz. The script uses gunzip -c | grep | wc to count up the total number of hourly occurrences of a filename and outputs the results to stdout.
The only snag I have left is the octal limit when it gets to 08 and 09. I've seen examples using perl and awk, but this script uses a number of nested for loops and if statements that I don't want to have to rewrite in a different syntax. I found that I can use num=10#08 to set that variable to a base 10 instead of a base 8, but then I lose the leading 0 again when it passes the number to the next filename variable.
View 8 Replies
View Related
Mar 3, 2011
I'm trying to insert a line using sed that has leading spaces before the text. Sed seems to be just dropping the spaces and only inserting the text. Any ideas what I'm missing?
Code:
NAM=rb134
sed -i.bak -e "$i
host ${NAM} {" /etc/crap
Instead of inserting a line with 8 leading spaces inserts it with "host" at the beginning of the line. I tried
Code:
NAM=rb134
sed -i.bak -e "$i
^ host ${NAM} {" /etc/crap
but it put the "^" at the begging of the line.
View 6 Replies
View Related
Aug 3, 2011
I first noticed the problem because my wireless internet will stop working. The usb stick has its LED constantly on but it fails to connect. I have tried some methods of restarting the networking, like "sudo restart network-manager", disabling and re-enabling the wireless and networking from the taskbar applet. I tried removing the module and restarting it. It might be a bigger problem because I'll find that things will randomly hand for awhile, like opening system monitor, or running terminal commands. They do eventually run but only after several minutes. A restart seems to get everything working again, but the problem comes back at random times. I am willing to solve this right now as I have time, just let me know what info you need and I will post it.
Update: Some more info I forgot to include. I am running Ubuntu 11.04. It just froze again, I tried logging in and out but the internet still wouldn't work and things were hanging, I couldn't get file manager open. I have even tried shutting down the computer and had it stall on the Ubuntu logo with the dots loading so I had to hard restart.....
[code]....
View 9 Replies
View Related
Jun 19, 2010
I have a problem with conky. It draws a black background instead of using pseudo-transparency. I ofc tried to achieve this with feh but to no avail. All the instructions here failed: Conky Hardcore! Conky transparency with KDE (3 and 4)
[Code]...
View 1 Replies
View Related
Jan 8, 2011
I need to rename some files. They are named:
NP1-1.mp3
NP1-2.mp3
NP1-3.mp3
[code]....
However, as there is no lead 0, the order gets confused by some software (some software mistakenly lists it as NP1-1.mp3, then NP1-10.mp3). I'd like to add zeros so the files are named like this:
NP1-0001.mp3
NP1-0002.mp3
NP1-0003.mp3
[code]...
How can that be done?
View 3 Replies
View Related
Mar 28, 2010
I have a script that calls for a file description on a core file. I then pull the name of the process that caused the core file.
unfortunately, the process name is pulled with a leading ' amd a tailing'. I would like to remove the leading char and the last char.
code:
VAR=`file /tmp/core.1432 | awk '{ print $14}'`
echo "Process Name: $VAR"
output:
Process Name: 'ProcessName'
Results I need:
Process Name: ProcessName
I tried sed, but it seems to not like using the special char '.
View 14 Replies
View Related
Jul 10, 2010
How do I make getchar() skip a leading space? The situation I am looking is this: I print a prompt that ends in a space printf("Input: ");and then when I use getchar() to read the text that was typed after the prompt, it appears to process the trailing space as a leading space that belongs to the input.
how can the space be skipped, preferably without inserting code that explicitly checks whether I'm reading the first character or not. I have already found out that I can skip such a space using scanf scanf (" %c", &ch); where the leading space in the format string eliminates leading spaces from the input string. That is the sort of thing I have in mind.
View 7 Replies
View Related
Jun 8, 2010
I ran across this problem when I used checkinstall and then tried to extract the contents of data.tar.gz (which you can find inside any .deb).tar has an option to extract the contents of a file in a given directory.From tar's manpage:
Code:
-C, --directory DIR
change to directory DIR
[code]....
View 2 Replies
View Related
Sep 10, 2010
I'm thinking of a few ways to do this I'm curious how many better/equal ways there are to do the same task.in a file with format like: 20 text Gi0/2 some other junk I have it reformatted to look like this before going in a database: 0/2 20 text. But for whatever reason some of the new input text looks like this now: 20 text Gi1/0/2 some other junk
My script makes it look like this: 1/0/2 20 text. I want it to remove the leading number and slash if the input file is in the new format.
View 5 Replies
View Related
Apr 19, 2011
Is leading whitespace significant in bind9 config files? This reverse lookup file (/var/chroot/bind9/etc/bind/zones/rev.168.168.192.in-addr.arpa) did not work; /var/log/messages had "zone 168.168.192.in-addr.arpa/IN: has no NS records".Inserting 3 spaces before IN in the NS line fixed it:
Code:
; IP Address-to-Host DNS Pointers for the 192.168.168.0 subnet
@ IN SOA CW8vDS.localdomain. hostmaster.localdomain. (
2011041901 ; serial
8H ; refresh
[code]...
Reading the man pages and netsearching, I did not find anything about indentation requirements except for "This is usually indented for readability, but the indents are required syntactically" here.Although the above file works, named-checkconf reports an error in it:
Code:
root@CW8vDS:/var/chroot/bind9/etc/bind/zones# named-checkconf rev.168.168.192.in-addr.arpa
rev.168.168.192.in-addr.arpa:1: syntax error near ';'
but named initialisation does not log any errors or warnings in /var/log/messages when processing this file except "/etc/bind/zones/rev.168.168.192.in-addr.arpa:2: no TTL specified; using SOA MINTTL instead".
View 10 Replies
View Related