0
votes
0answers
10 views

create user with only permissions to execute C Programs

I am trying to build online code editor. My scenario : Through the web server a request is received for a 'C' program -the root user creates the file, compiles the file and acks success to the user. ...
1
vote
0answers
5 views

Can I migrate an existing openSUSE system to use disk encryption?

Currently, my laptop is running openSUSE Tumbleweed, but it doesn't have any disk encryption configured. Is it possible to switch to full disk encryption or at least home directory encryption after ...
1
vote
1answer
16 views

Switch off 11-minute kernel mode

If ntpd works, then the kernel copies system time to hardware clock every 11 minutes. It is shown by command adjtimex --print I want to stop the kernel eleven mode. If I run hwclock ...
0
votes
0answers
12 views

Can I safely remove my USB drive when my machine is suspended?

I often suspend my laptop with a USB drive still mounted. What I would like to do is store my laptop away and of course, the USB drive is in the way. So I was thinking of removing the USB drive and ...
0
votes
0answers
5 views

Left-clicks not working for any device in openSUSE Tumbleweed

Okay, so I really am at wit's end here. I had this problem where my left click stopped working randomly. It had happened once before, but I thought it was a non-issue, as the problem manifested when I ...
0
votes
0answers
6 views

sudo update-ca-certificates always add new cert

When I run sudo update-ca-certificates on debian 8 it is always add one new cert. it is normal behavior? What's can be wrong? ar@work:/tmp$ sudo update-ca-certificates Updating certificates in ...
0
votes
0answers
6 views

Chromium - H.264 support on Fedora 23

is there a way to add H.264 support to Chromium on Fedora 23/24? Any workaround or alternative solution is fine. I currently use spot's Chromium repo.
0
votes
0answers
6 views

Install compat-libstdc++-33.i686 on Red Hat Enterprise Linux Server release 6.5 (Santiago)

I need to install compat-libstdc++-33.i686 on a Red Hat Enterprise Linux Server release 6.5 (Santiago) without a Red Hat Network Subscription. Is there some where that I can download the required .rpm ...
0
votes
1answer
32 views

How can I retrieve and compare two values from a file?

How can I retrieve and compare two values from a file ? I have the following text : 05-24-2016, 2:59:32,0,0 05-24-2016, 2:59:37,0,0 05-24-2016, 2:59:42,0,0 05-24-2016, 2:59:47,0,0 05-24-2016, ...
0
votes
2answers
23 views

How to extract logs between the current time and the last 15 minutes

I want to extract the logs between the current time stamp and 15 minutes before and sent an email to the people configured. I developed the below script but it's not working properly; can someone help ...
0
votes
1answer
13 views

Get parent directory in cshell script

Hi I'm trying to get parent directory in cshell script but the following code found not working in cshell script: #!/bin/csh -f set dir=$PWD set parentdir="$(dirname "$dir")" Error info: Illegal ...
0
votes
2answers
26 views

Uninstall Wordpress

I am still at the beginning and just wondering how to uninstall totally WordPress and then reinstall it. I installed first time from this tutorial.
0
votes
0answers
14 views

Centos 7 not loading latest kernel at boot

By default, centos 7 comes with kernel version 3.10.x. After installation of centos 7, I have upgraded kernel to 4.6.x that is latest stable version. My system is remote. First, it is very expensive ...
0
votes
3answers
31 views

bash is not terminating

I'm trying some things with my shell. This includes the following command: kill $$ My expectation was that the shell would log me out and terminate itself. But instead the bash persists without ...
2
votes
0answers
20 views

Virsh (libvirt-bin) is not able to communicate with Xen server

I have installed the latest version of Xen server 6.5. Now I want to connect to it with virsh (libvirt-bin). When I do this I get the error error:end of file while reading data: sh:nc:command not ...
3
votes
2answers
46 views

Question about concatenation instructions

I have a semicolon-delimited csv file and a Korn shell script that do some elaboration. I'm searching to understand what these two instructions do in Korn shell: num_rec=`cat test.csv |wc -l|tr -d " ...
1
vote
2answers
22 views

Using DD Disk Image on Red Hat

How can I use dd command on a Linux Red Hat Server 5 to obtain a disk image and then use it eventually in Virtual Box?
1
vote
1answer
16 views

