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
13 views

Create two boot options for the same distro but with post run options

I have a Raspberry Pi with Raspbian. I installed Kodi (with autorun) but I'd like to install RetroPie into Raspbian also. I'd like to have several grub options: one with Kodi in autorun, another ...
1
vote
1answer
25 views

Linux, having trouble adding user to second group

Redhat Linux 5.10 (Tikanga) I'm trying to add an existing user to a second group. The user is already part of the primary group called "prim" and the secondary group I want to add him to is "sec". ...
3
votes
2answers
61 views

Defer *all* disk writes, keep them in memory

How to temporarily stop synchronizing of dirty data with disk, instead just keeping it in memory. Clarification: I want to sync it later.
0
votes
0answers
23 views

Camera not detected in Ubuntu

I have a built-in camera which has stopped being detected in Ubuntu. lsusb output: Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 004 Device 001: ID 1d6b:0002 Linux ...
1
vote
2answers
45 views

Where is a named semaphore stored? [closed]

A named semaphore (using semaphore.h) is identified by a name in the form /somename; that is, a null-terminated string of up to NAME_MAX-4 (i.e., 251) characters consisting of an initial slash, ...
0
votes
0answers
15 views

How to access the node created in user space from kernel? [migrated]

I am doing an exercise in which I want to access the node /dev/snd/controlC0 of the sound card from the kernel to set up the tinymix control from the kernel space instead of user space using a tinymix ...
0
votes
2answers
35 views

How to compile C Extension for Python

I am attempting to install https://github.com/lthiery/SPI-Py (on a Raspberry Pi running Raspbian) by running sudo python setup.py install This fails with error spi.c:20:20: fatal error: Python.h: No ...
0
votes
1answer
34 views

Why do i need -d option on this cut command?

