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

0
votes
1answer
37 views

Why this script didn't work? [closed]

#!/bin/bash if [ $# !=1 ] then echo Usage: A single argument which is the directory to backup exit fi if [ ! -d ~/projects/$1 ] then echo 'The given directory does not seem to exist (possible ...
3
votes
1answer
26 views

reserve disk space before copying files

I would like to reserve (or is the keyword "claim"?) some amount of disk space before an rsync occurs so other programs will believe a disk has less space (because after the rsync, the disk will have ...
0
votes
0answers
41 views

Authentication required to edit Sudoers - User not listed

I made a small typo in my sudoers file, nothing a simple pkexec can't fix. The problem is that when I added my user with "adduser name" and added "name" to visudo, as well as the root and sudo ...
1
vote
0answers
26 views

ncurses over ssh (osx -> linux) freezing and unresponsive

I'm using linux perf_events and sometimes am having trouble with the perf report (which is an ncurses terminal application) view freezing up. I'm interacting with a remote linux server which is ...
0
votes
0answers
29 views

How to add security (802-1x.eap) with nmcli

I've done nmcli con add type ethernet con-name SOMENAME ifname enp5 now how do I add security to it using nmcli(as if you had hit the on button in the gui.) so that I can than go and edit the ...
0
votes
0answers
64 views

Running a batch script remotely using rdesktop

I have a setup that implies calling rdesktop on a remote machine which is accessed through ssh: user@192.168.1.110:~$ ssh user@192.168.1.120 -X and then running rdesktop as: user@192.168.1.120:~$ ...
3
votes
1answer
585 views

Where can I find detailed documentation on Linux signals?

When we do kill -l we get a list of all the signals that are supported, but is there any man page that describes each signal in detail?
0
votes
2answers
54 views

wc -l command issues in SunOs to Linux migration

We are migrating from SunOS to Linux. I'm facing some problem with wc -l command. When I used wc -l <file_name>, SunOS is giving leading spaces before count where as Linux there are no leading ...
1
vote
2answers
63 views

Mount FreeBSD UFS from logical partition under Linux

How can I mount the FreeBSD UFS boot partition under Ubuntu in this setup: a single HDD which contains an MBR partition table which contains some primary Linux partitions and an extended partition ...
43
votes
3answers
6k views

On Linux, when does “uptime” start counting from?

My computer says: $ uptime 10:20:35 up 1:46, 3 users, load average: 0,03, 0,10, 0,13 And if I check last I see: reboot system boot 3.19.0-51-generi Tue Apr 12 08:34 - 10:20 (01:45) ...
0
votes
1answer
29 views

TeXstudio rpm install: QT dependencies (e.g. libQtGui.so.4)

I'm trying to install TeXstudio on a Scientific Linux 7.2 machine with an rpm. My problem is, that I'm missing the following dependencies: # rpm -ivh texstudio-qt4-2.10.8-6.1.x86_64.rpm warning: ...
0
votes
0answers
29 views

device-mapper error while setup of dm-cache

I am trying to setup dmcache using the tutorial https://wiki.mikejung.biz/Dmcache When I run the command `dmsetup create home-cached --table '0 976771120 cache /dev/mapper/ssd-metadata ...
-1
votes
3answers
46 views

How to swap two words with sed and with multiple delimiters?

Just letters are accepted in words, any other characters are delimiters. I want to exchange the first word with the third word. sed -E 's/([A-Za-z]+) [^A-Za-z] ([A-Za-z]+) [^A-Za-z] ([A-Za-z]+)/\3 \2 ...
0
votes
0answers
14 views

Any clustering / load balancing solutions for VPN servers that support external IPs?

I am looking for a clustering / high availability / load balancing solution (something like ucarp or clusterip, etc) where it allows the nodes to be external IPs. Specifically, I would like it for ...
0
votes
1answer
38 views

Awk to get same column with maximum filed

I have two files. I have to get matching name from file1, print the entire content of file1, and add a fourth column (exp) in file 1 using a second file with max value file1 name value1 ...
1
vote
1answer
19 views

why does systemd cryptsetup try to remount the root partition already mounted?

I have /etc/crypttab as follows: sda7_crypt UUID=<...> /dev/sda8:/keyfile luks,discard,keyscript=/lib/esi/tpm_key_pass sda7_crypt is my root filesystem, so I use update-initramfs to decrypt ...
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
24 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
22 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
41 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
32 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
39 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
29 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
22 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
23 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
101 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
31 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
102 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
30 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
1answer
71 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
49 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
27 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
38 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
24 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
29 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
28 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
32 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 ...
1
vote
0answers
34 views

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
8 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
31 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
22 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 ...