as a Non-root-user,can I change DNS for me in linux? [on hold]

Environment is redhat I don't have privilege but now /etc/resolv.conf is: # Generated by NetworkManager # No nameservers found; try putting DNS servers into your # ifcfg files in ...
2
votes
1answer
14 views

Cannot connect (start?) to postgresql 9.4 on Debian (8.x)

All is in the title,... Actually, I installed PostgreSQL 9.4 (with postGIS extension), and when installed, everything used to work fine. As said on many tuts, I've set the /data folder, checked ...
1
vote
0answers
12 views

check hdmi port status

I have a Asus UN42, the HDMI port seems is not working anymore, no signal is sent through this port, tried different cable. I now use the displayport. Is there any command to see what the problem is? ...
-1
votes
2answers
24 views

Check if a column is float

I have a requirement that i want to check if a column is float or not. If its a float then do nothing else concatenate with .00. File: 2017 47.0000 0.783333 0.2500 1663 1920.0000 32 8.0000 ...
1
vote
0answers
18 views

Raspberry pi blocks completely after multiple reboots

I have a c++ program running on login on the raspberry pi, this program checks data for multiple devices attached on to it (Arduino Mega 2560 + Modbus RS485), gets inputted data from them and sends ...
1
vote
0answers
17 views

rhel - file modification logs

I found a strange file in my /home/user named FireZeMissiles1111.tmp. I am the sole user and did not create it, so it is kind of suspicious. It may have been left there by a program who's programmer ...
1
vote
3answers
126 views

Change directory working directory in shell script

I am trying to write a simple shell script, which will change the directory to the shell script directory and echo it. This is the script: #!/bin/bash # cd '/explicit/path/to/script' cd $(dirname ...
0
votes
0answers
13 views

Unable to boot, “no filesystem could mount root” error

I'm trying to do a PXE boot with an image I created, but after loading the image and the kernel, I get a message that says: No filesystem could mount root, tried: ext3 ext2 iso9668 Kernel panic - ...
0
votes
2answers
50 views

Credit card number validation with bash

I have used the following regular expression to detect the valid card numbers. [2-6][0-9]{3}([ -]?)[0-9]{4}([ -]?)[0-9]{4}([ -]?)[0-9]{3,4}([ -]?)[0-9]{0,3}[^a-zA-Z] But it does not detect the ...
1
vote
0answers
6 views

goldendict not working on Fedora 23

There is a problem when I try to run goldendict on Fedora 23. Actually, after installation it works, but it is crazy because at first it has no dictionary, but when I add a dictionary and try to ...
1
vote
1answer
12 views

In case of success login via IMAP, an email server replies without “OK” and tag

When I'm doing IMAP authentication of one the public email servers and login is successful I believe, it replies like this: * CAPABILITY IMAP4rev1 ID XLIST UIDPLUS UNSELECT MOVE LIST-STATUS There's ...
2
votes
3answers
26 views

Does \ work for escaping functions?

