2
votes
1answer
281 views

How to make SysRq working on laptop?

My /proc/sys/kernel/sysrq contains the number 502, but Alt+SysRq+... seems not to work on my HP Pavilion laptop. How can I fix that? Update 1: By the way: neither my print-screen-key nor any other ...
1
vote
1answer
147 views

MacOS terminal ssh input buffer size

I am trying to cut-paste some switch config over an ssh session from my mac. It seems to start mangling it after a set buffer size. Surely cut-paste buffer is large enough, since I can cut-paste just ...
0
votes
0answers
41 views

readline emacs equivalent to vi's 'fc'

In vi readline, I can use the command fc where c is a character I want to find and jump to in the current line. E.g. echo 'hello world' fw --------> Is there an equivalent command in emacs mode? ...
1
vote
1answer
99 views

Network Monitor Tun Interfaces

I am trying to setup monitoring for my openvpn setup. Everything I have found so far doesn't have good logging for anything but the main network connection. I already have logging of openvpn data ...
3
votes
2answers
139 views

How to skip unresponsive server

I wrote a script that runs on multiple servers. Sometimes the script gets hung on one of the servers and I have to hit (control C) to end the process. If not, it gets stuck and keeps trying to connect....
0
votes
2answers
127 views

Unable to get actual row counts because of carriage-return embedded in values:

I have an input delimiter file. The actual number of records in the file is 4. But due to carriage-returns in the values, now the total count is 8. I just want to do a count of rows based on the first ...
0
votes
1answer
822 views

Set persistent static routes for 4 interfaces on 2 CentOS 7.1 servers

I am tasked to set up two test servers running CentOS 7.1 (Minimal install; the NetworkManager is disabled on both), and have run into a set of issues that I would like to get help here. The ...
0
votes
1answer
122 views

Pass environment variables to clean chroot in Arch

I am writing a PKGBUILD for Arch Linux. The package is large and compressing/uncompromising it take considerable time for limited space savings and I would like to turn it off while I am writing the ...
0
votes
0answers
101 views

Focus stealing under Xfce in Matlab (Java programs?)

I'm using Matlab R2015a under Debian Linux. I recently switched to Xfce 4.12 as my desktop environment, and since then I am experiencing weird focus behavior: When I try to interact with the ...
1
vote
1answer
35 views

rm all files to the right of “==” printed on the screen

I have a script that prints: dhcp-18-189-47-44:CE06_getting_new_fit myname$ ./find-duplicate-structures.sh custom_structures new_GS_calculation/selected/POSCAR_00* ../CE05-structures_recombined/enum-...
1
vote
2answers
136 views

linux terminal transfer control to new terminal [closed]

in one of my shell program, I want start an xterm window from terminal and then the control of next execution should go to the newly opened window (by default the control will be in the terminal). ...
4
votes
1answer
72 views

Show current email address in Mutt status line

I have multiple email accounts configured with Mutt, however it's not always clear to me in which account I'm currently on. I'm looking forward to add my current email address (from the from property)...
1
vote
1answer
562 views

List that contains the last installed / upgraded packages in Arch Linux

How can I get a list of packages, that last installed / upgraded by pacman / yaourt in Arch Linux including the timestamp?
0
votes
1answer
37 views

Manage multiple servers

I wrote a simple script that I want to run on several hosts. (I.e., I want to run one instance of the script, but have it operate on several hosts.) The script works, but only for the first host. When ...
0
votes
0answers
237 views

How to sync Google Calendar gcalcli with Conky/Desktop?

Main Question: As the title says, I want to sync my Google Calendar with the Linux Mint 17.2 desktop; preferably through Conky. I'm aware of a method using Thunderbird but I'd rather have it set up as ...
1
vote
2answers
61 views

compling kernels for armhf

I am trying to compile my own kernel but I am having some issues with understanding. I am using the latest kernel available from kernel.org. My issue is at current: I have zero clue on what options ...
0
votes
1answer
319 views

How can I forward only errors from the audit log to rsyslog server?

rsyslog documentation is very unclear. I want to forward only errors from auditlog to the remote rsyslog server. The examples show: # auditd audit.log $InputFileName /var/log/audit/audit.log $...
0
votes
0answers
53 views

