Questions specifically about Linux but not specific to a particular distribution. If the question could apply to any Unix-like system, specify your Linux distribution in the body of your question but do not use the /linux tag.

learn more… | top users | synonyms

0
votes
0answers
12 views

OpenVZ OpenVPN IPV6 Routing Problem

I have an OpenVZ server with OpenVPN on it, and I also have IPV6 being routed to it. (Currently two /64 blocks) I was trying to route one /64 block to the main system for use with other processes such ...
0
votes
1answer
29 views

Remove Windows Boot manager?

I have two drives an SSD boot drive and a storage drive. I needed a temporary install of windows so I put it on my storage drive while leaving Linux on my boot drive. When I installed it windows ...
1
vote
0answers
28 views

Does this bug indicate an error in my btrfs filesystem of simply a bug in the 4.2.0-RC5 kernel?

I'm not sure this is the right place to ask this... I have been running a pre-release kernel (4.2.0-rc5) and yesterday had a possible disk error on my 6-disk raid-1 btrfs filesysystem. While trying ...
1
vote
1answer
48 views

Does linux have file locking protection when trying to rename/deleting files

I have a cron job that kicks off a new process every day. The process runs every 5 minutes and appends to a log file. Another cron job runs every 60 minutes. It takes some of the data in the log ...
0
votes
0answers
29 views

Linux mint black screen after installing extension

I wasn't sure where exactly extensions are added but after little search I found out that they are placed in ~/.local/share/cinnamon/extensions. Removing the contents of the following extension and ...
1
vote
0answers
22 views

Retrieve parent pid [migrated]

I am new to kernel module progrmming. In my program I need to display the process name and its parent's pid. The following is my simple_init() function int simple_init(void){ printk(KERN_INFO ...
0
votes
1answer
26 views

Silent mode, Samsung 9 Series with Ubuntu

I have a 2-3 year old Samsung Series 9 laptop, and with windows I could turn on silent fan mode, so the internal fan went quiet. This does not work with Ubuntu. Any way I can fix this?
1
vote
0answers
43 views

Why can I not cp from an NTFS mount?

I have the FUSE and NTFS-3G RPM packages installed. I've mounted an old drive I used to use and want to copy some files over from it. However cp spits out errors messages: # cp -av <FILE> ...
2
votes
0answers
35 views

bluez paired but disconnected

I'm running bluez=4.99-2 on a Raspberry with Raspian installed and an old usb dongle 0a5c:200a Broadcom Corp. BCM2035. I use an Android device to connect to it, the dongle doesn't support sspmode so ...
0
votes
1answer
19 views

Difference between GNU AutoTool ToolChain, cross GCC and Linux GCC

I start using eclipse CDT. As I was trying to create project in C. I have to encounter with these options. When I select makefile project. I had options to choose toolchain from these GNU AutoChain, ...
2
votes
2answers
54 views

Interpreting dd Input/Output error

I tried to copy /dev/Storage/Storage (an LV under LVM) to an image file using a dd | pv | dd pipeline. dd reported an error, and I want to know whether dd finished copying my disk or stopped due to ...
6
votes
2answers
56 views

Recovering ext4 superblock

I had an ext4 filesystem in an LV which got destroyed because I accidentally shrunk the partition it was in way too small. After expanding the partition back to the original size I put a new ext4 FS ...
1
vote
1answer
110 views

Problems with connecting to wifi

Yesterday I have set up wifi connection on my BananaPro with bananian, a linux distribution based on debian 7. The connection was set up with 'wpa-passphrase' and then I have typed those information ...
32
votes
2answers
734 views

Why and how are some shared libraries runnable, as though they are executables?

On 32-bit Linux systems, invoking this $ /lib/libc.so.6 and on 64-bit systems this $ /lib/x86_64-linux-gnu/libc.so.6 in a shell, provides an output like this: GNU C Library stable release ...
0
votes
0answers
28 views

Linux: Using module functions [migrated]

Let's say I have a module which has this function my_open: int my_open( struct inode *inode, struct file *filp ) { filp->private_data = //allocate private data if( filp->f_mode & ...
4
votes
4answers
49 views

How do see the memory used by a program in ubuntu?

How can I see the raw memory data used by an application ? Like , suppose I have a file name something.sh . Now I run the command ./something.sh , and then I want see all the data its accessing in ram ...
2
votes
1answer
53 views