I have one txt file called sales.txt Fred apples 20 April 4 Susy oranges 5 April 7 Mark watermelons 12 April 10 Terry peaches 7 April 15 And when i use this command: [root@ip-10-0-7-125 ...
3
votes
1answer
43 views

Process running in only one processor

I have a 40 v core machine in which a java process running. I can see that this process is running in cpu6 all the time. $watch ps -o pid,psr,comm -p 4076 Every 2.0s: ps -o pid,psr,comm -p 4076 ...
0
votes
2answers
31 views

gparted (live usb) says my partition is mounted, but where?

I'm attempting to grow /dev/sda5, which is an 'lvm2 pv' partition, but it's contained in /dev/sda2, which is an extended partition. There is plenty of "unallocated" space immediately after /dev/sda2, ...
0
votes
1answer
24 views

Do the standard streams all operate on the same file (/dev/tty)?

If I type ls -l /dev in a virtual terminal I get lrwxrwxrwx 1 root root 15 apr 10 10:59 stderr -> /proc/self/fd/2 lrwxrwxrwx 1 root root 15 apr 10 10:59 stdin -> ...
0
votes
0answers
24 views

Why Linux can boot from GPT partition type on systems BIOS?

Why Linux can boot from GPT partition type on system with either BIOS or EFI firmware but windows or OSX can't? What's the concept behind this?
1
vote
1answer
108 views

openSUSE Leap 42.1 won't boot install as dual boot (works fine in VM)

I have a Leap 42.1 ISO which I have imaged to a USB drive using USBImage on Windows 10. When I tried to boot from USB the first time I got the following message: Trust openSUSE Certificate Do you ...
0
votes
0answers
32 views

how to Increase VM disk without reboot on Linux redhat 6.x + LVM

I increased the second disk in VM machine from the VSphere client GUI as the following: By right click on the machine --> edit settings --> hard disk2 --> increase the disk from 1G to 2G Then I ...
0
votes
0answers
16 views

shell connection mysql connection appears to be blocked

See mysql master-slave synchronization status. I error occurs in connection with the following shell mysql: $(mysql -h${Mysql_Server} -u${Mysql_Slave_user} -p${Mysql_Slave_passwd} -e 'show slave ...
2
votes
4answers
105 views

Multi-Workstation Setup - how to take my system with me efficiently

Changes are marked with E the following situation: I'm a college student who obviously needs to travel to college almost every day where I have a lot of downtime. At the moment, I own a pretty ...
1
vote
1answer
32 views

Duration of /proc/pid/stat

I have a process that starts a child process and when the child exits, scans /proc/<pid>/stat to gather some information about the CPU and memory the child used. However I am worried that I am ...
1
vote
1answer
28 views

Where does Linux track who is a group admin through the gpasswd command?

If I modify group membership and admins using the gpasswd command and add a user as a group admin Linux will allow that user to perform tasks otherwise reserved by root. Ex. [test1@centos ~]$ ...
2
votes
0answers
73 views

Configuring and Testing Freeradius on debian

I'm trying to set up a freeradius server on debian (LTS kernel 3.2.0.4amd64; Wheezy 7.10) it seems to want to use freeradius version 2.1.12 Installing the package wasn't a big deal (apt-get install ...
1
vote
1answer
26 views

The most secure Alpine SSHD Configuration

I'm experimenting with Docker's alpine image and OpenSSH. The sshd_config file that ships with alpine has everything commented out by default. I only uncomment Port 22. I assume this is the most ...
0
votes
1answer
52 views

limit user to only a single command: “su -”

I have setup a web server that hosts a Play! Framework application, the server is an Amazon Linux EC2. If you are not familiar with Amazon Linux, by default there is a root user and an ec2-user with ...
0
votes
1answer
30 views

How to install Electrum 2.6.3 bitcoin wallet on Ubuntu / Mint and derivates

Today's question of mine was How do I install Electrum 2.6.3 bitcoin wallet on my Linux Mint, Ubuntu and it should work on other derivates.
0
votes
1answer
39 views

practice linux for practical use [closed]

I have learned and studied linux for 6 months with books like 'The linux commandline'. But, I'm just student, not a business man. When I study linux and do not use it for long time, I always forget ...
-1
votes
1answer
25 views

Transfer files from linux (of linuxdeploy in android) to android (in which linuxdeploy is installed)

I am using Linux on my Android phone via use of Linux deploy. I have some files in /root/android/ - folder of that linux partition. And I want one of those files to move to my /storage/sdcard1/ - ...
1
vote
0answers
30 views

No support for locale: en_US.utf8

I am on Linux Mint 17.3. I saw this in the syslog. Processing triggers for initramfs-tools (0.103ubuntu4.3) ... Apr 9 12:01:47 vb-nb-mint updates: update-initramfs: Generating ...
0
votes
2answers
30 views

Ubuntu - Uninstall preinstalled software

I have an Ubuntu derived Distro and I don't need most of the preinstalled programs. Not everything is listed within the Software Center, for example a Photo-Viewer and a Music Player. Since I'm a ...
-2
votes
2answers
27 views

Using AWK to pull multiple rows [closed]

For example if i have a file with multiple rows and columns is it possible to pull specific rows and columns? for example 1 4/8/2016 4/7/2016 4/6/2016 2 john_doe jane_doe sarah_test 3 26 45 20 4 ...
-1
votes
3answers
33 views

changing permission after copy the directory? [closed]

I have two directory in two different path there are some common subdirectories and files between them I want to copy the content of first directory to the second one meanwhile I need the same ...
2
votes
1answer
70 views
+100

How can I make windows stay opaque when inactive?

I set Xfce to make all windows semi-transparent when they don’t have mouse focus. How can I set a particular window to remain opaque when inactive? Xfce doesn’t have an option to change settings for ...
0
votes
0answers
9 views

Network shares mounted seem to time out

I am running Windows Mint as primary OS on a couple of PCs at home, I also have a server running Windows Server 2008 which serves a couple of Samba shares. I have mounted these drives via /etc/fstab ...
0
votes
0answers
32 views

Ubuntu does not find shared object file; sudo ldconfig -v did not help

I'm on a 32 bit Xubuntu 15.04 installation on which I have to work with a legacy application, which I only have in binary form. That binary requires libstdc++-libc6.2-2.so.3, which I managed to find ...
0
votes
1answer
26 views

setenv within script does not override value set at prompt

trying to do setenv OMP_NUM_THREADS 8 if at the prompt in a shell I do setenv OMP_NUM_THREADS 4 that is successful. And my program runs on 4 cores if i launch it. But I have a file called runme ...
0
votes
0answers
24 views

Multicore benchmark

I'm looking for a way to benchmark a multi-core CPU. I found this #!/bin/bash echo "scale=$1; a(1)*4" | bc -l The first argument is number of digits to calculate. Now we can run in parallel (4 ...
1
vote
1answer
24 views

Listening on tap device for packets written through file descriptor

I have a problem fully understanding how to use tap devices. I've created a tap device and brought it up and running. A user space programs opens its file descriptor and receives the ethernet frames ...
0
votes
0answers
26 views

Linux Mint - No Sound

I'm currently using Linux Mint 17.3 Rosa and when I installed it in the first place months ago the sound and everything worked fine. It still does in fact, the problem is that none of the system sound ...
1
vote
0answers
16 views

Signal strength average from iw

I was using iw dev wlan0 station dump to get signal strength in an ad-hoc network, and noticed the output has a signal avg row. As average signal strength is actually what I'm interested in, this ...
2
votes
2answers
24 views

User Admin - View Permissions when 750 is used for home

apologies if this question is caused by a fundamental misunderstanding. But as main admin of a server: I want to make it so that users cant see each others home folders. (so I chmod 750 the home ...
0
votes
1answer
62 views

CentOS: yum update Cannot find a valid baseurl for repo

I am trying to do yum update but I'm getting the following error. I have exported http_proxy & https_proxy Have added proxy settings in /etc/yum.conf like: proxy=http://10.44.208.10:8080 ...
0
votes
0answers
13 views

how do i convert .dump back up file to its original form?

I have a .dump-backed up files of 10 personnel but I am having issue reading/converting the .dump file to its original format. I had used restore -i -f f.dump command and it was not successful. I'm ...
0
votes
0answers
27 views

minimum time between two consecutive UDP packets

I am interested in developing a C application which sends UDP packets with minimum delay between two consecutive packets. Is it possible to "book" the UDP stack with the NIC hardware from user space ...
2
votes
4answers
49 views

Install Linux Distro on USB Stick

I'd like to install a full linux distro on my usb stick. I already tried Lili USB Creator, but it did not boot correctly(I had the option "Install" and "Try", but after that I had a black screen). It ...
0
votes
1answer
45 views

How to get the number of threads on the waiting queue for a cpu?

Is there a way to programmatically get the number of threads waiting for cpu on Linux.
1
vote
0answers
36 views

How to run a jar together with faketime

I need run a certain jar file with a mock time for testing purposes. When I execute the jar in the usual way $ java -jar myjar.jar it runs perfectly. But when I try to run it together with ...
3
votes
1answer
46 views

How does APT choose which packages to install?

On my Debian Testing box, I have the following in /etc/apt/sources.list: deb http://ftp.us.debian.org/debian/ testing main contrib non-free deb-src http://ftp.us.debian.org/debian/ testing main ...
0
votes
1answer
41 views

Add n days to a date token

My issue as follows: consider I have a token $d=20140607 and I want to add 7 days to it. I tried date -d "$d+7 days" but it is not working. It throws this error date: invalid date ...
2
votes
1answer
37 views

Is there a KeyHold event in Xorg?

I have a new Macbook Pro and I installed Arch Linux on it. One thing I want to be able to do is use the media keys to seek through a track (in mpd) and goto the next or previous track. This is ...
0
votes
1answer
31 views

GNU Make4.1 Segmentation Fault

During a make check after compiling GNU Make-4.1, the following error occurs. make[2]: Entering directory '/mnt/lfs/sources/make-4.1' cd tests && perl ./run_make_tests.pl -srcdir ...
2
votes
0answers
30 views

Linux usb-drive write cache

Is there any way to change the way the Linux kernel handles external storage and the external storage cache? Every time I copy something to it, the copy process seen from userspace seems really fast. ...
2
votes
3answers
46 views

Open tar-file that ends with .b

I have a tar file that ends with .b and I dont know how to open it. Neither in windows, neither Linux I've been successful to open it. data.ext4.tar.b Another tar that ends with .a could easily be ...
0
votes
1answer
52 views

SFTP, SSH Couldn't read packet: Connection reset by peer [duplicate]

My sftp -v to host returns, Connecting to xxx.xx.xx.xx... OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: ...