1
vote
1answer
7 views

How to change audio levels of sound card with same control names

I'm trying to write a script that automatically changes the playback/capture audio levels based on the device that is connected. I'm using a MAYA44 USB+ sound with 4 ch in/out. Thanks to a similar ...
5
votes
1answer
35 views

Go forward in bash argument history

I know about Alt + . to show the previous argument in bash. But what if I went past the desired argument (pressing Alt + . one too many times) and I want to go forward in history? Is there a key ...
1
vote
0answers
16 views

convert attachments of type winmail.dat (TNEF) to “real” attachments in stored email messages, recursively in MailDir

Some email messages contain the attachments in a format called TNEF (Transport_Neutral_Encapsulation_Format). This attachment is usually called winmail.dat. Extraction tools exist for linux, but ...
0
votes
1answer
5 views

Installing xorg-x11-server-Xvfb broke X and uninstalling it doesn't fix it

I have a user who requested that I install xorg-x11-server-Xvfb to see if he could run Python/selenium headless. Unfortunately, this experiment did not work and normal x2go connections also stopped ...
0
votes
0answers
9 views

Centos not switching to run level5 [on hold]

I was running a Centos 6.2 hosted on VMWare 7.x. When I copied this virtual machine to a new machine which is running VMWare version 9.0 , it is not working properly. It will not connect to network ...
34
votes
1answer
2k views

What did the sticky bit originally do when applied to files?

In various places one can see the "sticky bit" accused of nowadays being a complete misnomer, as its functionality nowadays is to affect the write permissions on directories and act as a restricted ...
1
vote
2answers
21 views

How to reduce LVM for root partition?

I am trying to reduce the space dedicated to root LVM since I don't really need it and I am having a few doubts. Below is the output for lvdisplay: # lvdisplay --- Logical volume --- LV Path ...
0
votes
0answers
10 views

Tool for querying udeb packages

I'm looking for a tool which is equivalent for apt-cache, but for udebpackages. I'm working on debian-installer and need to look at various properties (dependencies, etc.) for udeb packages, but I ...
0
votes
1answer
21 views

ubuntu not starting after update-grub

I changed the default kernel in /etc/default/grub and did update-grub. Now every time the system is switched on, it opens BIOS settings. It's not showing any boot menu.
0
votes
2answers
15 views

Iptables accepts any ip or range in any format

Update Jun 30 I have a list of ips.txt and I want iptables accepts any ip or range in any format. Example: # IPs List 199.59.243.120 157.60.1.0/24 91.190.0.0/16 192.168.2.1-192.168.2.25 My rule: ...
0
votes
1answer
20 views

How to filter files/directories according to permission and owner(tree command)

I use tree command to get files and directories under the /usr path, tree -pgufi /usr Does it have a way to filter files/directories under this path according to several conditions(1 and 2 and 3)...
0
votes
0answers
20 views

new folder not inheriting permission from parent folder (linux Ubuntu 16.04)

So I have this folder here: => ll total 512 drwsrwsr-x 2 root users 4 Jul 1 01:27 storage/ If I create a new folder inside storage, the new folder has the permissions "drwxrwsr-x". Please note ...
1
vote
2answers
65 views

Can not ping other nodes in private network

I am setting up a small cluster (four nodes running ubuntu14) and I have this configuration: # Internet and lab - 192.168.10.0/24 iface eth0 inet dhcp dns-nameservers 192.168.100.1 # privte network ...
0
votes
0answers
11 views

Make a bootable ubuntu-core for Raspberry pi2

I've been trying to build a minimal Ubuntu system for my raspberry pi2, based on an Ubuntu 14.0.4 core (base) image. here: wiki.ubuntu.com/Core I deployed the image to the SD card, Cross compiled a ...
0
votes
2answers
34 views

System Testing tool for Arch Linux

I want to test my hardware function and find errors. Is there any System Testing tool available for Arch Linux with GNOME 3.20 ? On Ubuntu , I was using Checkbox-qt to test all the Input/Output ...
1
vote
1answer
14 views

Conditional prompt for mercurial

I'm trying to have a prompt that looks like this: $ some-folder (patch-name): I was able to get that to work when I did the following: hg_ps1() { hg prompt " ({patch})" 2> /dev/null } ...
0
votes
0answers
12 views

