These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

0
votes
1answer
18 views

how to configure a linux machine to broadcast the incoming traffic

I want to configure a linux machine so that it can broadcast all the traffic received by it to other linux machine (in this case the connected nodes). Can someone help ?
1
vote
1answer
10 views

Linux + iptables fallback

I want to enable the routing VIA tcp from port 770 to port 7714 iptables -t nat -A PREROUTING -p tcp --dport 770 -j REDIRECT --to-ports 7714 . so I get the following: iptables --table nat --list ...
0
votes
1answer
12 views

Windows and Debian dual boot menu order?

I have debian(elementary os) and windows installed on my lap. In the boot menu, every time I'm getting debian os first and it will automatically load after 5 seconds. How can I change the order to ...
1
vote
0answers
4 views

Is it possible to add KDE/dolphin service menu for specific file extension?

In windows, you can and context menu entries that are only shown for specific file types only. In Dolphin, I know how to add service menu entry using .desktop file. but Is there way to only show ...
0
votes
1answer
26 views

Linux command to find SD card serial number on Ubuntu/Debian

What is the Linux command to find SD card serial number on Ubuntu/Debian ? My SD card is not a USB device.
1
vote
1answer
24 views

Getting Ubuntu to Recognize USB Wifi

So, I'm really new to Linux systems and have just downloaded Ubuntu on my other desktop. The problem I'm having is getting it to recognize the USB wifi, TP-Link AC600 Archer T2UH. I went to the ...
1
vote
2answers
20 views

Host key verification failed (exit code 255) while using pdcp

I am trying to install a particular software across all our machines one by one so I decided to use pdsh. By default, it will operate on several machines at once in parallel, but I will be using the ...
0
votes
1answer
19 views

How to “export” configuration variables and “source” them on embedded Linux?

A router runs firmware containing BusyBox and in addition to flash memory the device has secondary memory storage. That USB stick is mounted at both /media/Main and /opt: # mount | grep sda /dev/sda1 ...
-1
votes
1answer
15 views

Why %H%M%S is not working in .screenrc?

According to this answer, I can rename logfile of screen with date to avoid logfile appending problem But %c used in that answer contains a colon, like 19:00. Since I have to sync files with windows, ...
-3
votes
1answer
20 views

How to run my own Hello World C application on top of stand-alone Linux kernel in x86_64 machine.. [on hold]

I have compiled Linux kernel 4.5.2 & got below files. "vmlinuz-4.5.2" "System.map-4.5.2" "initrd.img-4.5.2" My requirement is very clear, I need to run my own Hello World C application on top of ...
0
votes
1answer
5 views

command line, how to search a pattern in the first line and delete them

I want to delete something not useful in the first line like following: 1-TagDir (cs) 2-TagDir (a) 3-TagDir (cd) 4-TagDir (abc) Output: 1 2 3 4 How should I ...
-3
votes
0answers
20 views

Writing a pseudo code to create a user [closed]

I have created a shell script which can create users and I was wondering if someone can write a pseudo code to create a user for me I have read some websites but still don't really seem to understand ...
3
votes
1answer
31 views

File execution is denied

I just can't execute any file. For example: And I use zsh now,bash has the same problem.
1
vote
3answers
20 views

Do I really need -dmS option in screen to run background job stably even log out?

I saw many place introduce screen to run background job stably even log out. They use sreen -dmS name According to screen -h, this option means -dmS name Start as daemon: Screen session in ...
0
votes
0answers
16 views

Problem in writing to a File after Power on/off? [closed]

I am writing the content of my script to a .log file using > operator. I am doing it on a Raspberry Pi. After a Power on/off if I try to execute the script it doesn't write to the file. I then ...
0
votes
0answers
12 views

Qemu/KVM, windows guest password prompt

Ubuntu 16.04 Qemu/KVM Windows 8.1 guest SSH from remote host into hypervisor, run virt-manager. Get prompted for creds: user1@hypervisor, authenticate successfully. Open guest, get prompted for ...
2
votes
0answers
35 views

Can not start wifi with systemd

With command netctl start wlp3s0-tian got error. Apr 29 18:28:57 ArchPad systemd[1]: Starting Networking for netctl profile wlp3s0-tian... Apr 29 18:28:57 ArchPad network[1019]: Starting network ...
0
votes
0answers
44 views

