1
vote
2answers
4k views

Netboot - How to set a static IP

I've modified a CentOS net install image to load my kickstart file over http. This works great when running on a network that has a DHCP server. Obviously, without DHCP this fails because the ...
8
votes
4answers
16k views

Reverse DNS lookups slowing down network operations on LAN

Environment My LAN setup is quite basic: A router connected to the ISP's modem and the internet My development pc directly connected to the router The router provides DHCP but does not run its ...
24
votes
1answer
3k views

High CPU usage with CFS?

I asked a previous question to try and isolate the source of an increase in CPU usage when moving an application from RHEL 5 to RHEL 6. The analysis that I did for that seems to indicate that it is ...
1
vote
2answers
3k views

Achieving full resolution with PowerVR SGX454 on Ubuntu 12.04

I have a Mini-PC with an ASRock AD2700B-ITX motherboard, which has an Intel PowerVR SGX545 on-board graphic chip. I installed Ubuntu 12.04 on it today. Everything is working properly and is quite ...
3
votes
2answers
883 views

How to reload a background process?

I have a python script which I would like to run in the background. So I do this: $ nohup python script.py & If I am frequently making changes to the script, I need to terminate the process ...
5
votes
3answers
13k views

Recursive grep for words in a particular file type

I wanted a command line command to search all shell scripts in the filesystem for a particular word, so I asked around at work and got the following solutions: grep word `find / -name \*.sh ...
1
vote
2answers
2k views

How to restart mono web application without restarting apache?

Is there any way to restart ONE web application in mono without having to restart Apache? Currently i'm doing a sudo service apache2 restart everytime I deploy my .NET web application to mono. But it ...
3
votes
2answers
1k views

Bash prompt when my home directory is a symbolic link

I symlinked my /host/Users/Kevin folder to /home/Kevin. I also edit the /etc/passwd file to /home/Kevin. I logged out and logged back in, however when I open up a terminal it's a bash prompt like so: ...
2
votes
2answers
1k views

How can I get entries for a given time period from a 400MB+ log file?

I have a 400MB+ Tomcat log file (catalina.out). How can I pull out entries for a given time period?
2
votes
0answers
263 views

Connected external HDD slows down system

I need to connect large external hard disks (with many many files) to a system running Ubuntu. I have no idea how the Linux kernel is treating the inodes for the external drives, but attaching huge ...
1
vote
3answers
5k views

sed pattern matching

I recently asked someone at work about how to take the output of ipcs -qa and make it space delimited, so I can parse it/store it in the database for monitoring. He gave me this: ipcs -qa | sed 's/ [ ...
0
votes
1answer
99 views

Alt-Left on OSX to behave like Alt-Left on Ubuntu [duplicate]

Possible Duplicate: How to change previous/next word shortcut in bash? When connected to a ubuntu server bash shell, I can hold alt key and press the left or right keys to move forward or ...
3
votes
2answers
318 views

Linux security vulnerabilities?

A while back I started an embedded project using the 3.2.10 kernel. Now the project should go into production and the stable kernel is 3.2.16. I would prefer not to upgrade anything to avoid ...
2
votes
2answers
2k views

How do I transfer multiple files with a common suffix and prefix using an offset?

I have thousands of files whose names are of the form: sequence_1_0001.hmf sequence_1_0002.hmf sequence_1_0003.hmf ... sequence_1_0001.jpg sequence_1_0002.jpg sequence_1_0003.jpg ... ...
7
votes
4answers
4k views

Recursively rename subdirectories that match a regex

I have a media server with a folder called Series. (/media/Expansion2/Series/) In it, I have (surprise!) TV series. These are just the show names, e.g., /media/Expansion2/Series/The Big Bang Theory/ ...
7
votes
3answers
18k views

How do I remove multiple files with a common prefix and suffix?

I have many files named sequence_1_0001.jpg sequence_1_0002.jpg sequence_1_0003.jpg ... and files named sequence_1_0001.hmf sequence_1_0002.hmf sequence_1_0003.hmf ... and files ...
3
votes
2answers
5k views

Why does my thumb drive go into read-only mode after a while?

My thumb drive auto-mounts as read-write, and I test it by writing a file. Then 18 hours later, I run a cron job that does cp -f -u $i "$TARG"/$i and I get the message, cp: cannot remove ...
6
votes
1answer
694 views

Does restarting of Display Manager (e.g lightdm) restart X server as well?

If I restart the Display Manager, e.g lightdm, will X be restarted as well ?
6
votes
2answers
37k views

How to detect SLES version?

What patchlevel does this SLES machine has? 10.2 or 10.4? SERVER:~ # cat /etc/issue SUSE LINUX Enterprise Server 10.2 Kernel \r (\m), \l SERVER:~ # SERVER:~ # cat /etc/SuSE-release SUSE Linux ...
35
votes
12answers
53k views

Efficiently delete large directory containing thousands of files

We have an issue with a folder becoming unwieldy with hundreds of thousands of tiny files. There are so many files that performing rm -rf returns an error and instead what we need to do is something ...
2
votes
2answers
812 views

How to increase the timer before drive spins-down?

I use Ubuntu 12 beta on a Lenovo Z575. I noticed that the disk spins down a few seconds after the last operation. When I am working, e.g. in the vim and write quite often, it spins-up and -down ...
2
votes
1answer
813 views

Learning how to build my own linux kernel

Reference - http://www.linode.com/wiki/index.php/PV-GRUB#Building_Your_Own_Kernel In order to work with Xen, a number of options that must be selected: CONFIG_PARAVIRT_GUEST=y CONFIG_XEN=y ...
1
vote
1answer
470 views

kexec from within initramfs

Can kexec be used from within initramfs to load up a new image and kernel? It seems that kexec calls shutdown which then looks for /dev/initctl, which is missing from a busybox initramfs image. Any ...
68
votes
5answers
177k views

How do I grep for multiple patterns?

I want to find all lines in several files that match one of two patterns. I tried to find the patterns I'm looking for by typing grep (foo|bar) *.txt but the shell interprets the | as a pipe and ...
1
vote
0answers
143 views

Debian Mouse Preference?

I just loaded Debian onto a live usb today for the first time. I successfully killed my laptops annoying trackpad with the synclient command, but now I can't figure out how to get Debian to stop ...
1
vote
4answers
3k views

Renaming files works, but soft links point to the old names. How can I fix that?

For example, I'm renaming many files inside a tree like this: [bash]$ for file in `find . -name "*gsf*"`; do `mv $file ${file/gsf/msf}`; done That renames all the instances of "gsf" in file names ...
1
vote
2answers
562 views

Can I write control characters to someone else's terminal?

A lot of people log into the same AIX 6.1 server as I do with a terminal emulator that automatically interprets and runs code encapsulated by certain control characters as VBA script instead of ...
1
vote
3answers
3k views

Using awk to process ls output with spaces in filenames/paths

All, I have a script in which I use find command to filter out all png files in a given folder and list them along with their size. I want the output in the following format: someFile.png => 1.2K ...
4
votes
3answers
761 views

Does the linux kernel (specifically 2.6 onwards) have any recursive function?

Given the limited fixed size of kernel stack, my guess is that although theoretically we might have a recursive function if its recursion doesn't go too deep, pragmatism would suggest to do away with ...
9
votes
2answers
5k views

Grow/resize RAID when upgrading visible size of disks

I originally created a software RAID using a controller that could only address 2TB per disk. The disks are 3 TB disks. It worked fine, but only used the first 2TB of each disk. I have now changed ...
5
votes
2answers
31k views

How to start a windows partition from the Grub command line?

I have Windows 7 installed on my system. After I installed Windows 7, I installed Fedora on a separate partition so that I could dual boot. I removed Fedora by deleting the partition it was installed ...
4
votes
2answers
5k views

how to include a new file into a patch

I try to make a patch as introduced here. Say I have two directories pp1(modified version) and pp0(clean version), I make a patch file pp0.patch with the diff command: diff -crB pp0 pp1 > ...
2
votes
1answer
768 views

Check & filter outgoing mails in Postfix

I am looking for a way to check outgoing mails with rules like : mails sent to a particular domain mails sent without subject or with a specific subject mails with an attachment of a certain size ...
1
vote
0answers
276 views

Booting Laptop with external monitor stalls

Whenever I try to boot linux with an external monitor attached to my laptop, it hangs after checking the battery state with the following message repeated several times: ...crtc_helper_set_config... ...
2
votes
1answer
451 views

Configure & Compile syslog-ng from source, got: Threads are not supported on this platform

I have configure, gmake, and gmake installed syslog-ng-3.4.0alpha1 with eventlog-0.2.12 and other dependencies. From then output of the ./configure --prefix=/syslog --with-gnu-ld, I can see that the ...
1
vote
1answer
91 views

Location on disk to write a byte-flag?

I am writing an update utility for an embedded Linux device for which I am responsible. I'm creating a basic side-by-side setup, where updates are applied to a staging partition and then the ...
3
votes
3answers
96 views

console space eaten up by file contents

see the example below to understand my problem ; consider my console prompt look like this user@server $ ls "I opened a file temp" user@server $ vi temp "temp will open in the same window, when I ...
3
votes
1answer
473 views

Reload xserver-xorg-input-mouse

Can I reload xserver-xorg-input-mouse driver on the fly? For example, after I modify and recompile the source
6
votes
2answers
9k views

How to get networkmanager to configure domain specific name servers with openresolv + dnsmasq

I often connect to multiple network simultaneously. Each of these networks provide nameserver configuration via dhcp. E.g. Network 1: (eth0): domain company1.corp # nameserver 192.168.0.253 ...
8
votes
4answers
27k views

Change font in echo command

Is it possible to change the font attributes of the output of echo in either zsh or bash? What I would like is something akin to: echo -n "This is the font: normal " echo -n $font=italic "italic," ...
1
vote
1answer
1k views

Is it possible to redirect system-beeps to the normal audio?

When I run this script I don't here any beeps - I suppose it is because there is no speaker attached to the mainboard. Is there a way to redirect this beeps to the "normal" audio? #!/usr/bin/env perl ...
12
votes
3answers
10k views

Refresh/reload active browser tab from command line?

I'm trying to set up a custom toolchain where the browser (Firefox or, preferrably, Chrome) is often/frequently/constantly forced to refresh from the commandline. (The idea is to instantly see the ...
4
votes
1answer
308 views

Configure vim's :make to switch or open tabs on error

When I run :make from vim and there's an error, it opens that file on the error line number in the current buffer. If possible, I would prefer it switch tabs to the file if it's already open, or make ...
4
votes
4answers
815 views

Help me choose the right distribution for learning and hosting web apps

I'm coming to Linux from the Windows world, and I want to learns the ins and outs of the system in order to make it my primary day to day work and hosting environment. I'm pretty much a complete ...
6
votes
2answers
2k views

How do I create a ZIP archive that preserves only the structure of the target directory and below?

I need to create a zip archive where the unzipped result preserves the directory structure from the specified directory down. I also need to do this without actually switching to the directory. My ...
2
votes
2answers
2k views

How to copy an installed application to another computer that lacks the build tools?

On one computer I installed an application from source using configure make and make install. Now I want to install the same application on another computer that lacks gcc, make and all the other ...
1
vote
1answer
1k views

Allowing an entire subnet on Ubuntu server 11.10

I am trying to allow all hosts in my subnet to connect to a server I have running in VirtualBox with ssh. I have tried several different methods so far, none of which have made any progress. What I ...
41
votes
9answers
43k views

Mount Google Drive in Linux?

Now that Google Drive is available, how do we mount it to a Linux filesystem? Similar solutions exist for Amazon S3 and Rackspace Cloud Files.
19
votes
2answers
5k views

How does sudo remember you already entered root's password?

When using sudo on Linux, it asks for root password, but only the first time you run it. If you run another sudo command, it remember you already entered the password previously and doesn't ask for ...
1
vote
1answer
1k views

What does @ sign mean in 'ls' output on Mac OSX Lion terminal? [duplicate]

Possible Duplicate: what does the @ mean in ls -l? What does the @ sign mean in the following "ls" output? -rw-r--r--@ 1 root wheel 489 Jan 4 13:14 boot.plist

15 30 50 per page