Questions specifically about Linux but not specific to a particular distribution. If the question could apply to any Unix-like system, 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
13 views

Read “/proc” to know if a process has opened a port

I need to know if a process with a given PID as opened a port without using external commands. I must then use the /proc filesystem. I can read the /proc/$PID/net/tcp file for example and get ...
0
votes
1answer
17 views

Command Line to go in directory passed by which command

I want use a command such as this : which node && cd $_ to jump in the directory when the binary file reside, but the which command return all the path + name of binary ,so i get an error ...
0
votes
0answers
9 views

CentOS 7 and Windows 2012 multiboot from SAN

We would like to create multiboot configuration for our workstations. Workstations are equipped with Qlogic BR-825 HBAs that work in BIOS mode (not EFI). SAN presents to HBAs three LUNs: LUN0 - boot ...
1
vote
1answer
18 views

How to find out what distros are using particular Linux version?

Given a distribution and its version, I can find which version of kernel it uses, e.g. for Ubuntu they are listed here, and for currently supported versions of Fedora they are here. In general, ...
-1
votes
1answer
50 views

No SSH while loged off locally

So, I'm trying to access my laptop while I'm outside my LAN, but I have a problem, at least I think that isn't the normal behavior. I can't access via SSH if my user isn't locally logged in. I'm not ...
0
votes
1answer
25 views

iptables and ssh

I'm running Arch Linux and I have a running SSH daemon to access my machine when I'm out side my LAN. I can do the connection, but iptables keeps blocking SSH Daemon, so I can only connect if I turn ...
1
vote
1answer
17 views

Is there a file search engine with a webserver?

I connected a huge USB HD to my linux server. I installed samba and the files can now be accessed over network. I can search for files over network but the samba search is slow. Do you know of any ...
0
votes
1answer
20 views

Chroot - copy or mount --bind

In every tutorial I found online about chrooting, there is part involving copying stuff into the chroot, executables, libraries and others. Why is that? Why not just mount --bind the stuff in? ...
0
votes
1answer
7 views

Mirror screen with 2 different resolution displays, -with borders on larger resolution screen?

Help. The TV I'm trying to use as a monitor has overscan issues, it overscans both 1080p and 720p resolutions. For my use, I'd rather have borders compared to a cut off screen. I'm trying to get ...
0
votes
0answers
8 views

Granular control of rwx permissions on NTFS partition

I am running a Ubuntu-Windows dual boot setup, and I have a third NTFS partition for my shared data (documents, music, downloads, etc). I currently mount the partition using /etc/fstab like so: ...
-2
votes
0answers
35 views

How do I become an expert of C language on Linux? [on hold]

I want to start from the beginning. What are the steps I should take?
0
votes
1answer
11 views

Getting cron to include Date IN error log

So I have the following Cron job running: /home/ubuntu/scripts/austria/archive.sh >> /home/ubuntu/logs/austria/archive.log 2>> /home/ubuntu/logs/austria/archive.err Every time the scrip runs, it ...
2
votes
1answer
22 views

What do systemd “Vacuuming done, freed 0 bytes” messages mean?

I'm seeing messages like the following in my systemd journal: systemd-journald[52]: Vacuuming done, freed 0 bytes systemd-journald[52]: Vacuuming done, freed 0 bytes systemd-journald[52]: Vacuuming ...
1
vote
4answers
48 views

Creating a snapshot of a linux system

