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
1answer
35 views

How do I set up passwordless authentication with non-root users?

Using two CentOS 7 servers, I set up passwordless authentication with root users. It works fine. I tried to use the same method (with .pub and authorized_key files) with other local users. But these ...
-1
votes
0answers
11 views

pci_lookup_name how to? [migrated]

I'm new to libpci. I wrote a C program, that can dectect the GPU and give its vendor_id and device_id. Now I don't know if I can get the vendor_name from its ID using libpci. vendor = ...
8
votes
1answer
886 views

Can capabilities be used in scripts without setcap'ing the interpreter binary?

Right now I'm using cap_net_bind_service MY_USERNAME in /etc/security/capability.conf. Now I just need to set cap_net_bind_service+i on the interpreter of my favouite scripting language to be able to ...
-1
votes
1answer
53 views

Report of sudo usage

How do I get a report (either CSV or an Excel file) on who is using sudo on my machine, and which account they're switching to?
0
votes
1answer
28 views

Need help with mcelog: random freeze on Ubuntu/Fedora/Win10

My newly built computer freezes randomly. When it freezes, it doesn't respond to keyboards or mouses, so REISUB or ctrl+alt+f1 (or f2,f3.. etc) are of no use. I had tried different graphic card ...
1
vote
0answers
22 views

MD RAID 5 module doesn't load at boot

I recently upgraded my NAS to kernel 4.4 and now my md raid 5 array doesn't assemble itself at boot. dmesg reveals this: [ 2.299666] md: personality for level 5 is not loaded! and doing lsmod | ...
3
votes
1answer
2k views

How to access u boot environment from linux?

How can I access and change the u-Boot env variables in linux. Using the u-boot/tools/env directory in u boot directory: u-boot$ make env Which created the executable file fw_printenv. I copied ...
1
vote
1answer
744 views

User needs dedicated external hard drive mounted to their home folder

One of the users on our Ubuntu server has given us an external hard drive as a means of increasing the amount of storage space for their account. They'd like us to auto-mount this external hard drive ...
1
vote
2answers
1k views

md5 or sha1 while copying a file

Is there a way in any linux distro to perform a md5sum or sha1 check while the file is being transferred from a local partition to an NFS one? Example: I have a NFS mounted drive and a very big file ...
3
votes
1answer
741 views

Grub and usb serial support

How to access the grub menu using a usb serial converter? I know it's possible to have grub menu in serial console, putting these lines in grub.conf: serial --unit=0 --speed=9600 --word=8 ...
1
vote
0answers
29 views

Bash one liner not looping [duplicate]

I am trying to loop through a file to run commands remotely via SSH but its only sending the first command and stopping. while read a b c; do ssh root@$remoteserverip "/usr/bin/mysql -e \"grant all ...
3
votes
1answer
872 views

Mount a windows share without having root credentials

I am trying to mount a Windows shared folder in my home folder. I am able to execute the following command from a Linux (i.e., CentOS) machine which I have sudo access. The command that I am using ...
0
votes
1answer
34 views

Need help to Unix command [closed]

I am new to Unix system. I got some questions related to unix commands.... 1) Do U know how to check all files are transferred in ASCII mode fro NT box to Unix box on a batch server? 2) how to ...
0
votes
1answer
15 views

Scientific Linux 7.1 (rhel 7.1) Gnucash from EPEL stopped working

Suddenly today I tried to launch GnuCash on my computer and nothing happened. I went to a terminal and tried to start the program and got: gnucash: symbol lookup error: /lib64/libwebkitgtk-1.0.so.0: ...
3
votes
4answers
3k views

How to know number of cores of a system in Linux?

I wanted to find out how many cores my system has. So I searched the same question in google. I got some commands such as: $ lscpu command. When I tried this command, it gave me the following result: ...
2
votes
1answer
47 views

Why is the size of “/proc/kcore” file so bigger than the physical memory size?

From proc manual: /proc/kcore This file represents the physical memory of the system and is stored in the ELF core file format. With this pseudo-file, and an unstripped kernel ...
1
vote
0answers
13 views

How to mount to subdirectory of autofs