Automounting internal partition and usb

I'm running arch Linux with i3 window manager and I'm wondering if there's a way to replicate Ubuntu behavior about auto mounting internal partitions and USB. More precisely: Mount all partitions ...
2
votes
2answers
73 views

How to Find All .tex Files in Directories in Recurse Grep?

I want to expand the recursive search of symlinks to include only .tex files find . -type l -name "Math*" -exec grep -d "recurse" word {} +. Failed pseudocode 1 find . -type l -name "Math*" \ -exec ...
2
votes
0answers
27 views

Trap ctrl c not working as expected

I have a code that looks like this: { trap cleanup SIGHUP SIGINT SIGTERM function executed() { if [ ${1} -ne 0 ] then echo "Failed!" cleanup ...
0
votes
0answers
16 views

rsyslog forward all facilities but one

I have a rsyslog client, version 5.8 on centos 6 successfully forwarding log messages to a remote host. Now I have added some local files to the local3 facility, and I want to exclude this facility ...
5
votes
4answers
318 views

bash + using printf in order to print in special format

I just wrote the following bash script to check the ping access on list of Linux machines for M in $list do ping -q -c 1 "$M" >/dev/null if [[ $? -eq 0 ]] then echo "($C) $...
0
votes
0answers
9 views

iperf3 inconsistent results between Windows and Linux configuration

I have recently started to use Iperf3 and am struggling to comprehend its behavior. My problem stems from the fact that I am getting different results between Linux and Windows OSs. More particularly,...
1
vote
0answers
27 views

Why does systemctl isolate multi-user.target succeed only once?

I was just taught here that systemctl isolate multi-user.target is the modern way to unload the graphic shell, which was done by init 3 previously. I see that init 3 still works in my system but it ...
3
votes
1answer
9 views

Where to find a complete list of bindable readline-functions of Vi mode?

On searching for a way of jumping between whitespaces with GNU Readline library, I discovered the vi-fWord and vi-bWord readline-functions in this question. But strangely, I cannot find any trace of ...
1
vote
0answers
33 views

Is there any history to the shell prompt? [duplicate]

Traditionally, users get the $ prompt and root gets the # prompt but is there any history why this is so?
0
votes
0answers
24 views

Linux Server Management Tool [migrated]

I recently deployed 13 servers Red Hat 7.2 and I would like to know what will be an ideal server management tool that will allow me to patch, and automate servers within a small environment such as ...
0
votes
0answers
12 views

IRC returns WHO list on screen reattach

I'm pretty new to using IRC on a daily basis, so forgive any incorrect terminology. I currently have a screen setup on a server running IRSSI that I will reconnect and reattach to every morning. ...
1
vote
0answers
13 views

What do “snapper mount” and “snapper umount” do?

I'm using snapper with BTRFS under Ubuntu 16.04, and I'm confused about the "mount" and "umount" parameters. They are documented like this in the man page: mount number Mount a snapshot. ...
3
votes
1answer
30 views

Strace syscall classes

Strace allows strace -e trace=$some_class to specify a class of system calls to trace. E.g., strace -e trace=file should trace all file-related system calls. How can I find out which ...
2
votes
2answers
35 views

Measure execution time of a command including expansion of command substitution

How would I go about measuring the running time of commands that are expanded by the shell? For example: ➜ time sleep $(sleep 3; echo 1) sleep $(sleep 3; echo 1) 0.00s user 0.00s system 0% cpu 1....
0
votes
0answers
7 views

How to allow samba and httpd on same folder using semanage fcontent

I'm struggling with selinux permissions for a folder that needs to be accessed by php under Apache 2.4 and that also needs to be accessible over a samba share. /usr2 and all subdirectories need to ...
0
votes
0answers
10 views

Sharing Server Files via nautilus in vpn

I am work on OPENVPN Setup in fedora 23, I have setup and connect server and client using OPENVPN, After I vpn connect, I need to access server system, But i dont know how to access server system via ...
0
votes
0answers
23 views

Exit from Gnome using systemd [duplicate]

I was told today that traditional way to exit from GUI, using init 3 is obsolete in Fedora and I better use systemd instead. How do I?
0
votes
0answers
26 views

Return true or false if files matching wildcard pattern are in a specified directory [duplicate]

I'm trying to adapt some code to return true or false if files matching the *.log pattern exist in the $DIRECTORY variable. I had it returning true or false at the directory level for any files: if ...
0
votes
1answer
17 views

Rsync: Prioritise files and folders

I'm copying a large directory from one computer to another using rsync. Is there a way to tell rsync I would like it to copy some files and / or folders first, before others so that I can start ...
0
votes
0answers
20 views

Problems copying/pasting HTML code

I have an HTML template that I just want to copy/paste. However, I select the code of the entire file, I copy it and when I try to paste, only a section of the HTML code is pasted. I created this ...
0
votes
1answer
15 views

Debian : Monitoring if server is offline

We have a dedicated Debian X64 server, running projects and we require availability under any situation. Since last 2 days we have noticed that the server went offline for 10-15 minutes, and then it ...
0
votes
0answers
14 views

Is there any way to use other users profile? [on hold]

My .profile has lot of aliases and function which I need to use for another user where I can't simply paste those for some reason, any way to still access or inherit those?
0
votes
0answers
18 views

find lastly zipped file in a directory which has so many zip files [duplicate]

I am trying to make a script in that i need to execute a command which can give me the lastly zipped logfile(ex:my log file is going to be zipped toady so i need to place this file in script.likewise ...
0
votes
2answers
40 views

Backup the entire operating system

I have installed Ubuntu OS and installed all the softwares and tools from my college Internet connection. Now, I am going back to my home where it might not always be easy to reinstall all the ...
0
votes
1answer
22 views

Expect Script - bash script file not found [on hold]

My expect script #!/usr/bin/expect -f #I tried replacing sh - with bash -s still no positive results spawn ssh xxxx@yyyy "sh -" < test.sh expect "password: " send "zzzzz\r" expect "$ " This ...
2
votes
0answers
9 views

how do I make a SIP phone ring with sipsak?

How can I use sipsak to simulate a call so that there's an actual ring, or possibly even a sound is played? thufir@mordor:~$ thufir@mordor:~$ sudo sipsak -v --usrloc-mode --from sip:demo_alice@...
3
votes
2answers
38 views

All services of a user are killed when running multiple services under this user with systemd

We're using Ubuntu 16.04 LTS and want to use multiple Tomcat installations which should start at boot time. One of these Tomcats would host a Jenkins which will deploy a webapp onto the other tomcat ...
-1
votes
1answer
29 views

issue while running bash script remotely [on hold]

I created below script to take some backup.When i run it locally or by copying it to remote machine it is running fine. But when i ran it like: ssh asuser@isp2876 "bash -s" -- < AdvanceLog.sh ...
12
votes
5answers
510 views

Find files that contain multiple keywords anywhere in the file

I'm looking for a way to list all files in a directory that contain the full set of keywords I'm seeking, anywhere in the file. So, the keywords need not to appear on the same line. One way to do ...
0
votes
0answers
51 views

service doesn't work

Background I am using this script in order to make my script running as service. I am using Linux Mint 17.3 Rosa. The problem Sometimes the start/stop works sometimes not. Sometimes, I have to ...
0
votes
0answers
13 views

setsockopt IPT_SO_SET_REPLACE flag return error (linux) [migrated]

I try to use setsockopt with the flag IPT_SO_SET_REPLACE but i keep getting the wired error from errno Protocol not available this is my code: #include <stdio.h> #include <stdlib.h> #...
1
vote
1answer
12 views

How to permanently set some path in @INC

I want to set a path in @INC, as script is failing to locate perl module. Requirement is that , i cannot include the module path in the script directly. So , i am thinking to add module path directly ...
2
votes
1answer
13 views

can format and partition sd card but cannot see device entries [on hold]

I have a microSD card (4 GB) that I can format with dd and fdisk. I have created two partitions and when writing the partition table. I get a warning about ioctl advising to run partprobe. Running ...
3
votes
2answers
30 views

rsync claims different files, but diff does not?

I have a file both locally and on server. I first try running rsync in "dry-run" mode, to see if there are some differences between the files: $ rsync -aP --dry-run USER@192.168.0.55:/home/dir . USER@...

15 30 50 per page