rsyslog treats message string as the source hostname

Sample device kernel logs sent across the wire to rsyslog server- 2015-08-27T09:43:53.141273+00:00 console [netcon0] enabled 2015-08-27T11:26:39.658558+00:00 console [netcon0] enabled 2015-08-27T10:...
2
votes
3answers
209 views

FNR and NR variables problem

I have two files, one of them has 10 records, and the other one with 15 record, the problem is when I cat them together, always FNR=NR. For example, consider below files: File1: 1,boo 2,foo 3,boo ...
3
votes
1answer
205 views

weird characters in bash shell

Sometimes when I use the rm tool or stat tool in bash shell I get following weird characters: root@server:~# rm -vr blah removed directory: �blah� root@server:~# Locale settings can be seen here: ...
4
votes
1answer
61 views

Unknown word comes up automatically after changing password on a user

I am using Redhat 5.4 and when I tend to change Oracle user password this comes up right after hitting Enter: passwd oracle Retype new UNIX password: passwd: all authentication tokens updated ...
1
vote
0answers
111 views

apt-get update: Unable to find expected entry 'Packages' in Release file

We have an automated build and deploy process based on debootstrap and apt for creating image files for one of our products directly after the build on the build-server. The sources.list is a bit ...
1
vote
0answers
175 views

How to enable unison to login with ssh from systemd service unit?

I have a pdf-sync.path file for systemd runnin in user-space (systemctl --user enable pdf-sync.path). Whenever there is a change in the folder that I defined in the path file I want to synchronize ...
2
votes
0answers
144 views

How to define different routes for global and non-global zone to the same destination?

I have the requirement to separate the management network for global and non global zones in a Solaris 10 server. The global zone has its own management network and all non-global zones share their ...
0
votes
2answers
892 views

Check if process is running Mac OS X then execute code

I am creating a script which clears the cache for Google Chrome. However, I would like to check if Chrome is open and if so not run the code but if it isn't then it will execute the code. I can see ...
0
votes
1answer
333 views

A lot of systemd messages since upgrade to Fedora 22

I upgraded several systems to Fedora 22. After the upgrade I see every 10-20 seconds a lot of messages form systemd: Aug 27 15:30:09 host.example.org systemd[1]: Created slice user-494.slice. Aug 27 ...
1
vote
0answers
83 views

how to read a nand?

There is a NAND Flash drive embedded into the motherboard I am using. Linux by default does not read NAND Flash, how can I modify my system to allow me to read the NAND flash drive like any other ...
1
vote
1answer
92 views

Serial device data feedback loop possible?

Is it possible to do some echo on /dev/ttyS8 serial device in one terminal window, and in second to cat /dev/ttyS8 and display data from that file?
0
votes
1answer
193 views

Permission denied to file even though I am in that group

I know there is a question like this already, but it was confusing question and answer, and I think this should be simple I am testing deleting a file and I have two users admin_ftpuser works, ...
1
vote
1answer
99 views

How to install cctrlapp on debian?

I try to install the cctrl command line client on a debian 8 machine. Following the install instructions, I installed python, pip and then (via pip) cctrl apt-get install python apt-get install ...
2
votes
1answer
358 views

Is there a way to enter a password with onscreen keyboard to unlock a LUKS crypto device during bootup?

I just installed Linux (Ubuntu, but it does not really matter) on an x86-based tablet. I also encrypted a partition which is mounted during bootup. Of course, one usually needs to enter the password ...
3
votes
2answers
130 views

Why user without any PASSWD entry in sudo config has to authenticate every time?

Consider this sudo config for two users: mary ALL = (ALL) NOPASSWD: /bin/ls, /bin/cat bob ALL = (ALL) PASSWD: /bin/sort Now, when user mary executes any command not in the list she has to ...
1
vote
4answers
101 views

Match regular expression between delimiters

I have a file with several different lines. I'm looking for lines that contain(more or less) pattern like this: \[.*<.*>.*\] In other words, I want the lines that have <something> ...
0
votes
1answer
83 views

Proxy connection via SSH from one terminal to another

I have a private proxy which can be either HTTP/SOCKS, and i am renting a Linode server that i use for web-hosting. If I use a program like putty to SSH onto the webserver and run who it will display ...
1
vote
1answer
451 views

