6
votes
2answers
5k views

ulimit PICKLE: “Operation not permitted” and “Command not found”

I'm trying to increase the maximum number of open files for the current user > ulimit -n 1024 I attempt to increase and fail as follows > ulimit -n 4096 bash: ulimit: open files: cannot ...
2
votes
3answers
1k views

using here script I/O redirection with su command

here is my script. I want to login with another user and do ls -lih: #!/bin/bash su - testuser <<- _EOF_ 123456 #password _EOF_ ls -lih here is the output when i ran script: ...
22
votes
7answers
4k views

What purpose does the colon builtin serve?

I've hacked on a lot of shell scripts, and sometimes the simplest things baffle me. Today I ran across a script that made extensive use of the : (colon) bash builtin. The documenation seems simple ...
10
votes
2answers
10k views

Can GRUB font size be customised?

I would like to reduce the size of the font of GRUB boot loader. Is it possible and so how?
1
vote
1answer
394 views

Have working headphone controller under Linux?

I have headphones with a controller (+/- volume, play/pause). They work when using an iPad. My question is if it's possible to make it work under Fedora 16 (using GNOME 3)? I assume some drivers ...
1
vote
1answer
8k views

Slow boot on Fedora 16: why and how to improve?

I recently installed Fedora 16 on a Dell VOSTRO 1510. I am quite happy with it, but I am concerned with the slow boot load time. I measured from launching the OS with GRUB till GDM, a boot load time ...
30
votes
5answers
24k views

Is it possible to mount a gzip compressed dd image on the fly?

I like create an image backup for the first time I'm backing up a system. After this first time I use rsync to do incremental backups. My usual image backup is as follows: Mount and zero out the ...
7
votes
1answer
596 views

Why is bash extended-globbing variable substitution acting at the byte level?

I thought that bash variable substitution and globbing worked at character resolution, so I was rather surprised to see it acting at the byte level. Everything in my locale is en_AU.UTF-8 When ...
3
votes
2answers
889 views

what is the benefit of --squeeze-repeats in tr command

What is the benefit of -s or --squeeze-repeats when we use tr? What practical usage?
1
vote
1answer
714 views

Cross-platform (Linux, BSD, Solaris) way to check if pid exists

I am looking for a reliable cross-platform way to check if a process with a specific pid is running. Two possible solutions came up: kill -0 $PID — exit status is 0 if it the process exists and 1 ...
1
vote
2answers
50 views

Translating user id when creating image

I want to create an image (for example ext3 image) from a given directory hierarchy. This directory hierarchy is owned by a given user. But on the final image, I want the files to be owned by ...
5
votes
3answers
4k views

Ctrl + c will not kill process

I have looked for answers and so far have found nothing to answer my question. I am currently logging in to my Ubuntu server and upon running a process I can not run any of the interrupts on it. Here ...
0
votes
3answers
2k views

I want to set up a basic cron job that sends an email

I am running OS X 10.7 and I am learning unix commands. I would like to set up a very basic cron job that sends me an email with a certain message. How would I go about this. From what I have read, I ...
1
vote
1answer
196 views

How can I easily determine which pseudo-terminal device a terminal emulator has been assigned?

I'm writing a little curses program and I want to redirect stderr to another terminal. However, the only way of determining the correct /dev/pts/X device to redirect to that I know of is to echo text ...
3
votes
4answers
3k views

SSH: I have a *.pem private key. How to create a SSH connection using it?

I tried to use putty also. I select this pem key there and got this: Unable to use key file "key.pem" (not a private key). I read that it is possible to convert a pem to a pub key. I did it like ...
0
votes
1answer
1k views

mtp-detect doesn't detect my Sony Ericsson phone

I used to have a Samsung Galaxy Fit that worked out of the box with Banshee. I recently bought a new Sony Ericsson Xperia Mini, I tried to sync it using Banshee, but it doesn't show up. It does ...
5
votes
5answers
6k views

/etc/resolv.conf changes during reboot

My ISP asked me to use custom nameserver settings. I have placed these in /etc/resolv.conf. Unfortunately, every time I reboot the computer, the contents of this file is changed. To connect to the ...
2
votes
2answers
2k views

PPPoE reports network is down