I want to do the following - Save the current state of my linux OS(centOS6.5). Do some changes (more specifically inject a fault and test some service to check how it behaves when that particular type ...
0
votes
0answers
5 views

Sync NAS (OMV) with OneDrive or DropBox

I have installed a NAS to my network, to backup all my files there, with OpenMediaVault. My question is if there is any possible way to sync a shared folder from that server, to an online cloud ...
1
vote
0answers
25 views

What does raw_spinlock mean? [on hold]

I was studying struct raw_spinlock which is in the /usr/src/linux/include/linux/spinlock_types.h was like this: typedef struct raw_spinlock { arch_spinlock_t raw_lock; #ifdef ...
0
votes
0answers
12 views

Having trouble with devices and USB ports

I have been trying to play Xwing vs Tie fighter on Linux Ubuntu Mate in virtualbox with my playstation 3 controller. After a few attempts It worked but I rebooted and it stopped working. If I load ...
0
votes
1answer
24 views

Continuing an interrupted `wget` session?

Is it possible to continue an interrupted wget session - eg. by parsing the log-file (created with -o or -a ), or after somehow have wget store additional information to disk (like it's list over ...
0
votes
1answer
15 views

Linux UART IO File

How bytes received on UART device are stored in some serial Linux devices /dev/ttyS? How to read them? What is the procedure? Should that device file be closed, when new data is arriving?
1
vote
1answer
30 views

Live Linux and FAT32

I'm looking for a Linux distribution that will run (uncompressed) on a FAT16/32/NTFS partition, preferably on an external USB drive. I've come across Slax and Porteus as well as a few others but they ...
0
votes
5answers
37 views

update the json file

I have a file, actually json file. How I can add a comma to the end of every but the last line ? For example: {"a":1, "b":1, "c":2} {"a":3, "b":3, "c":1} {"a":1, "b":2, "c":3} What I want: {"a":1, ...
1
vote
3answers
33 views

Select and sort IP address keeping the whole line

So I need to sort the IP Addresses and then sort my line by them. I can sort IP addres in a file by using : sort -n -t . -k1,1 -k2,2 -k 3,3 -k4,4 If my file looks like : add method1 a.b.c.d ...
0
votes
1answer
16 views

Configure internet connectivity in Centos 6.4 through wired LAN

I have a broadband internet connection through Hi-5 service provider in windows 8.1. In windows I connect to the internet after creating a connection and entering user name and password through the ...
0
votes
2answers
31 views

Different behaviour of eval “ command \”$@\“ ”, “$@”, and “$(echo $@)” when used as arguments [duplicate]

I would like to pass multiple arguments to the Tor browser (firefox) programatically through a function arbitrarily entitled tor. This is so as to command tor search terms and voila! My search terms. ...
0
votes
0answers
4 views

root filesystem on nvme device

I have an Intel 750 nvme drive. Works fine. Well.. sort of. I would like to use this device as my root file system. I have no bios support for nvme devices. I have the nvme driver enabled in the ...
1
vote
0answers
9 views

Is there something like “make localmodconfig” that detects *all* your hardware?

I understand that Linux's "localmodconfig" target looks through all your loaded kernel modules and produces a .config file that enables those modules. This is nice, but what about hardware whose ...
1
vote
1answer
11 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
0answers
40 views

Error in youtube in view of mode theater [on hold]

Here is the problem I've found in Linux: How to fix it? It's in all browsers in my Linux. i from Middle East In the dailymotion website happens it also to Videos. The mode view of cinema is not a ...
1
vote
0answers
42 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 ...
0
votes
0answers
13 views

LXC need desktop or server [on hold]

I am linux daily user but still naive to server. I want to install nagios and cecti to monitor my local server and network AP, switches and router. I want to try LXC or LXD. What type of OS (whether ...
0
votes
1answer
30 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 ...
0
votes
2answers
38 views

How to create (or modify) Linux distro? [on hold]

I've read about this and I think that Linux From Scratch is good, however, I'm confused what part I should begin with. My intention is to modify Linux distro - adding or removing some features and ...
2
votes
2answers
39 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 ...
-1
votes
0answers
18 views

Password prompt is coming on screen

I have below code for auto login if ! [ -f $HOME/.ssh/id_dsa.pub ]; then expect -c" spawn ssh-keygen -t dsa -f $HOME/.ssh/id_dsa expect y/n { send y\r ; exp_continue } ...
4
votes
5answers
172 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 ...
0
votes
1answer
23 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 ...
-2
votes
0answers
38 views

Limit user's access to their home directory [duplicate]

How can I set permissions for a Unix user such that they can't access any files outside of their home directory?
0
votes
1answer
28 views

Big XML - copy data from nth Occurrences to another file

<XML> <Employee> <firstname></firstname><lastname></lastname> </Employee> <Employee> ...
0
votes
0answers
16 views

internal and extern ip adress when installing softwares etc [on hold]

I rent a Linux Debian server. I have problems with installing software on it. When I install centovacast, I have no problem, but when I create a radiostation into centova for a client, it gives them ...
0
votes
0answers
14 views

How to boot linux from usb and then change root, or something

My motherboard has USB3 ports on it but the BIOS Boot Mgr will only boot from the USB2 ports. I have a Xubuntu bootable system I have installed on a USB3 stick, but I'm stuck running it from a slow ...
-2
votes
0answers
28 views

Linux command line: How to move all files except those with a certain extension? [duplicate]

I have a folder with a bunch of files and .sh scripts. I want to move all of the files except the scripts to another folder. I am not looking for a bash command just a regular command which I can type ...
0
votes
0answers
31 views

How can i distribute a software package to workstations on the same network?

I want to distribute a software package from my Linux server automatically to the windows workstations on the network. I'm doing it manually at the moment, and I want to do it automatically from the ...
0
votes
2answers
24 views

SSH to docker container is not working

I'm running a Discourse forum software container in an Ubuntu Server, I was able to login to container using the command. sudo docker exec -it app bash And then I've setup password for the root ...
1
vote
1answer
24 views

Are Modules listed under /sys/module all the Loaded Modules?

I'm wondering if I can use the directory listing of /sys/module instead of lsmod to get a list of currently loaded modules. Is that the list of loaded modules only? Or maybe that combined with ...
1
vote
0answers
25 views

What happens to a multithreaded Linux process if it gets a signal?

If a Unix (Posix) process receives a signal, a signal handler will run. What will happen to it in a multithreaded process? Which thread receives the signal? On my opinion, the signal API should be ...
0
votes
0answers
10 views

send bootup script output to virtual terminal

I have a script that I symlink in as /etc/rc.d/rc3.d/S30initialize which basically makes it get called when entering runlevel 3. I want for the output of this script to appear on the virtual ...
1
vote
2answers
36 views

Remotely access my computer's framebuffer console from Android

I need to remotely view my computer's display. I am using programs that I launch from a text console, then they create their own graphical session, like Kodi or EmulationStation (it does not start if ...
0
votes
0answers
13 views

Kernel config for HP Stream 13 (booting from emmc disk)

I'm trying to install gentoo on hp stream 13 device and i am unable to boot up system from the emmc hard drive. Before trying gentoo on this device i have successfully installed debian, which clearly ...
3
votes
2answers
172 views

What is the difference between /sys/block/sda1/stat and /sys/block/xvda1/stat?

On my local machine, I have /sys/block/sda1/stat. On an Amazon machine, I have /sys/block/xvda1/stat. When I run cat /sys/block/sda1/stat or cat /sys/block/xvda1/stat both give 11 fields of output. ...
1
vote
1answer
18 views

service launched at boot, after all other?

Config : Linux Mint 17,2 (Ubuntu based, Debian based). I launch a home-made service at boot. Added with update-rc.d homemadeserviceName defaults I need to be sure homemadeserviceName runs after ...