Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

3
votes
1answer
438 views

Linux: Find all occurrences of “string1” in files under a directory and replace them with “string2”

In linux, what's a good way to find all occurrences of "string1" in files under a directory and replace them with "string2"?
1
vote
1answer
263 views

What does this Linux shell script line do?

I'm trying to determine exactly what the following line of shell script is doing.: grep --files-with-matches '>' . | sort | uniq | xargs perl -pi~ -e 's/9Kp/9K /' /home/user/DATAFILE.DAT I'm ...
1
vote
1answer
790 views

Help with Watch Directory Script

First, I should note that I am pretty new to writing scripts, but I know my way around ubuntu well enough that I don't mind getting my hands dirty... I have a small script, which does a simple ...
2
votes
2answers
4k views

How to access a CD/DVD drive over the network?

The CD/DVD drive of my notebook is broken. However, the drive from my desktop computer is working perfectly. How can I access the CD/DVD drive from my desktop computer over the network? I want to put ...
6
votes
2answers
6k views

Removing the avahi-daemon on Ubuntu

My Ubuntu server basically servers a Python Django site using Apache and Postgre. We SSH to it to configure some stuff from time to time but that's about it for the server. Since I'm trying to harden ...
6
votes
3answers
14k views

Running Apache as a different user

When I run the ps -efH command to list out all the process, I can see Apache running as root and seems to have sub-processes running as www-data. Here's the excerpt: root 30117 1 0 09:10 ? ...
1
vote
1answer
335 views

How can I use Control+` (grave accent) as my escape character for screen?

I've been trying to think of an escape character to use for screen that isn't already used by any of the programs I use, and I've settled on Ctrl+`. The default Ctrl+a is unacceptable for me because ...
1
vote
1answer
6k views

Do Intel HD 3000 Graphics run out of the box on Linux? [closed]

Do Intel HD 3000 Graphics run out of the box on Linux? Or do I have to do some manual work to get it working? Does Intel develop open source drivers? Are they faster than on Windows? This would ...
1
vote
2answers
2k views

nouveau without KMS

