0
votes
0answers
9 views

RC script that brings itself to foreground under certian critirium

I have a simple script that asks for user input ([y/N]) and then acts upon it. I have wrote a daemon rc wrapper so that it can run from startup. I was wondering if it is possible to make the ...
0
votes
0answers
1 view

Why is a Linux Tun interface not returning ICMPv6 Echo replies?

I wrote a program which connects to a TUN interface and replies to ICMPv6 Echo Requests. Even though I can successfully observe the echoes and replies with tcpdump on the TUN interface, it appears ...
1
vote
0answers
8 views

Set CPU affinity for the specific program?

How can I set CPU affinity for the specific program (say gzip) to always run on specific core or cores (core 1, for example)? I read about taskset, but can it be used before program is actually used ...
1
vote
1answer
19 views

Is it bad to have a low entropy in /dev/random?

I wonder whether for the average Linux user it is considered as bad -from a point of view of security or any other relevant viewpoints- to have no or almost no entropy left in /dev/random. Edit: I ...
1
vote
0answers
8 views

Reading the device tree for ide disks

On Solaris I know disk are c0d0p0 or c0d0s0 for ide, c1t1d1s0 for scsi. I see there are links on pci devices,for example: ls -lh /dev/dsk/c0d0s7 lrwxrwxrwx 1 root root 50 ago 1 22:53 ...
2
votes
0answers
7 views

Alsa not detecting my soundcard

So my onboard sound-card died and I bought a new small usb one. With windows it works perfectly, but on my debian testing not so much. It isn't detected by my audio system, and I cannot choose the ...
1
vote
0answers
7 views

Adwaita Background Appears Much Darker in Reality

I like the default Adwaita background that came with cinnamon installed on Arch linux. For some reason however this background is very dark, much darker than it appears in the settings for choosing ...
0
votes
3answers
41 views

piping commands not working as expected I need explanation

I am trying to the below touch ~/scratches/scr6.txt | cat ~/scr.txt > ~/scratches/scr6.txt | cat /dev/null > ~/scr.txt I don't know why scr6.txt is always empty, however doing the below fill ...
1
vote
2answers
30 views

Is it possible to start programs (saved in the menu) from the terminal?

Recently I switched over to Linux Mint. I am finally getting the hang of using the terminal, but there is one question that I find myself coming back to: Is it possible to start a program that is ...
3
votes
2answers
14 views

Cycle between open windows with wmctrl

I have a script that I'm trying to use to make handing applications easier. Right now it gets the window id of an application name (the first parameter) and checks if the window_id exists or not. If ...
0
votes
1answer
20 views

GTK applications looking bad

I'm running ArchLinux and gnome shell 3.16.1. GTK+ theme: Evopop-gtk-theme Icons: Adwaita Global dark theme. Running applications like nautilus, gnome-tweak-tool, dconf, system-monitor, ...
1
vote
1answer
21 views

logrotate every 2 hours

I'm trying to make httpry logs every 2 hours. I added this to my logrotate.conf file: /var/log/httpry/*.log { rotate 1 weekly create 640 root admin missingok notifempty } I ...
0
votes
0answers
21 views

Using CentOS as a thin client

I have about 50 desktop PCs running CentOS. These will be used as "thin clients" for users to access their real desktops (VMs) using some flavor of NX technology. So, the PC on the user's desk is a ...
4
votes
1answer
30 views

How to add additional steps to login?

What I would like to achieve is an interactive program that runs either before or after asking the user for the password, but won't handle over the access to the computer unless it exited with ...
0
votes
1answer
12 views

CentOS 7 'No matching Packages to list' for man

As part of my test environment I'm running CentOS 6.6 in one VM and CentOS 7 in another. They are both relatively fresh installs, running Puppet. However, when I run yum list man on the CentOS 7 box ...
0
votes
0answers
4 views

Which are the files and applications that manage keyboard and dead keys configuration in KDE?

I´m using kubuntu 15.04 and started to have a problem with dead keys. Some applications (like Kate, Libreoffice Writer) work as expected with the keyboard but others (like Firefox, Emacs) don´t. The ...
3
votes
2answers
160 views

Grep all at once

The script I have receives arguments and needs to grep through another file. Script loops through every argument. Is there a way to collect the arguments in a single search string and grep with OR ? ...
0
votes
0answers
8 views

