Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

0
votes
0answers
16 views

quick question about kernel modules [migrated]

I'm very familier with linux (been using it for 2 years, no windows for 1 1/2 years), and i'm finally digging deeper into kernel programming and I'm working a project. So my questions: Will a kernel ...
4
votes
3answers
56 views

mkdir permissions do not correspond to umask (change depending on location)

Whenever I create new directories in my home (or its subdirectories) they do not have write permission, even though umask is set correctly. Files I make DO have write permission. [mmanary@seqap33 ~]$ ...
1
vote
0answers
28 views

Linux - iptables - get YouTube streaming bytes usage

How do I get bytes usage using iptables for a particular IP, including YouTube streaming videos? Currently, I am using the following IP tables rules to get data usage by IP address: sudo iptables -I ...
1
vote
1answer
25 views

Can't write on recently created EXT4 partition

On a new external hard drive (Intenso 05-1204-18A), I made (with GParted) two partitions : Disk /dev/sdc: 931.5 GiB, 1000204883968 bytes, 1953525164 sectors Units: sectors of 1 * 512 = 512 bytes ...
2
votes
1answer
36 views

Can someone explain in detail what “set -m” does?

On the man page, it just says: -m Job control is enabled. But what does this actually mean? I came across this command in a SO question, I have the same problem as OP, which is "fabric cannot ...
14
votes
6answers
6k views

What's the best way to partition your drive?

I usually install Linux on a single partition since I only use it as a personal desktop. However, every now and then I reinstall the box. And what I do is to simply move my files around with an ...
0
votes
2answers
16 views

non-breaking space sometimes appears in Geany (my standard text editor)

I use Geany for all my coding, in my linux Mint-MATE install. Occasionally, i have a problem where a non-breaking space (char code 194) is present instead of a normal space character (32). This just ...
1
vote
1answer
358 views

Unable to set capability CAP_SETFCAP by user

The question is about capabilities. I need to allow user to set capabilities using setcap. When I call it by root all goes fine, eg $ sudo setcap cap_dac_override,cap_dac_read_search+ep ./bin_file $ ...
1
vote
0answers
25 views

How to diagnose display issues in linux?

I have recently upgraded my system to Debian Jessie (testing) and everything went smoothly, except the occasional distortion when the screen is updating. When a part of the screen needs to update, ...
11
votes
5answers
7k views

How to recover a shell after a disconnection

Am doing some work on a remote centos 5.6 machine and my network keeps dropping. Is there a way i can recover my hung sessions after i reconnect? EDIT: am doing some updating and installing with yum ...
-4
votes
1answer
22 views

I would like to copy some files from a usb to a ssd hard drive running CentOS 7 How do I do this? [on hold]

I would like to copy some files from a usb to a ssd hard drive running CentOS 7 How do I do this? is it different then centos 6.5 instructions?
0
votes
0answers
12 views

build X11R7.7 from sources - in which order

Is there an automatic way to understand the order in which individual libraries of the X11R7.7 package should be built when I want to build all of util, lib and xcb?
0
votes
1answer
46 views

How can I get a shell script to change directory for me? [duplicate]

here is a small test I ran, to try and move me back to root: #!/bin/bash pwd cd / pwd It returns the current working directory, and then the correct new one, but when the script finished executing, ...
1
vote
0answers
82 views

SIGINFO on GNU Linux (Arch Linux) missing

I am developing an application and I would like it to print some runtime stats to the console on demand. kill and signals came to my mind immediately. Reading through Unix signals on Wiki, SIGINFO ...
19
votes
4answers
24k views

How can I update to a newer version of Git using apt-get?

I've just set up a new machine with Ubuntu Oneiric 11.10 and then run apt-get update apt-get upgrade apt-get install git Now if I run git --version it tells me I have git version 1.7.5.4 but on my ...
4
votes
1answer
486 views

Gentoo Live CD from Hard Drive: No Mountable Filesystems on root after modules loaded

I am attempting to install Gentoo on my PowerPC Mac. I have reached the point where I can boot the Live CD (I have no functional CD Drive, so it is from a spare Hard Drive), but after the kernel is ...
3
votes
1answer
472 views

USB keypad (HID) not responding in linux but in grub

