4
votes
1answer
69 views

Is there a command line tool to manage unix signals?

Is there a command runner like env, nice, nohup, etc., that can run a program with modified signals? In my case, I need something to reset SIGINT to SIG_DFL. Why do I need this? Because ...
0
votes
1answer
18 views

Number of Threads in Kernel

How can I get the number of threads in the kernel at specific sampling rate? I need to measure the utilization of the system directly by myself.
0
votes
2answers
22 views

Saving a piped value went wrong

I installed jq to handle some JSON with bash. But somehow piping the JSON string to jq in combination with saving it's output to another variable went wrong. TEST='{"foo": "bar"}' PB_SIG=$TEST | jq ...
1
vote
1answer
4 views

Qemu and AARCH64

I'm trying to setup an ARM64 machine using QEMU. I ended up fetching the kernel and img file from here and here. I reached the above links from here. When I try to run the OS as :- qemu-aarch64 -m ...
0
votes
0answers
12 views

How to get back my splitted screen after I lost connection

I was executing the screen command with a splitted window in my CentOS server then I lost connection to it. I reconnected to my server and I did screen -r to get my screen back but now I don't see ...
1
vote
0answers
14 views

Trying to use an X server over ssh starts the server using a local display instead of remote [on hold]

I have a desktop and laptop computer, I would like to control the desktop from the laptop. I have an ssh server on the desktop. On the laptop I ran xinit and in the terminal I got I ran the ...
0
votes
0answers
20 views

Using cron to start a process on a terminal without using screen?

I want to start a process in a terminal using cron. I want the process to start in a terminal, so that I can continuously see the output of the process on the terminal, and kill it / restart it etc. I ...
1
vote
1answer
26 views

How to add a dir to fpath

I'm using zsh and prezto. I've adding the following line at the end of my .zshrc fpath=(/usr/local/share/zsh/site-functions $fpath) But unfortunately, the functions defined in this folder seems ...
5
votes
2answers
278 views

Why does `cat` seem to iterate over JSON arrays?

I'm puzzled by this behaviour of cat when trying to output a heredoc containing JSON in bash 3.2: input: $ cat <(cat <<EOF > {"x":[{"a":1,"b":2}]} > EOF) output: {"x":["a":1]} ...
0
votes
1answer
36 views

find returns 'No such file or directory'

Continuously getting so many warnings yet my command is working fine. find: `api/PlayersImpl0.smali': No such file or directory find: `api/PlayersImpl1.smali': No such file or directory find: ...
0
votes
1answer
18 views

Installing libssl1.0.0 and OpenSSL 1.0 in Debian 6

I am newbie to OpenSSL. We are trying to connect to our server where its configuration requires the TLS1.1 protocol for connection. Debian 6 repos do not have direct backports for libssl1.0.0 and ...
0
votes
0answers
19 views

yum update dependency in CentOS 6.6

After installing a rpm, by running sudo yum update in CentOS 6.6, I am getting the error Error: Package: qgis-python-2.8.1-3.el7.centos.x86_64 (neteler-QGIS-2.8-Wien) Requires: ...
2
votes
1answer
22 views

Move up every other line to end of line containing character

I have ran 2 xpath queries piped together to retrieve certain information. However the results came out formatted on separate lines when I want them to be on the same line. So for example the lines ...
0
votes
0answers
12 views

Convert VMWare virtual machine to .ISO

I have a virtual machine with the extension .vmwarevm. The OS is Ubuntu 15.04 Mini 64-bit. I have no GUI, just command line interface. I looked up a couple of tools like remastersys but had no luck. ...
0
votes
0answers
5 views

XRANDR showing two inputs instead of 1

VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.0* 800x600 60.3 56.2 848x480 60.0 640x480 59.9 HDMI1 connected ...
10
votes
3answers
766 views

How to understand “cat > file_name << blah” command?

In following command cat takes the content of here-doc and redirects it to file named conf: cat > conf << EOF var1="cat" var2="dog" var3="hamster" EOF How to understand the order of ...
1
vote
0answers
20 views

How do I get new filesystem formats to use in mkfs?

I am currently attempting to run some benchmark tests using different filesystem formats. However, I can only use the ext family, cramfs, and msdos formats with mkfs since those are the only formats ...
0
votes
1answer
27 views

