These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

1
vote
0answers
30 views

Static CDC ACM device binding

I'm using a buildroot linux on IMX6 board. I have 2 CDC ACM device, a reader and a modem. My modem have always been on /dev/ttyACM0 and I want it to stay that way. The problem is that my reader is ...
1
vote
1answer
25 views

insmod: cannot insert './intrpt.ko': Function not implemented

I'm writing a kernel module that receives interrupts for mpc8308 (PowerPC) board. when I make the code for Ubuntu and my current version of kernel it works well with interrupt of keyboard, but when I ...
3
votes
2answers
158 views

Why doesn't iptables receive the marked packet?

I was learning the ping command options. In that I found the -m option to set the mark for a packet. The below command sends the packet with marking of 10 to the 192.168.2.65. ping -m 10 ...
1
vote
0answers
18 views

How to customise the output format for linux log when view log in terminal?

when I run this monitor command $ sudo tail -f /var/log/ufw.log | cat -n 1 May 23 03:04:25 Vultr-Ubuntu14-Tokyo kernel: [51809.671147] [UFW BLOCK] IN=eth0 OUT= ...
-3
votes
1answer
20 views

How to make user but without access to public_html

How to make an user for linux, who can't access public_html folder? UPDATE: Indeed I want to use http://example.com/~user/ but user doesn't has any permission on other rootdir. How can I do it?
0
votes
2answers
11 views

Custom scripts under /etc/profile.d and /etc/init.d - rhel6 and rhel7

I need to start my script during boot time. I have read that the scripts under /etc/init.d & /etc/profile.d are sourced during system startup. How different are these directories? Other than the ...
1
vote
0answers
12 views

xcalib not saving brightness settings and other issues

I have certain issues which I'll list below, I hope you can help me: 1.) I have xcalib installed, I use it to manually change my contrast settings (something not possible in ubuntu directly, at least ...
0
votes
1answer
20 views

yum + list all available security updates without installing them, on redhat 5?

To list all available security updates without installing them, I run this and this syntax is working on redhat 6 and 7 # yum list-security --security please advice what is the syntax for redhat ...
1
vote
1answer
24 views

Docker container on Red Hat Linux server 5.9

Can I install Docker on Red Hat server 5.9 so I can take an image container from an installed software and move it to another server? Or should it be enough to update the Kernel up to version 3 so ...
1
vote
0answers
15 views

mount usb disk via udisksctl need root privilege

I don't know why, but on my ubuntu 16.04 laptop, udisksctl can work properly without root privilege. However, when I plug this disk to centos 7, the execution of same command needs root privilege and ...
0
votes
0answers
28 views

Login as normal user always results in root account [on hold]

I installed slackware and added a user. When i log in as the user everything looks well however it is logging this user as root. I can't see where I went wrong. When I try to open an application for ...
3
votes
0answers
27 views

Git with multiple users on other systems using setfacl?

I'm setting up a git environment where multiple developers will work with per project. We have 1 server running git, and 2 seperate servers, 1 live and 1 dev. on dev I created a group and added the ...
1
vote
0answers
30 views

pam su authentication with RSA token [on hold]

We are implementing RSA token authentication in our company and management decide su - should ask for RSA token passcode for individual (listed users) user. So no-one is going to get root password: ...
1
vote
0answers
7 views

Networking failed to start on Alpine linux

I keep having an error when booting Alpine Linux Networking failed to start. I'm using a RPI3 which is connected by an ethernet cable to the box. Here's the /etc/network/interfaces : auto lo iface lo ...
1
vote
0answers
26 views

How can I preseed the answers to the prompts in this deb?

I am trying to install jitsi-meet on a vm via automated script . However, the deb package prompts for a hostname. How can I set this value from a script? I have tried using debconf-set-selections, ...
-3
votes
0answers
17 views

Wine installation issues

Yesterday I was installing Wine in kali linux, (dual booted with windows 8.1), as I entered wine install there came an error, wine: cannot find L"C:\\windows\\system32\\install.exe" how to deal with ...
-4
votes
0answers
18 views

Comparing two files Script in UNIX [closed]