An external USB keypad I'd like to use gets recognised as a USB HID device, but it is not functional when Linux is booted. It does work when plugged into a Windows desktop and it does work while in ...
2
votes
1answer
16 views

SSH demon not installed in linux embedded device

I have an embedded device which runs linux(arm). I am trying to update the executable through ethernet using scp command. But I got to know that sshd is not running in the device . I need to install ...
0
votes
0answers
11 views

Hard disk power cable possibly slipped out during copying - now directories empty, error shows “dir: cannot access .: input/output error”

I am pretty sure the powercable to one of my harddisks fell out during copying. The result was two personal backup directories are now empty, but still extant, while the rest of the directories are ...
2
votes
2answers
31 views

Is there any Syscall table just like Interrupt Table?

Are the system calls like fork(), exit() saved in some kind of function pointer table , just like the Interrupt Descriptor Table ? where does my OS go when I call my fork() or exit() ? I guess this ...
1
vote
1answer
578 views

Can't find vgaswitcheroo directory in CentOS6

I've installed CentOS6 on my laptop, which has a built in VGA and a discrete (AMD) VGA. I used to switch AMD video off in other distro's (e.g. Fedora, Arch) using: $ echo OFF > ...
0
votes
2answers
19 views

Unable to connect to certain IP address, but able to connect to other IP in same subnet

I'm running a 14.04.2 LTS ubuntu box in a DMZ with IP of 10.10.30.35 and I have the following network mystery. I'm trying to connect to another unix box outside the DMZ but in our internal network at ...
-2
votes
0answers
16 views

Script help! Storing a list of services/ports [on hold]

Need help making a script. Script needs to store a list of services/ports, hard-code an email for notification, and to log the info STDOUT.
-5
votes
2answers
57 views

How to average a column in a text file without using ' character? [on hold]

I need to do it without using the ' character. I could do it like this: awk '{sum+=$5} END { print "Average = ",sum/NR}' except this contains a '.
2
votes
2answers
72 views

How to batch resize all images in a folder (including subfolders)?

I have huge, 12GB, gallery on the server, full of images in various subfolders. Those files are too big and not used in full resolution. I need to resize all the images down to 820px wide (keeping ...
-3
votes
1answer
16 views

How to create different device names in one terminal as shown in fig

The image contains 3 names i.e 1)HNHBMaster 2)HNRRegion1 3)HNRRegion2 can anyone please explain how to get it. THANK YOU
0
votes
1answer
10 views

Changing manifest values in RPM built with FPM

I'm using the delightfully–named Effing Package Manager (FPM) to build RPMs and DEBs for a project. After publishing the generated RPM with createrepo, I noted the following lines in the generated ...
2
votes
2answers
36 views

Unable to mount root filesystem rw with journal

Trying to understand the whole journalling setup and from what I've read and tried, it's eluding me somehow. The root filesystem is ext3. Examining it via tune2fs -l /dev/root shows that ...
1
vote
1answer
552 views

Possible to download all the packages from “groupinstall” and then run ( yum --nogpgcheck localinstall *.rpm )?

This is the original command: yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts" I would like to create 4 folders for these. (1 folder for each). mkdir Desktop mkdir ...
5
votes
1answer
103 views

When running 'su - username', pam_group doesn't add additional groups from /etc/security/group.conf but sshd login does?

I am having trouble determining why su doesn't behave as the PAM configuration would imply. In short, using su to become another user should load secondary groups according to PAM configuration, but ...
4
votes
3answers
49 views

Exchange data between two identical hard drives

I have two identical hard drives (same model) in my system. One is used for data which is not important (could be downloaded again but would take an eternity). The other is my system disk. Now my ...
0
votes
0answers
14 views

ubuntu 14.04, error regarding package file read issue

E: Malformed line 58 in source list /etc/apt/sources.list (dist parse) E: The list of sources could not be read. I am getting this error every time I am trying to run the update command.
0
votes
0answers
7 views

installing r8168 driver in centos 4.8

I have installed cent os 4.8 and I am not able to connect to internet from that system. After searching on the net I found that the system has r8169 driver instead of r8168. Now I am trying to ...
0
votes
1answer
34 views

how to write a shell script to run multiple programs

