7
votes
2answers
3k views

Create bash completion script to autocomplete paths after is-equal sign?

I want to create a bash completion script which recognises arguments of the form --arg and --some-arg=file. After reading this tutorial and some examples in /usr/share/bash_completion/completions/, ...
1
vote
2answers
2k views

awk - get input from both file and STDIN?

Is it possible to get input from both file and the terminal? I wish to ask the user something in the END portion of the awk script. That input should be typed in by the user and not read from the ...
2
votes
2answers
1k views

How do I find corrupted archive files?

I have a lot of zip files. Some are not downloaded correctly and are corrupted. I want to remove them. Is there a way to find the corrupted archives in bash?
2
votes
1answer
1k views

How to upgrade to “Mono v3” on openSuse 12.2

I have mono 2.10.9 installed on a VM with openSuse version 12.2. I'm trying to find a distribution for the latest v3 Release of Mono which I can use to upgrade the version of mono that I have ...
2
votes
1answer
55 views

Printing maps/cartoons/text saved as a picture/etc

What is the best way to print maps/cartoons/text saved as a picture/etc., so pictures that are not photos? The standard routines seem to blur and soften the printed picture, which is probably ...
1
vote
1answer
425 views

xdg-mime not behaving

I am trying to set the default application for magnet links using: ~ $ xdg-mime default deluge.desktop x-scheme-handler/magnet Checking this with grep -i deluge ~/.local/share/applications/* ...
2
votes
1answer
1k views

Is there an easy way to switch playback soundcards?

I recently purchased the roccat kulo headset which comes with a nice USB soundcard, completely functional under linux :). Howsoever I now struggle to easily siwtch between my laptops integrated ...
2
votes
3answers
3k views

How to cat a file from awk?

END { file = "a.txt" system(cat file) } I wish to do something like that? (open a file whose name is in an awk variable). How is it done?
6
votes
2answers
34k views

Why ext4 File System is better than NTFS? [closed]

For a presentation, I need to show ext4 File System is better than NTFS. I searched and got nice article on both ext4 and NTFS http://en.wikipedia.org/wiki/Ext4 http://en.wikipedia.org/wiki/NTFS ...
4
votes
2answers
4k views

Prevent usbhid from claiming USB device

Directly related: Prevent claiming of novelty usb device by usbhid so I can control it with libusb? I want to access an RFID reader (works as HID device) from a program that uses libusb-0.1. In the ...
-2
votes
1answer
466 views

Extended partition should have many filesystems

I need some related information on the following lines I found in an answer: A logical partition is a container for a filesystem (or an LVM volume or some swap space or a BSD partition or other ...
10
votes
2answers
517 views

Triggering an action when a specific volume is connected

I have a USB key that contains my keepass2 password database and I'd like to perform some actions when it is plugged into my computer, namely: Auto-mount it to some specific location When the ...
8
votes
2answers
667 views

System-wide power management policy on debian-based distros?

I would like to put idle machines in our lab (running Mint Debian edition) on standby after a timeout. I have tried pm-suspend and it puts the machines on standby and wakes up fine. Does anybody know ...
5
votes
2answers
861 views

Create Temporary Samba Share

Is there a possibility to temporarily share a directory per Samba? With python3 i can serve the current directory per HTTP using: python -m http.server. I'd like to do the same thing with Samba.
5
votes
2answers
3k views

Is there a pdf viewer capable of opening multiple documents in the same window?

I would like to open all chapters of my PDF ebooks in the same window but neither evince nor okular seems to be capable of doing that (at least not out-of-the-box). Is there a way to work this out?
0
votes
1answer
147 views

Having problem using sed | Trying to replace a line

Contents of gaurav.txt file $generalNetPath = "/net"; $generalNetPath = "/glbusers4/glb/aimsys/apxwrk48"; I trying to replace /glbusers4/glb/aimsys/apxwrk48 by pwd as follows qaz=`pwd` sed ...
4
votes
1answer
3k views

GNUplot--Change steps of yrange

I'm learning GNUplot. I need to change steps in which Y values increase while plotting my graph.xrange command will change range but steps. Ex. I have data like this 1 1000 2 1500 3 1 4 200 ... By ...
1
vote
1answer
179 views

darkstat shown blocked traffic

I've installed Darkstat on a Qemu VM which is connected to a bridge interface on top of main server's interface ( eth0 ) In Darkstat report I can see many hosts in the same IP range of specified VMs ...
2
votes
1answer
748 views

/etc/crontab edited via copy and paste, how to revert back?

I have made a mistake, I have edited /etc/crontab via copy and paste. And now those crontab entries are not working. [root@process ~]# cat /etc/crontab SHELL=/bin/bash ...
0
votes
1answer
230 views

Reinstall GRUB from LiveCD

I have both windows and linux run on same machine. In Windows, when I set parition C to main boot, I cannot use GRUB anymore. So, I decide to reinstall GRUB. But, when I use Fedora live CD to boot. I ...
2
votes
1answer
132 views

Running a program automatically?

There is a Linux program I like which is Conky, when I run conky -c mycustomconf.txt it runs fine. I want this program to run automatically when I start my computer, without having to type in the ...
4
votes
1answer
187 views

Easiest way to manage users for two machines

I'm administrating two ubuntu desktops and one debian server. There are abount ~20 active users on the desktops. A few (5-10) user accounts are added each year and about the same amount become ...
1
vote
1answer
1k views

Allow incoming connections from Google Translate only

I have a small web server running on port 80, and I'd like to allow only Google Translate to have access to it. First I tried running dig translate.google.com and dig translate.googleusercontent.com ...
1
vote
1answer
2k views

How to correctly remove mountnfs from /etc/init.d/

Cleaning up the boot process of a Debian squeeze installation running on kernel 3.2.0-0.bpo.3-amd64, I spotted several mountnfs scripts in /etc/init.d/: # ls /etc/init.d/ | grep mountnfs ...
3
votes
2answers
591 views

Connecting to wireless router

According to this manual I tried: $ iwconfig lo no wireless extensions. eth1 IEEE 802.11bg ESSID:"g\xC6isQ\xFFJ\xEC)\xCD\xBA\xAB\xF2\xFB\xE3F|\xC2T\xF8\x1B\xE8\xE7\x8DvZ.c3\x9F\xC9\x9A" ...
3
votes
1answer
383 views

NetworkManager tries to connect to previous network after suspend, even if the network isn't there

At home I am connected to network 'A' and can see WLANs 'B' and 'C' from my neighbours. I suspend my computer and when I get to work the next day, the system still thinks it's connected to the same ...
1
vote
2answers
621 views

Synchronize the files from One folder of a Server to other

I need a script in which Files of One server will be copied to other folder of another server ONLY AND ONLY IF the file on SOURCE SERVER file doesn't exist on DESTINATION SERVER. Further Detail ...
1
vote
0answers
445 views

Negative hdd usage. Available is larger than fullsize

Having issues with space accounting of lvm volume. 23G is available. But the full size of the partition is 20G. (So, it shows "-4.1G used" 0_O) > df -h Filesystem Size Used Avail Use% ...
0
votes
1answer
794 views

Setting mobile broadband connection in Fedora 17

I am using a Dell Precision M4500. I've realized that there is a SIM slot underneath the battery slot, I suppose it is for using mobile broadband access. I am usually connecting to the internet ...
0
votes
2answers
445 views

Jboss application startup and shutdown asks for password. How to automate with init script?

Jboss application startup and shutdown of BMC-IDM asks for password (called keystore password, some Java stuff). How to automate with init script? Stop application > stop_idm_suite.sh Suite ...
2
votes
2answers
980 views

Lost ls directory highlighting after a crash

Normally commands such as ls and grep offer nice syntax highlighting for me. But my system crashed (running an ubuntu VM) and after I restarted, I no longer have this highlighting, it's all a dreary ...
19
votes
1answer
838 views

Why doesn't 'find' show this file?

Using find with grep, one can locate files that match a pattern: # find | grep error ./solr-modifiedSolr4/SolrPhpClient/phpdocs/errors.html ./error_log ./includes/classes/error_log However, using ...
3
votes
1answer
12k views

Command for yum to install all packages without dependency

Is there any way for yum to install only that packages, that doesn't have any dependencies? I'm trying to install all python2 libraries. The code: su -c 'yum install python-\*' And I've get (ignore ...
1
vote
1answer
90 views

Emacs function on set of files

Is there a way implemented in Emacs to apply a function on a set of files? (Or, if not, do you know of such an extension?) For example, if you have a project in a directory (say, scripts to compile ...
1
vote
1answer
344 views

How do I get my phone to ring using linphone and MagicJack?

I have a VOIP number setup with linphone and IPKall. I am using my old magicJack to connect my handset. The handset works for voice input and output, but when I receive a call, it only rings in the ...
2
votes
2answers
634 views

Aptitude doesn't remove automatically installed packages

It seems aptitude doesn't remove automatically installed packages that are not depended on if these packages are suggested by any other (manually installed) ones. root@host:/# aptitude install ...
7
votes
3answers
9k views

How to change cursor shape, color, and blinkrate of Linux Console?

I know I can change some fundamental settings of the Linux console, things like fonts, for instance, with dpkg-reconfigure console-setup. But I'd like to change things like blinkrate, color, and ...
2
votes
2answers
525 views

How to stop a infinite running process (ztail) started by a ssh session after that session is closed

I have a peculiar problem. My server supports multiple ssh session simultaneously, so that multiple admins can manage (via command line interface) it simultaneously. We have a command which calls ...
0
votes
1answer
183 views

Grade book program that works on gentoo

I am looking for a program that I can use to keep track of and calculate my grade in all my classes without going through and making a spreadsheet for each class.
3
votes
1answer
446 views

Online remount btrfs of root filesystem with different subvolume (snapshot)

Let's say you have a btrfs root filesystem on an online system. You want to revert the filesystem to an earlier state, of which you have a snapshot: remount /dev/sdaX / -o remount,subvol=snapshots/Y ...
1
vote
1answer
2k views

How can I create a Windows XP installation USB drive? [closed]

There are two partitions on my hard disk, one is Linux Mint and one is newly formatted. (a simplification) I have Windows XP installation disks and iso files, however my optical drive isn't working. ...
7
votes
4answers
2k views

What distro is the most similar to RHEL 5?

I'm trying to get used to work with linux for a new job, where I will be using RHEL 5, but right now don't have $179 to buy the workstation version from Red Hat store. What free distro would be the ...
6
votes
2answers
1k views

Getting “NTFS5: No ang0” error message when booting Linux Mint

I am getting the following message as shown in the link below when trying to boot into linux mint 13. Try (hd0,0): NFTS5: No ang0 Try (hd0,1): NTFS5: No ang0 Try (hd0,2): NTFS5: No ang0 Try ...
23
votes
5answers
10k views

Is there a program that can send me a notification e-mail when a process finishes?

I am a computational scientist, and I run a lot of lengthy calculations on Linux. Specifically, I run molecular dynamics (MD) simulations using the GROMACS package. These simulations can take days ...
23
votes
2answers
8k views

In bash, is it possible to use an integer variable in the loop control of a for loop?

I have the following bash script: #!/bin/bash upperlim=10 for i in {0..10} do echo $i done for i in {0..$upperlim} do echo $i done The first for loop (without the variable upperlim in the loop ...
3
votes
1answer
667 views

Kubuntu doesn't reconnect to Wifi after waking up from sleep

I just installed Kubuntu on my laptop and it's working fine so far, except the wireless connection is not switched on after waking up from sleep. I do have to click "Enable wireless" so that it ...
2
votes
2answers
457 views

What's stealing my F11 key?

I've just installed Arch Linux with LXDE and Openbox on my Asus Eee PC 1000. I can't get my F11 key to work in any application. It doesn't appear to do anything when I press it. I installed xev, ...
0
votes
1answer
311 views

Where to download Fedora 16

I am having a really hard time finding a place to download Fedora 16 64 bit distribution are there still places that have links up for 16th version instead of 17? A Virtual image for VirtualBox would ...
1
vote
1answer
1k views

Very basic question, ls a different directory and save file

I seriously can't understand where I'm going wrong with his question. The first part is. List all the file and directory names in /etc which have 1 or more numbers in their name. Remember to use ...
7
votes
3answers
3k views

Proper way to disable tmpfs on /run/shm

How do I disable tmpfs on /run/shm? I searched through initscripts and found that the following code checks the entry in fstab, but what should I change to make it not mount /run/shm? I'm running ...

15 30 50 per page