Running multiple commands at the same time

I want to run two commands on terminal on my virtual machine at the same time. I have this as of now: sudo ptpd -c -g -b eth1 -h -D; sudo tcpdump -nni eth1 -e icmp[icmptype] == 8 -w capmasv6.pcap ...
1
vote
1answer
31 views

Adding new language to Gedit

I need to add a new language in Gedit. The problem is, it is included in Gedit menu of languages now, but its syntax is not highlighted and Gedit is not able to indentify the language just from the ...
0
votes
2answers
45 views

viewing printf after pipe (or subshell?)

Ok, this is hard to distill to a single question because it really depends on how I'm going to troubleshoot it. The following script is meant to pipe mount.cifs commands to a while loop that enters ...
1
vote
1answer
59 views

Compiling sources with a non-default compiler

I need to implement an authentication scheme on an embedded device and require gmp in order to perform large integer operations. After downloading the sources they must be compiled with a proprietary ...
0
votes
1answer
13 views

How do I allow other physical machines on my LAN to connect to a web server hosted within my local virtual box windows VM?

I am running Windows Server 2008 R2 within Virtual Box v4 with os x 10.6 as my host. Within Windows Server, I am running IIS and I have successfully been able to access my web server with Internet ...
-1
votes
0answers
12 views

Ubuntu mini won't recognize my touchpad on VMWare

I installed Ubuntu Mini 15.04 64-bit with Gnome desktop on VMWare Fusion. My trackpad from my Mac doesn't work on it. Do I need to install something for it to work? It's really annoying navigating ...
0
votes
0answers
3 views

Munin graphs y-axis scale not consistent within time frames

We use Munin for monitoring but sometimes there's a strange inconsistency between daily, weekly, monthly, and yearly graphs. For instance, one of the parameters monitored is the MySQL replication ...
1
vote
0answers
30 views

Centos 7/Gnome Applications menu items don't respond

I have CentOS 7 installed with gnome. After some uptime, no items under the 'Applications' menu respond.* I can open the menus and submenus and hover over items with the mouse pointer. They will ...
3
votes
4answers
110 views

How to compare two dates without using Stat?

I'm trying to compare the last date modified of a file to today's date. If the modification date is before today's date then my script will do one thing, if the date matches todays date i need it to ...
-1
votes
0answers
12 views

How to change the password of Gmail in CLI? [migrated]

How to change the password of Gmail in CLI ? That is, after: openssl s_client -crlf -connect pop.gmail.com:995 What command should I type? Some says we can't in CLI. Is it true ? And Is it also ...
0
votes
1answer
18 views

Current X driver

How do I know, by which X driver, the X started. Looking at configuration file or log file is not trustworthy, I guess. These files can be manipulated in one or other way post bootup. Is there any ...
2
votes
0answers
13 views

Is it possible to share the tmux buffer across sessions?

I typically have 2-3 tmux sessions running on my server, and almost always have 2 up at a time, 1 on each monitor. Occasionally I want to take something I copied from one session and paste it into ...
-1
votes
1answer
24 views

Starting Debian mono application (that has a GUI) AFTER boot is done [duplicate]

I've been trying to figure out how to start an application after Debian (Wheezy) is done booting up and on an LXDE desktop session. It is a mono C# application. The script I have is simply mono ...
0
votes
1answer
33 views

Bridge and iptables postrouting

I have a Linux 3.14 PC with three NICs and a bridge between two of the NICs (eth1 and eth2). My Question Why is there no traffic passing through the POSTROUTING rule? FYI, traffic is passing ...
0
votes
0answers
20 views

Centos 7 GUI Freeze problem

I have installed CentOS 7 DVD ISO on my MSI GE70 Laptop that has geforce gtx 765m, when the GUI comes after 5 seconds screen freeze. Is this an nvidia problem? How can I solve it? I cannot disable ...
1
vote
1answer
26 views

regex usage in exim filtering

I'm trying to create an exim filter to block spam messages containing " 85% OFF" in the subject line. That's a blank space, then any two digits, then the percent sign, a blank space and the ...
0
votes
0answers
27 views

normal user runnig a bash script containing root command without password

