Tag-Archive for » bu «

Thursday, November 12th, 2009 | Author:

If you ever find yourself updating a single application in Arch Linux (a very bad idea, btw) and it upgrades readline you might end up seeing an error along the lines of:
/bin/bash: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
Hopefully you still have a bash prompt open and you haven’t closed them all. If you still can, immediately run the following:
pacman -S bash
else you won’t be able to run bash any more because bash would still be linking to the old version of readline.

tun, in future, don’t run
pacman -Sy application
(python in my case)
instead, run:
pacman -Syu
which will ensure that all applications are upgraded.

Personally, I think that bash should have had a dependency set saying that it required the old specific version of readline and the same for the new bash, requiring the new version of readline. Regardless, rather play it safe. 😉

Share
Friday, June 05th, 2009 | Author:

Well it turns out that the problem is a little more subtle than that. It is only the root user that does not have syntax highlighting.

You see, vim does have syntax highlighting but vi and vim are different binaries. A shell startup script only aliases vi to vim if the user id is higher than 100 – which excludes root. The simplest workaround is to just add an explicit alias to root’s .bashrc at /root/.bashrc :

alias vi='vim'

run the command manually or just log in again toactivatethe alias.

Btw, I’m starting to like via lot. For a long time it made no sense to mebut now I am found. 🙂

Share
Saturday, March 28th, 2009 | Author:

Its amazing how much you can do by combining the small yet powerful commands Unix has available.

This little-used command, time, finally became useful today as a way to report the length of time that certain automated operations are running. In my example, I’m timing how long it takes to build the Linux kernel:

$ time rebuild-kernel26
...
couple-thousand-lines-of-scrolling-text
...
==> Finished making: kernel26 2.6.28.8-1 x86_64 (Sat Mar 28 17:19:52 SAST 2009)
real    62m21.994s
user    43m31.846s
sys     6m1.096s

Yup, that took a little over an hour to build. The values are:

  • realthe actual time elapsed while the command was running – 62 minutes
  • userthe amount of userland time the command used – 43 minutes
  • systhe amount of system time the command used – 6 minutes

(I was busy doing other things while this was happening which is why it took 62 minutes for the desktop to do (43+6=) 49 minutes-worth of work)

If you’re using the GNU version (most likely), it also gives you the option of displaying the results in a custom fashion. Mostly, this command could be useful in scripts where you need to report how long a task tookor maybe? just a geeky way to time something random. 😛

Share
Ẹka: linux  | Tags: , , , , , , ,  | Leave a Comment
Wednesday, March 18th, 2009 | Author:

[edit] So much for that. It turns out that openssl is able to determine that the key and certificate are already in a single file. Therefore, no csplitting required (daradara, I hope somebody reading this at least learned about how nice csplit is). In fact, the whole script might as well be obsoleteblaargh. Well, at least it gives a nice warning about not giving a blank passphrase. 😀

Here’s the new version:

pem2pfxconverts a .pem-formatted file containing a private key and signed certificate into a Windows-compatible .pfx certificate file.

#!/bin/bash
#pem2pfx
#v0.2
#Tricky - brendan@swiftspirit.co.za
# Converts a .pem certificate file to .pfx format
# $1 is the source file
set -e
 
