I had this one in one on my Firefox tabs for a few weeks, and I just took the time to create an account. Let’s see where it goes…
I also installed the Twitter for WordPress plugin.
I had this one in one on my Firefox tabs for a few weeks, and I just took the time to create an account. Let’s see where it goes…
I also installed the Twitter for WordPress plugin.
http://www.islayer.com/apps/istatmenus/
Does most of what Hardware Monitor, Temperature Monitor, MenuMeters and MenuCalendarClock iCal do, but in just one app : mini calendar, memory, disk, network and cpu usage, fan speed and power consumption, tempratures and much more!
Easy to install and configure, excellent design, like always from islayer.
By default, rpm doesn’t print a package’s arch when you query it with rpm -q. On a x86_64 system, you’ll see something like that:
[root@earth ~]# rpm -q libselinux libselinux-1.33.4-5.el5 libselinux-1.33.4-5.el5
not very usefult, is it ?
To make rpm print the arch, well it’s easy, just use the –qf (–queryformat) option, with the ARCH tag:
rpm -qa --qf "%{NAME} %{ARCH}\n"
To know all the printable tags:
rpm --querytags
For example, this will give you something similar to rpm -q, but with the arch at the end of the line:
rpm -qa --qf "%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n"
[root@earth ~]# rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n" libselinux libselinux-1.33.4-5.el5 x86_64 libselinux-1.33.4-5.el5 i386
source: http://www.city-fan.org/tips/CreateRPMBuildEnvironment
~/.rpmmacros :
%_topdir %(echo $HOME)/rpmbuild
%_smp_mflags -j2
%packager Nicolas Melin <nicolas@myemailprovider.org>
%vendor octant.org
# yum install rpm-build
$ cd ~
$ mkdir rpmbuild
$ cd rpmbuild
$ mkdir RPMS SOURCES SPECS SRPMS BUILD
$ cd ~
$ rpmbuild --rebuild program.src.rpm
When logged-in with the sh shell, with bash completion installed (on lenny), you’ll get something like this whenever you try to use completion:
cd -sh: < ( compgen -d -- '' ): No such file or directory
Solution: use bash ;-) or wait for (or submit) a fix.
Why do I use sh anyway? I don't.
apt-get -o DPkg::options::=--force-confmiss --reinstall install <package>
Update: apt-get only reinstalls missing config files. You can use dpkg --purge <package>
to remove the config files before reinstalling the package.
source: Racker Hacker
rpm hangs after printing this error : “rpmdb: Lock table is out of available object entries”.
First, kill (-9) all hanged rpm processes. Then remove the corrupted databases, and rebuild them.
rm /var/lib/rpm/__db.*
rpm --rebuilddb
Tip: if this happens on a server, check that yum-updatesd is not running. yum-updatesd can be the source of such errors. yum-updatesd is evil. I don’t think that yum-updatesd is useful on a server anyway.
chkconfig yum-updatesd off
service yum-updatesd stop
Deepest Sender :: Firefox Add-ons:
Deepest Sender is a client that will allow you to post to blogs from directly within Firefox. It is primarily a LiveJournal client, although it supports Blogger (GData) and WordPress (metaWeblog) too.
Drive locked or reserved
Question
The backup fails with “Drive is locked”?
The backup fails with “Drive is reserved”?
Answer
Arkeia uses lock files to prevent other processes from accessing
and obtaining an Arkeia resource that is in use by a running process.
The drive defintion file also contains the PID of the Arkeia Backup
Process (arkbkp). When the PID is active, the drive is considered
locked or reserved.CAUSE #1
The drive definition file in locked in the Arkeia Configuration
Message : drive list is locked
Message : drive master file is lockedArkeia uses lock (.lck files), to prevent different process
from accessing the file at the same time.CAUSE #2
The drive is reserved by an Arkeia process:
Message : Drive “drivename” is already reserved, try later ..
Arkeia processes reserves the drive in order to use it for I/O operations.
The PID of the process is added in the Drive Definition file. (ex: PID “432432”).SOLUTIONS:
1) If the drive definition file is locked, then no other process can access this file.
To remove this lock, you must stop all running processes:
– Stop all backup and restore jobs
– Exit the Arkeia GUI
– Stop Arkeia using /opt/arkeia/bin/arkboot stop
– Kill all remaining processes
ps -ef |grep ark
kill -15 PID
– Now start Arkeia and the GUI2) The drive is reserved by an Arkeia process:
Sometimes the drive is reserved while the process which reserved as terminated
or hung.
To correct the issue, you must remove the PID from the file.– Check the drvxxxx.lst file for the PID
cd /opt/arkeia/server/dbase/f3drv
cat drvxxxxx/drvxxxxx.lst | grep PID
– Check the process list to see if the PID is still active.
Mormally it is arkbkp or arkrst.
ps -ef |grep ark
– kill the process if you know it is hung or not active.
– Now delete the PID line from the drvxxxxxx.lst file
– Restart Arkeia using:
/opt/arkeia/bin/arkboot stop
/opt/arkeia/bin/arkboot startEOF