5
votes
4answers
1k views

How to quote a string containing dollar sign $ and single quote '?

My directory's name contains a $ and ', for example :~$ export DIR=\$my\'dir :~$ sh -c "ls $DIR" How can I run above command without $my being expanded? I know the single quote doesn't work since ...
4
votes
1answer
16k views

NFS Server changes in /etc/exports file need Service Restart?

I have NFSv4 Server (on RHELv6.4) and NFS Clients on (CentOSv6.4). Let's say in /etc/exports: /shares/website1 <ip-client-1>(rw,sync,no_subtree_check,no_root_squash) /shares/website2 ...
2
votes
0answers
298 views

Character encoding issue with my linux install?

I just installed Ubuntu 12.04.4 64 bits, all seemed to be ok, when I started to work on console I noticed: that I couldn't get some accented characters typed in to the console, for example, if I ...
64
votes
2answers
90k views

There are stopped jobs (on bash exit)

I get the message There are stopped jobs. when i try to exit a bash shell sometimes. Here is a reproducible scenario in python 2.x: ctrl+c is handled by the interpreter as an exception. ctrl+z ...
3
votes
1answer
41 views

Script to dripfeed files

I need to write a script that will check a directory for a given file type, say *.mov, and move up to, say, 50GB worth into another directory. The purpose being that we have a huge bunch of files that ...
26
votes
6answers
11k views

where is `cd` located? [duplicate]

In a bash sub shell I get the following error when running cd sudo: cd: command not found This is expected because I don't have a path. Usually to work around this I just provide the full path like ...
2
votes
2answers
361 views

procmail recipe with a regex doesn't work