ti o ba ti [ $# = 1 ]; then
  outputfile=`echo $1 | sed 's/.pem$/.pfx/'`
 
  echo "Please specify a password below. Windows refuses to import a .pfx certificate with a blank password."
  openssl pkcs12 -export -out $outputfile -in $1
 
 else
  echo "pem2pfx - converts a .pem formatted private-key and certificate file to an IIS-compatible .pfx file."
  echo "Usage: pem2pfx inputfile.pem"
fi

more

Share
Saturday, February 21st, 2009 | Author:

and my Personal Rating (PR) out of 10 😉

I use Akata so most of these won’t apply to non-FF users. However, I’d be very very interested to hear what other addons my friends, subscribers, and random websurfers find interesting or useful to them. Have your say and let us know why you love the addons you love. 🙂

Personally, I prefer addons that aren’t intrusive. Ideally, an addon must have a minimal interface and give me a measurable benefit for me to keep it installed.

Cacheviewer – 7

This is a GUI front-end for the Cache Firefox keeps of the last few pages and media. Mo ti sọ ri yi Addoni diẹ awon ju wulo ọtun bayi ki Mo n jasi lilọ si yọ o ni kete.

ColorfulTabs – 9

Mo ni ife awọn awọ. Awọn taabu awọ-kikojọ ko ṣiṣẹ gan daradara nigba ti o ba de ọdọ nipa 30 awọn taabu tilẹ… :-/

gba awọn Statusbar – 10

Mo fẹ nini ohun gbogbo ni Firefox ni kan nikan window ni awọn taabu. Nini a download apoti ni lọtọ window jẹ ńlá kan ko si-ko fun mi. O tun fi iboju gidi-ini niwon o jẹ gidigidi iwonba. 🙂

Video DownloadHelper – 10

Video DownloadHelper wulẹ fun sisanwọle media – pataki nwa fun eyikeyi ti o tobi akoonu ti wa ni gbaa lati ayelujara. Nigba ti o ba tẹ lori awọn aami, o ti fihan ti o ni Lọwọlọwọ-gbigba ṣiṣan ati yoo fun ọ ni aṣayan lati isinyi o bi a “deede” download.

Niwon o ko mọ ti o ba ti FF wa ni lilọ lati jamba tabi awọn agbara ti wa ni lilọ lati ge, Mo fẹ fẹ lati fi kan daakọ si mi tabili ati ki o Mo le ki o si wo awọn fidio lai lilo diẹ bandiwidi lati gba lati ayelujara awọn fidio lẹẹkansi. tun, nibi ise, nigba ti awon eniyan fi mi ojúewé si youtube tabi awọn miiran media, Mo maa ma ko ribee wiwo till Elo lẹhin – ni ara mi fàájì tabi nigba kan Bireki.

expiry Canary – 9

Yi afinju ati ki o pọọku Addoni sọ ọ ti o ba ti SSL ijẹrisi fun awọn ojula ti o ba Lọwọlọwọ nwo wa ni kete ti lọ si pari. Ti o ba ti ara rẹ sii ni awọn ohun SSL ijẹrisi, Mo ti so o lo yi Addoni lati ran yago fun rẹ sii ká SSL ijẹrisi expiring nitori kan ti o rọrun aini ti iwifunni tabi miscommunication.

Fasterfox – 8

Fasterfox afikun diẹ ninu awọn nẹtiwọki optmisation awọn aṣayan. Diẹ ninu awọn ti awọn aṣayan le ṣe rẹ ajọ nẹtiwọki admin kekere kan asiwere pẹlu ti o tilẹ. 😉

Firebug – 9

Fun ayelujara idagbasoke ati experimentation pẹlu ojúewé. Oniyi fun igbeyewo kekere die-die ti koodu bi daradara bi ṣatunṣe ojúewé.

FoxClocks – 6

err – so fun o ni akoko ni awọn akoko ti ita. o.O Je wulo fun igba diẹ – bayi awọn oniwe-laiṣe niwon mi ori ti wa ni sise o jade yiyara ju mo ti le kokan. RM -F

FoxyProxy – 9

Oniyi fun lilọ kiri kan pato ojúewé nipasẹ kan pato aṣoju apèsè. Eleyi jẹ wulo fun nigba ti diẹ ninu awọn ojula ti wa ni dina tabi awọn SAIX Sihin aṣoju apèsè ti wa ni ko ṣiṣẹ daradara. 🙂

Mo ti lo yi to ipa diẹ ninu awọn ijabọ lori aṣoju apèsè ti mo ti fẹ dipo ko lọ nipasẹ aiyipada ipa-. Awọn oniwe-tun gan rọ. Ti o ba ti o ba ni ju ọkan aṣoju server wa ati awọn ọkan ti o maa n lo lojiji lọ lori awọn seju, o kan yi lori si awọn nigbamii ti ọkan. 🙂

Greasemonkey – 10

Ni bayi, Mo ti lo yi nikan fun awọn GooglemonkeyR akosile. Yi akosile reformats Google'S àwárí esi si rẹ ni pato ki o si tun ni o ni ohun aṣayan lati fi kekere eekanna atanpako ti awọn ojúewé Google ìjápọ si. Greasemonkey le ṣe a pupo siwaju ati siwaju nibẹ ni o wa opolopo ti awọn iwe afọwọkọ ni imurasilẹ wa fun ọpọlọpọ awọn ọpọlọpọ awọn ojula.

Live HTTP afori – 8

Mo ti sọ lo yi kan diẹ igba lati ṣe iwadii gzip funmorawon oran pẹlu IIS ayelujara apèsè. Ko Elo ohun miiran lati sọ tilẹ: O ṣiṣẹ.

Live PageRank – 10 (titi si asiko yi – nikan sori ẹrọ ti o lana)

Eleyi Addoni dabi rọrun to. O n ni awọn PageRank lati Google ati ki o fihan ti o ni atẹ.

NoScript – 10

NoScript ni oniyi ni ìdènà adverts. Awọn oniwe-a kekere irritating ni akọkọ niwon o ni lati whitelist gbogbo awọn ojula ti o fẹ – ṣugbọn ninu awọn gun sure o jẹ soooo tọ ti o. 🙂

jí ojúewé – 10

Gan wulo fun ti o ba ti o ba lọ kiri si ojula ati awọn ti o ṣẹlẹ lati wa ni isalẹ. Ti o ba ti ojula jẹ aimi-akoonu-Oorun ki o si yi mu ki o rọrun lati ni kiakia ri awọn akoonu ti o ba ti awọn oniwe-kashi online.

Tab Mix Plus – 8

Oniyi fun ti o ba ti o ba ni ju 7-tabi-ki awọn taabu.

ShowIP (lilo a ti ikede títúnṣe fun ise ìdí – han ile server ká oṣuwọn ilana orukọ nigbati o nlo kiri) – 10

Emi ko le fojuinu awọn apaadi ti mo fe ti lati lọ nipasẹ lati da a server lai yi ohun itanna. dara, Mo ti le. Lo lati ni lati ṣe eyi gbogbo awọn akoko. Mo ti bajẹ scripted o sugbon Emi ko le ri awọn atilẹba akosile. Eyi ni mi 60-keji igbiyanju ni recreating ohun ti o wà ni wipe akosile:

$ o nran / ati be be / ogun | grep 'ma wà A $ hostname @mycachingnameserver | grep . | grep -v "^;"`
$ ma wà -x 'ma wà A $ hostname @mycachingnameserver | grep ^ $ hostname | grep A | \
  awk '/[.]/{si ta $5}' `@mycachingnameserver | grep . | grep -v "^;"

Web Developer – 9

Mo ti lo yi ni kete ti lati ṣe iwadii diẹ ninu awọn oran pẹlu kan iwe. Emi ko ṣe Elo ayelujara idagbasoke ki ni mo n lilọ lati yọ yi ọkan. Awọn oniwe-ko si ọrọìwòye lori awọn oniwe-agbara niwon Mo gbagbo yi ni a oke ogbontarigi fi-lori ti o ba ti ti o ba ṣe kan pupo ti ayelujara idagbasoke ise.

Share