-3
votes
2answers
2k views

understanding ps -ef output

root@he:/home/he# ps -ef|grep init root 1 0 0 08:40 ? 00:00:02 /sbin/init root 3557 3545 0 10:09 pts/0 00:00:00 grep --color=auto init What are various columns ...
1
vote
1answer
718 views

Track down process that has notty

I have a Linux server (Red Hat 2.6 kernel) which had a spike in load due to an Rsync process which seems to have forked many times, but the process was run by rsyncuser@notty I didnt see any cron job ...
4
votes
3answers
281 views

shell script problem with using the operators

I am comparing two strings using the levenshtein distance algorithm. I got the PHP implementation of the algorithm from here. I am calling this php implementation from my shell script as below. ...
27
votes
2answers
52k views

Getting new files to inherit group permissions on Linux

I am having a problem with permissions on a Linux server. I am used to BSD. When a directory is owned by a group the user who owns it isn't in such as www-data, files created in it will be owned by ...
2
votes
4answers
2k views

Defining aliases for a certain directory

Is there a way to have an alias set for a particular directory and its subdirectories? I know I can put it in my .bashrc file, but I would like it only for a certain directory. Edit: what i mean is ...
2
votes
1answer
79 views

Understanding Unit Masks on Perf

I'm counting events with perf stat -e. I consulted my processor manufacturer's manual and found the event I'm interested in. However, not only does it have the event number, but it also has a list of ...
1
vote
0answers
967 views

Debian init.d with a working C++ daemon, unexpected results

I am fairly new to programming for Linux, and init.d scripts, and I have a problem with my init.d script adapted from an example I found via a lot of google searching. Instead of getting a status, ...
28
votes
1answer
8k views

Configuring, compiling and installing a custom Linux kernel

I'd like to try using a kernel other than the one provided by my distro -- either from somewhere else, or as customized by me. Is this difficult or dangerous? Where do I start?
2
votes
1answer
44 views

understanding od -a option

In Linux, the --type a option in od is explained as --type=       Select the format in which to output the file data … a      named ...
4
votes
1answer
59 views

Verify that partition is encrypted

I just installed Debian and as far as I can remember I encrypted my home-partition using LVM. During the boot process I haven't been asked to enter the password. Is there any way to check whether ...
2
votes
1answer
822 views

Understanding two flags and a dollar sign in a CURL command

I right clicked a post request in Chrome and selected Copy as cURL I got a cURL command that includes the following --data-binary $'------WebKitFormBound I am used to seeing cURL requests that ...
3
votes
3answers
12k views

Whisker menu remove keyboard shortcut

Using Linux mint 16, with XFCE as desktop environment. I have a problem removing the default keyboard shortcut (Super_L), for opening the Whisker menu. The shortcut shows up in Application shortcuts, ...
2
votes
4answers
18k views

awk + print awk output in one line

When I run the following hasys command with awk , I get output with machines names as the following: hasys -display|grep Shutdown | awk '{print $1}' machine1a machine1b please advice how to ...
2
votes
0answers
409 views

RNDIS Server to make a computer as a peripheral

First of all my goal is this, have a computer as a peripheral device to connect it to anyone's computer with ssh protocol or web. The idea is doing this by using a plug and play USB cable . Facts ...
1
vote
1answer
1k views

Why does dig take much longer than DNS query time?

I'm investigating slow DNS responses on Ubuntu, I have installed bind9 to improve times from local cache, but still something is odd. What could make dig wait for 10 seconds and say that query time ...
2
votes
1answer
233 views

impact of allowing Apache to execute some commands on the server

I have an Ubuntu 12 web server running apache2, I developed a graphic interface using PHP to make users able to create their own email account by themselves ( exec() function), so I used visudo to ...
0
votes
1answer
398 views

Which Linux distributions offer a stable release based on the 3.10 kernel?

I'm looking for a stable Linux distribution (preferably a well-known one) based on the 3.10 kernel. So far I have identified Gentoo as one such distribution. But I'm having trouble finding any others. ...
4
votes
4answers
4k views

How can I open a file that results from grep?

I often grep a bunch of files to find a line, and then grep returns one result. Rather than copying and pasting the filename into a new command, I'd like to be able to open that one result with an ...
1
vote
2answers
426 views