auto mp3 id3 tag updater as a service [duplicate]

I have an ubuntu 14.04 server running 7/24 as NFS, torrent server etc. I have many mp3 files needed to update id3 tags. Is there a way for auto update those mp3 files id3 tags like musicbrainz picard ...
0
votes
1answer
25 views

How can I get self-compiled packages to play nice with packages managers (e.g. apt-get, yum) [duplicate]

Suppose I want to: compile and install my own custom application which requires downloading, compiling and installing the source for newest version of libthrift which requires downloading, compiling ...
2
votes
1answer
30 views

make sure all lines in a textfiles don't have the same value

I have a text file that contain multiple lines. Some of the lines have contain same value. What I want is to make sure that all of the lines do not have duplicates or "triplicates". Sample: ...
1
vote
1answer
19 views

Only one display mode for my monitor

I am running Debian 8 on a Toshiba Satellite laptop. When at home I connect my laptop to an external monitor through an HDMI cable. My laptop's monitor has recently stopped supporting any display ...
0
votes
1answer
18 views

Problem with touch pad in linux

I have a Lenovo g500 laptop and I recently installed Ubuntu 14.04 in it. The problem is that the touchpad in not being dectected. I ran Ubuntu in live mode before installation and the touchpad worked ...
0
votes
1answer
15 views

pexpect fails to match command is grater than 65 characters

Issue with pexpect , python. Pexepect fails to do expect, If the length of the command is greater than 65. #!/usr/bin/python import pexpect sshCmd='ssh root@15.186.22.105' prompt='[root@user ~]#' ...
0
votes
2answers
33 views

Rename specific level of sub folders

I have list of sub folders inside a parent folder as follow: Parent folder folder1 foldera folder2 folderb folder3 folderc I want to rename the subfolders only in ...
1
vote
3answers
35 views

Why kill -9 -1 doesn't work?

From man kill: kill -9 -1       Kill all processes you can kill. But when I do sudo /bin/kill -9 -1 nothing happens. My uname -a for info: Linux michal-Q530 ...
0
votes
0answers
10 views

Failed to change last modified date of the file after do some edit in /var/www

on ubuntu server (14.04) I have a virtual host which is in /var/www and my linux user is group of www-data. But I noticed that, if I change something on a file in /var/www last modified date does not ...
0
votes
0answers
15 views

Failed unmounting /home during shutdown arch linux

I've installed arch on my system multiple times and everything has worked fine, but since last installation I've been seeing messages : Failed unmounting /home. and Failed unmounting /run/user/1000. ...
2
votes
1answer
38 views

Running compilation scripts only if the source file is more recent than the compiled programe

all. I'm not sure if this question belongs here or some other site but I figured I would start here and some helpful moderator would kick me over if there is a better location. What I am trying to ...
-1
votes
1answer
16 views

dead.letter issue on Linux?

i am send mail to list of users, i am sending mail using mailx utility mailx -s "$SUBJECT" "$TO" < $FILE its working fine with valid emails, but getting dead.letter issue when i try to send ...
0
votes
0answers
12 views

Listing the packages in a package group on CentOS 7

I'd like to see which packages are in the YUM group Desktop on CentOS 7. I am aware of the yum group info command, but it does not list any packages for the Desktop group. Why not? When I run yum ...
1
vote
3answers
21 views

Using awk to merge 2 files

I would like to merge 2 files based on column 1, 2, 3. I have tried the awk command below but is not working. awk 'NR==FNR {h[$1FS$2FS$3]=$4; next}{k=$1FS$2FS$3; if (k in h) print $1,$2,$3,$4,h[k] ...
1
vote
1answer
24 views

How to add hostname, date, and fix disk size

I'm collecting disk usage data and want to add the date, time, and hostname to this command. How can I do it in this format: YYYY-MM-DD HH:MM:SS,HOSTNAME,DISK_USAGE_DATA Command I have so far: ...
0
votes
0answers
6 views

musl-gcc not working

I have linux installed in armv6 android phone in chrooted environment. I have installed musl-libc from source for building static binary for android. Here are the commands, I ran for building & ...
1
vote
1answer
33 views

How do I get a folder name using a wildcard and check for it's uniqueness