I want a script for Comparing two files in UNIX and place an echo error in log file if the files are not matched from source to destination can anyone help me /?
3
votes
2answers
67 views

Systemd : How to execute script at shutdown only (not at reboot)

There is a lot of solution here to execute a script at shutdown/reboot, but I want my script to only execute at shutdown. I've tried to put my script in /usr/lib/systemd/systemd-shutdown, and check ...
1
vote
0answers
31 views

External Fragmentation in FreeBSD due to unmovable Kernel pages

Is external fragmentation an issue in FreeBSD due to unmovable Kernel pages similar to what Linux (1) (2) faces?
0
votes
1answer
30 views

Remove Some content from file in unix [closed]

I have a file which is having some names , i want to remove some of the names from it . eg the files has names.trg , i want to remove all the names ending with .trg how can i do that in unix ? ...
1
vote
2answers
28 views

Getting the original command invocation from /proc/self

I'm trying to run some startup code in all procesess via the dynamic linker. The code should do stuff based on the zeroth argument of the process. I'm getting the arguments from /proc/self/cmdline ...
1
vote
1answer
14 views

Best NFS scenario to both read and write at certain times?

The problem that I'm facing is that I have an NFS NAS that I use to store and export a home directory, media files like music, movies, etc. The critical things are backed up, so spare the comments ...
-2
votes
1answer
27 views

Can I install Kali linux with out Ethernet card

I want to install Kali linux on my Laptop, but I don't have a Ethernet card. It is possible to install Kali with out Ethernet or with wifi interface ??
0
votes
0answers
11 views

Performance problem Fedora 23 32-bit @ Dell D630 4GB/Nvidia

I have installed Fedora 23 32-bit at Dell D630 4GB with NVidia Quattro NVS 135M (nvidia.ko, not nouveau.ko). And I have permanent performance problem as X-Windows (Gnome) are very slow and laggy. I ...
4
votes
1answer
67 views

Why can't I execute Android x86 executables on Linux

