5
votes
2answers
239 views

Upstart - when a given event occurs, in what order are the jobs run?

I am using Ubuntu 10.04.3, and am using upstart as the init daemon (pretty sure this is the default). When a given event occurs, in what order are the jobs run? Specifically, I'm referring to jobs ...
2
votes
2answers
744 views

Simulate Windows Media Player media sharing

My new TV can play media that's being shared by windows computers over the local network. Unfortunately, It only sees media that's being shared by Windows Media Player (not standard file sharing), and ...
3
votes
1answer
203 views

How can I force less to stop buffering its input line by line?

When reading from stdin, less does not display any output until a whole line has been read. I use a script that prints progress on one line, without printing a newline, and I would really like to be ...
2
votes
4answers
2k views

How to view only special content of a log file?

Is there an easy way to truncate a big log file? Or in other words: How to view only special contents of a log file. E.g. How can I extract the last 1000 lines from a log file? How can I extract ...
0
votes
0answers
58 views

How can I log who creates a directory? [duplicate]

Possible Duplicate: Is it possible to find out what program or script created a given file? Is it possible to log which process/user/IP created a directory? I only found out that the ...
9
votes
3answers
23k views

How to pull a file from a server using scp?

I am on machine A and want to pull a file from machine B. A$ scp <myuserid>@hostB:<path of file in B> . it says that: scp: <path of file in B>: No such file or directory But on ...
1
vote
3answers
3k views

How can I get to a terminal or virtual console when Ctrl-Alt-F2 fails?

When X and GNOME are working normally, I can just hit Ctrl-Alt-F2 to leave GNOME and use the terminal on the second virtual console. To switch back to GNOME, I can just hit Alt-F1. Today, X or GNOME ...
11
votes
3answers
4k views

Copy file to xclip and paste to Firefox