In my ~/.procmailrc I have the following lines: :0 \* ^Subject:.*(O|o)pen( \|)(S|s)(onic|urge) $MAILDIR/OpenSurge/ As you see, I would like to put any mail containing “Open Surge” (or any variant ...
1
vote
1answer
3k views

what is the difference between qsub and ./

Can anyone tell me the difference between the following ways of submitting a script: $ qsub script_name.sh and ./script_name.sh What are the differences between the above two ways of submitting ...
2
votes
4answers
2k views

regex matching with “locate”

I'm trying to use the locate command to find files in my home folder, however whenever I try and run this I get no results: locate -i -l 4 --regexp '^\/home\/jack\/[A-Za-z0-9\/\ ]*(My.)*$' I've ...
1
vote
1answer
1k views

Gnome Network-Manager OpenVPN

I cannot get OpenVPN to work with GNOME NetworkManager. Authentication-Type is "Certificates (TLS)" I have 3 files: UserCert: user.crt CACert: ca.key PrivateKey: user.key All live in my ...
1
vote
1answer
639 views

High RX packet error count with modem - how to analyze?

I'm testing a CDMA modem on my Debian embedded Linux system. I'm doing some wgets of large files and am seeing the connection drop now and then. Looking at the ifconfig output for the PPP interface ...
36
votes
1answer
6k views

redirect sound (microphone) via ssh, how to telephone via ssh?

How can I redirect the microphone of one computer to listen to it on another computer via ssh? Which is the right device or which is the right command line? Some years ago it was easy and fun to ...
1
vote
1answer
563 views

Problem with Angstrom USB driver

I am connecting a Huawei E3131B USB 3G modem to my Beaglebone Black running Angstrom. When I connect it directly, the USB acts funny. Sometimes it picks up the modem, sometimes it dissapears from ...
2
votes
2answers
3k views

What driver is being used by a wireless usb adapter?

I've installed Linux Mint 16 on a netbook that I'm trying to pump more life into. I'm currently stuck with configuring the wireless as the computer uses a USB wireless adapter (rt5370 from Ralink) due ...
4
votes
3answers
4k views

What distribution still supports the 2.6.x kernel?

I'm trying to use a Khepera III robot. The documentation says I need a Linux OS with kernel 2.6.x. An Ubuntu 8 image was provided at the website. When I created a virtual machine with that image, I ...
0
votes
3answers
1k views

Can sudo to user but 'run command as' is denied?

I was wondering how to run a command as another user from a script without password. sudo -l return: (root) NOPASSWD: /bin/su - someuser There is no problem to sudo as someuser. Command sudo su - ...
0
votes
3answers
978 views

How can I use grep to search a file for string combinations?

What I'm trying to do is use grep to search my Apache logs. What I want is to find is every entry from a certain IP address that also has .html or .php in the line. In other words, I want to see what ...
5
votes
1answer
2k views

Understanding webcam 's Linux device drivers

As far as I know, device driver is a part of SW that is able to communicate with a particular type of device that is attached to a computer. In case of a USB webcam, the responsible driver is UVC ...
1
vote
1answer
90 views

Auth via wget works, but cannot navigate inside webpage after it

I can get a cookie, ok: wget -q --tries=5 --retry-connrefused --timeout=29 -U 'Mozilla/5.0 (Windows NT 6.1; rv:26.0) Gecko/20100101 Firefox/26.0' --no-check-certificate --keep-session-cookies ...
2
votes
1answer
101 views

Looking for a “undo” for file with holes (GNU)

Linux supports sparse files aka 'file with holes' Note following commands alias mystat='stat -c "%n: %B*%b blocks %s bytes"' dd if=/dev/zero bs=1024k seek=4096 count=0 of=file-with-holes ls -l ...
2
votes
1answer
431 views

Missing /dev/ram0 /dev/ram1 and /proc/kcore

I have been experimenting with etckeeper to store different snapshots of /etc in a git repo. I have cloned a working /etc in /etc-1 of a clean VPS and I have restored metadata with etckeeper, the I ...
1
vote
1answer
207 views

Why my cpu spend so much time on system? [closed]

top - 08:58:42 up 20 days, 8:23, 1 user, load average: 67.17, 58.94, 62.75 Tasks: 630 total, 40 running, 524 sleeping, 0 stopped, 66 zombie Cpu(s): 57.3%us, 41.6%sy, 0.0%ni, 0.0%id, 0.0%wa, ...
4
votes
3answers
4k views

Self-built kernel: failed to mount /dev: No such device

I am trying to install a Linux kernel (3.8.1) from source in a Fedora distribution. The kernel is a vanilla one. I follow the kernel's build instructions closely that is: make menuconfig make sudo ...
0
votes
1answer
386 views

Does the order of options in the /etc/network/interface option matter

I'm trying to determine if the order of the options matter I'm using a script (represents an external remote interface) that is updating the /etc/network/interfaces file. The script can set the IP ...
2
votes
1answer
690 views

How can i determine the block size of an vxfs filesystem?

I am looking for a way to see what the current blocksize of an filesystem is. Normaly i would use tune2fs -l | grep "Block size", but that doesn't work on vxfs. I googled a bit and found fstyp -v ...
2
votes
1answer
986 views

screenshot only the active monitor on ubuntu/debian

I would like to do screenshots of the active monitor (the one on which my mouse is) or screenshots of always the same monitor ; and not the two monitors at the same time. Is there any command/option ...
7
votes
2answers
2k views

Serve Internet to remote machine via SSH session?

The machine via which I'm SSHing to the remote/host machine (same network/LAN) has access to the Internet but the host doesn't. Running updates and installing packages on the host gets quite ...
3
votes
0answers
89 views

acl not overriding unix rights?

I have a folder with UNIX rights that forbid access to me : ls -l Sources-labo drwxrwxrw-+ 6 nobody applications 73728 févr. 25 13:25 Sources-labo groups users vault but the ACL are set so that ...
1
vote
1answer
203 views

crontab is giving only 2045 lines of output instead of 6000 lines

I am executing one shell script with crontab which has to give more than 6000 lines output only it is giving output up to 2045 lines then coming out. when I run that shell script it is working fine ...
1
vote
2answers
449 views

When do inode modification times change? [closed]

I am currently reading UNIX by Bach. I encountered a problem while reading the section on inodes in the 4th chapter. A file modified time is shown as 1:45pm but the inode modified time is shown as ...
1
vote
1answer
1k views

get driver for dell wireless card

iam using laptop dell inspiron 15R 5537 ... using dell wireless card 1705 ... and wireless is not defined on any linux distro i tried (ubuntu , debian , elemetary OS luna , gentoo ) :( i searched ...
0
votes
0answers
586 views

Unable to update linux-mint or install any software from the software manager

Returns error on update manager "Unable to download all repositories" which is followed by a long list of failed connections and ip addresses Also if I try to download any software from the software ...
7
votes
2answers
3k views

Why load is high despite the fact that neither CPU or disk is overused

I'm getting the following output from top: Cpu(s): 43.8%us, 32.5%sy, 4.8%ni, 2.0%id, 15.6%wa, 0.2%hi, 1.2%si, 0.0%st Mem: 16331504k total, 15759412k used, 572092k free, 4575980k buffers ...
1
vote
2answers
194 views

CentOS 6 with Linux-Libre kernel?

I understand that CentOS ships with nonfree blobs in its kernel. It seems that a "nonfree blob"-free kernel exists, a.k.a. Linux-Libre. Is it possible to somehow get CentOS to use Linux-Libre kernel ...
4
votes
2answers
3k views

lsmod outputs: Not tainted [duplicate]

I ran lsmod command on an emulator for a board, and the output is Not tainted . What does that mean ?
0
votes
1answer
1k views

rs232 to usb not working

I also asked this question on AskUbuntu but there nobody comments on it I have a konig rs232 serial to usb adapter (no FTDI chip), but when I try to connect to a cisco switch/router (via Putty, ...
1
vote
0answers
111 views

Install specific 32 bit package on 64 bit debian squeeze(6.0)

I have an amd64 installation of Debian 6.0 (Squeeze), where I need to install a 32 bit version of the libpcap0.8. I have done an apt-get install ia32-libs which gets me a 32 bit libc and a few other ...
2
votes
2answers
1k views

Open programs without locking terminal through Putty

There's a bunch of proprietary software installed on our university linux computers, which is accessible through remote control via Putty. When I'm using my own Linux box, if I want to retain control ...
5
votes
3answers
3k views

How does word count work for newline (-l)? Number of newlines or lines

I wonder how does wc work? Most times it seems to return the number of lines, but sometimes it seems to be newlines? In the man page its newlines. But: [jiewmeng@JM textFiles]$ echo -e "\n\n" | wc - ...
2
votes
1answer
104 views

catch http requests from another process

Suppose a process, among other things, is posting https requests, for example with curl. Assuming I have root privileges, is there a way to intercept such requests and respond with an http error ...
0
votes
0answers
352 views

Cpanel directory chgrp issues

I'm struggling to get a directory to work with user:group. After creating the directory via WHM I've logged in via SSH and set: chgrp -R developers mysitedirectory Which results in a 500 internal ...
1
vote
1answer
119 views

Merge floppy images in Raspbian

On my Raspberry pi I am trying to install windows 95 in dosbox. I know that it probably won't work, but I want to try. I cannot download the large CD image so I downloaded a set of 13 floppy images. ...
3
votes
5answers
2k views

Quoting and escaping

I have a shell script, the arguments of which are collected in quote as a single argument and passed to a perl script. /usr/local/API/check_api.sh "-D x.x.x.x -C Test_Internal_Cluster -u user -p pass ...
3
votes
1answer
724 views

How to move /usr from one partition to another partition safely

Linux, Debian. Now I have: /dev/sda5 on / /dev/sda6 on /home /dev/sda7 on /usr I would like to use sda6 to hold /usr, then free /dev/sda7 for other use. What is the safest way to do this? I ...
1
vote
1answer
255 views

Ubuntu load and hang on live USB [closed]

I seem to have run into some difficulties trying to install Linux alongside my USB. I made a bootable USB stick and done all the UEFI firmware settings from which I disabled fast boot. Now when I run ...
1
vote
2answers
415 views

List the commands run by rpm package

Sorry for the very basic question, maybe my Google grammar is not the best tonight. I am trying to break down an rpm package into a list of commands (not just its file contents). I would like to ...
2
votes
3answers
2k views

How to install postfix for sending mails to admin only?

I have a VPS running Ubuntu 13.10 on Digital Ocean. I'd like to install postfix on the server, but I want it to be able to send e-mails only to my e-mail address whenever a system message wants to be ...
2
votes
2answers
445 views

How can I flatten nested .tar.gz files?

I've got a bunch of .tar.gz files in different paths. I'd like to create a new .tar.gz file at some common ancestor of them and I don't want it to be composed of nested .tar.gz files. How can I easily ...
1
vote
2answers
60 views

Vim: What is difference between motion mark shotcut `. and `"?

While reading vim info motion marker says: |`quote| `" go to the position when last editing this file |`.| `. go to the position of the last change in this file Above ...
2
votes
1answer
694 views

How to improve quality of microphone input

I am both new to linux and "sound processing" and I'm sorry if this looks like a question being answered with the first entry on Google. Because I don't even know what to google for. A friend of mine ...

15 30 50 per page