Run sh script at system startup - Red Hat 7.2

I searched the Internet but there are too much different opinions about this issue. I have two scripts to run. One to run at system startup (not at system reboot as I read in some posts) and another ...
1
vote
1answer
34 views

Is there a way to monitor disk i/o patterns? (i.e. random or sequential i/o?)

While an application is running, I can monitor disk bandwidth usage using linux tools including dstat. Now I'd like to know how many sequential or random disk I/Os are occurring in the system. Does ...
0
votes
0answers
23 views

Linux is crashing without throwing core dump or error message

I am working on a development board to make custom linux working(built through Yocto) on it. Right now, I am facing very weird issue. System boots and after some time it hangs and restarts without any ...
1
vote
1answer
45 views

Installing Linux on spare SSD

I installed linux distribution (a debian-based one,called pardus) on HP EliteBook Folio 1040 G2 Notebook PC (http://store.hp.com/us/en/pdp/Laptops/hp-elitebook-folio-1040-g2-f6r38av-1) and it has a ...
-1
votes
0answers
19 views

GREP to sort a particular error log from server log [closed]

I want to sort particular error log from server logs. I want to see when did it last happen , and how many times a day it happened. Thank you.
0
votes
0answers
22 views

How can I add linux grub entry in windows bootloader? [closed]

While i am booting at startup my open suse grub will appear i want this linux entry into my windows bootloader. Like at the time of booting it would be windows boot manager showing two choices 1. ...
0
votes
1answer
24 views

Script to get GET METHOD of HTTP REQUEST time in cycle

I want to run a script/command which with some interval (5 seconds) will make http request to certain site and shows the time of this request. At the same time I would like to set timeout for such ...
0
votes
0answers
9 views

second shm_open() fails with ENOENT [migrated]

mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO; shm_fd = shm_open("/ipc_shm", O_CREAT | O_RDWR, mode); This works, returns 4 for shm_fd. The same process then calls a library function that also calls fd ...
1
vote
0answers
17 views

what is difference between .deb pakage file and ddeb pakage file in linux

I need to install SystemTap in Ubuntu 14 and i would need to install debug symbols for kernel i encountered ddeb file how i could uninstall this file after installation ? i got ERROR: Build-id ...
1
vote
0answers
20 views

unshare -m seemingly not creating mount namespace

I ran unshare -mfp sh -c 'mount -tproc none /proc ; ls /proc' That printed a /proc with only directories for PID 1 and PID 3, and exited, leaving me back in my old prompt in the root namespace, as ...
0
votes
1answer
36 views

Script too slow ? Any particular reason?

I have a script which does hexdump along with pipeline commands and finally I am redirecting it to a file. Now I am logging data from the serial port of my Raspberry Pi. I also call a python ...
0
votes
1answer
44 views

Designing a new Operation System

I want to design a new OS to learn more about how an OS works. This OS is only for educational purpose and I had a few doubts choosing its kernel. Is there any legal issue for using an Ubuntu ...
0
votes
1answer
20 views

Can I see the summed up results of the ping command while it is running? [duplicate]

When I run the ping command it outputs information for each ping and in the end, when I kill the process it outputs some overall statistics --- 192.168.0.1 ping statistics --- 10 packets transmitted, ...
0
votes
1answer
32 views

command /opt/bin/date --date '-15 minutes 2016-04-27T14:14:47' producing result many hours before stated time

I'm using the following command in an attempt to work out the time 15 minutes before the timestamp: /opt/bin/date --date "-15 minutes 2016-04-28T16:58:55" '+%Y-%m-%dT%H:%I:%S' The problem is the ...
-1
votes
2answers
45 views

Where can I practice my Python and Bash scripting? [closed]

I wanted to practice my bash scripting skills and python skills and wanted a good book or a site where I can practice and get excellent skills please. Any recommendations please.
4
votes
1answer
33 views

How does Linux decide the /proc/PID/stat “name” of a process?

Currently my machine has 5 processes running scripts through python, but Linux thinks only 2 of them have the name python (according to /proc/$pid/stat). That is, pgrep -af python shows: 1784 ...
0
votes
1answer
25 views

Correct syntax for inputting date variable into date calculation code

In my script, the following code successfully produces a timestamp variable for $n in the format 2016-04-28T15:47:48 for n in $(perl parsetime.pl | sed "s/.....$//") do echo $n result is: ...
0
votes
0answers
22 views

KDE Plasma 5 panels multi monitor

Every time I plug in or out the external monitor its panel changes to the secondary one. Also, new windows always opens on the laptop monitor which is the secondary. Is there a way to solve this?
3
votes
3answers
51 views

IPtables installation question

I am new to installing iptables and have an excellent book called "Linux Firewalls: Attack Detection and Response" by Michael Rash. I have a few questions before I begin. I want to make an ...
0
votes
1answer
20 views

Including milliseconds in a Script?

sudo hexdump -v -e '1/1 "%02x\n"' /dev/ttyUSB0 | awk '$1=="ed" { getline byte1 getline byte2 number = strtonum("0x" substr(byte2,2,1))+2 ...
0
votes
1answer
13 views

Linux installation [closed]

I have 100 gb unallocated space in my disk. But during installation, if we choose manual option for disk management, it is showing the entire hdd and my bootable pen drive and not the unallocated ...
0
votes
3answers
32 views

Is group priority available?

[tjm@ArchPad bin]$ LANG=en [tjm@ArchPad bin]$ pwd /usr/bin [tjm@ArchPad bin]$ ll | grep wireshark -rwxr-x--- 1 root wireshark 88K Apr 25 00:22 dumpcap -rwxr-xr-x 1 root wireshark 2.0M Apr 25 00:23 ...
2
votes
1answer
20 views

Two nfs exports from different servers mounted on the same mount point

Recently found these lines on my test server: 10.126.84.153:/zebra on /zebra type nfs ...
-3
votes
1answer
24 views

Code to calculate 15/30 minutes before specified timestamp (GMT) in ISO 8601 format

I am working with a timestamp which is in the following format which I am told is know as ISO 8601 : 2016-04-27T14:14:47.836Z I would like to be able to calculate the timestamp both 15 minutes and ...
1
vote
1answer
34 views

iptables DNAT: 'No chain/target/match by that name'

I am trying to use DNAT on a new custom Linux target, but I get an error with the following basic command: #iptables -t nat -A PREROUTING -d 10.110.0.250 -p tcp --dport 9090 -j DNAT --to ...
0
votes
0answers
12 views

Server OS with graphics to run on kvm (postgres + pgadmin, java, teamvier) [closed]

Could you please recommend me a distribution or setup regarding the following: ressource friendly to run virtually on kvm graphic is need for remote administration (teamviewer) good postgres ...
0
votes
1answer
31 views

Linux: dnf error: Aborted (core dumped) after packages upgraded from .fc22.x86_64 to .fc22.i686 in fedora 22

I have Fedora 22 XFCE in Oracle VM, yesterday I tried installing skype-4.3.0.37-fedora.i586.rpm, this tried upgraded many of the packages from example: upgraded from glibc-2.21-13.fc22.x86_64 to ...
0
votes
0answers
24 views

Why are the names different in “/etc/HOSTNAME” file and hostname command in SLES11SP3?

My OS is SuSE(SLES11, SP3), executing the hostname command: # hostname lxc-dl580-g8-1 But the name in /etc/HOSTNAME file is different? # cat /etc/HOSTNAME linux-2pny.site Why are the names ...
0
votes
1answer
30 views

Booting back to Windows

I have just installed Ubuntu 14.04. I think I made a mistake when installing because I wanted this to be dual boot but now the computer automatically goes to Ubuntu every time I switch it on. It ...
-4
votes
0answers
18 views

What is the difference between mem usable and mem free? [duplicate]

What is the difference between usable memory and free memory ?
0
votes
2answers
42 views

How to check if ftp is installed in a linux server

I just want to know if a FTP server is installed on my server. It is a Red Hat Enterprise Linux Server release 5.8 (Tikanga). I tried running the below command and got connection refused : $ ftp ...
0
votes
0answers
35 views

What Linux should I use for my old XP laptop? [closed]

I recently got an old Windows Vista laptop, and I didn't have the password, so I figured it'd be better to just get a fresh Linux installation on it. I've never used Linux before, but I made bootable ...
0
votes
0answers
7 views

(Linux-)Distribution-specific hacks and workarounds documentation [closed]

Is there a good resource on the internet that mainly deals with differences of how the individual distributions are configured and lists some hints required to administer and program in an ...