I have a bash script that contains few commands that can only be run by root, e.g. wpa_supplicant. I would like to allow the normal user to run the script without sudo. I found these posts but they ...
0
votes
0answers
3 views

Advanced-N 6205 wireless module problem in T430 notebooks

After upgrading a RHEL 6.6 (it was already on 6.6) the built-in wifi card couldn't see any wireless networks, the kernel module couldn't load and this was in the /var/log/messages Jul 2 10:21:47 ...
0
votes
1answer
22 views

Can't start mysqld (mariadb) on Fedora, if put a backup into /var/lib/mysql

After some terrible actions, I had to reinstall my Fedora (was 20, became 22). Unfortunately, I was unable to made mysqldump, so I backuped /var/lib/mysql folder. Now, I'm trying to put in on the ...
0
votes
1answer
13 views

How to run a script on a remote machine using the screen command and ssh?

I'd like to run on a list of servers and run remotely a script while using screen. Manually, I'd do: screen -RD ./run_script and manually remotely I'd do: ssh root@server "screen -RD && ...
0
votes
0answers
12 views

Can an rpm package install dependencies in sequence?

I have a custom rpm package being installed in CentOS which has a dependency which is not included in the default repo. This needs to be able to spin up on demand in Jenkins and the way the process is ...
0
votes
0answers
9 views

Slow dragging of windows in Debian 8 LXDE

I did a fresh installation from Debian 8 with LXDE desktop iso. Everything is lightning fast except dragging of windows of programs.
1
vote
2answers
64 views

Difference of using () and $() to execute a series of commands

I am currently trying to make a script that creates bytes that will be piped as input to netcat. Here is the idea of the script: (perl -e "print \"$BYTES\x00\"; cat file; perl -e "print \"More ...
0
votes
0answers
6 views

Nothing helps Gnome Terminal to not default to ANSI_x3.4-1968

I would really like gnome-terminal to default to a UTF-8 encoding, but whatever I do, I can't get it to do it. I don't have sudo access, so I cannot edit /etc/environment. I'm on a university-managed ...
2
votes
4answers
140 views

Replace values in column that contain numbers

I have a file that looks as so: chrom start stop strand isoform mu_codon mut_codon2 more_info chr22 43089055 43089055 - NM_017436 C 300 903delC chr22 43089715 43089717 ...
1
vote
1answer
21 views

How to check which user installed the package or software?

Multi-user system. Fedora 12 x86_64. All users are sudoers.
1
vote
1answer
16 views

Filter screenlog with screen command

Pressing Ctrl+A, H, lets me log output of the screen command. However, the output file is too large. Is it possible to apply a grep-like filter so that I can control what gets logged? For example, I ...
0
votes
1answer
23 views

Want to use find with rsync in script

I'm trying to make a script that will run in cron, that will search a path for specific file name. In the path there might be more folders with that same file name. If found and they are newer than 2 ...
0
votes
1answer
29 views

Rename command not working as expected

I might be overlooking something really basic here but I have a bunch of files like fi-le_00.nc2 fi-le_01.nc2 fi-le_02.nc2 ... fi-le_24.nc2 and I want to rename them to fi-le_00:00:00 ...
0
votes
0answers
9 views

Gksudo not working on Debian Jessie 8.1 XFCE

Hello I'm running Debian Jessie 8.1 on my machine with XFCE desktop environment installed. I'm trying to run some programs using gksu/gksudo but after entering the password and pressing OK nothing ...
0
votes
0answers
11 views

How to prevent usb connection to pi to break?

I have my Pi connected to my android phone via usb tethering. When I connect to the Pi using ssh every thing works fine first, but if I start monitor mode on the wifi device attached to the Pi and ...
4
votes
3answers
167 views

How to print control characters with escape sequences?

I have defined the color red using tput red=$(tput setaf 1) to colorize warnings in my program. This works fine: printf '%sfail\n' "$red" # prints 'fail' in red But on one occasion I would like ...
1
vote
1answer
38 views

Access Point offers itself IP if used as DHCP Server?

I'm trying to use an raspberrypi (OS=raspbian 4.0.7) I had flying around so I researched a little bit and everything seems to work more or less fine. I am using hostapd in combination with an wifi ...

15 30 50 per page