I want to move a series of file into different folder based on their ID, but I want to make sure that the folder I'm moving the file to exists and is unique The folders have a matching ID as the ...
0
votes
0answers
4 views

How to throttle system resources during transfer from btrfs on file image on cifs mount?

I have a btrfs on a sparse file image (4TB) on a cifs mount of a remote NAS (Synology DS214) with zlib compression enabled. Transferring file from and onto the btrfs causes freezes of Linux (where it ...
1
vote
1answer
29 views

Can connecting to a SSH tunnel result in a vulnerability?

it's probably a noob question, but I haven't found a real answer yet. I bought a proxy service. In order to setup my browser I have to establish a SSH tunnel to their server. Since I do not want to ...
0
votes
1answer
33 views

mv: cannot access file

Good day All, I have a script with permissions - 770 root:root script.sh. The scripts has to zip then moves files with permissions - 644 rex:roger file.csv. With a bash one line - mv file.csv ...
1
vote
1answer
28 views

How can I remove part of folder name

I have list of folder names file1xxx file2xxx file3xxx I want to remove "xxx" from it's name. I tried the following bash for dirname in $(cat ${in}/all.txt); do # all.txt include the name of the ...
0
votes
0answers
13 views

Getting Minor Version Mismatch Error with Php and Mysql

I randomly started getting this error when trying to instantiate a new mysqli instance in php script: mysqli::mysqli(): Headers and client library minor version mismatch. Headers:50541 ...
0
votes
1answer
15 views

CentOS 7 Live - Read-only file system error

I am loaded a CentOS 7 Gnome Live USB. I wanted to do some operations on it without touching the installed system on the computer, because I only want to try some things. I installed openssh-server ...
1
vote
0answers
25 views

Add arguments to last invocation of `find … -exec $COMMAND {} +`

I'm generation ctags using something like following line find -iname '*.[hc]' -exec ctags -a --sort=no {} + Consequence is, that tags are not sorted. For that I'm using sort -u -o tags tags What ...
1
vote
0answers
6 views

Get “recent files” in global file manager (Dolphin?)

I just switched to OpenSUSE (KDE) from my Fedora 20 KDE setup,and I find myself greatly missing a feature that was a default in Fedora: a "Recently Used" option in the file manager when saving and ...
0
votes
0answers
13 views

Unable to restore backup - system says I don't have permission

I was having problems with my Ubuntu 14.04 LTS, and decided to backup my files to an external USB drive. No problems doing that. I then did a completely new installation of 14.04.2 LTS. When I try ...
0
votes
1answer
26 views

find and replace with the value in another file

I have two files with different formats with columns tab spaced. I have to compare the columns column1, column2 of file1 with file2. If they matches, I need to replace the value in column6 of file1 ...
2
votes
3answers
118 views

Shell script executed with cron results in different size file than executed manually

I have a RHEL server that I am running a MySQL database on. I have a Bash script that executes mysqldump that creates a backup file. The backup file created when executing the script directly in ...
1
vote
0answers
15 views

Print Screen button does nothing on Debian 8 “jessie”

I've recently noticed that the Print Screen button isn't doing anything on Debian 8 "jessie". Usually when you press it, you see a "click" and the image is saved in the folder /Pictures, but not in ...
0
votes
0answers
12 views

Only loopback Ubuntu on Hyper-V

I'm alreay running an Ubuntu server under Hyper-V on NIC 1 (eth0) and now I want to implement a second one on NIC 4 (eth3). Just like with the first server a virtual switch got created without fixed ...
0
votes
0answers
4 views

Django WSGI setup causing permission denied issues

I'm new in the world of Django. I've been working on setting up WSGI to serve my Django project. It is working fine on my personal machine but on the server I'm having a hard time to setup. I'm ...
1
vote
0answers
6 views

Is there a way to import a recipient's address from mutt into abook?

I am using abook as my addressbook with mutt. I have set up a Macro that lets me import the sender's address from an e-mail via the abook --add-email command. I also receive e-mail that is addressed ...
2
votes
0answers
6 views

Wifi and wifi hotspot at once

I have wifi adapter TP-Link TL-WN722N I want to use it to access internet and to share wifi access point at once. I did it on windows 8: netsh wlan set hostednetwork mode=allow ssid="APname" ...

15 30 50 per page