7
votes
4answers
425 views

Sort fields inline

I'm trying to sort within a line of input over an unknown number of fields: Input: ab bc bc ab cd ef bc bc cd ef cd bc ab ef ab bc cd gh Output: ab bc ab bc bc cd ef bc cd ef ab cb cd ab bc cd ...
0
votes
0answers
208 views

Installing Fedora 16 from an external HDD?

How can I install Fedora 16 Live (32-bit) from an external HDD connected via USB? I tried it with Universal-USB-Installer and received an error message that there was no drive found to be mounted and ...
15
votes
7answers
6k views

Is there a difference of stability between Linux distros?

I've using Debian since 2010 for some home purposes and it has been stable. Is Debian still a good option if I need a server for heavy network, cpu, disk and memory usage? Last month I listened to ...
3
votes
1answer
8k views

VirtualBox guest using Bridged networking unable to obtain DHCP address

I have a computer, called Loki, that works as a virtual machine host and DHCP server. The DHCP daemon is listening on port eth0. Part of /etc/dhcp.conf: subnet 192.168.13.0 netmask 255.255.255.0 { ...
3
votes
2answers
472 views

issues with GNU tail -f and combination of commands

$ tail -f /logs/filename.log | awk '!(/list)' I am able to run this command in GNU Linux flavour But when I written in a script it is not working. test.ksh: variable="/logs/filename.log | awk ...
10
votes
2answers
3k views

Should you run automatic updates

I'm running production Centos web servers. I want to know what is best practice for running updates. Should I automate this with yum-cron or yum-updatesd? Or is there a danger of updates breaking ...
3
votes
1answer
279 views

Emacs shortcuts in term mode

I've a question about using Emacs as editor and terminal. I split my window into different windows with C-x 3for example. One of the generated Window is used as terminal with M-x term. Usually I ...
4
votes
2answers
1k views

How to set secure permissions for multiple users and multiple websites?

On a Gentoo 3.2.12 server with apache2+php, there are several websites running: /www /website1 /website2 ...etc The apache user should have read-only access to all the websites. There ...
0
votes
2answers
514 views

Optimize command yum

I would like knowing if there is a way to increase the performance of the command yum to install and search packages. I'm a very happy new user of Fedora 16.
4
votes
1answer
5k views

Arch Linux , mount disks with thunar , without password

I just setup a minimal installation of Arch , installed gvfs , thunar-volman. But mounting disk requires password , this shouldn't happen. How should I work it out ?
2
votes
3answers
3k views

Terminal - display too small to run menuconfig?

I am trying to install drivers and when I try to run the command make menuconfig I get the error message that the "display is too small" for that command? What does this mean, and how to solve this? ...
0
votes
2answers
2k views

How to install OpenSuse 11.4 through an ISO without burning it to a DVD?

How to install OpenSuse 11.4 through an ISO without burning it to a DVD? Installation needs to be done on hardware, not on some virtual machine. anisha@linux-dopx:~/tarBalls> uname -a && ...
1
vote
1answer
565 views

How does “Remote tab title format” in Konsole work?

Some terminal programs, in particular Konsole supports "Remote title format" which allows you to specify title for remote tabs which includes placeholders like remote host. How does this work? Where ...
0
votes
1answer
117 views

How to install StackApplet on Fedora 16?

Is possible to install the StackApplet on my Fedora 16 (under KDE) ?
3
votes
3answers
352 views

`$RANDOM` is not random within `find`'s `-exec`

I'm trying to find and move a whole bunch of folders on a linux box. All the folders are named the same, so I am using echo $RANDOM to provide a random number to use for a folder name. echo $RANDOM ...
1
vote
1answer
536 views

How do I shut down ports remotely without shutting myself out?

I have an Ubuntu 11.04 server in a remote location on another continent, so I have no physical access to it. I only interact with it by ssh (and scp), and intend to only ever interact with it that ...
42
votes
3answers
29k views

Multiline shell script comments - how does this work?

Recently, I stumbled upon a multiline comment type I have never seen before - here is a script example: echo a # : aaa : ddd # echo b This seems to work, hell, even vim syntax-highlights it. What ...
1
vote
0answers
819 views

Gnome update-notifier doesn't show updates when user not in sudo group (Debian Squeeze)

Gnome desktop notifications of new updates is not working on my system. I noticed that the notifications stopped working when I removed my desktop user from the sudo group (I prefer to have a separate ...
1
vote
2answers
708 views

xfs quota not reliable

I have enabled quotas on an xfs-partition. But it seems to be broken: $ echo asdf >/disk/l/data/avi/foo -su: /disk/l/data/avi/foo: Disk quota exceeded $ quota -f /disk/l Disk quotas for user avi ...
1
vote
0answers
385 views

3D Acceleration/Compiz Failure

I've installed Linux Mint 12 & Fedora 16 in VB 4.1.10 on a Windows 7 Host which has a Intel i3 processor and Intel HD 3000 graphics card. For both Linux installations I've enabled 3D acceleration ...
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
17k 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
918 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
269 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
100 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
322 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
20k 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
715 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
40k 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 ...
37
votes
12answers
56k 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
826 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
826 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
483 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 ...
80
votes
5answers
195k 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
577 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
783 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 ...

15 30 50 per page