Compare 1st Column in 2 Files and Replace 3rd Column of File 1 with 4th Column of File 2

I have a requirement of comparing the first column between 2 pipe delimited files and if they match, I need to replace the 3rd Column in File 1 with 4th Column in File 2. File 1: 111|xyz|23345 ...
0
votes
0answers
17 views

How do I track down why my system is unstable?

I am experiencing a problem where I use Chrome on my X220 with CentOS 7 (kernel 3.10.0-229.el7.x86_64). It begins when I've been surfing Chrome for a bit and have a few tabs open. Chrome may just ...
2
votes
1answer
38 views

All of system ram not available on Debian OS partition

I have a computer with a Windows 7 and a Debian OS disk partition. The computer has 12GB ram as can be seen when logged in on the Windows 7 OS. However, the Debian partition is only recognizing just ...
3
votes
3answers
64 views

Multiple column matching and adjusting with awk

I have a problem that's giving me a bit of a headache, but it doesn't tend to take much as a relative beginner. I have a file that looks like this ID A1 A2 A3 1 A G A 2 T G A ...
1
vote
1answer
26 views

How to prevent wpa_supplicant from connecting to a network, while allowing other networks

Based on this answer I try to configure wpa_supplicant as follows: network={ ssid="known_to_be_bad" key_mgmt=NONE disabled=1 } network={ key_mgmt=NONE ...
0
votes
2answers
16 views

how to use rpmbuild for el5 on el6 system

Do any of you have a idea how to build a spec file using rpmbuild for a el5 system while running on el6 host? spec is a simple packaging of py script. Difference between el5 and el6 rpm should by ...
0
votes
0answers
29 views

Intel dual band wireless 7260 not working on Kali Linux

i have installed Kali-Linux in virtual box, but i am struggling to make my wifi work for almost 3-4 days. i have tried few things, out of which best options are listed below : ...
5
votes
1answer
42 views

Using the built-in “time” command in bash rather than the external command

Working with the time command, I came across a situation where I should use the built-in time rather than the external GNU time command /usr/bin/time. So, how can I do this? I saw somewhere that ...
1
vote
0answers
24 views

Grub cryptdevice with changing device names?

I feel this is a stupid question. I have an encrypted Arch setup (without LVM) were a single disk (sdc) contains an unencrypted boot partition and the encrypted root partition. Below the output of ...
3
votes
2answers
47 views

LVM Filesystem recovery

I was trying to resize my LUKS crypt following this https://wiki.archlinux.org/index.php/Resizing_LVM-on-LUKS and I got to the partition resize with parted and seriously screwed things up. I typed 870 ...
1
vote
0answers
21 views

Is there any graphical distro that is smaller than TinyCore's? [closed]

That I can download for free. I don't want to use/learn LFS at the moment.
0
votes
2answers
32 views

How do fast Convert a .xls (MS Excel) file to .csv

How will do fast covert excel to csv. I had tried with php, perl, JavaScript. but it will take too much time. i.e for 5MB file it will take 3-5 mints
1
vote
0answers
6 views

CVMFS file access slow, although file is in cache

I have a directory in which there is a symlink to a file on CVMFS. When I first boot up, and do ls, it takes a long time (~a minute). The reason is that ls does fstat on each file to determine what ...
0
votes
1answer
10 views

member ../lib/lk/liblk.a(debugfs.o) in archive is not an object, error while cross compiling perf

i get the following error when i try to cross compile perf tool for arm ../lib/lk/liblk.a: member ../lib/lk/liblk.a(debugfs.o) in archive is not an object what i have done ? cd ...
0
votes
1answer
23 views

Does udev (/udev) consume storage?

Let's say I install a single partition (root) of linux that's 20GB. When I run 'df' it shows me the root drive that's 20GB, udev, and several tmpfs info. I believe tmpfs is just temporary and from ...
2
votes
0answers
46 views

df human-readable calculation

I was wonder why there is a difference between the reported size of a filesystem with df -h and calculating it manually. for example: The size according to LVM: # lvdisplay system/var | grep -i ...
2
votes
2answers
51 views

Best way to grep big binary file?

What is the fastest way to grep 400gb binary file? I need one txt file from hdd dump and i know some strings from it and want to find this file in dump. I tried to use grep -a -C 10 searchstring but ...
1
vote
0answers
17 views

Does the CHILD_SUBREAPER bit persist across fork()? [migrated]

When a process sets the child subreaper bit with prctl(PR_SET_CHILD_SUBREAPER, 1) (documented here), does it need to use prctl(PR_SET_CHILD_SUBREAPER, 0) to clear it after a fork?
0
votes
1answer
40 views

RedHat Glibc - multiple packages

Before I jump into the issue, I am using RedHat 6.5 and have no access to the internet to download yum updates due to environment restrictions. All I have in this case is the CD ROM (RHEL 6.5) to ...
2
votes
3answers
47 views

login shell (bash) - how to we invoke a login shell

I know what is a login shell and the difference between a login shell and a non-login shell. But what puzzles me is how it is invoked. It is said that a login shell is invoked with a - as argument ...
0
votes
0answers
14 views

Error while building Libxcrypt

I am building the libxcrypt package on my OBS and I am getting the following error: [ 37s] crypt_util.c:268:1: error: type defaults to 'int' in type name [-Werror=implicit-int] [ 37s] ...
1
vote
0answers
14 views

mysqld stops right after starting because of corrupted tables (disk full + hardware reboot) - how to fix it?

I'm dumb, I did the stupidest thing I could. On one of my servers, the SSD was full and I wasn't aware of it. The high-traffic website became working really slow, then started displaying errors, ...
0
votes
0answers
23 views

Unable to specify a paper tray with bash script

So we use a bash script that sends control codes before printing to set some things on the printer. At the end of the script it calls a standard lp command. I add the option to print to a specific ...
0
votes
0answers
4 views

Separate web directories of nginx+php-fpm

On my server I run mediawiki, owncloud, roundcube on same hardware, with same nginx and php-fpm process. But I worry about security. Because if hacker get access to filesystem of one of this web ...
1
vote
1answer
25 views

Event handling and networking

The basic use case I have in mind here is network transparent keyboard/mouse/pen/midi events. (Timing latency is not a serious issue yet.) There are two questions. If I plug in a USB keyboard our ...
3
votes
1answer
20 views

Proxify dns queries for bash command

I want to use different dns server (not tor, any dns server i set) for certain terminal command. Say it would looks like $ DNS_SERVER=8.8.8.8 dnsify ping example.com and it uses google dns. I know ...
2
votes
0answers
5 views

Get information about CVMFS transfers and files in cache

I am using CVMFS (CERN Virtual Machine File System), and it works generally pretty good, but sometimes it takes a while to access a certain file, and I would like to know what is going on. Is it ...
1
vote
0answers
28 views

Specific question about “/mnt”: /mnt is not showing the disk space [duplicate]

The disk space showing from "df -h" and "du -sch ./*" seems different for "/mnt". Can somebody help me in finding the probable reason? =============================== #df -h Filesystem ...
1
vote
1answer
5 views

Can not start pulseaudio

I have just installed pulse audio on my laptop, however I can not start it. Here is output when I run command pulseaudio -v ................ E: [pulseaudio] core-util.c: lock: Permission denied E: ...
1
vote
0answers
16 views

Set respawn limit in /etc/inittab

I have a program that is set to run according to /etc/inittab. I'm setting this program to respawn whenever it exit or killed. This is the /etc/inittab file: ac:2345:respawn:/bin/myprogram -n What ...
2
votes
1answer
63 views

Bash - shell vs environment variable [duplicate]

I want to clarify a confusion I am having in shell variable vs environment variable. I did the following test, where I have a shell variable abc and export it to an environment variable. $ $ ...
0
votes
1answer
17 views

How do I pass options to forcefsck?

I am trying to run a one time disk check at bootup by using /forcefsck but I would like to pass some of the FSCK options such as y, c, f, and v. I have tried inserting these in the file but I seems to ...
0
votes
1answer
20 views

install grub but no booting

I'm having trouble installing grub. I used to have a UEFI boot setup but it constantly failed so I decided to use normal boot instead. Unfortunately, the system doesnt boot into grub. What I did ...
1
vote
1answer
35 views

search and increase the values between the second tilde symbol and the 3rd tilde symbol in each line of a txt file

I was wondering is there any way to search and increase the values between the 2nd tilde symbol and the 3rd tilde symbol in each line of a txt file. Maybe vi can do this? For example, i have a ...