All Questions
-1
votes
1answer
12 views
Cant find C drive in live boot
OK so i have a USB that i can boot Kali Linux in boot manager and choose the live option and it works well but when i browse for files (can't remember what its called) i don't have the other option (i ...
0
votes
0answers
7 views
Where to look for systemd-networkd device names?
I'm running Debian Jessie/8.2 on an ARM single board computer with systemd. I'd like to entertain using systemd-networkd instead of the ifup mechanisms. One of the apparent steps, is to figure out the ...
0
votes
1answer
28 views
How to understand the definition of a simple command?
From POSIX 2013:
A ‘‘simple command’’ is a sequence of optional variable assignments and redirections, in any
sequence, optionally followed by words and redirections, terminated by a control ...
0
votes
0answers
16 views
Issues piping head output through cut
I'm doing an assignment for class and checked my command with someone else to make sure it worked (he had the same working result) but now that I'm trying it again later on my machine, I can't seem to ...
1
vote
1answer
10 views
Understanding the top command output on an ARM multicore computer
Ran the top command to check CPU performances and memory usage on the New RPi3 while running a browser.
Since we have a 4× ARM Cortex-A53, 1.2GHz, how should I read the result?
$ top
Mem: 327132K ...
3
votes
0answers
11 views
iptables and ip forwarding for failover
hi i have an ethernet nic interface with 4 additional virtual interfaces (failovers) all configured with public ip4 (IP-1 to IP-5) / netmask 255.255.255.255 / broadcast addr same as ip:
eth0 ...
0
votes
5answers
31 views
Remove the latest modified file
I have created two files:
sample.txt and sample.txt (the second file contains some hidden characters, e.g. a space). How can I remove the latest modified file? I'm using Linux.
0
votes
1answer
9 views
Virtual machines in a LVM partition or not?
When you create a virtual machine on Debian (with kvm-qemu), the .img file is placed in /var/lib/libvirt/images by default.
Do you advise creating an LVM partition specifically for the vm's?
Lets ...
-2
votes
0answers
14 views
Cross platform job scheduler with web interface [on hold]
We have a mix of Linux, OSX and Windows servers that use crontab, Windows Task Scheduler, etc to run a bunch of bash/windows scripts, rsync commands, etc.
I would like to replace these OS specific ...
0
votes
0answers
12 views
“Time out” code in C [migrated]
I run a BBS. What i'm trying to accomplish, is, after a minute have the BBS logout the user, regardless of if input has been made or not. Here's an attempt at a function trying to do this, but doesn't ...
0
votes
1answer
16 views
VNC Client - Server, Unable to connect to remote server
I have a remote Linux server, I was trying to connect to it using TigerVNC, I can sucessfully connect to my remote server, when the server iptable is not running, but after I start running iptables, ...
0
votes
2answers
17 views
hp-ux find command not working on a list of files
We're using the following hp-ux configuration:
HP-UX dxp10hxw B.11.23 U 9000/800 1446354274 unlimited-user license
And trying to run a simple find command as follows:
find . ! -type l -perm -0020 ...
0
votes
0answers
13 views
Reject ssh -L connection unless a corresponding ssh -R exists
Is there any way to make an SSH server reject a connection that attempts to use port forwarding unless it is directed to an existing reverse tunnel?
To clarify, my intent is to only allow forwarding ...
0
votes
0answers
5 views
How to call a device's power management methods in another way than during suspend to ram?
Let us consider the e1000e driver for an Ethernet card. This driver provide two power management methods .suspend and .resume to respectively turn off and turn on the card. Those methods are naturally ...
0
votes
1answer
15 views
How lsof attach to shell script PID?
I am trying to run a small shell script .sh and i wanted to see what files it's going to open using lsof. how do i execute shell script and attach its PID to lsof?
I tried following but didn't work:
...
0
votes
1answer
9 views
can't update-initramfs generating /boot/initrd.img-3.16.0-4-amd64 error
Hi today I did a upgrade in my debian after of this. have a problem really I look a solution for this problem and I don't find anything.
Configurando linux-image-3.16.0-4-amd64 ...
0
votes
0answers
7 views
Kali keeps auto mounting /dev/sda3
For our office, we need a group of Kali Linux laptops we can relatively quickly "revert" to a clean state. And no, we're not allowed to used live USB to boot from, since half of what we do is preach ...
-1
votes
2answers
10 views
How to set 256colors in xfce4-terminal 0.6.3 that is using the fish shell, always for all users
How to set 256colors in xfce4-terminal 0.6.3 that is using the fish shell, always for all users ? Can't find this info anywhere and it's getting hard.
0
votes
1answer
12 views
Archlinux'es pacman + tee == unclear console IO [on hold]
I have a small issue with capturing the pacman's IO with the tee utility. I try this command line:
pacman -S group-1 group-2 | tee pacman.log
And there is an issue: when the pacman query which ...
1
vote
4answers
39 views
Command line in vi mode: replace all
How do I replace globally from the command line in vi mode. It seems like I can't use ex commands by prefixing with :, so what do I do instead.
for instance if I want to replace all \ with / in a ...
3
votes
2answers
38 views
Sorting by two columns
I need help with this homework assignment:
Write a shell script named sales1 using nawk and sort commands to do the following:
1. print the file in two sections, east and west, with lines alphabetized ...
1
vote
3answers
27 views
POST json data with cURL from a while loop - bash shell
I have a JSON output from which I need to extract an ID and Iterate through them and send multiple request to API execute REST API with curl.
For example:
This is how the JSON output looks like:
{
...
0
votes
0answers
13 views
How to add a new inittab entry - a script
vi /etc/inittab
startfoobar:3:respawn:/root/startfoobar.sh # added this line
telinit q
But the /root/startfoobar.sh doesn't starts. Why? SLES 11. What am I missing?
cat /root/startfoobar.sh
sleep ...
1
vote
0answers
8 views
Automatically manage whitelisting (e.g. in tinyproxy) of dynamic IPs?
I have a VPS that runs tinyproxy for private use, and another that runs nginx for development. Is there a protocol/daemon that I can use to automate whitelisting for my dynamic IP? So that tinyproxy ...
0
votes
0answers
21 views
Preventing Termination of Script on Error
The script below is used to parse thousands of files which are located in multiple directories. However, some of xml files which need to be parsed have errors files. The script below terminates in the ...
0
votes
1answer
8 views
Gnome 3.18 on Fedora 23: LibreOffice ugly appareance when change GTK theme
When i change the GTK theme (Gnome 3.18, Fedora 23) the LibreOffice appareance is completely changed, it's looks like the theme was removed.
This is how LO looks with the Arc theme:
How can I ...
2
votes
2answers
22 views
average of specific rows in a file and output in tab-delimited file
I have 6 rows in files. I need to find average only of specific rows in a file and the others should be left as they are. The average should be calculated for A1 and A2, B1 and B2, other lines should ...
1
vote
0answers
8 views
Kill specific xsession
I have several xsessions started from several virtual consoles (through <Ctrl>-<Alt>-F[1-7]).
I am in the need of closing the xsession, so that I can restart the xsession from the same ...
1
vote
2answers
31 views
Why does Solaris 10 find / -exec sh -c “echo {}” \; print “{}” instead of filenames?
I do not generally use Solaris, but today I need to craft a find command to execute an operation on identified files using the shell. I am finding that the {} characters are not getting substituted ...
0
votes
0answers
10 views
SOLVED - OpenVZ acl support for Samba
Setting up Samba-4.3.5 as AD domain fileserver in OpenVZ container, running in ProxMox (pve-manager/3.4-6/102d4547 running kernel: 2.6.32-39-pve). Hardware node has enabled acl support for ...
1
vote
1answer
31 views
What does :<i> code stand for in subtitles?
I downloaded a subtitle from subscene http://subscene.com/subtitles/the-5th-wave/english/1298314 and it contains some coding such as :<i> and </i> which is not being ...
0
votes
0answers
9 views
Hibernate issues
I have Debian stretch/sid with systemd. Since some months, I can't hibernate, nor with pm-hibernate nor with "systemctl hibernate". The hibernation starts, but after a few seconds the screen gets ...
0
votes
1answer
18 views
can we specify number of inode & data block?
I learned that number of inode and datablock is assigned when created,
but for example, if we want "text.txt" this file to be stored in inode number 20 or datablock number 20, can we do it?
1
vote
1answer
27 views
How to copy files from one directory to another so that only new files are copied?
How would it be possible to copy all new contents from one directory to another so that only new files are copied from the source directory (both directories have the same naming tree). For example, ...
0
votes
1answer
15 views
Allowing a restricted user (rbash) and to run virsh
We have a virtual win7 machine that needs to be rebooted remotely from time to time. We created a restricted user account with the shell set to rbash so a user can ssh in and reboot the virtual ...
0
votes
0answers
10 views
Steam install via Crouton on Chromebook kills Chroot?
I can't find any answers on this elsewhere, so here goes. PS - this is, quite obviously, my first time with Linux.
I have now twice installed XFCE onto my Toshiba Chromebook 2 using Crouton. After I ...
0
votes
0answers
16 views
Error writing output file when I decryption files using openssl
I am working on an encrypted data set. And using the code below to decrypt files.
openssl enc -aes-256-cbc -d -in $encryptedfile -out $decrypted_file -pass file:secret.txt
But I am always notified ...
0
votes
0answers
18 views
Connect to Raspberry Pi over SSH
I am trying to access a Raspberry Pi running Raspbian via SSH from a laptop running Ubuntu 15.10 using terminal. I have gone to the cmdline.txt file in the Pi's /boot folder and added ip=192.168.1.20 ...
1
vote
1answer
33 views
deny use of multiple getopts arguments
I'm trying to figure out a way to deny the usage of more than one getopts args in a certain situation.
Say we have something like this:
while getopts "a:b:c:def" variable; do
case $variable in
...
2
votes
0answers
15 views
How to forbid the menu item selection by right click?
Clicking the right button prompts a context menu, then we can choose an item from the menu by a left or right click. However, it's really boring that we can use right click to select the item. ...
2
votes
3answers
34 views
Is .zshrc read on X session open? / How to execute a script on X session open?
I have a custom command I need to execute on X session open (mouse config).
I made a script out of it, now I'd like to make sure it gets executed on session open.
There are distribution-dependent ...
0
votes
0answers
20 views
Virtual serial ports /dev/pts
I'm trying to create virtual ports using GSM cmux. It creates virtual ports in /dev/chn 1 2 & 3. Which is linked to /dev/pts 0 1 & 2. But when I list dev directory there is no pts folder and ...
1
vote
1answer
45 views
Why do the Linux kernel headers contain references to nonexistent headers?
I'm trying to build IBCS (source here) on Ubuntu 15.10 (Linux 4.2.35).
This module is obviously pretty old, because its CONFIG.i386 file gives gcc an option -m486, which doesn't exist anymore, but ...
-2
votes
0answers
21 views
Definition of file sizes for an evaluation of disk performance [on hold]
I am comparing the disk performance in two different environments.
The first environment is composed of a container running docker.
The second environment runs a virtual machine on KVM.
And in the ...
1
vote
1answer
32 views
apache dies when I FTP to server as that user
I have an odd one. A RedHat 7 server, with an apache server that runs just fine. I can start it with systemctl start httpd. Developers had me run it as a different user (intersys instead of apache). ...
0
votes
0answers
20 views
host : ubuntu 14.04, guest : ubuntu 14.04 => login & pwd repeteadly asked
I have ubuntu 14.04 LTS installed, I have on it virtualbox 5.0.16, and I tried to create an image of ubuntu 14.04.3 (x64 bits).
so I created a new virtualdisk on virtualbox, with 8GO of HDD, but when ...
1
vote
1answer
16 views
How do I Encrypt a Flash Drive Using SecurStick?
I am trying to use SecurStick to encrypt a flash drive. I found these instructions online. However, when I unzip the archive and place the files on my flash drive, I cannot run the SecurStick program ...
2
votes
1answer
18 views
Is there any way of changing most keybindings to something more familiar?
most pager is nice, but it's default keybindings are unlike any others.
As I don't want to learn a whole new set of keybindings for my pager (no matter how fancy and wonderful it is) — is there any ...
1
vote
3answers
49 views
Find files containing a set of words
I'm using grep to find files within a directory, containing a set of words.
But grep search lines containing these words, what I want is grep to show me the files or file containing all those words ...
0
votes
1answer
39 views
Telnet for port 80 not working
I am doing telnet as
telnet www.google.com 80
It is showing Trying 216.58.193.164....Nothing happens after that. but when I tried
telnet www.google.com 443
It works well and shows
Trying ...