1

(2,564 replies, posted in Tips, Tricks & Scripts)

tchoklat wrote:

LOCALE =

(I have amended the license key for security reasons in this post)

Bummer - someone deleted your locale!!!
I remember downloading this package, and getting examples to work on. They worked, but gave me weather for Norwich. Did you get that far?

Try replacing with this: (you should get some nice weather, except today it's up to 42 C, so rather too warm)

# config settings for conkyForecast.py

LOCALE = THXX0002

I think perhaps it's more to do with paths. I ended up making a folder to assist me in organising - having a few versions and backups floating around by now... /home/ben/Admin to keep things a little tidier - with a 'template' and 'weather' folder in there too. I also renamed my edited template, it's not related to bangkok in any way:rolleyes:

${if_existing /proc/net/route wlan0}${execpi 1800 conkyForecast --location=THXX0002 --template=/home/ben/Admin/weather/bangkok.template}${else}${if_existing /proc/net/route wlan0}${endif}${else} ${endif}${color7}

2

(2,564 replies, posted in Tips, Tricks & Scripts)

myh3adhur7s wrote:

I do realize that this is going to t be a simple answer but i want o know what fonts are usable for conky. And how to add other font types if possible because i want to do some different fonts other than the sans serif, and also the icons that several of the configs here have.

Pizzadudes is a great font - I saw it first in Fabsh's conky - nice smiley faces:
So, if you have a connection, you load your weather...
${else}
${font PizzaDude Bullets:size=16}${color red}4${font sans:bold:size=10}   diskə'nektid
${endif}${color7}
${voffset -25}
this gives a big red frowny face.

Trebuchet MS is also very beautiful for your clock display
${color2}${hr 3}
${goto 45}${font Trebuchet MS:bold:size=26}${time %H:%M}${font Trebuchet MS:bold:size=16}${time :%S}${font Trebuchet MS:bold:size=11}
${voffset 0}${alignc}${time %A, %d %B %Y}
${font Trebuchet MS:bold:size=9}$alignc UTC ${utime %H:%M}
${hr 3}$font

Insert $font to reset conky to default font at any time.

Trebuchet is available in the microsoft core fonts package. You can install 'fontmatrix' and 'fonty python' 'to browse fonts (fonty python browses by folder - fonts you might keep stored in /usr/share/fonts.bak when you're not using them wink)

DejaVu is famous, but I found a font called GENEVA which is now my default for Applications, Desktop and Window Title font - it's even better than DejaVu.

So to start you off, get http://www.1001fonts.com/font_details.html?font_id=2466 - unzip it to your /usr/share/fonts and run

sudo fc-cache -f -v

Remember, to uninstall, just copy the font from /usr/share/fonts to /usr/share/fonts.bak and run fc-cache again.

Be very careful if you remove anything from /usr/share/fonts (it might be better to work with /home/user/.fonts) because you might bork your system. It's handy to have a USB install ready to boot up and restore your /usr/share/fonts.bak folder (experience mad)

3

(2,564 replies, posted in Tips, Tricks & Scripts)

I did find the following, if you enjoy something both useful and useless then you'll like this permanent display of the volume control, as well as the entropy in your system. (total entropy is fixed, you can use $entropy_avail $entropy_bar and for the total entropy there's $entropy_poolsize

Volume $mixerbar
Entropy $entropy_bar $entropy_avail / $entropy_poolsize


I ended up with a line
${font lucida sans:bold:size=7}${color8}${execpi 3600 aptitude search "~U"}$color $font

The second part of the output is a description and would need wrapping - not worth the effort. Once you see a couple of bright orange lines there you'll just update to remove them.

4

(2,564 replies, posted in Tips, Tricks & Scripts)

I don't understand your problem neutral
You just create a script where you want (I put it in a directory in my home : ~/scripts/name_of_script)

Hahaha, okay - sorry. I was more interesting to make a script worth applying - I'd be interested in sorting a list out; so just use #! /bin/sh NUMOFUPDATES=$(aptitude search "~U") gets more interesting and detailed information - (i.e. if it's just Chromium update, there's no need to rush is there?).