I have nomodeset when I boot my kernel, as I want to switch between nouveau and nvidia proprietary drivers within a session. However, nouveau won't load, complaining that kms isn't enabled (xorg.log ...
2
votes
2answers
2k views

How can I view live logs on a Linux server (Ubuntu)

How can I view a live log on a Linux server, so that I can see new log entries instantly as they are being added?
1
vote
1answer
330 views

Equivalent of tail/less --follow-name under OS X

I need to tail -f a log file that is rotated. This is the exact same issue as the one here, but on OS X: Why does less tail mode stop working? So how can I constantly track a file whose inode might ...
4
votes
1answer
438 views

Parallel processing slower than sequential?

EDIT: For anyone who stumbles upon this in the future: Imagemagick uses a MP library. It's faster to use available cores if they're around, but if you have parallel jobs, it's unhelpful. Do one of ...
1
vote
2answers
439 views

RSYNC - Ignore a Directory on destination box

I am performing a dry run using Rsync on 2 different boxes. While i'm doing that, Under destination directory, I want a specific directory x to be ignored for sync. Please let me know the exact ...
1
vote
1answer
704 views

Cross-platform, Command line utilities to convert PDF, DOC and DOCX to text

I am making a text search engine. I need to first convert binary documents to text. I want to go with cross-platform (we develop both on windows and linux) command line (so that I can get the output ...
1
vote
0answers
2k views

How can I tripple-boot via my Mac? Help install Linux? I already got OS X Lion and Windows and 30GB unpartitioned space reserved for Linux [duplicate]

Possible Duplicate: Triple boot (OS X/Win/Linux) via rEFIt doesn't work - Linux not visible in rEFIt I would really love to triple-boot on my MacBook Pro. (Not with Virtual machines!!) ...
0
votes
2answers
270 views

Using sed to replace a *large* number of variables in a file

I have a large number of log files, on a linux box, I need to cleanse sensitive data from before sending to a third party. I have used the below script on previous occasions to perform this task, and ...
1
vote
3answers
498 views

I need a traffic monitor for Linux, that only counts in a specific wireless network

I need a simple traffic monitor for Linux, that counts the traffic in a specific wireless network because I have volume restrictions on that one. I tried it using the following iptables rule: ...
2
votes
1answer
1k views

Difference between linux mint LXDE LMDE

I am new to linux and confused with mint LXDE and mint LMDE What is the difference between linux mint LXDE and mint LMDE ?
3
votes
0answers
2k views

why can't I create directories in virtual box shared folder? Windows 7 host, arch linux guest

I'm mounting a shared folder in an arch linux guest on a windows 7 host in Virtual Box. The shared folder's filesystem is ext3 and is mounted in windows 7 with Ext2Fsd. I mount the shared folder at ...
7
votes
2answers
10k views

Getting a GPU Bitcoin miner for Linux 64bit

I've just learned about the awesome world of Bitcoins. I've learned that the only way to make a decent amount of bitcoins is to "mine". However, everywhere I look, the miners are for Windows and those ...
2
votes
1answer
633 views

how to list and kill processes accessing internet in linux

How to kill the processes accessing Internet in background using terminal commands. Command to stop (disconnect) the processes accessing Internet. Command to kill the process accessing Internet.
1
vote
2answers
577 views

Is there a open source monitoring package that monitors logs for specific string patterns?

In our current system, we are not effectively monitoring the logs for errors as most of the errors are not serious enough. I want to basically warn users on the important errors. I cannot touch the ...
2
votes
1answer
2k views

Triple boot (OS X/Win/Linux) via rEFIt doesn't work - Linux not visible in rEFIt

Today I installed Mac OS X Lion alongside with Linux (mint) and Windows 7. To be able to boot into Linux, i've downloaded rEFIt. It opens, I see the Mac and the Windows partition in it, but not the ...
0
votes
1answer
158 views

What to do when you can't find how your device was registered?

Before Linux Kernel 3.0 (2.6.39) I can run the following command: # ifconfig wlan0 up Now I can't. I got an error saying that this device was not found. I've tried to unplug my usb dongle, plug and ...
2
votes
2answers
1k views

Does a 64bit OS consume more memory for exactly the same funtionality? [duplicate]

Possible Duplicate: Do I need more RAM for programming if I switch to a 64 Bit OS? I haven't done any proper clinical analysis but the first time I booted a 64 bit version of Linux some ...
4
votes
1answer
213 views

rsync only newest N gb of files

I have two directories, dirA whicht contains N gb of data and dirB which is supposed to contain only the newest M gb of data from dirA. When files are added to dirA, they sould also be added to dirB, ...
2
votes
1answer
276 views

Symlink all files but copy certain extensions

I'm wondering how I'd be able to symlink all the files in a dir structure and then also copy files of a certain extension in that dir. I'm basically symlinking all files within /foo/a,b,c to ...
1
vote
1answer
268 views

Corrupted (SSL) keystore / spotting bogus SSL certificates

Disclaimer: I am new to SSL, find it a little confusing, and need an answer somewhat quickly. I was told that there was a danger that my "keystore" might be corrupted, so I am trying to examine it ...
1
vote
1answer
33 views

Why does Openssl 0.9.8g suddenly changes to 0.9.8b?

I have a weird problem in which I try to use cryptodev in Openssl version 0.9.8g, but then if an error occurs or the system logs out, the version for Openssl rolls back to 0.9.8b.I have also tried ...
3
votes
1answer
3k views

How do I restore and accidental chmod (or chown, chgrp) of root directory?

I was altering permissions to log files and accidentally gave 777 to root. Doah. Could be worse I guess. And I caught it immediately and canceled the command's execution. Except the accident brought ...
3
votes
2answers
1k views

Deploy Windows Server 2008 R2 in Virtual Machine on Linux Host

Will there be any issues installing and then subsequently running a Microsoft Windows Server 2008 R2 installation on a VirtualBox VM on a Linux host (Ubuntu 11.04 64-bit)? I require Windows Server ...
2
votes
1answer
2k views

IPSec-Tools build on Ubuntu

I am trying to build ipsec-tools package from http://ipsec-tools.sourceforge.net/ on Ubuntu PC. I build the package with: $ ./autoreconf --force --install $ ./bootstrap $ ./configure ...
1
vote
2answers
145 views

Change only the user of a file

I have a textfile with name negin.txt in /home and did the following: Right click → Properties → Permissions → Advanced Permissions → Add Entry → Named User user:wwwrun Is ...
4
votes
3answers
37k views

Transfer files from Windows to Linux over the network?

I have a Windows machine and a Linux machine both hooked up to the router via Ethernet cables. What is the easiest way for me to transfer files from the Windows machine to the Linux one?
1
vote
2answers
1k views

How to remove string pattern using linux's terminal?

I would like to remove a string pattern which like this You should not remove this /*This is the part should remove*/ You should not remove this I would like to remove all the text inside the /* ...
2
votes
1answer
97 views

What is the opposite of this terminal keyboard action?

Open terminal > preferences > keyboard I have control cursor right as \005. I like it! When inside Vim, it moves the page down 1 line while keeping my cursor unmoved. Try it. My question is: how ...
3
votes
1answer
766 views

Windows Command Prompt auto-completion with forward slashes?

I switch between Linux and Windows quite a lot and it's annoying the hell out of me that the Windows command prompt won't auto-complete directory paths when I press Tab if I use forward slashes like ...
2
votes
3answers
429 views

Removing all but 1 file and 1 directory in linux

I want to delete all but 1 file and 1 directory from the directory I am currently in. How do I go about doing this? I have a directory which has three directories a, b, c and three files 1.php, ...
0
votes
1answer
709 views

FTP servers on ubuntu

I'm trying to set up an FTP server on a ubuntu virtual server (over ssh). I'm very new to Linux and servers. I have installed vsftpd, and had no problems setting it up, but now I'm clueless. How I ...
1
vote
1answer
2k views

How to specify directory for apt-get to save the packages

is there any way to specify the destination directory for each download in apt -get command to save all the downloaded packages in a custom directory instead of archive directory for offline use. If ...
4
votes
2answers
5k views

How to make commands in Mathematica 8 use all cores?

Many commands in Mathematica 8 (Integrate, Simplify, etc.) seem to only be using a single core on my system. Is there any way I can change the affinity so that it utilizes all cores for computations?
3
votes
1answer
1k views

How can I avoid that cp freezes my OS?

I am using cp to copy data like so: cp -r from_here to_there When I do that, my computer freezes and unfreezes periodically. I have 4 CPUs installed and the HD is connected via SATA. from_here and ...
0
votes
1answer
92 views

ubuntu working on thin client cannot provide accurate disk space reports

We are using thin client systems in our work environment. There is a central ubuntu server and by using thin clients, we are connecting to our homes. The problem is when I try to install an ...
4
votes
1answer
3k views

hexdump vs xxd format difference

I was searching for how to do a reverse hexdump and found xxd mentioned. However, it does not seem to work with simply: xxd -r hexdumpfile > binaryfile I then compared the difference between ...
0
votes
1answer
498 views

Encrypted remote filesystem with concurrent access - is it possible?

I'm looking for a way to store an encrypted filesystem on rsync.net which can be mounted and used by multiple clients concurrently - I've considered and experimented with many different ideas, ...
0
votes
1answer
441 views

Need some help setting up Apache user directories

I would like to have Apache serve "normal" files out of /srv/http/public, and user files out of /srv/http/[user], so the directories might look like /srv/http /public index.html - Accessible at ...
2
votes
0answers
658 views

How do you add a MAC-based routing whitelist with DD-WRT and the OpenVPN client?

I have an OpenVPN client set up on my DD-WRT home router which maintains a VPN into my workplace. Slight problem: I don't want random lusers who access my wireless AP to have access to my company's ...
1
vote
2answers
187 views

rdiff-backup over existing backup

Is it possibly to run a rdiff-backup to an existing old plain tree copy of the files to backup? What options should be used?
2
votes
2answers
319 views

How can I run a headless gvim to get syntax highlighted code converted to HTML?

I want to generate HTML files in batch to show some gvim colorschemes in action. I took my current solution from the script at http://code.google.com/p/vimcolorschemetest/, but this will open open a ...
0
votes
0answers
330 views

How to read mouse buttons from linux console using X10 mouse reporting?

I'm trying to read mouse buttons from the console without success. According to man console_codes the Linux console has X10 mouse reporting. This means that after enabling it (printf "\e[?9h") pressed ...