0
votes
1answer
9 views

Restore deleted text file content

I just wrote an important text and stored it as a simple text file. Then i accidentally cut out the content when i just wanted to copy it, and saved the file. Now it is of course empty. Is there any ...
0
votes
1answer
9 views

Set variable to random item in array

In bash, I have an array containing a list of links, e.g. http://xkcd.com/archive http://what-if.xkcd.com/ http://blag.xkcd.com/ http://store.xkcd.com/ I also have a variable named $URL. I would ...
2
votes
3answers
26 views

String Manipulation Shell Script

I am working on a UPS Monitoring project using NUT Server. My objective is to make a shell script which sends one command and in response receives the status and other parameters from the UPS. for ...
3
votes
1answer
31 views

exec and tee to the logfile. explain this bash commands

I saw this at the top of my bash script file. export LOGFILE=$LOGDIRECTORY/${SCRIPT_NAME}.log exec > >(tee $LOGFILE) exec 2>&1 What does it do? What are two exec processes doing here? ...
0
votes
0answers
5 views

Create a new volume on free diskspace from inside Dom0

I have a server with two HDDs (/dev/sda and sdb) with 1.8TB each. On both disks, there is a 500MB Swap and an 800GB partition, that are in a raid md0 and md1: pvs PV VG Fmt Attr PSize ...
1
vote
1answer
18 views

Forwarding X-windows through a su - session

I'm trying to forward my X windows, but seems to be limited to just on session? What I'm trying to do is invoke x-applications as another user, through a sudo su -. If I know the other user's ...
0
votes
0answers
10 views

Why is my udev mounted device not staying put?

I have a computer running CentOS 7. I'm trying to set up a udev rule to automatically mount a USB drive (named 'sdb1') to /mnt/flash whenever it is connected. The udev script was not working (see ...
1
vote
5answers
24 views

tar without preserving user