Actually putting the NUMBER of updates is absoluteley useless, and pointless. - one 21MB Chromium update is worth ten 200kb security updates?  - so (see previous post) if there are [0 updates] then nothing needs to be displayed; so 'if updates is not 0. So we need to have

UPDATES=$(aptitude search "~U")

in the script and write a bit more to format the script to fit a conky (give it around 210 px for mine, maybe font size 8 - gives at least 30 characters. My output yesterday was a single update thus:

Output:

i   chromium-browser                - Chromium browser

Prefer:${font DejaVu Sans:size=7}${color2}

chromium-browser - Chromium browser

Please continue - educate me, delight me smile

I tried working out how to write my own scripts for conky, but simple things like

Example : "{$if_updatenr 1}foo$endif{$if_updatenr 2}bar$endif{$if_updatenr 4}$endif" shows foo 25% of the time followed by bar 25% of the time followed by nothing the other half of the time.

tended to put me off - it clearly doesn't work! and even if you put the $ outside the quotes, it still doesn't work...

5

(2,564 replies, posted in Tips, Tricks & Scripts)

Nicky wrote:

This is my script:
In fact I do the update to have the updated package list and then a simulation of upgrade to know if there is something to upgrade:
I don't know if your script give the same result.

Mine is simply the part of a debian script that I borrowed. The problem is that to do apt-get update requires admin priviledges - and it's not good practice to become a sudo-er; it's up to you if you don't mind having your password in the script.

I just noticed that update-manager doesn't need a password to tell you all the information - it can check for updates immediateley, and this is how I'd rather do it. In crunchbang you hit hmmmm meta+U to update your system.

If you're paranoid about forgetting to update, then stick 'update-manager' in your startup list wink

NUMOFUPDATES=$(aptitude search "~U" | wc -l)
echo $NUMOFUPDATES Updates 

works in a terminal -

Output:

ben [~] NUMOFUPDATES=$(aptitude search "~U" | wc -l) 
ben [~] echo $NUMOFUPDATES Updates 
1 Updates

I'd prefer to adapt this for use in conky, but I have no expertise (only my natural genius, and that just doesn't cut the mustard).

I'd guess you'd need to grep the number of updates, and if it isn't zero, then paste an alert in big bright orange letters in conky. (or should that be bright slate-grey for #! ?)

So you can do

${execpi 3600 aptitude search "~U"}

and you didn't break any of the rules wink

Now, my problem is the output - my conky window is limited to 210 pixels, so the output is truncated because of the spacing:

i   chromium-browser                - Chromium browser

So, if you could write a nice script that will grep and/or eliminate some spaces from this, I'll be very grateful smile meanwhile I'll have to make do with

i   chromium-browser                - Chromium b

6

(2,564 replies, posted in Tips, Tricks & Scripts)

Nicky wrote:

I would have a question.
Currently I'm using a script to say if there are updates or no. The only problem is that the update command need a sudo, so I have to write my password in the script. It is normally not very safe to do something like that...

Is there another solution ?

NUMOFUPDATES=$(aptitude search "~U" | wc -l)
echo $NUMOFUPDATES Updates Available

In a terminal this works - help me work out how to put it in conky.

The 'sudo' is required to make apt-get do an update check, but your update manager will do this anyway, and then you should be able to get an output to conky (maybe a hidden top line).

7

(2,564 replies, posted in Tips, Tricks & Scripts)

I'm not quite so minimalist - but I had fun with using 'if' statements so that when I mount or plug in a USB it comes up in the list in conky, and with networking also, it will hide graphs and the weather section when the network is down.

I like coffee/winter colours - go take a look http://linuxoutlaws.com/forums/viewtopi … p;start=10

I love it tongue Thanks to everyone here for some nice ideas ( can't say I wrote it myself, though I did write it about 10 times or more before I was finished smile))

I put a few extra bits in to help newcomers (a small 'pastebin' section, a 'color reference' - that helps edit colors and enter them by having them visible as numbers 1-9 across the top etc.

Hope it makes someone's life a little easier.

Wow, cooooooooool - I'll be looking into this. Remastersys would give me a great install CD  - don't think I can use a DVD but will check next week.

I haven't made my mind yet as to which of Opera or Firefox I prefer. Although Opera is supposed to be faster than Firefox, it looks to me that Firefox loads some sites faster than Opera (I don't have a specific example, and it might just be an impression). So I still use both.

When you DO make up your mind, then you're forgetting the golden rule. Opera always used to be better for most things - but Firefox has really overtaken in some areas - but they will coexist very nicely. One small problem that could be fixed in Firefox is that it has no add-on or built in ability to open a site in some other software (good for a browser which doesn't claim to be 100% compatible). If you have a Jaguar and an Aston Martin, which one will you throw off the cliff? Take it easy, the Aston might be faster on the straight, but the Jaguar is nice around the track.