I have follong problem - I'd like to use autfs in one place to mount to subdirectory of autofs. I.e. I'd like to have something like: foo -fs=... bar/baz -fs=... The problem is that (according to ...
0
votes
0answers
36 views

What's the difference between udev and acpi(d)

They both seem to be receiving & processing kernel events, so why do they both exist? From what I gather, ACPI seems to be more high-level compared to udev, but apart from that can't really tell. ...
5
votes
3answers
2k views

How to get the computer name (not its hostname)?

All the results of my searches end up having something to do with hostname or uname -n. I looked up the manual for both, looking for sneaky options, but no luck. I am trying to find an equivalent of ...
1
vote
1answer
18 views

How to copy text of virtual terminal from graphics mode?

Linux have virtual terminals, one can switch between them with chvt 1, chvt 7 commands. Former is in the text mode, later is in the graphics mode. I want to copy all the text from first terminal, ...
12
votes
3answers
7k views

How come no core dump is create when an application has SUID set?

I setup my environment to create a core dump of everything that crashes, however when I run an program with SUID set on a different user than the executing user it doesn't create a core dump. Any ...
3
votes
2answers
742 views

Where to find the VBR on the /dev/sda1 partition?

I have one built-in hard disk /dev/sda which looks like this: Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors Units = sectors of 1 * ...
-4
votes
0answers
25 views

Tips for school project [closed]

i am supposed to write a software for "Programming in Unix" subject at my Uni. It should include a reasonable number of syscalls (processes, networking, threads...). The scale of the project should be ...
2
votes
1answer
707 views

E: Package 'dkms' has no installation candidate

I installed Kali 2.0 on an Oracle VirtualBox. Everything was going fine until I tried to run the command apt-get -y install dkms This gave me the following error message Package dkms is not ...
3
votes
2answers
435 views

Which process is occupying a certain pseudo terminal pts/X?

On Linux: Normally pseudo terminals are allocated one after the other. Today I realized that even after a reboot of my laptop the first opened terminal window (which was always pts/0 earlier) ...
0
votes
1answer
25 views

What format gives photorec to files?

I have to recover a file from my usb. I didn't find it on the net. How does photorec call files of unknown format? For instance, I have a file named *.jks . How can I find it in the recovered ...
1
vote
4answers
972 views

How to install jdk in Linux Mint

I am unable to install jdk on Linux Mint. I tried the following: # apt-get install openjdk-7-jdk openjdk-7-doc openjdk-7-jre-lib Reading package lists... Done Building dependency tree Reading ...
15
votes
3answers
65k views

How to set the resolution in text consoles (troubleshoot when any `vga=…` fails)

It is a common way to set the resolution of a text consoles (that are usually available by Ctrl-Alt-F1 thru Ctrl-Alt-F6) by using a vga=... kernel parameter. I'm using Ubuntu 10.04 Lucid, output of ...
3
votes
2answers
26 views

Redirect console to a serial port

I have a serial port /dev/ttyS2 that is connected to a supervisor. Normally, I use this line to send commands back and forth between CPU and supervisor. However, under some settings, I want to just ...
0
votes
0answers
13 views

Context menu position wrong gtk3 on hidpi

GTK 3 seems to have a problem with when running on hidpi screens outside gnome shell. I have dpi and screen dimension correctly configured via xrandr (192 dpi), i3 runs just fine. In ...
0
votes
1answer
14 views

alternative approach for selective deletes from rsnapshot tree with find?

I'm looking for a generalizable solution to this problem, 'cause I'm sure it will come up again. I have a client that does medical research. Periodically we have to remove the datasets provided by ...
1
vote
1answer
22 views

Building an LFS system using ELLCC

Firstly, this isn't my first attempt at building an LFS system - I've already successfully built LFS 7.8 and LFS 7.8-systemd. I would like to replace GCC+GlibC with ELLCC, which is Clang/LLVM+musl. ...
-1
votes
1answer
17 views

Are there any reverse package indexes?

I am looking to use specific software in Linux - some of the fancier security kernel patches, maths software such as Isabelle, the Spark compiler, nVidia drivers, nothing exceptionally exotic and ...
1
vote
2answers
705 views

Determine whether kernel built-in driver supports a device

I'm trying to find a way to accurately determine whether all the hardware on some system has a valid driver installed either via a kernel module or built-in to the kernel. I'm working with RHEL 5.5 ...
0
votes
1answer
15 views

Which components of Linux IO subsystem are device-independent and device-dependent?

From Tanenbaum's Modern OS, every operating system has an I/O subsystem for managing its I/O devices. Some of the I/O software is device independent, that is, applies to many or ...
1
vote
2answers
1k views

cannot ping vagrant machine

My experience with vagrant is very little as most of the time is seems to work. In this case however, I have not been able to get the desired behaviour. I am trying to work on a rails application ...
1
vote
1answer
29 views

What is the power dissipation of the CPU and how does it work?

I'm looking into TLP and there is this setting that I don't know what does it do: # Set Intel P-state performance: 0..100 (%) # Limit the max/min P-state to control the power dissipation of the CPU. ...
1
vote
0answers
11 views

FORTRAN executables: heap maxed out

I am trying to run a FORTRAN program on stampede (xsede machine). The error message I am getting is 'heap maxed out'. I think it has something to do with virtual memory allocation. So I use the ...
4
votes
0answers
34 views

send super key to remote Citrix session

I use Citrix Receiver on my home GNU/Linux Debian (testing) desktop to remote in to my work Windows machine. I use Emacs extensively and I have many keybindings that use the super key or ...
0
votes
1answer
18 views

Crontab and screen at reboot

I try to create a cron command that execute a software in a screen during start-up on my Debian. It seems easy by doing this command but it doesn't work (no screen created during start-up): ...
3
votes
2answers
541 views

Get load average excluding niced processes

Is there a way to return the load averages, excluding any load caused by nice'd processes? We have a load balancing mechanism in place that checks the load of multiple Linux servers, and submits a ...
1
vote
1answer
2k views

How to select which graphics card to use?

I have a desktop machine (running Ubuntu 13.10) with two video outputs (both nVidia): an integrated graphics card, which I want to use for my desktop display, and a PCI graphics card, which I would ...
3
votes
1answer
36 views

Why can't my servers talk to each other over direct ethernet connection?

I have two servers running RHEL 7.2. Each have 2 NICs. One NIC talks to a switch, and other is a direct connection between the two servers. One of the servers will be an NFS server, and the second ...
2
votes
1answer
905 views

Why do I not seem to have hidraw options on my system, and how can I fix my usb devices?

Starting today, I noticed a few problems with my system. USB devices, including the internal ones such as microphones, don't seem to be working at all. I first noticed when my keyboard and mouse ...
3
votes
3answers
76 views

how to monitor a unix directory and if any new file in directory it will be copied to another directory

I want to monitor a unix(Solaris 10) directory and if there is any new file i want to copy immediately. Tried: I have shown inotifywait and incron package in linux for it but i don't know whether it ...
1
vote
1answer
144 views

How to change a pom.xml version with linux shell script

i have a pom.xml contain a line <version>x.y.z-tag</version> where tag could be: snapshot, alpha, beta or release. and x.y.z is a number version like: 1.0.0 or 1.2.1 .... i want to ...
0
votes
1answer
2k views

Debian and Systemd: breaking ordering cycle error

I'm a new embedded developer I'm trying to make systemd 37 work with freescale vybrid board (A5 and M4) running on linux-3.0 After boot with some breaking ordering cycle error, I check with ps ...
0
votes
2answers
31 views

command not found error after giving permission to access file using chmod

I've been trying to run a script using chmod. Here's how I tried to execute the script: $ chmod u+x tester $ ./tester ./tester: Command not found. I always get the Command not found error and I'm ...
1
vote
2answers
35 views

Replace part of filename by directory name

I have folders named ACB* and in it among many other files, a couple of files called scanAC_* I want to delete the part called scanAC and replace it with the directory name it is in. For example, ...
3
votes
2answers
64 views

Is it OK to install 32 bit linux on virtual pc on 64bit windows system?

I am trying to download ubuntu 32 bit to run in virtualbox. is it ok to run 32 bit os on virtual box in my windows 64bit pc? or do i need to download only 64 bit os to run in virtual box of my 64bit ...