I want to run two programs ssh -f mike@c15-0330-02 'cd /home && nohup Rscript L_1.R> L_1_sh.txt ' AND ssh -f mike@c15-0330-03 'cd /home && nohup Rscript L_2.R> L_2_sh.txt ' I ...
1
vote
1answer
32 views

Half Solved | Grub error: unknown filesystem. (all partitions are unknown)

So, there are thousands of questions related to this all over the internet, but, after days of searching, I still can't find a solution! I have a Turnkey server that was pre-configured with MineOS, ...
4
votes
1answer
1k views

One host, two virtual machines that cannot ping each other. How to solve

We have Virtual Machines operating within the KVM environment. We setup one as a dev server running Apache etc., and the other as a Windows development environment. The two environments are setup ...
0
votes
0answers
26 views

URXVT network issues

So yeah. Whenever I maximize URXVT my friend's computer's League of Legends client, while in-game, latency goes up to around 3,000. Wireshark, ntop and tcpdump do not reveal any outgoing packets ...
1
vote
0answers
31 views

error: cant't find command linux when booting system

I need some help with a problem when booting. Recently I've installed CentOS 7 on my pc, previously I had debian 7 and manjaro installed. When I installed manjaro I overwrote the bootloader of debian ...
6
votes
3answers
2k views

Send command to detached screen and get the output

I've been searching to find a way to send a command to a detached screen session. So far, so good. This is what I've come up with: $ screen -S test -p 0 -X stuff 'command\n' This command works as ...
1
vote
1answer
169 views

Warnings/Errors when running clamav/clamscan, scanning 3TB hard-drive

What I'm trying to do: I'm trying to scan my File-Server for malware, and I'm using clamav/clamscan, where the man page say's it can scan files up to 4GB. This man page states: --max-filesize=#n ...
0
votes
2answers
31 views

Confusion about Linux/Redhat source rpm

I have following 2 packages installed on a Redhat Enterprise 7.0 instance bind-license-9.9.4-14.el7_0.1.noarch bind-libs-lite-9.9.4-14.el7_0.1.x86_64 The "repoquery -i" command tells me that the ...
-1
votes
1answer
36 views

How to remove duplicate lines from file? [duplicate]

I have file for example 'a' aaa aaa bbb ccc ccc bbb ddd After executing uniq a c i get file 'c' aaa bbb ccc bbb ddd How to delete duplicate bbb lines?
1
vote
2answers
40 views

how to use ssh command to connect to multiple computers and send different commands to each computers at same time

I need to connect multiple computers to run different programs. For different computers, I need to send them different command. How to use ssh command to connect to multiple computers and send ...
2
votes
0answers
9 views

Scripted write-then-read from Unix domain socket using socat

I have a simple server listening on a Unix domain socket (on a CentOS box in case that's important). When I send the command "DATE" to the socket it writes back a welcome message and then "APRIL 15 ...
1
vote
1answer
18 views

Where (the directory) should I put my newly created module in the kernel?

I have created new module code. And want to compile it for my kernel. But I am not sure about I thing. Should I copy it to some designated directory before I start the compilation? Or I can just ...
3
votes
1answer
495 views

Laptop keyboard occasionally stops working

I have a dirty solution that is to plug a USB keyboard in and execute the following command: setxkbmap -rules evdev -layout us -model evdev Afterward my keyboard will work. This solution only ...
-2
votes
0answers
16 views

How can I get lease database output [on hold]

egrep "lease|hostname|hardware|\}" /var/lib/dhcp/dhcpd6.leases # The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1-ESV-R4 ...
2
votes
1answer
480 views

Wireless constantly reconnecting on Ideapad running Arch

I just bought a new laptop, a Lenovo IdeaPad U330 touch, and after some struggle (with the Secure Boot stupidity) I have managed to install Arch Linux. I have configured my system, installed all the ...
1
vote
1answer
17 views

Sharing the loopback interface across network namespaces

I'm interested in using a separate namespace for running a VPN client, so that every process I run into that namespace accesses the Internet through the VPN. That part I've managed to accomplish. ...
3
votes
5answers
425 views

How to find out if a system uses SysV, Upstart or Systemd initsystem [duplicate]

Is there a simple way to find out which initsystem is being used e.g by a recent Debian wheezy or Fedora system? I'm aware that Fedora 21 uses systemd initsystem but that is because I read that and ...