I am trying to port Android apps to Linux (don't laugh :) and I have come across a problem. When trying to execute an Android executable (app_process) after adding the executable permission with ...
0
votes
1answer
36 views

Build Linux for a Raspberry Pi without /opt/vc?

Now that the vc4 DRM/GBM driver has been making progress, is it possible to build Linux (not just the kernel but the entire operating system eg. Linux From Scratch) without libraries and programs from ...
0
votes
0answers
25 views

Ubuntu 16 stop lightdm and start xinit/xterm

I am working with Ubuntu 16. I have been able to stop the desktop environment using: sudo service lightdm stop Now I would like to start, from another terminal in a console environment, the X ...
2
votes
0answers
13 views

WiFi card disappears after reboot, but not after cold boot

I have an Arch-based server (Zotac Nano, AMD Kabini-based) which doubles as WiFi access point using a miniPCI Atheros WiFi card. If I start it form cold boot (as in “it was off”), then everything ...
0
votes
0answers
11 views

Puppet Agent certificate issue

When iam trying to connect to master server from client this is what iam getting:- puppet agent -t Error: Could not request certificate: Error 400 on SERVER: The environment must be purely ...
-4
votes
0answers
33 views

Do you really need antivirus software for Linux desktops? [closed]

Recently i got free antivirus for Linux from Comodo. But right now i don't install my desktop & laptop. Really antivirus software required for Linux desktops / Laptop.
-1
votes
0answers
20 views

I like to create a command line database search tool.. [closed]

My aim is to create search tool in command line. I have a number of KB articles and default fixes for some issue maintained in my kjots. I want to create a command line search tool.. That will search ...
0
votes
1answer
18 views

How to use guillemets with us altgr-intl layout?

I've set up my keymap as US international with the following command: $ localectl set-x11-keymap us apple_laptop altgr-intl which I think is equivalent to the following setxkbmap command: $ ...
3
votes
5answers
308 views

Increment index in file

Alright, it seems I cannot find a way to do what I need. Let's say I have a text file A like this (freqBiasL2[27]) (SatBiasL1[27]) (defSatBiasL2_L1[27]) (defSatBiasSlope[27]) ...
0
votes
0answers
12 views

How to automatically generate the device file in linux [closed]

i have written an PCI Driver and inside probe function of it i have block register using register_blkdev(major, "expt"); But i cannot see any device file it has created in /dev directory. The vendor ...
-2
votes
2answers
47 views

find all jpg images from specific directory and copy it to other directory

How do I copy all the jpg images [files whose names end with .jpg] that exist in the directory /usr/share/backgrounds into to the jpg directory in /week/pictures/final/jpg then redirect any error ...
1
vote
1answer
184 views

What are the “cpu” and “memory” options on the mount command?

I found some mount commands in a shell script: mount -t cgroup -o memory none /path/XXX mount -t cgroup -o cpu none /path/XXX The question is what does the cpu/memory option mean? I search the ...
1
vote
0answers
19 views

How to rename boot options with dual boot

I have Ubuntu and Windows 10 installed side-by-side, and the BIOS tool that's installed on the computer is called "Aptio Setup Utility". How can I rename the boot options, not just for the OS I'm ...
1
vote
1answer
24 views

How to obtain counters for swap-in/swap-out on Linux?

I'm trying to obtain counters for swap-in/swap-out activity on CentOS 6. The intention is to feed raw data into RRDtool to generate graphs, and use it to generate alerts. I've had a look at common ...
1
vote
2answers
28 views

Search tool with file content indices

Are there any file search tools like gnome-search-tool (gui where I can select several options, like age of file, file-size, owner, etc) that uses DB indices for not only the file name but the file ...
0
votes
0answers
22 views

Install PostgreSQL 9.5 CentOS 7

I'm trying to install PostgreSQL 9.5 on CentOS 7. I've searched online and to get access to the 9.5 RPMs it requires installation of pgdg95 via the following command: sudo rpm -ivh ...
3
votes
1answer
60 views

What is the overhead of using subshells?

Hopefully this question is not too generic. I am very new to shell scripting and I come from a computer architecture/non-scripting programming background. I have noticed on the scripts at my work that ...
1
vote
0answers
25 views

How to have systemd-resolved correctly come alive after hot plug?

Setup I am playing with a small embedded board running Debian Jessie. I am using as much systemd stuff as I can, including the networking stuff. I have added the file: ...
0
votes
1answer
12 views

Cache not filling error when using mplayer to read from stdin

I have a program that's generating audio and I can't get mplayer to play it. I'm doing ./myprogram | mplayer - -cache 1024 -cache-min 30 -noconsolecontrols And I get the message Cache fill: X% (Y ...
2
votes
0answers
47 views

Sort mount points by mount time

With no command line arguments mount displays all mounted file systems, e.g.: /dev/sdy8 on /bar type ext4 (rw,relatime,lazytime,data=ordered) /dev/sdx6 on /baz type ext4 ...
0
votes
0answers
30 views

Make debian use dual network ports for a gaming server

I have a server that has 2 LAN ports (or internet ports or whatever you call them) and i was wondering if its possible to make Debian Linux to use both ports? I will need maybe a link or somthing. I ...
0
votes
0answers
16 views

Linux cluster file system issues [closed]

Redhat linux cluster GFS 2 mount is of size 1 TB but winscp is showing size of the directory as 101 TB. what could be the reason? RHEL 6.6, 4 node cluster
1
vote
0answers
31 views

Different mount output with and without initramfs

I need to create an initramfs to load a driver to access EMMC which contains the root filesystem. In my current kernel build, the EMMC driver is modular (sorry, can't change this). After the ...
-1
votes
3answers
26 views

Get compilate date [duplicate]

I am trying to extract the compilation date from a linux command (or cpp would be fine too). I am using: stat -c %z ./myProgram.bin However, if I copy myProgram.bin to an another place via ssh for ...
0
votes
0answers
33 views

FreeBSD or simply Docker for my old Linux server?

I have an old obsolete server running a Linux Red Hat server 5.9 and inside a special software for a power plant control and I've been asked to replace this server as not so much spare parts are in ...
1
vote
1answer
19 views

mkswap complains that partition is misalilgned (LVM on RAID-0)

I have a RAID-0 setup on two identical hard disks (same brand and model). The partition table is identical on both (I have cloned it). However, /dev/md0 occupies only part of the disks, because I had ...