I have a function defined in my .bashrc that I would like to bypass: function func() { // func } export -f func When I run env -i func I can access the func command without the function in the ...
1
vote
0answers
9 views

RT3592BC8 Bluetooth and FreeBSD

I recently purchased a HP ProBook which I plan to sell because I got a newer laptop. The ProBook is a Celeron Dual Core with 4GB of RAM and 250GB HDD. I have two potential buyers, one who wants it for ...
1
vote
1answer
24 views

How to copy just timestamps, or “I should have used cp -p”

I foolishly copied a very large amount of data using cp -r. Looking at it now, I've realized that this means I lost my file modification times. I should have used cp -rp. My directory structure and ...
1
vote
1answer
12 views

how do I add a second ipv6 address on Linux without making it default

When I add an ipv4 address with ip addr add <address> dev <device> It gets added as "secondary" and is not used by default for outgoing connections but when I do the same for ipv6 the address ...
1
vote
0answers
6 views

Removing Unknown Printer

I ran hp-setup from the hplip package to install an HP Officejet 6700 connected to the network. The setup program crashed on the first attempt, and succeeded the second time. The issue I'm having is ...
0
votes
2answers
39 views

too many levels of symbolic links in /usr/bin — disaster?

I was recently trying to resolve an issue regarding a mismatch in the version of my java jre and java compiler, so I tried something suggested in this answer, which seemed to be relatively harmless, ...
0
votes
1answer
6 views

Aliased fonts in some gtk applications

When I open programs like Thunar, LXappearance, Nautilus in normal privileges, their font look ugly, aliased. But when I open them as root, their font look anti-aliased and pretty. Desktop ...
1
vote
1answer
31 views

Detect number of /dev/sd_ 's on a computer by bash script

I am trying to add code to a Bash script (.sh) to detect the number of sd_ 's on a computer (ex. /dev/sda, /dev/sdb, /dev/sdc, etc.) and then save that number to a variable, and then use if statements ...
1
vote
1answer
27 views

renaming files in a folder

In one directory I have many files which look like this: Galaxy100-[0025-CL3.single.bed].bed and I would like to change it to: 0025-CL3.single.bed I tried this rename 's/Galaxy[0-9] - \[//' *, ...
0
votes
0answers
7 views

i3status alsa mixer

How do I get i3status to display the volume level from alsamixer instead of Pulseaudio? This is my volume configuration right now: volume master { format = "♪: %volume" format_muted ...
2
votes
0answers
8 views

LUKS: Change master key

I've already read this SE question, but it's somewhat old now. How can I reencrypt a LUKS partition using a different master key? I have a cloned VM image that needs to go into production, but it's ...
1
vote
0answers
13 views

pfsense mount root error after disk clone

I went the lazy route and cloned my SSD that runs my current pfsense (2.1.5) machine to create a backup machine with the same config. Instead of doing a fresh reinstall and copying the config. Both ...
2
votes
1answer
26 views

How to standardize the number of characters in a column?

I have a column (in my data-file database) where the number of characters is not standardized, and need to standardize. How can I do it? Example: Sample_ID 159 148 1110 1100 150 But my bank does ...
1
vote
1answer
26 views

Shell Font Over SSH

I have a Linux machine (CentOS 7) in which I frequently SSH into from multiple devices. I have installed ZSH and Oh-my-zsh on the remote machine. I would like to install the following theme: ...
2
votes
1answer
11 views

LUKS: passwords and keyfiles?

After reading "man cryptsetup" and many StackExchange questions, I'm confused: Does LUKS use the same master key in each slot? If I execute the commands below, the displayed master key does not ...
1
vote
0answers
14 views

SELINUX not installing on Hyper-V Debian Jessie VM

I'm currently trying to install SELINUX on Debian Jessie VM. I'm following the instructions on the Debian website here Once I've completed the installation, I make a change to /etc/default/rcS to ...
0
votes
0answers
12 views

Squares on Gnome 3 Title Bar

Good afternoon, Updated the Kali Linux and as a result, updated the Gnome to version 3.20.1, but is now appearing in the title bar (and other places in some Gnome applications) squares instead of ...
2
votes
1answer
13 views

Why does my tumbleweed opensuse fstab contain so many btrfs subvol entries?

What is the purpose/reasoning/technical-reason why my opensuse tumbleweed system has so many folders of my filesystem "wrapped" (not sure if that's the right word) as sub volumes on btrfs? Does it ...
1
vote
0answers
25 views

Why does tar list multiple entries for some files? [duplicate]

In a folder with a single file (image.jpg) I run the following commands $ ls -a . .. image.jpg $ tar cf target.tar image.jpg Listing contents of the archive $ tar tvf target.tar ...
1
vote
2answers
36 views

forward aliases to child process

I have some aliases which are defined in /etc/zprofile (or /etc/profile for bash). Also $PATH gets manipulated there. I want to start a second shell from my which avoid the $PATH manipulation, which ...
2
votes
1answer
18 views

Unable to edit the /sys/block/sdX/device/queue_depth file

I'm trying to increase my SSD's queue depth value with the following command: echo 64 > /sys/block/sda/device/queue_depth But I receive the following error: bash: echo: write error: Invalid ...
2
votes
2answers
24 views

Timeout with 'service network restart'

I have a script running on fedora 22 where I am restarting service network as part of a troubleshoot calling service network restart. I want to check if that command is taking too long to execute. If ...

15 30 50 per page