I'd like to compress some files for http distribution, but found that .tar.gz keeps the user name and user ID and there doesn't seem to be any way to not do that? (There is a --numeric-owner option ...
0
votes
0answers
3 views

ffmpeg issues producing an HLS live stream that works in quicktime

I am trying to produce an HLS live stream that can be consumed by quicktime. Using the command below, the resulting stream (when served by a python SimpleHTTPServer) is playable by VLC and also by ...
1
vote
1answer
16 views

Does it make sudo more secure when indexing all commands by their SHA-2 checksums?

I'm asking myself whether system security substantially increases when I generate a security policy, i.e. sudoers file which contains one or more Cmnd_Alias definitions that enumerate all executable ...
0
votes
1answer
34 views

Time changes suddenly even though NTP is configured

If have SLES 11 SP2 and this is the problem: I have configured the NTP service and when I restart it then it is synchronizing correctly the time. Then, suddenly after around 7-8 minutes the time ...
2
votes
0answers
18 views

How do Linux kernel modules get enabled in a Linux distro's kernel package?

Although I know how to recompile my kernel to enable a module I want, I'm curious to know how the default Linux kernel modules are chosen in a Linux distribution's kernel package. Taking a comparison ...
0
votes
1answer
12 views

How to print ${STR1} and $STR2 into a file in bash

I need to print expressions ${STR1} and $STR2 into a file (not the content of the variables).How can I accomplish this using echo or printf?
0
votes
2answers
17 views

Generating wordlist permutations from existing files

I have two wordlist files; the first contains: John Jerry Jim the second contains: one two three The files are several thousand lines each, not just the 3 words above. How can I generate ...
0
votes
0answers
3 views

Mint + Kernel 4.5.4: laptop loses suspend state when unplugged

I'm using Linux Mint 17.3 on a newish Asus laptop with Mate desktop. To get the Nvidia graphics and Elan touchpad both to work, I installed the 4.5.4 Linux kernel. I've pretty much got everything ...
0
votes
1answer
36 views

Is it okay to modify Ubuntu Linux 16.04's /etc/fstab after I initialized it?

I modified /etc/fstab after I initialized it on an Ubuntu Linux 16.04 system running on an Lenovo Thinkstation desktop. After it messed up my Ubuntu Linux 16.04 system causing it to go into emergency ...
0
votes
0answers
4 views

El Capitan 10.11.15 can't set disk with OS as startup disk, only boots if I reset nvram

Mac Pro (Mid 210) Since installing El Capitan on new HGST 6T drive I can ONLY boot this system by resetting NVRAM. If I try to restart I get apple, progress meter, then circle with line through it ...
1
vote
3answers
14 views

How to remove a zsh keybinding if I don't know what it does?

How do I disable a keybinding if I don't know what it is or what it's triggering? I have my zsh key mode set to vi-mode, through bindkey -v. To do a history search, I press Esc to get to "command ...
0
votes
3answers
17 views

Double sided DVD's: Is it possible to have a dual-layer (both sided) DVD that is usable for 9.4GB Distro Installs?

I was looking at installs with all my OSS software, and the 4.7GB limit was reached for install of a particular Linux distro. My question is is it possible to have a Double-sided DVD-RAM (i.e. the ...
0
votes
0answers
17 views

Cannot telnet outside network to open port on OEL 6 machine

I have an OEL 6 server that locally is assigned IP 10.200.15.79. It is hosting a business application that uses port 1031 to send and receive information through TCP/IP. To allow this on the OEL ...
0
votes
0answers
7 views

Automount USB sticks on fedora 22

I need to automount any USB stick that gets connect to any USB port. I am running Fedora 22. I thought this would be straightforward but it is taking a while for me to set up. The tutorial I find when ...
0
votes
0answers
11 views

tc filtering on mark only works with fw filter

I have a traffic shaping script which uses iptables to mark packages: iptables -A PREROUTING -i $EXTDEV -t mangle ! -s 192.168.0.0/24 -j MARK --set-mark 0x1/0x1 The following filter works as ...
0
votes
0answers
3 views

Strange PFN read from pagemap

I m trying to find the physical page to which a range of virtual addresses are mapped in a piece of C code that I ve written. I m using the /proc/self/pagemap to read the mapping. I ve used the code ...
0
votes
0answers
3 views

Ubuntu won't lock on lid close, lock keystroke, or settings -> lock on Ubuntu 12.04 LTS installed via croton to a chromebook

I installed ubuntu via this guide http://lifehacker.com/how-to-install-linux-on-a-chromebook-and-unlock-its-ful-509039343 using the unity option instead of xfce. WHen I close the lid, hit the lock ...
0
votes
0answers
6 views

Discrete graphics card nvidia/intel detection problem

Good afternoon, ladies and gentlemen, I hope that some good soul can help me here please. lspci -nn | grep VGA doesn't find my discrete graphics card, however lspci -nn | grep 01:00.0 shows some 3D ...
0
votes
1answer
8 views

Tmux shortcut problem

While using Tmux, I tried to maximise the current pane using <prefix> z, and had a bit of a keyboard fail and accidently held down the prefix keys while pressing z, instead of letting go of the ...
0
votes
0answers
12 views

.ksh session hangs after being inactive

While remotely connecting to a Linux machine using ssh, my .ksh session hangs after being inactive for sometime. If I try to type or ctrl-z, the prompt does not respond. Is there a way to restore my ...
1
vote
1answer
12 views

What is the proper way to use ISOLINUX with UEFI?

I've been trying to add UEFI support in the 64-bit version of Minimal Linux Live for quite some time, unfortunately without much success. As you can see from the below image, I get critical error each ...
0
votes
0answers
3 views

Unable to print to windows 8, 8.1 or 10 print server via Samba

We use SCO versions 3.2v5.0.6 through Definitive. None of these servers are able to send print jobs to Windows 8, 8.1 or 10. All worked well on Windows 7. I am guessing that it is a setting somewhere ...
0
votes
1answer
9 views

Adding 'exception' words to the rule of perl matching titles script

I have been using this perl script (thanks to Jeff Schaller) to match 3 or more words in the title fields of two separate csv files as answered here: Matching 3 or more words from fields in separate ...
0
votes
2answers
17 views

Listing numbered files using wildcard sequence with predefined range

I have a folder of numbered data files. I am trying to incrementally extract a predefined range of files. The range of files that I am looking for is predefined in two variables, ns and ne, which ...
0
votes
0answers
16 views

Custom kickstart install completes but machine won't boot

I have been following the instructions on using kickstart to create a custom install at : http://www.smorgasbork.com/2012/01/04/building-a-custom-centos-7-kickstart-disc-part-3/ I got an unattended ...
-1
votes
0answers
12 views

anacron — First daily boot > BackInTime

I'm seeing anacron at class and I didn't really undestood it so much. Now I have an exercise to execute a Back up at BackInTime 5 mins later of the first daily boot. How can I accomplish that?
0
votes
0answers
3 views

Manually Select Driver (AHCI/SATA Drive)

I am wondering if there is a way to bypass the default driver when using a SATA Host Bus Adapter (I want it to use my LKM). The other way of doing this is black listing the default driver so mine ...
0
votes
0answers
4 views

Can we add Manjaro repository to Arch-Linux?

It's just as the title says.Can we do it? or is it different from how arch-repos work? If so, how can we do it? -Thanks in advance!
0
votes
1answer
29 views

Few questions about realization of commands using bash scripts

I'm the newbie into scripting, so, please, sorry for annoying questions. I need to create bash script file, which after its launch does following. 1) Suppose after launching the script I enter the ...
0
votes
1answer
14 views

Extracting a date from a log file and creating a file with unique dates

I would like to extract from a file the date with format DD.MM.YYYY, date is always in the first place, here an example of the entries 15.04.2016 13:13:30,228 INFO [wComService] ...
0
votes
0answers
12 views

git does not work for some repo but work for others

I encountered a very weird issue for git. I have three repo.s in github, say repo1, repo2 and repo3. On machine 1, I used to be able to clone and pull all three repos. However, suddenly I couldn't ...
2
votes
2answers
21 views

xargs on OSX: illegal option --

I'm on OSX. I want to run a python script against all pngs in a particular directory. This is what I've tried: find docs/ -name "*png" | xargs --replace=F python myscript.py "F" But I see this: ...
0
votes
0answers
12 views

Why I can't open the kernel git repo in my GIT GUI client?

I successfully cloned the kernel using git in command line, nevertheless I find difficult to navigate throughout the repo using the cli and I got a gui client, gitkraken to be specific. The thing ...
0
votes
1answer
11 views

How to move positions of OSes in grub 2?

I installed multiple OSes on my PC. When the grub bootloader appears, I want the order to be different. How can I change that order?
0
votes
0answers
16 views

reverse tunnel on a multi hops ssh tunnel

I'm a windows user, that needs to access his server at home using a double hop ssh tunnel. I've configured via putty, a socks tunnel on a 2 hops ssh connection using a dynamic port, based on this ...
1
vote
3answers
26 views

How to edit next line after pattern using sed?

Using sed, how do I search for a line ending with foo and then edit the next line if it starts with #bar? Or put another way, I want to remove a comment # from the next line if it starts with #bar ...
0
votes
1answer
19 views

How to return the matched expression of a grep command

I am trying to debug a command that I regular use to search across my file system. I have an external file that contains a list of regular expressions that I want to match against. Example [the real ...
0
votes
0answers
26 views

Exiting a shell script if certain child processes exit

I have a Bash script that starts one web server, does some work, and then starts a second web server. I would like the script to exit, and for both of these servers to be terminated, if either server ...
0
votes
0answers
5 views

In Ubuntu Chromium does not load any saved passwords in Normal Mode but working fine in Incognito Mode

I have a weird problem. I recently did a software update for Chromium and now it does not load any off my saved passwords (I literally had hundred for all my clients.) When I go to manage saved ...
0
votes
2answers
21 views

Do not produce output when process does not exist

I would be happy if the following command produced no output if tail was not running: ps --no-headers $(pidof tail) Instead I get: 964 pts/2 00:00:01 bash 4393 pts/2 00:00:00 ps
0
votes
0answers
36 views

Why does modifying /etc/fstab and starting the autofs service corrupt my home directory?

I am running Ubuntu Linux 16.04 on a Lenovo Thinkstation. Yesterday when I modified /etc/fstab and started the autofs service, I lost access to my home directory /home/frank which I valiantly tried to ...
0
votes
0answers
10 views

Write-benchmark of gnome-disks

Does the write-benchmark of gnome-disks write back the original data after the test? It is destructive? The Benchmark Settings window only states this: Please back up important data before using the ...
1
vote
0answers
14 views

sar command vs /proc/stat for cpu ussage

I have been using /proc/stat for calculating the cpu usage. Recently I have been going through sar command for calculating cpu usage. And what I found was that their values were not related (I was ...

15 30 50 per page