Choice is golden. Nobody is right, just some are more wrong than others wink

I have found it works both ways - generally, I find pages that are sluggish in Firefox can fly in Opera - or at least roll a bit more smoothly, yet Firefox generally has a slightly odd rendering now (compared to Midori on webkit, Epiphany on mozilla....) which I quite like.

omns wrote:

This Howto assumes that you haven't already installed OpenOffice 2.4 from the Ubuntu repos. If so you can either run Ooo2.4 along side Ooo3 or remove Ooo2.4 completely,  either before or after installing Ooo3.

As far as I know they are installed in different folders in /opt and don't conflict with each other.

@Ohms - wow, very nice. Thanks - I'll give it a good try - need to wait for next week first :-s

11

(19 replies, posted in Feedback & Suggestions)

corenominal wrote:

I need to get .deb files to install Office don't I?

Hello ben smile

OpenOffice 2.x is available directly from the repositories. For OpenOffice 3 please see: http://crunchbanglinux.org/forums/topic … eorg-debs/

Hi, yes - but repositories aren't available without internet on the 4 machines at school. I guess life's very much easier in civilised countries with real internet...

I'll get the debs and save them to my flashdrive, then have another go after New year.
Thanks for the link wink

12

(19 replies, posted in Feedback & Suggestions)

Did you ever consider Crunchbang with no internet? It is not so much a viable distro to boot and do a bit of office work because Office has gone, and Abiword can't open .doc files (as with Puppy linux).

Networking was fine - but I didn't have the password today, so I'll try again New Year. If this works, it maybe viable to install it on 4 machines at school as a dualboot option. Three of these machines are crippled by a basic XP install, and would work nicely with the basic 100MB Openbox boot I think.

It did boot to desktop (unlike ubuntu, which had problems getting X server going), and offered me GIMP - but I couldn't open any '.doc' files - with USB I can plug into Windows and use Open Office to make nice .odt format files everywhere wink and use Gimp to scan/crop/size pictures to drag onto my Word documents.

I need to get .deb files to install Office don't I?

13

(19 replies, posted in Feedback & Suggestions)

corenominal wrote:
omns wrote:

I'd support that one although there's probably a good reason it's not there. Going over 666mb maybe wink lol

Seriously, I am beginning to get a little bit worried about your obsession with the number of the beast! lol

Number of the Beast appears on every barcode Mr Newborough B-)

Look closely at yours! They're called the 'guard' bars, to separate the numbers which are read. The three 'guard' bars, the hidden (unread) bars - they are an 'uneven parity code' binary 10100000 - 1 being black, 0 being white, you can see two thin vertical lines with a white area to the right.

Thus your self chosen alternative to the Serial Killer yikes is the beast himself.
Trouble 'n Strife better start watching out, things seem to be going downhill rapidly!!!

refs: http://tbn0.google.com/images?q=tbn:VWb … ackets.gif

corenominal wrote:

I love Gwibber, but its default theme is not overly Eee PC friendly/efficient; the message boxes and fonts are just a little too big for my liking.  So, I have been working on a new compact theme for use with CrunchEee. The new theme is basically a hack of the default theme, see the images below to compare the default theme against the new compact theme:

Gwibber with default theme:
http://crunchbanglinux.org/wiki/_media/screenshots/cruncheee-gwibber-default.png?w=450&h=&cache=cache

Gwibber with compact theme:
http://crunchbanglinux.org/wiki/_media/screenshots/crunchee-gwibber-compact.png?w=450&h=&cache=cache

Download and install
The theme is available as a tarball and can be downloaded from:
http://corenominal.org/misc/cruncheee-g … eme.tar.gz
MD5SUM: 1c7eab6dba4810f760f1143fed57fe0d