why does rsync log-file not contain updates to regular files when dry-run?

In dry-run-mode, the log file does not contain changed/ updated regular files, and no deletions at all. It only contains changed and created directories. Yet, when executed without dry-run, the log ...
1
vote
1answer
734 views

Can't install fail2ban on Centos 7.1

I am trying to install fail2ban on my centos 7.1 server I did: yum install epel-release yum install fail2ban But i am getting some error messages: yum install epel-release Package epel-...
0
votes
0answers
47 views

Get the list of applications in the Gnome-menu command

Which command can I use in order to get the list of application names in the gnome-menu, linux?
2
votes
2answers
344 views

Use default gateway as ntp server

I have a lot of servers running debian and they all must synchronize clock to NTP server running on their respective default gateway. Since there is many servers on many different network segments, I ...
0
votes
0answers
37 views

Debian Jessie - Terminal not resizing for non-admin user

I've deployed a Debian 8 instance on ec2 using the "official" AMI listed for my region on the debian site. I logged into the default admin account and created another user before logging in as them. ...
3
votes
2answers
727 views

Why can't I create a file in a directory where I have group write access? [duplicate]

There's a situation I don't quite understand. I have this directory, where the group 'webadmin' has rwx rights : $ ls -la total 8 drwxrwxr-x 2 root webadmin 4096 Aug 27 12:17 . ⋮ ...
0
votes
1answer
191 views

How to backup all the files that I'm copying before being overwritten?

I have a folder like this: ./folder-a/index.html ./folder-b/index.html ./folder-c/subdir/index.html ./new-content/folder-a/index.html ./new-content/folder-b/index.html ./new-content/folder-c/subdir/...
2
votes
1answer
2k views

Check if multiple files exist in directory

How to find multiple files present in a directory in ksh (on AIX) I am trying below one: if [ $# -lt 1 ];then echo "Please enter the path" exit fi path=$1 if [ [ ! f $path/cc*.csv ] &&...
0
votes
0answers
18 views

Network testing (e.g. iperf) using only one server

I would like to test my network performance using iperf on a single Unix host. As far as I can tell, a solution would be to make server able to distinguish traffic on the two networks without "...
0
votes
1answer
1k views

Downgrade Kali Linux

I have upgraded my system to KALI Sana 2.0 and kernel 4.0.0-Kali1-amd64. Previously I had the version kali-linux 1.1.0 and kernel 3.18-Kali1-amd64. The reason I want to downgrade is that Kali Sana 2....
1
vote
3answers
1k views

Install Git offline without sudo

I have a corporate Linux server which does not have internet connection, and sudo access needs to be approved through many levels of hierachy. I've tried install git but I soon realized this needs a ...
0
votes
0answers
77 views

Sort Checkpoint Firewall log into easier output

I am trying to sort out this log: Aug 27 01:23:38 1.1.1.1/1.1.1.1/1.1.1.1 fw1-loggrabber[0000]: loc=12569|time=2015-08-27 01:23:37|action=block|orig=192.168.1.1|i/f_dir=outbound|i/f_name=eth1-04|...
4
votes
5answers
1k views

delete folders older than 1 day

I want to delete all the folders that are older than 1 day with following command: find /test -mmin +1440 | xargs rm -rf But the output of find lists /test (and would remove it accordingly). How ...
7
votes
3answers
370 views

finding systemd unit 'owning' a running daemon process

To debug a JACK/Pulseaudio issue, I want to understand when and why the pulseaudio daemon is started by systemd (on Fedora). Using $ ps -o'pid,ppid,args' `pgrep pulse` is see that the pulseaudio ...
0
votes
1answer
64 views

How to run bunch of hierarchical dummy shell processes (process of another process, etc.)?

I would like to run multiple processes where each process is running another one, so it will create a long process branch. I've tried: $ bash -c '(bash -c "sleep 20"); sleep 20' & $ pstree $(...
6
votes
2answers
500 views

How to use tar to compress a group of files in a .txt file?

I have a lot of filenames that listed in a .txt file called to_be_archived_files.txt, and its content is as: ~/Documents/dir1/a.html ~/Documents/dir1/b.html ~/Documents/dir1/c/1.html How do I add ...

15 30 50 per page