2
votes
2answers
4k views

Getting config error for yum in CentOS

I'm very new to linux, and I am using CentOS in a VM for program testing. Everything seems to be fine, except for every few minutes I get this error: Error Type: <class 'yum.Errors.ConfigError'> ...
19
votes
7answers
23k views

Bulk rename, change prefix

How can I bulk replace the prefix for many files? I have a lot of files like TestSRConnectionContext.h TestSRConnectionContext.m I would like to change all them to CLConnectionContext.h ...
4
votes
1answer
811 views

Wifi stops to work in idle

I checked Xfce power manager seems settings correct but laptop screen goes black after 10 minutes of inactivity. Actually the problem is that shared Wi-Fi (configured using hostapd package) stops to ...
8
votes
3answers
2k views

My `which` command may be wrong (sometimes)?

I've compiled the last emacs version from the source code (v24.2) because the version installed on my machine is (quite) old for me (v21.3). I've done the usual: $configure --prefix=$HOME make make ...
1
vote
1answer
123 views

Associating a function in Emacs after looking up the code with M-x describe-key

I would like to associate the following function (which toggles on and off full-screen on the active buffer): (defun toggle-maximize-buffer () "Maximize buffer" (interactive) (if (= 1 (length ...
29
votes
4answers
32k views

What is “.xsession” for?

What is the purpose of the .xsession file in the home folder? What should be put in there? The desktop environments don't use that file and for the X startup from the tty there is .xinitrc.
1
vote
1answer
97 views

Software distribution

I have a set of servers with Red Hat on board and an internal software (it is set of many files with configs and so on) that is in permanent development. There are several types of servers: ...
3
votes
2answers
5k views

Where to put `setxkbmap` command in Xfce?

What is the proper place for setxkbmap command in Xfce? What is the proper place for it in general - other DEs and bare WMs? I have the following command: setxkbmap -layout "us(colemak), ...
1
vote
0answers
266 views

apache2 gui / Comanche Replacement

I opened an OLD redhat book to the section about Apache configuration and it talked about the Comanche GUI. I thought "That's great! Why hasn't anyone suggested that before?" Then I found out that ...
1
vote
1answer
640 views

Solaris SPARC 10 32bit mode

I'm looking for a definitive answer, does Solaris 10 running on a SPARC machine support booting into 32bit mode? I've found one site that states Solaris 8 was the last version that supported booting ...
5
votes
1answer
1k views

What does zsh's magic-space command do?

I found the following command in my .zshrc, probably copied from some website: bindkey " " magic-space # do history expansion on space The manpages are about as helpful as the very succinct ...
2
votes
1answer
922 views

Cannot connect with 3g modem during Arch installation [closed]

I was trying to install Arch Linux with 3g modem. I had previously downloaded usb_modswitch and wvdial and their dependencies. I booted Arch and installed them. Then I copied my Ubuntu's ...
3
votes
1answer
578 views

Preloading gnome-shell before getting login dialog from gdm, is it possible?

Is there anyway to (pre)load gnome-shell before getting user account login dialog from gdm? The problem is after login from gdm I have to wait for gnome-shell to be ready with non-responsive , no ...
23
votes
4answers
5k views

The “yes” command

There is a yes command in unix/linux which basically infinitely prints y to the stdout. What is the point of it, and how is it useful?
3
votes
2answers
525 views

Are there any utilities to quickly add, list and remove command aliases?

I'd like to be able to quickly, on-the-fly add (and list/remove) command aliases so that they persist between shell restarts (as if they were added to .bashrc). Are there any ready ...
3
votes
2answers
807 views

How to enable local ~ autocompletion for scp?

Too late: The machine, OS and configuration in question is no longer in use, so I can't verify any more suggestions. I have not encountered this problem in Fedora or Arch Linux. If you are having this ...
6
votes
1answer
1k views

Run shell script when new volume mounted

I'm interested in running an rsync script whenever any new volume is mounted on my Debian box. What are some potential triggers / strategies for listening for a new volume mount?
1
vote
1answer
12k views

How to fix “operation not permitted” on ssh login?

My previously fine working ssh login now results in a "Operation not permitted" error after getting a connection accepted. I can't think of anything I changed except for restarting the server, so what ...
1
vote
1answer
3k views

Scan one or all ports, on UDP or all protocols, to see if I'm getting, what I suppose to get

I have a GPS localizer (TK102). I've set it up to send responses over GPRS to particular IP and over particular port. I was told that, it uses UDP. It seems that something is being sent (paid ...
7
votes
3answers
13k views

What exactly are Linux kernel headers? [duplicate]

Possible Duplicate: What does a kernel source tree contain? Is this related to Linux kernel headers? I know that if I want to compile my own Linux kernel I need the Linux kernel headers, ...
0
votes
1answer
262 views

Pass output of a command as arguments to another(non-blocking)?

I was wondering how I can iterate over each line of the output of a command and pass it as command line arguments to another one. I want to do this in a non-blocking fashion as the output never ...
0
votes
1answer
2k views

Deleted the authorized_keys file and got into a problem

I was trying to send files from machine A to machine B. For that, I created a public-private key pair using ssh-keygen -t rsa in machine A. Then I sent the id_rsa.pub file to machine B and I added ...
1
vote
2answers
415 views

Is it possible to force chromium show the “window control icons” on the left

I'm not running Gnome or Ubuntu, But I also want those (minimize, maximze, close) icons to be visible on the left as well, without touching the source code, is there any way to make it work ? ...
6
votes
3answers
3k views

How to set bash to run *.exe with mono?

Without any DE or even X, I want to use ./my.exe to run mono my.exe, like it works with python scripts.
1
vote
0answers
188 views

Debian restarts itself after booting with a “not responding” error

I had a stable Debian 6 install until earlier today, when some keys on my USB keyboard stopped working and my USB mouse buttons started to behave strangely. I had not installed anything new since the ...
2
votes
0answers
88 views

What is the equivalent of /usr/share/misc on Solaris?

The Linux Filesystem Hierarchy Standard has the following to say: This directory contains miscellaneous architecture-independent files which don't require a separate subdirectory under /usr/share. ...
3
votes
1answer
1k views

Control and up/down keys in terminal for use by emacs

Is it possible to use C-up and C-down when running emacs in the terminal window (when starting emacs from the command line with the -nw flag)? What should my terminal send when I press C-up and C-down ...
0
votes
2answers
498 views

df reports the space occupied in the partition, but there is no data

Pasting the output of df -h for the /mtd_rwarea partition: $ df -h Filesystem Size Used Available Use% Mounted on /dev/mmcblk0p16 150.0M 138.5M 11.5M 92% ...
10
votes
3answers
11k views

How does the Linux kernel handle shared IRQs?

According to what I've read so far, "when the kernel receives an interrupt, all the registered handlers are invoked." I understand that the registered handlers for each IRQ can be viewed via ...
7
votes
2answers
8k views

CentOS: Install packages listed in a text file?

I have an existing CentOS installation which I'd like to install extra packages to. The packages to be installed were supplied to me in a list, one package per line, which looks like: .... ...
1
vote
0answers
191 views

What other rules should I use to allow PPTP outbound connection?

I already allowed outbound connection to TCP/UDP port number 1723, but PPTP connection still fail to establish, If I allow all outbound connection, the tunnel will just go fine.
0
votes
1answer
911 views

I am trying to parse data on two delimiters

So what I'm trying to do is for this: looking at the example CSV: 1,3917,3917,BGP=694|Ethernet=1610|LAG=3,Y After the script is run, the output should look similar to: 1,3917,3917,BGP=694,Y ...
1
vote
2answers
1k views

/boot too small to upgrade

Trying to upgrade from F15 to F17. I need to find a way to increase /boot size without destroying data. Details: I tried upgrading using preupgrade process and via booting from Net iso on USB and ...
1
vote
2answers
298 views

Accidentally removed dev-libs/mpc from Gentoo

It seems I accidentally removed dev-libs/mpc instead of media-sound/mpc. Now I can't compile anything (including a replacement dev-libs/mpc) because in doing so I apparently murdered GCC. How does ...
1
vote
1answer
1k views

httpd-devel requires outdated version of glibc-common on CentOS 6.3

httpd-devel requires an outdated version of glibc-common on CentOS 6.3 x86_64 and Apache/2.2.15. It wants 2.12-1.80.el6 and I have 2.12-1.80.el6_3.3.x86_64 installed (via CentOS @update repo) Here is ...
4
votes
1answer
11k views

How do I download and launch a JNLP file in CentOS?

I'm using Amazon's GPU cluster to experiment with some HPC java code on CentOS. The Java application is in JNLP format and has a GUI. I've followed Amazon's getting started video, but I'm not ...
4
votes
3answers
2k views

shell script to read from multiple files in parallel

I need to write a script that runs parallel and looks for a string in multiple files. I tried a lot of options but they slow down the speed of my processor.
2
votes
1answer
192 views

How to run a command against all the files of particular types on a filesystem?

I've just recovered tons of files (distributed in a complex directory structure, having very long names, using Unicode symbols, spaces etc in names) from a damaged hard drive. Now I'd like to verify ...
0
votes
1answer
5k views

Script failing with “command not found: ^M”

When I try to run the following script in zsh, via the command /bin/zsh ~/.set_color_scheme.sh I get the following error: command not found: ^M The script has u+x permissions and it used to work on ...
5
votes
1answer
328 views

How does this git alias work?

Usually, git aliases are confined to a single command: git config --global alias.ci commit So, instead of git commit you could do git ci But it seems you can insert a function in there as well: ...
2
votes
2answers
2k views

Setting up LS colors with a human-readable script in tcsh

I have a shell script (set_up_my_ls_colors.sh) that, if I call from my shell, it configures my color scheme for ls. The nice thing about the script is that it allows me to configure colors in a ...
14
votes
2answers
8k views

Prevent GNU screen from terminating session once executed script ends

I'm trying to force GNU screen to create a "virtual" terminal, without attaching to it, execute script inside and NOT terminate session once script ends. I tried many combinations, including: screen ...
1
vote
1answer
7k views

Bluetooth not working in fresh Mint Maya install

I have a fresh Mint Maya install (MATE WM). Out of the box, the bluetooth applet appeared on the taskbar, but it wouldn't launch. After an upgrade from apt, it doesn't even appear on the taskbar ...
2
votes
0answers
338 views

Tcsh: Searching history using Ctrl-P and Ctrl-N

What are the equivalent functions in tcsh for the following zsh functions? up-line-or-history history-beginning-search-backward down-line-or-history history-beginning-search-forward I have the ...
1
vote
1answer
2k views

rsync error: Time value of file truncated on receiver

I run the following rsync command to back up my data. I am on Ubuntu 12.04. rsync -rt --delete --links --exclude-from '/home/john/rsync-exclude.txt' /media/data/ server:/backup/data The data ...
0
votes
2answers
489 views

Installing a shell (e.g. zsh) without being system admistrator [duplicate]

Possible Duplicate: how can I use bash as my login shell when my sysadmin refuses to let me change it Say I have rwx permissions to a directory (my home directory). Can I install a shell ...
0
votes
1answer
307 views

What is the best procedure for setting up a triple-boot system?

I have a machine that I wish to install 3 operating systems on. The systems are, in no particular order, Windows 8, Ubuntu, and Backtrack Linux. Is there some document or step-by-step guide to the ...
3
votes
1answer
588 views

Extract directory from wget's stdout

I am trying to wget a tarball from github.com and, without creating a temporary file, extract a subdirectory from it: wget -qO- https://github.com/django-nonrel/django-nonrel/tarball/develop | tar ...
3
votes
1answer
536 views

Plotting the sleep/wait chain of a process

I often want to know why a process in the middle of a pipeline is sleeping and not busy processing data. My current method is: find the pid of interest sudo strace -pt pid to get the blocking ...
1
vote
1answer
177 views

awk extended pattern matching (embedding pattern matching in actions for already matched strings) [closed]

I want handle strings of the form: PREFIX_TYPE_N,DATA So, does the *awk (gawk, mawk, nawk) support including pattern matching in the action for already matched string? Something like this (of ...

15 30 50 per page