Change FreeBSD's fetch with aria2 or axel

FreeBSD uses FETCH command in order to download source codes or binary packages it needs to compile or install. If you are on slow connection like café or shared band this process become painful. ...
4
votes
3answers
11k views

CentOS how to update Ant Version to 1.8.x and higher?

I'm using CentOS 6.5 and installed Ant by using: yum install ant It came with Ant version 1.7.1, but I need the latest -- version 1.8.0. How to properly get the latest Ant version 1.8.x (or ...
1
vote
0answers
2k views

IPTables “iptables table `filter': Table does not exist (do you need to insmod?)”

I'm trying to get iptables working for my embedded Debian system, kernel version 2.6.35.3-571-gcca29a0. I've tried to enable iptables support in the kernel by selecting these options (this is a diff ...
1
vote
0answers
193 views

Can't use QWERTY layout after make IBus work with Dvorak layout after reboot

To keep my Input Method (Bogo or Unikey) of IBus working with Dvorak keyboard layout after reboot, I use sudo dpkg-reconfigure keyboard-configuration to set keyboard as Dvorak, and go to tab Advance ...
1
vote
2answers
115 views

how to add number of days to date's output?

I'd like something like: $ date --date="05/02/2012" "+2 days" would give me "4 may" as output.. how ?
1
vote
3answers
202 views

How to create a kernel source tree?

I am reading a book on creating drivers on Linux, I do not have too much experience with Linux, I have installed a quite a few distros before but I have always used windows as my main operating system....
1
vote
1answer
1k views

Removal of extra spaces but not the newline from csv files

I have to compare 2 files by using comm command like the below comm -23 csv1 csv2 > csv3 I seem to face the problem that both the csv are generated from different sources (csv1 is extracted ...
2
votes
1answer
65 views

How can I install tactile audio keys on my latitude?

I have a Dell latitude 6430u which has three tactile keys for mute/audio decrease/audio increase. On debian (sid), either with xfce or gnome, these keys don't work well. The mute key has never work. ...
2
votes
0answers
492 views

What is the kernel syntax when booting from ZFS?

I'm trying to write a grub.cfg completely from scratch that will boot one of several FreeBSD systems off of a single ZFS pool named tank with a set of root file systems named root1, root2, root3. ...
0
votes
1answer
7k views

How to ignore “certificate is not yet valid” errors

I have systems that sometimes lose time drastically due to low RTC battery voltage such that the system time lies outside these boundaries (/etc/openvpn/certificate): Not Before: Jun 18 16:40:18 2012 ...
1
vote
1answer
1k views

No write access to $HOME directory

While loading the KDE UI Linux boots to kdm, then I get a "bad" sound and black screen. Logs reveal the line in the title. I can ctrl - alt - F4 just fine from there. Tried: chmod 755 on /,/home,/...
12
votes
3answers
96k views

Use scp to transfer a file from local directory X to remote directory Y

I took a look around at other questions here and at various "scp usage" tutorials on Internet, but I can't sort out what's wrong. I'm using Linux Mint and I'm trying to figure out how scp works. I'...
0
votes
1answer
274 views

Backlight powersaving: Working in X11, but backlight does not turn off on virtual terminal. Gentoo, Asus EeePC 1015bx

I'm facing a puzzling issue on my laptop, an Asus EeePC 1015bx, which has an AMD C-60 APU and is running Gentoo. Although the screen powersave functions are working in X11, the backlight does not ...
1
vote
1answer
2k views

What does the --hint option in grub2's search command do?

I'm looking at the official GRUB2 docs for the search command, as found on http://www.gnu.org/software/grub/manual/grub.html#index-search Command: search [--file|--label|--fs-uuid] [--set [var]] [--...
0
votes
0answers
249 views

Gnuplot and process-substitution

I have a log file where I need to cut out two values at different positions. these are: time and dQ in my file. The main problem is the paste I think. cause the other utilities work pretty well on ...
4
votes
1answer
157 views

How does Linux handle 2 identical destinations in its routing table?

I have this is my routing table (in that order): 10.3.68.0/22 via 172.16.100.9 dev vlan4 10.3.68.0/22 dev eth3 proto kernel scope link src 10.3.69.254 eth3 has ip 10.3.69.254/22. Why does ...
9
votes
2answers
1k views

Write lines to a file from less

While in vim I can write a range of lines from the file I'm viewing to another file. For example, :1,10 w outfile.txt will write lines 1 through 10 to outfile.txt. Can I do the same while I'm ...
14
votes
7answers
11k views

Terminal-based spreadsheets and wordprocessor?

Are there any (good) terminal based (ie. runs in a VT, not in GUI/X) spreadsheets or wordprocessors for Unix/Linux? Can anybody remember the name of such programs which were popular before (eg. ...
1
vote
1answer
49 views

Program for choosing computers to run X clients on - what are such programs called?

At my college some 20 years ago they ran HPUX and had several X-terminals (terminals with graphic-cards that ran an X server, but left the running of X clients to the main computer). The college had ...
1
vote
1answer
527 views

How do I exit full screen after enabling via the right click context menu of kwin (KDE)?

This is related to my other question: Kate has no window borders, and thus no minimize, maximize, and close buttons In KDE, after right-clickin on any window border, or it's entry in the task manager,...
2
votes
0answers
51 views

Set list of applications allowed for execution by unprivileged user

I am working on a project of security enforced Linux-based system (kernel 2.6.32 + Gnome 2 + Centos package base mostly). We need to implement the restriction of execution of unallowed executables. ...
4
votes
3answers
7k views

solution to rotate log files

I am running a daemon process that will have to run indefinitely (a 'service' so to speak) and wish to log its output. A simple solution like: ./long-running-process > log.out & ... fails as ...
2
votes
1answer
9k views

Can I safely disable abrtd on CentOS 6?

There is this nice new daemon called abrtd running on CentOS6. This was inherited from upstream RHEL6. There this can be used (for instance) to automatically generate service-requests. In an ...
0
votes
2answers
105 views

Is there a way to boot linux directly from MBR?

Inspired by UEFI, I want to skip the stage of the bootloader (grub, lilo, syslinux) and boot linux directly. Is this possible? Cant I just boot the kernel directly, or have a minimalistic bootloader ...
1
vote
0answers
59 views

Kiwi produces huge initramfs

I'm using Kiwi to build a boot CD based on OpenSUSE 13.1. I want the disk ISO image to be as tiny as possible. I managed to get the read-only filesystem down to only 100MB, but for reasons unknown, ...
6
votes
1answer
683 views

sudo testing for credentials

I have a working bash script, that may run from 0 to 8-9 minutes. It requires sudo if it finds a problem and needs to change permissions/ownership on a file. I do not want to wait for the sudo prompt, ...
1
vote
1answer
415 views

what starts runsv on a Debian system using init and how?

A bit of background: I installed git-daemon-run on a Debian system, and now git-daemon starts at boot automatically, even though there is no init script for it in /etc/init.d. I did some digging and ...
0
votes
1answer
80 views

How to prevent .jar files from going into /etc when installing OpenJDK from rpm?

After I found and installed OpenJDK in Fedora 20 using Apper I noticed there is a series of directories starting with jar prefix under /etc/alternatives, specifically: /etc/alternatives/jre (93,4MB) /...
8
votes
2answers
428 views

Kill a process if it goes quiet for a certain amount of time

I have a utility that has a nasty habit of going quiet and staying there, I already know how long into the process it does this so I am using timeout to fight this, but sometimes it does it before ...
5
votes
1answer
2k views

Cannot delete broken symbolic link

I have a symbolic link formerly pointing to a Dropbox directory. I don't know what I did wrong, but apparently now it points to itself. hyper@mypi:/home/hyper/test$ ls -l total 1024 lrwxrwxrwx 1 ...
1
vote
0answers
322 views

How to disable PAE feature of kernel, after installation?

I am using RHEL 5.3(x86) as a base platform for my development purpose.My machine's spec is as follows: Intel, Core-i3 Processor @ 2.5GHz 4GB RAM Problem is whenever I am attempting to install the ...
9
votes
1answer
15k views

How to find out in which order /etc/init.d scripts are load on Debian?

I want to run one sysvinit script before another and figured out how to do that. To make sure, this actually happens in the the order I like, I would like to see a list, in which order that happens. ...

15 30 50 per page