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

3
votes
2answers
130 views

Subtract floating numbers in shell script

I'm trying to do some calculation in shell script with CPU usage. Which return floating point number. But when I subtract this number I'm getting error. See the following code and error. Code ...
4
votes
1answer
47 views

What is /proc/<pid>/net/dev?

I'm interested in per-process network I/O counters, like those in /proc/net/dev and found what I thought was it under /proc/<pid>, i.e. /proc/<pid>/net/dev. But it seems that was too easy ...
0
votes
0answers
13 views

sar shows zero percent load

I have an issue with sar on several machines running ORACLE Linux 6.4. Sometimes it shows zero load (CPU, block device, whatever else), including idle: Why can it happen? sysstat package version ...
2
votes
1answer
32 views

Can ALSA output sound from a motherboard jack input line to HDMI?

I have a machine installed with OpenELEC and I'd like to use the motherboard line input (jack) and redirect sound through the HDMI link. All the other jacks from the motherboard will be unused. I ...
3
votes
1answer
10 views

Linux init script what does 0<&- &> achieve

Sorry if this is the wrong medium to ask this question. I looking into writing my own init.d scripts to control several services running on my Linux server. I came across an example online which ...
0
votes
1answer
24 views

U boot and armhf installation

I am currently trying to install ANY linux distro onto an external HD. My goal is to boot using the external device, but my problem at the moment is that I am unable to achieve this I try to boot the ...
18
votes
6answers
3k views

How to safely turn off swap permanently? (on Debian Jessie)

I fresh installed Debian Jessie with default partitioning on an SSD drive. My current disk partitions look like this: As I have 16GB RAM, I think I don't need swap. On Windows, I had it turned off ...
3
votes
1answer
27 views

Is it possible to reduce infomation in iptables log?

I noticed that there are data in the iptables log that I don't need, so I was wondering if it's possible to change some configuration so that the log has less information, reducing the log's size. ...
0
votes
1answer
39 views

Linux Performance Measurements using /proc/vmstat

Am new to Linux, Please any one help. I want to calculate Input output performance using /proc/vmstat file? when i run command cat /proc/vmstat | grep pgpg The answer is pgpgin 726854 pgpgout ...
1
vote
1answer
27 views

LInux MInt not recgonizing/moutning 160 GB HDD

Not sure how to get it to mount. This is what I get for sudo fdisk -l WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted. ...
1
vote
0answers
14 views

Encryption Using Xubuntu with a Keyfile and Password

