My development server (CentOS 5) is running Subversion 1.4.2, and I wish to upgrade it to 1.5. I have read in various blogs and documents scattered around the web that this may be done by using RPMForge. I have followed the instructions found on CentOS Wiki, including installing yum-priorities and setting my priorities as indicated (1 ...
I know I once know how to do this but... how do you run a script (bash is OK) on login in unix?
...
Part of a new product I have been assigned to work on involves server-side conversion of the 'common' video formats to something that Flash can play.
As far as I know, my only option is to convert to FLV. I have been giving ffmpeg a go around, but I'm finding a few WMV files that come out with garbled sound (I've tried playing with the ...
I want to know if people here typically disable SELinux on installations where it is on by default? If so can you explain why, what kind of system it was, etc?
I'd like to get as many opinions on this as possible.
...
I have a folder on my server to which I had a number of symbolic links pointing. I've since created a new folder and I want to change all those symbolic links to point to the new folder. I'd considered replacing the original folder with a symlink to the new folder, but it seems that if I continued with that practice it could get very mes...
I'm trying to automate a gdb session using the --command flag. I'm trying to set a breakpoint on a function in a shared library (the Unix equivalent of a DLL) . My cmds.gdb looks like this:
set args /home/shlomi/conf/bugs/kde/font-break.txt
b IA__FcFontMatch
r
However, I'm getting the following:
shlomi:~/progs/bugs-external/kde/font...
/etc/init.d/*
/etc/rc{1-5}.d/*
...
I use ssh-agent with password-protected keys on Linux. Every time I log into a certain machine, I do this:
eval `ssh-agent` && ssh-add
This works well enough, but every time I log in and do this, I create another ssh-agent. Once in a while, I will do a killall ssh-agent to reap them. Is there a simple way to reuse the same ssh-agent p...
When you pipe two process and kill the one at the "output" of the pipe, the first process used to receive the "Broken Pipe" signal, which usually terminated it aswell. E.g. running
$> do_something_intensive | less
and then exiting less used to return you immediately to a responsive shell, on a SuSE8 or former releases.
when i'm trying...
What are some elements in your favorite bash prompt?
I like to have an indicator of the success of the most recent command, like so (in .bashrc):
function exitstatus {
EXITSTATUS="$?"
BOLD="\[\033[1m\]"
RED="\[\033[1;31m\]"
GREEN="\[\e[32;1m\]"
BLUE="\[\e[34;1m\]"
OFF="\[\033[m\]"
PROMPT="[\u@\h ${BLUE}...
I know how to use rpm to list the contents of a package (rpm -qpil package.rpm). Is there any way to do this with yum?
...
I'm trying to upgrade a package using yum on Fedora 8. The package is "elfutils". Here's what I have installed locally:
$ yum info elfutils
Installed Packages
Name : elfutils
Arch : x86_64
Version: 0.130
Release: 3.fc8
Size : 436 k
Repo : installed
Summary: A collection of utilities and DSOs to handle compiled objects
There's ...
Suppose i have a directory /dir inside which there are 3 symlinks to other directories
/dir/dir11, /dir/dir12 , /dir/dir13 etc., I want to list all the files in dir including the ones in dir11, dir12 and dir13.
To be more generic, i want to list all files including the ones in the directories which are symlinks. "find ." , ls -R etc.,...
I am relatively new to web services and am wondering what the standard "best approach" is. Basically, the way things work is I need to have a task running the background constantly.
The the web service will connect to the daemon and return with an appropriate response. Currently, the communication is over unix domain sockets (Linux is ...
In the spirit of being helpful, this is a problem I had and solved, so I will answer the question here.
Problem
I have:
An application that has to be installed on on Redhat or SuSE enterprise.
It has huge system requirements and requires OpenGL.
It is part of a suite of tools that need to operate together on one machine.
This app...
A common task in programs I've been working on lately is modifying a text file in some way. (Hey, I'm on Linux. Everything's a file. And I do large-scale system admin.)
But the file the code modifies may not exist on my desktop box. And I probably don't want to modify it if it IS on my desktop.
I've read about unit testing in Dive Into...
when i have to use MSwindows i always open a cygwin window so would like to know
whats your favourite commands when using cygwin ?
some of mine are :
tail -c anylog //to wathc logs file continuously
locate somefile //find file
alias longCommand ='tail -c anylog |grep --color "term1\|term2\|term3"'
cat *.txt //print all conte...
Hi, I'm trying to install faac and am running into errors. Here are the errors I get when trying to build it:
[root@test faac]# ./bootstrap
configure.in:11: warning: underquoted definition of MY_DEFINE
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
aclocal:config...
On my VPS server (Fedora 9), mingetty keeps respawning itself because of a "permission denied" error on tty[1-6], even though:
root# ls -la /dev/tty1
crw------- 1 root root 4, 1 Sep 19 14:22 /dev/tty1
Even weirder, this doesn't work:
root# cat </dev/tty1
bash: /dev/tty1: Permission denied
I am guessing this has something to do wi...
I am trying to evaluate the answer provided here, and am getting the error: "A file with name ASDF-INSTALL does not exist" when using clisp:
dsm@localhost:~$ clisp -q
[1]> (require :asdf-install)
*** - LOAD: A file with name ASDF-INSTALL does not exist
The following restarts are available:
ABORT :R1 ABORT
Break 1 [2]> :r1...