I'm coping file to xclip cat file.txt | xclip I'm pasting without problem with xclip -o When I want to paste it to Firefox with Ctrl+V it pastes old text (that shouldn't already be in the ...
2
votes
2answers
1k views

Directory/files owned by a non-existent user

A user has created a directory with files, but the user does not exist in /etc/passwd or /etc/group. The system is a Fedora server with an FTP server and proxy which redirects to a CentOS server with ...
3
votes
1answer
3k views

Xrandr not saving setting

Hello xrandr at install doesnt detect my tv to be 1920x1080@60hz, so I have to add the setting manually and when I do that with xrandr it works this is the commands I used xrandr --addmode HDMI-0 ...
0
votes
1answer
819 views

Installing yum on CentOS 5

I have a CentOS vm that I'm currently working on. I tried to update yum and it broke, so I removed it. So I need to re-install it on my vm, can anybody tell me how to install yum on CentOS5?
12
votes
1answer
1k views

Fix Fn-keys for keyboard illumination

I've tried following the Ubuntu hotkeys/media keys troubleshooting guide and /usr/share/doc/udev/README.keymap.txt.gz to make the Fn keys work. After copying the map file and modifying ...
3
votes
4answers
2k views

Detach a daemon using sudo?

I noticed that sudo continues to run after executing any of the following lines. Is there any way to detach the daemon completely so sudo does not continue running? sudo -u user daemon & sudo -u ...
2
votes
2answers
355 views

Is it possible to detach a process started from one ssh session using another ssh session? [duplicate]

Possible Duplicate: How can I disown it a running process and associate it to a new screen shell? I started a process from one ssh session to a target machine T. The system from which I ...
2
votes
3answers
336 views

What is the recommended filesystem to use when reaching sizes of 50TB?

My initial google searches say XFS or ReiserFS, but what does the community have to say about this? What are your experiences with 50TB sizes and up? Edit: After inquiring on IRC I think I would ...
1
vote
2answers
352 views

Yum stopped working after upgrading it

I just did yum upgrade yum and now I can't use it. It keeps showin this error: [root@devlon5 www]# yum install pdftohtml epel/primary_db 100% |=========================| 3.8 MB 00:00 ...
3
votes
2answers
1k views

Why can't I change permission on a symlink on Mac?

Simple question and there is perhaps a simple answer. I have several directories in my home folder that I would like to make available as a directory on my webserver. So, what I did was to create a ...
0
votes
6answers
9k views

Script to check for read only filesystem

How can I check a bunch of systems to find any filesystem that are mounted read-only? Possibly via a script?
1
vote
1answer
807 views

cURL on Linux not compiled, although installed

cURL is not compiled into PHP. I'm running: [root@vps ~]# cat /etc/issue CentOS release 5.7 (Final) Kernel \r on an \m Then I execute yum install curl and yum install php-curl. Then: [root@vps ...
7
votes
2answers
392 views

“supervisory” software for school rooms

In a schoolroom there are 15 machines + 1 the teacher's PC. All have ex.: Ubuntu 10.04 LTS. Are there any softwares that can be used on the teachers machine that can "audit" the students 15 PC? ...
1
vote
1answer
737 views

What are appropriate execution permissions for ~/bin?

I am putting some scripts in ~/bin and am wondering what appropriate file permissions are. To extend my question somewhat, what permissions make sense for */bin folders all over my system, and why?
0
votes
4answers
496 views

What is the proper way to automate SSH/local command?

I have gitolite on a Centos 5.5 box - when a repository is updated, I need to send a command to my bug tracking appliance to get the new commands. Right now, I have the following command working: ssh ...
2
votes
2answers
4k views

Is there an easy way to list the number of unique values in a column in LibreOffice calc?

In LibreOffice calc I have a column with thousands of values. Is there an easy way to list the number of UNIQUE values? e.g. a column which had red red red green green blue blue blue would ...
0
votes
1answer
138 views

Installing a unix application?

I am trying to install depot_tools here are the instructions. I downloaded the file from this: svn co http://src.chromium.org/svn/trunk/tools/depot_tools I wanted to install it in /usr/local so I ...
9
votes
2answers
4k views

Why can't I have a folder and a file with the same name?

I've never had this problem before, but for some reason, I can't rename my folder to packages/. This is the structure: root - packages_old/ - packages When I try to rename the folder with ...
3
votes
3answers
4k views

Which device is using this logical volume?

I'm trying to remove an LVM logical volume, which I believe is not currently in use. However, when I attempted to remove it, I get an error: # lvremove /dev/vg_service1/lv_home Logical volume ...
2
votes
0answers
175 views

How do I install dvd-slideshow on Centos 5?

How do I install dvd-slideshow on Centos 5? http://dvd-slideshow.sourceforge.net/wiki/Main_Page I tried but only found a gui to install on Ubuntu. I'm using Centos 5, command line.
1
vote
2answers
358 views

Check version of RPM package available in upstream repo if I have a custom one installed

I have a RHEL6.1 machine that's registered with Redhat. I needed to install a customized version of a package (in my case, qemu-kvm), which I installed via RPM. I can see the version info for my ...
7
votes
1answer
6k views

How to fix character encoding in bash (arch linux)

I have some issues with the encoding of german umlauts in bash. It mostly is working fine, but when i am typing a invalid command, the error message generated by bash contains strange escape sequences ...
0
votes
2answers
566 views

Need to install MySQL Client libaries but RPM not installing them

I'm trying install the MySQL Client libraries for the Perl Mod of the same name but when I run sudo rpm --install -v --allfiles MySQL-client-5.5.16-1.linux2.6.i386.rpm and querying the rpm ...
16
votes
3answers
10k views

Getting size with du of files only

How can I get the size of all files and all files in its subdirectories using the du command. I am trying the following command to get the size of all files (and files in subdirectories) find . ...
2
votes
1answer
1k views

How to use tshark to do this task

I don't have any base knowledge about tshark, and it is hard to find any tutorial to help me with this. So now I have a pcap file which consists a lot of network flows; a time range; an ip addr; a ...
6
votes
1answer
2k views

Find a user's writable files and directories

How can I determine all files and folders that given user can write to? The user is nobody. Some script in bash or python, perhaps? I'm using Ubuntu 11.04
4
votes
3answers
2k views

Show lines matching a pattern and the 4 lines before each

For example, from this file: CREATE SYNONYM I801XS07 FOR I8010.I801XT07 * ERROR at line 1: ORA-00955: name is already used by an existing object CREATE SYNONYM I801XS07 FOR ...
2
votes
2answers
288 views

List files that occur lexically after/greater than a given prefix (or, run database upgrade scripts in a proper order)

I'm trying to create a shell script that runs through a bunch of SQL scripts. I've these files: $ ls upgrade/ 01-foo.sql 02-bar.sql 02-baz.sql 03-foo1.sql 04-buz.sql And I've got the version of ...
8
votes
2answers
2k views

minimal TCP MSS in Linux

The TCP MSS in Linux must be at least 88 (include/net/tcp.h): /* Minimal accepted MSS. It is (60+60+8) - (20+20). */ #define TCP_MIN_MSS 88U My question is: where did they come up with ...
4
votes
4answers
510 views

why new pid is smaller than the old ones?

Is there any chance the new process's pid is smaller than the existed ones ? I have a daemon process which will restart when be killed, I recorded the pids, and found that the pid first came smaller, ...
2
votes
2answers
2k views

Make iotop show only the most disk-intensive item

My laptop (no VM, just plain Ubuntu with encrypted home) freezes for 3 minutes a few times per day. During these 3 minutes, the disk LED indicates intense disk activity, and I can't even move the ...
11
votes
1answer
5k views

Using Linux cgroups to balance CPU performance

I have two dual-core Linux systems installed using Linux cgroups with relatively recent kernels; one is running Debian Squeeze, the other Ubuntu 11.04 Natty Narwhal. I've gotten CPU load balancing ...
0
votes
2answers
620 views

How do I set different directories for different domains on CentOS 5.5 server?

I'm running a CentOs 5.5 server and wanted to know what commands I needed to run to be able to do the following; I have 3 domains on the server - example1.com, example2.com, example3.com I wanted ...
79
votes
6answers
23k views

Why hard links not allowed to directories in UNIX/Linux

I read in text books that UNIX/Linux doesn't allows hard links to directories but soft links do. Is it because, when we have cycles and if we create hardlinks, and after some time we delete the ...
4
votes
2answers
2k views

make a linux “from scratch” using package manager?

Is there an easy way yet to make a linux system "from scratch" using a package manager like pacman, dpkg, etc.? For example, something with which you can just say you want a working computer system ...
2
votes
1answer
123 views

Worrisome HD related messages after power outage

Had a power outage two weeks ago on my BSD server that my UPS decided then was a good time to fail. Just fired it up this evening only to have the following errors show during what I would assume is ...
16
votes
1answer
573 views

How do ${0##*/} and ${0%/*} work?

I'm quite confused about the following regular expressions I found in a shell script: ${0##*/} ${0%/*} How do they work?
2
votes
3answers
3k views

Linux Kernel 3.x new versioning scheme

As almost everybody knows, Linux moved from the 2.6.x version to the brand new 3.x version. I've seen around many comments also about the fact that the versioning number for the kernel was changed ...
3
votes
2answers
993 views

Letting NFS through a FreeBSD PF firewall

I'm trying to configure my firewall (PF) on FreeBSD to let NFS traffic through. I know that NFS uses both TCP and UDP to connect to the client along with a bunch of daemons that use random port ...
2
votes
2answers
144 views

How can I create a terminal window with one tab per long-running script that I can individually kill with ctrl-C and restart?

I am working on an application that requires running many long running scripts, some of which I want to restart from time to time. Currently, I am trying to use gnome-terminal to solve this problem, ...
2
votes
3answers
707 views

export script function

I am trying to implement the solution found here. However, a coworker suggested that instead of adding functions directly to a .bash_profile or .bashrc file that instead, the custom scripts be put in ...
3
votes
1answer
2k views

Ubuntu 11.04 and large external drives

I have a Hitachi USB external 3 terabyte drive attached to a Dell Precision T1500. When connected to the computer running Ubuntu 11.04 (2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011 ...
5
votes
2answers
912 views

What is the need of the struct thread_info in locating struct task_struct?

While reading through the Linux Device Drivers, I could understand that the Process Descriptor (of type struct task_struct) has all the info regarding a particular task. The process descriptors are ...

15 30 50 per page