When I try to connect to the Internet using pon provider, I get this error: error sending pppoe packet: Network is down error receiving pppoe packet: Network is down If I configure the Internet ...
1
vote
1answer
2k views

Mint 12: synaptic package manager error

Yesterday I had the same issue, I solved it by running sudo synaptic But today I don't know what's happening, if I run gksu synaptic or gksudo synaptic they don't do anything. If I go to root and ...
7
votes
2answers
1k views

Are kernel threads really kernel processes?

I've read in many places that Linux creates a kernel thread for each user thread in a Java VM. (I see the term "kernel thread" used in two different ways: a thread created to do core OS work and a ...
3
votes
1answer
1k views

Linux friendly TV tuner/receiver

My USB TV tuner (an ENUTV-2) just stopped working and now I have to buy a new one. While I was browsing options, I realized my biggest priority was to get one that had Linux drivers (lack of them was ...
3
votes
1answer
200 views

Are there foreign language Terminal command sets?

I recently changed my MacBook's UI to show Hebrew, and at around the same time, I began using the Terminal more often. The combination of the two has lead me to wonder - are there Hebrew language ...
4
votes
6answers
6k views

How to swap columns in such a file?

I have a text file, each line is stored like this : "Video or movie" "parent" "Media or entertainment" "1" "1" "1" "0" "0" I want to swap the columns 3 with 2, i.e. "Video or movie" ...
0
votes
2answers
709 views

RVM install issues on a local user account

I'm running Ubuntu server lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 11.10 Release: 11.10 Codename: oneiric When I try to install ...
0
votes
2answers
523 views

Storing Abbreviations in Vim

I frequently use :ab to save typing time during coding. For e.g. :ab mat matrix to replace mat by matrix every time I type mat. Is there any way of storing and loading the abbreviations I create for ...
0
votes
2answers
1k views

Problems with tight vnc on Suse 11 enterprise x86_x64

We have a production machine running Suse 11 Enterprise Server x86_x64 with tigtvnc as the VNC server used to connect remotely via UltraVNC view on a Windows 7 machine. Up to this point, the setup ...
0
votes
1answer
530 views

Remapping keys in vim's “directory view”

The "Netrw Directory Listing" you get by opening a directory in vim (e.g. :e .) seems to use a different set of keybindings than plain vim for navigation I have my hjkl keys remapped thus: noremap d ...
2
votes
1answer
137 views

/etc/rc*: Why does this command stop NFS services from starting at boot?

I recently found this home networking tutorial surprisingly enlightening. However, there is one thing I don't understand: Disabling NFS Start On Boot: If you are not planning on regularly ...
1
vote
4answers
434 views

FreeBSD is not Unix. But its Unix-Like Unix. Where is then the main Unix to read the source code?

I want to really understand System V, the main origin of Unix (not Unix-like nor modified Unix to Linux). The main origin which is very confusing and not really with care its written somewhere. Is it ...
0
votes
1answer
241 views

What causes localhost 404 requests to go to http://origin.domain.com [closed]

I've been running Apache on my local computer for years. Suddenly, any request to a local page that is not found, is redirected to http://origin.domain.com/. What could cause this? Just to be clear, ...
1
vote
1answer
390 views

How to create a cron which finds/kills/clears old puppet runs?

I am a new user of bash/cron, and I was given a task to create a cron which finds/kill/ and clears old puppet runs that were not successfully installed. The more help the better, but I am more or less ...
1
vote
2answers
552 views

Proper way to use shebang for bash

What is the recommended options in bash's shebang? #!/bin/bash -e I currently have it as above. This sources $HOME/.bashrc. I don't want to source user's .bashrc/.profile as it might interfere ...
2
votes
2answers
744 views

Can I send auditd logs to another computer?

On a Linux (debian) box, I have a NFS server wich seems to be overloaded by requests. In order to identify the problem, I'm trying to monitor with auditd/auditctl accessed files in the partition ...
1
vote
3answers
887 views

What should a Linux Server Admin know about Solaris and AIX

I'm being considered for a new Linux Server Engineer position, but I'm told by an insider that there is a little Solaris and AIX in-house. I spend most of my time in the Debian Family, have some ...
40
votes
4answers
29k views

Is it possible to find out the hosts in the known_hosts file?

I would like to see what hosts are in my known_hosts file but it doesn't appear to be human readable. Is it possible to read it? More specifically there is a host that I can connect to via several ...
12
votes
2answers
3k views

How/Why does cat write a bootable ISO to a device

I recently discovered that I can create a bootable USB key from an ISO file by simply using cat (or dd). I can't find any information on how this works. Why would: cat my.iso > /dev/sdb ...
1
vote
1answer
141 views

transfer permissions user -> group/other

How do I transfer write/execute and execute permissions from owner to group and other, respectively? I have some libraries I want to move to opt and set ownership of to root. Unfortunately, ...
10
votes
5answers
48k views

How to display lines 2-4 after each grep result?

I'm parsing a mailbox file that stores e-mail server reports for unsuccessfully delivered e-mail. I wish to extract bad e-mail addresses, so that I remove them from the system. The log file looks like ...
2
votes
1answer
481 views

How to extend an ext3 partition over LVM inside a file (virtual machine)?

I need to extend the root partition of a virtual machine (VM) using LVM (Logical Volume Manager). I can afford a few minutes of downtime so a VM shutdown/reboot is fine. The virtual hard disk is in ...
2
votes
2answers
2k views

How to delete the line after a search pattern, globally with vi?

Assume I have a big file, ~1k lines, and I need to delete the line after some pattern, lets call it: somePatern. Conditions: cannot be done by hand (no searching -- /somePattern, and/or manually ...
6
votes
1answer
1k views

How to extract annotations from PDF files?

Is there a command-line tool to extract annotations (comments added using evince) from PDF-files? I search such a solution to send people feedback on their submitted documents. Apart from replying ...
1
vote
0answers
323 views

Replacing/disabling plasma desktop/wallpaper?

I'm looking for a way to replace Plasma's wallpaper (desktop?) with Compiz's (or traditional). I'm running Compiz + Emerald as WM, and this disables the ability to have different activities on ...
6
votes
1answer
187 views

Confusion about sed and '>'

The following command works fine: sed s/input/raw_input/ p.py >p2.py && mv p2.py p.py However, the following command turns p.py into an empty file: sed s/input/raw_input/ p.py >p.py ...
6
votes
2answers
2k views

Bash $PROMPT_COMMAND messing up scroll history display

I set up a PROMPT_COMMAND to display the current branch while I'm in a git repo. The relevant part of my .bashrc is: export PS1=" \[\033[34m\]\$\[\033[0m\] " export ...
1
vote
1answer
105 views

VIM - how to minimize tabindent on hilighted text

Right now, my VIM editor tab indent has some unusual behaviour. When I am in insert mode and press tab, the cursor indents about 3 spaces instead of a whole tab indent. I like this. When I ...
0
votes
1answer
1k views

Linux mint 12: change default editor and terminal

I have the sublime text editor located in usr/bin. How can I make it the default editor so I can do sublime /var/www/test.php? And can I change the default terminal to yakuake?
5
votes
1answer
982 views

How do I filter a glob in zsh

Basically I can use a glob in zsh to a list. Often, it turns out, I would like to filter that list, grep'ishly I'm wondering though, if I need to do that. Does zsh have a method to filter a list? ...
5
votes
2answers
1k views

is it possible to send a control sequence to a terminal emulator using the keyboard

If you type echo -e '\eZ' and hit return in a shell running in an xterm, you'll see that the terminal emulator prints an obscure code 1;2c. This seems to indicate that xterm interprets the VT100 ...
1
vote
1answer
629 views

routing between two private networks (NICs)

I have two private networks say: 10.0.1.0/8 and 192.168.0.0/24 I have two machines with two NICs per each machine. machine1 NIC1: 192.168.0.10 machine1 NIC2: 10.0.1.10 machine2 NIC1: 192.168.0.11 ...
1
vote
1answer
499 views

Can Bumblee really help with Optimus Laptops?

I bought Lenovo Z570 which comes with nVidia GEForce GT520M (Optimus technology) and recently I installed Ubuntu 11.10. Surprisingly, whenever I boot my system CPU fan rotates at very high speed and ...

15 30 50 per page