To install the theme, simply extract into ~/.local/share/gwibber/ui/themes/ and then select the theme from Gwibber's preferences screen. I hope someone finds this useful. smile


Hmmmm sure, not bad - but GIMME THE BEANS

here's a variation or ten

http://dl.getdropbox.com/u/446031/Gwibb … mes.tar.gz

scottro wrote:

opera for browsing, mutt maildrop getmail, and mmsmtp for mail, w3 for text browsing, mplayer for music and video. 

I usually need Japanese input, so scim-anthy and scim. 
OpenOffice for documents, catdoc and/or antiword and xls2csv for dealing with them in terminal.  Urxvt for a terminal. 

Those are the ones I use most often.  Flux or open box for X, xbuffy or gbuffy for watching mailboxes.

hahaha Opera :evil: is definitely a big favourite - only for people who got used to it a bit. People who love Firefox are generally very good with it, and if you develop the same skill with Firefox - then I think all things considered they are pretty equal, but different.

The biggest draw to choose Opera for your STARTING point at least, if you right click on any web page on my computer, I can 'open with...... ' and it gives a list of 'firefox, midori, netsurf, elinks, epiphany, seamonkey, seamonkey 2.0'

Some things that don't work in Firefox work well in Opera - but Firefox has the killer 'webmail' add-on. For firefox lovers everywhere, I'd like to point out that nearly all of the best features of Firefox were used in Opera since maybe 1985 - especially tabs and lovely smooth mouse gestures (firefox didn't get gestures right until 'firegestures' just a short while back).

red devil wrote:

Hi,
I'm trying CrunchBang for the first time and so far I'm really impressed with your work - the speed is phenomenal.
I often use Puppy Linux on a USB pendrive and it occurred to me that CrunchBang would be another great, lightweight, high-speed distro for a pendrive.
Now, I know that Ubuntu 8.10 has a really good utility for installing from a live CD to a pendrive, and that it has 'persistence' so all your changes/data are preserved., so I wondered if - given that CrunchBang is based on Ubuntu 8.10 - this same utility is available in CrunchBang too?
I've looked through the OpenBox menu and can't find an entry for it.
It's really nice, BTW, to see such a great distro being developed here in the UK - up the Brits! lol

Living in Thailand - I come across many computers with no option to boot from USB in Bios, in addition to this, Ubuntu won't start it's X server on these machines so I'll be trying the liveCD there.

Unfortunately, I would need some kind of kickstart CD to go with my USB install.

What are your opinions on this matter? A completely portable USB install? possibly keeping /home on a separate partition, because you'd need to do a fresh boot/hardware setup on each machine also. I'm rather confused.

Wow. Black and white. I don't like dark themes - but this looks very nice!

Excuse me Mr Corenominal - please feed some themes through here - not sure how to install or anything, but Gwibber needs some coffee man wink even black stipes wouldn't be too ugly tongue

So I guess I'm hoping to find some way to install this on USB - perhaps have a separate partition /home, and some kind of kickstart CD (lots of computers around here with no USB boot in bios...)

Is this feasible? Such a shame you don't have an 'Office' variation. My real aim is to have a completely portable fast-booting desktop, fast booting from USB. This is so much better than Puppy at first looks!

How can I keep it in my pocket? - I'll certainly be recommending some dual-boot scenario's and handing out a few copies of discs (I consider this to be a small price to pay in return for the free download - and I am not Paypal enabled in Thailand)

dYp wrote:

corenominal should be nominated for the worst avatar. smile

I love that Avatar - it's fitting for a serial killer b-) and it's heavily digitised.

@Philip, good evening, Sir. I am attempting to pull your CD ISO down a peice of damp string, and will install it if I'm successful (hopefully it won't disrupt my 8.10 ubuntu gnome installation just yet...) - mostly just to find out how much of this hype is bull (as you must admit it usually is wink) - and partly because Fab deserted gnome for it. With a fast graphics card, I'm not sure you'll pull me away from my desktop. Anyway, I'll hang around waiting and read and learn - I'm sure a lot of what's occurring in here will be relevant to me also.

BTW, how was the Bubble&Squeak project? did it get out of beta?