I am somewhat of a novice with Linux. I was going to use Veracrypt for full disk encryption and then boot to Xubuntu after using a keyfile and password (not even sure if this is possible with ...
-2
votes
0answers
32 views

df and du differences too large [duplicate]

-bash-3.2$ df -h | grep /mnt/opt /mnt/opt 197G **163G** 32G 84% /mnt/opt -bash-3.2$ du -sh /mnt/opt **74G** /mnt/opt More then 1/2 the differences between df and du. ...
1
vote
0answers
9 views

making containers use a different set a block devices

Is it possible to make some Linux processes see a different set of block devices with containers (i.e. no virtualization such as KVM or Xen)? For example, at boot time the system recognizes sda, sdb ...
0
votes
0answers
12 views

Mobile broadband repeatedly connects/disconnects

I'm using Verizon mobile broadband with a Sierra Wireless EM7345 4G LTE modem built into a Thinkpad T450s laptop. I'm configuring the modem with NetworkManager and ModemManager, using one of the ...
-1
votes
1answer
39 views

Can't log in to kali linux and cant reinstall anything

So I downloaded kali linux to a bootable usb drive and booted it up on my pc chose the graphical install and installed it, at some part it told me that it's going to wipe my whole hard drive and for ...
3
votes
1answer
85 views

How to verify if my graphics card is well installed on Linux?

I have Debian 64 bits Wheezy XFCE and a MSI GT720 2Gb of memory, when I launch hardinfo it said I have only 128Mb so how can be sure ? Is there a specific command ? lspci | grep VGA gives: 01:00.0 ...
-1
votes
0answers
12 views

How to change java binary path for a new running application

In my linux node ,how do i know the path of java binary or JRE used by particular running Java application and how can i change it?
1
vote
4answers
48 views

making an array of all subdirectories via the output of a command

My idea is to make a script which gives all subdirectories (in my case ˜/MUSIC but on the mac of my wife is it different –> artist/album). In a later fase I would like convert all .wav extensions to ...
0
votes
2answers
75 views

chmod – execute permission for non-admins?

I have used chmod to make all the contents of a directory executable. However, when I try to run one of the programs in that directory as a regular user (me), I get a "command not found" message. If ...
0
votes
1answer
59 views

I can't change user's passwd on ubuntu

I want change 120 user's password. so I wrote sudo echo 'user:passwd' | chpasswd but I had a message, chpasswd: (user) pam_chauthtok() failed, error: Authentication token manipulation error chpaswd ...
0
votes
2answers
39 views

Arch Linux installation usb

I burned the newest ISO to a flash drive using unetbootin, but it only comes up with this: Arch Linux archiso x86_64 UEFI USB UEFI Shell x86_64 v1 UEFI Shell x86_64 v2 EFI Default Loader When I try ...
1
vote
1answer
17 views

Mount Samba Share(Linux server) on Linux client machine

As title says, how is it possible? There is Linux server that shares a folder with Windows client but there're also Linux client machines. I am using KDE and can mount from Dolphin and then do with ...
1
vote
0answers
19 views

My usb udev rule not triggering when I do echo 0 >authorized ; echo 1 >authorized

My custom rule runs a shell command when I physically plug the USB device. /etc/udev/rules.d/85-my_stk1160_pal.rules : ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05e1", ...
2
votes
1answer
35 views

How to use network interface as non-root user on Android? [closed]

I want to communicate between my Android device and my Linux box over IP through the USB network interface mode. I have connected my Android device to my Linux box with and put the Android device ...
0
votes
1answer
14 views

Using an alias when using NFS shares

When using Samba, I can use an alias which can pretty much point to any directory. E.g. an alias called videos pointing to /mystuff/here/anotherfolder/anotheronehere/oops/myvideosfolder Is ...
0
votes
0answers
10 views

How to downgrade Grub legacy in a linux image

I have a 1 Gbyte image of installed debian 7 which I have made it myself by copying all the needed file to it. There is only one partition in it named hda0. I have mounted it to loop0p1. I had ...
0
votes
2answers
155 views

How to add a system call in linux kernel 4.x

I'm trying to add a system call using linux kernel 4.1.6 but all the documentation I can find is for older versions. Does anyone know how it's done in the newer kernels or have any good references? ...
2
votes
0answers
42 views

Freeradius server for multiple vendor network

We have been using network switches from Enterasys and for logging in to these switches, with AD credentials, we have setup a freeradius server on RHEL 6.5 server, that is working absolutely fine. ...
3
votes
1answer
47 views

Which device is working

I have one dvb-t and one dvb-s card in my system which are in /dev/dvb/adapter0 and /dev/dvb/adapter1 Is there a way to find out which card is currently working? and which one isn't?
0
votes
2answers
27 views

Disable some programs from sudo

I have a group of trusted developers which I have given sudo permissions on a server but I want to be able to exclude some programs to be run with sudo. For example I would like to disable command su ...
0
votes
0answers
24 views

Can't find connected devices on wifi network

I've been having some issues with finding my devices on the network.. Ettercap & nmap and everything else I have tried does not find a host that is connected to my gateway? I have three devices; ...
3
votes
0answers
27 views

OverlayFS - How to make changes to upper filesystem persistent without unmounting?

I am using an USB drive to start a linux system which needs changes from time to time and also writes some logs. Flash drives tend to fail early if there are many write operations. That brought me to ...
1
vote
1answer
22 views

Gparted Shows HDD as unallocated

I've Windows 8.1 & I'm planning to install Kali Linux with it. However, at installation gparted shows the whole hard disk to be unallocated and a warning. The warning is as follows: /dev/sda ...
1
vote
1answer
24 views

Content Explanation Of: /proc/fs/ext4/device_name/mb_groups

I've been wondering, what are the explanation of the columns in the /proc/fs/ext4/device_name/mb_groups file. The columns are: #group: free frags first [ 2^0 2^1 2^2 2^3 2^4 2^5 2^6 2^7 2^8 2^9 2^10 ...
0
votes
0answers
24 views

How to execute python script on Visual studio / Other Editor with Linux environment

as all know it is impossible to write long python script directly on Linux machine with vi editor so we use (win editor) tools as visual studio / Pycharm and so on .... so my question is how to ...
1
vote
0answers
18 views

Write shrunken .img file to device file

I have a backup image of a device file /dev/sda3 that I created using: dd if=/dev/sda3 of=~/sda3.img. The image is very large, so I have re-sized it to remove empty space. My question is can I ...
0
votes
3answers
61 views

find command behaviour inside for loop

I have following part of code inside bash script. for dir in $(find /etc/aaa -type d -maxdepth 1) do #my code done #my code if /etc/aaa directory is not present then i want to exit script with ...
0
votes
0answers
7 views

Add new HDD to Azure VM and set RAID 0

I need to attach some HDD to my Ubuntu Azure VM and enable RAID 0 for them to improve the performance. The new storage space will be under /home director (for storing my host data). I have some data ...
0
votes
0answers
22 views

Continuum Anaconda Fedora 22 path

After an update to Windows 10 caused problems in my dual boot system I had to reinstall Fedora 22. So, starting with a fresh system I reinstalled my work environment. The one installation that has ...
1
vote
0answers
10 views

Map Caps Lock to Escape for server not running X [duplicate]

I am using xmodmap to remap the capslock key to escape for my Linux system running X. I am now working directly on a headless Ubuntu 14.04 LTS server that does not run X. Is there any easy way to ...
-1
votes
0answers
28 views

How to install Linux Mint alongside Windows 7 easily?

I want to install Linux Mint 17.2 alongside of Windows 7. I found this tutorial, but it is very long and have millions of steps: How to install Linux Mint alongside Windows 7 Are there any tool(s) ...
1
vote
2answers
65 views

Compare folder to folder structure

I have my cameras SD card with pictures and films. On my home box, I have a folder structure with directory names like this: images/YYYY-MM-description, sometimes there are subfolders with varying ...
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
34 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
36 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> ...