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

1
vote
1answer
2k views

CentOS custom ISO installation - /dev/root does not exist

I am building a custom ISO for CentOS 7 and for now I am just intending for this to be an absolute minimal install (a proof of concept basically). I am re-creating the ISO via using mkisofs. The ...
0
votes
0answers
10 views

extract two columns and add at a specific location to another file that is already full of columns

I have a file where I want to extract two columns and add at a specific location to another file that is already full of columns. Could I cat file 1 and make it a variable and then cat file 2 and ...
4
votes
2answers
1k views

Increasing Accuracy of Synaptics Touchpad - Arch Linux

Here's my current problem with my Arch Linux installation. The touchpad is horribly inaccurate. And by that, I mean, I cannot click links without having to sway back and forth. I've been resorting to ...
4
votes
2answers
251 views

How can I grep two things where one has option -w?

I have a json file from where I want to get the value of two items which are in an array using grep. Let's say I'm trying to get data from values foo and bar, the problem is that baralso matches ...
10
votes
3answers
228 views

Untrusting an intermediate CA in Linux?

From this blog. Intermediate CAs are certificates signed by a root CA that can sign arbitrary certificates for any websites. They are just as powerful as root CAs, but there's no full list of ...
9
votes
1answer
276 views

Linux iptables ssh port forwarding (martian rejection)

I have a Linux gateway performing NAT for my home network. I have another network which I'd like to transparently forward packets to, but only to/from specific IP/ports (ie. not a VPN). Here's some ...
10
votes
1answer
940 views

Why are there two different values for the size of a drive and how to reconcile them with device-mapper and LVM?

I have a 1 TB drive attached via USB. It contains an LVM physical volume filling the entire device (without any partition table). When I tried to extend a logical volume by using the entire PV, the ...
2
votes
1answer
146 views

How to check if reading from /dev/random will block

I have found information that /proc/sys/kernel//random/entropy_avail indicates number of bits available in /dev/random. I wanted to check whether the next reading from /dev/random will block and my ...
1
vote
3answers
53 views

Discover Static IP of connected ethernet cable

Ok, so my question is a bit out there, and I've read a lot of similar questions but they never actually are doing what I am trying to accomplish. So the best way to describe it is with this scenario: ...
-1
votes
0answers
10 views

creating directories in a directory using loop [duplicate]

On my CentOS machine, I need to create a main directory inside which I will have a few sub directories and, inside them, some subsubdirectories. Something like: main_directory->sub1,sub2,sb3.. ...
1
vote
2answers
18 views

Get file modification time in yyyymmddhh24miss format

I want to get the modification time of a file in a specific format. How can I do that ? I know about stat -c %x find.txt but I need this format: yyyymmddhh24miss I'm using ksh on Linux ...
10
votes
1answer
10k views

Dual boot windows on second harddrive, UEFI/GPT system

I'd like to install linux, but I don't want to risk damaging my current windows installation as I have heard a lot of horror stories. Fortunately, I have an extra hard drive. Can I install linux ...
2
votes
2answers
65 views

Change directory without using 'cd'

I have a list of files with their paths in a text file. And I want to copy these files, mentioned in list, to another directory with their parent folders tree. Also my shell-script to copy these files ...
0
votes
1answer
8k views

How can I see settings of the email server?

I have root access to a Linux server (CentOS 5.10). I want to see the email server's settings such as whether SMPT is working, wheter there is an email server, port number, does it require SSL, what ...
0
votes
2answers
751 views

Unresponsive desktop after resume from hibernation

After booting up my computer after hibernation (suspend to disk), my desktop is unresponsive for up to 15 minutes. I've found that the slowness is caused by the fact that all running applications seem ...
2
votes
1answer
24 views

Detemine “which device a file is in” in chroot environment?

According to this: Determine what device a directory is located on I can find which device a file is in by df command in a normal environment: fpemud-workstation / # df /bin Filesystem ...
0
votes
1answer
1k views

openSuse, not running the cron job

I have created a cron job in the /etc/cron.d/dispatchingEmail_I the permissions of dispatchingEmail_I are the following: -rw-r--r-- 1 root root 84 Sep 11 19:52 dispatchingEmail_I content of ...
0
votes
1answer
21 views

Execute a process always and continuosly in a single CPU Core [duplicate]

I would like to execute a process, which always has to use only one of the CPU core, and continuously run on that single core only. I am using Ubuntu 14.04, How can i achieve this?
0
votes
3answers
38 views

RTC and System clock not in sync

How to set the system clock sync with RTC (Hardware Clock / BIOS). I am writing a script that uses a system clock in order to start the system with alarm. For this the sole requirement is to have a ...
0
votes
1answer
23 views

unable to login with the newly created user ( changed root directory permission to 0750) [duplicate]

I created a linux user using a script .Also i want the newly created user to access only certain folders in the (/ )root directory.For that i changed the permission of root directory to 0750. ...
0
votes
0answers
18 views

Where are my original files in my thumb drive after install a Linux? [on hold]

I am quite new in Linux. One month ago, I installed Linux in my thumb drive with all default options. Then I found that the original files in the thumb drive were absent and it was renamed as UUI. ...
0
votes
2answers
29 views

Can reboot system restarting the service as systemctl does?

I've modified the file in /etc/config/network After modifying this, I need to execute the following command make it take effect. systemctl restart netifd However, for some reasons, the systemctl ...
1
vote
3answers
4k views

Virtual Interface Not Showing up in ifconfig?

I am trying to create a virtual interface for the purpose of NameBased Virtual Hosting on my CentOS linux box; please find below is the devices' information:- DEVICE=eth0 BOOTPROTO=dhcp ...
1
vote
1answer
27 views

Is X11 cross-linux-platform and free from platform quirks?

Does X11 work across all linux operating systems? If I code a application that has an X11 window, will it look and operate the same across linux os's or will I have different tweaks I need to perform? ...
0
votes
2answers
127 views

Installing apr(apt-get install libapr1-dev libssl-dev) in my linux system giving me errors

Because of some security problems I am moving to Apache 7 from Apache 6. I am trying to install apr packages in my linux machine. I am using the following command to install apr. apt-get install ...
-3
votes
0answers
44 views

Automate CP command [on hold]

cp /tmp/script.js /apps/jboss/jboss-4.2.3.GA/server/js-build/ cp /tmpscript.min.js /apps/jboss/jboss-4.2.3.GA/server/js-build/ cp /tmp/products.json /apps/jboss/jboss-4.2.3.GA/server/json/ ...
1
vote
0answers
6 views

Mac Bootable USB not showing in boot menu

So the other day I created a MultiBoot USB using SARDU (It was the only one that worked with my 4TB hard drive). I had done this on my Windows 7 and thought, "Hmmmmmm, you know what would this really ...
0
votes
0answers
6 views

How to disable ethx device under /sys/class/net

I am looking for a way to disable/delete eth2 entry from /sys/class/net [root@test ~]# ls -l /sys/class/net/ total 0 lrwxrwxrwx 1 root root 0 May 26 08:04 eth0 -> ../../devices/vif-0/net/eth0 ...
0
votes
0answers
37 views

Count and compare files in Linux

I want to just compare the number of lines in two files. Below is the list of names of files. One file contains names/location of fastq files; the other file contains names/location of bam files. ...
0
votes
1answer
15 views

Using TFTP on Fedora 22

I am trying to troubleshoot tftp on my Fedora 22 to see if it is working or not. All I want to do is transfer a file between two systems. The commands I am finding online are not working. All I need ...
0
votes
1answer
26 views

Install PostgreSQL 9.5 CentOS 7

I'm trying to install PostgreSQL 9.5 on CentOS 7. I've searched online and to get access to the 9.5 RPMs it requires installation of pgdg95 via the following command: sudo rpm -ivh ...
0
votes
2answers
905 views

Install fuse debian 8 jessie

I'm on debian 8 jessie with a 4.2.3 kernel. I can't seem to get fuse installed and working. When I install fuse with sudo apt-get install fuse I get MAKEDEV not installed, skipping device node ...
1
vote
0answers
12 views

Record fullscreen program with avconv/ffmpeg?

I'm trying to record a fullscreen program (snes9x) with avconv, aka ffmpeg. I have avconv set up to use my whole screen, but it doesn't capture snes9x when I run it. #!/bin/bash avconv \ -f ...
0
votes
1answer
16 views

Why are processes run with nohup in rc.local killed?

I have the following script under raspbian jessie: file test.sh contains: #!/bin/sh -e nohup sleep 321 & sleep 120 false exit 0 When run as normal user in a terminal session, I have the ...
0
votes
2answers
26 views

Skeleton directory - how to add my own directories

I want to add a few directories to the skeleton directory. When I add new user I want to add my own directories to the new home directories.
1
vote
0answers
10 views

Pci device file identifier?

As regards disk devices, Linux systems represent them through a /dev/ file. /dev/sda is a hard drive, and so on. Is there also a file representing a PCI device, for example a graphic card? If not, ...
0
votes
0answers
20 views

What's the best book to learn linux? [on hold]

What's the best book to learn linux which ranges from basic to advanced level?
0
votes
1answer
14 views

cross comile net snmp for arm processor

i just want to cross compile net snmp for arm cortex a9 (cyclone v soc altera). can anybody tell me how to proceed step by step?in custum board my ram is 4 gb and sd card 8 gb .i want to compile full ...
1
vote
0answers
19 views

Touchscreen on embedded Linux can't tab or click

I use a 7" display with resistive touchscreen, embedded Linux for ARM CPU. Manufacturer Engicam, design is similar to Freescale / NXP i.MX6 Sabre board. With Yocto 1.7.3 and Engicam board support ...
1
vote
2answers
37 views

A quicker way to change owner/group recursively? [duplicate]

Currently, when I want to change owner/group recursively, I do this: find . -type f -exec chown <owner>.<group> {} \; find . -type d -exec chown <owner>.<group> {} \; But ...
0
votes
0answers
28 views

Debian/Security: From an information security standpoint, what are the biggest vulnerabilities in the Debian/Linux software chain? [on hold]

This question is part of a three-question series: How Secure is the Debian package/server system? (Part: 3 of 3) Main theme Main question: How secure is the Debian package management/mirror system? ...
0
votes
0answers
15 views

save outputs and errors to external file from lxterminal

I run compiled python program like this on my linux box (runs automatically after start lxterminal LXDE lxsession autostart): @lxterminal -e sudo /home/user/app.exe > /home/user/app.out ...
0
votes
2answers
47 views

What's the difference between a flag, an option, and an argument? [on hold]

Examples: ls -a (I consider -a an option) sudo -u username (-u = option, username = arg) chmod 664 my-dir (664 = option, my-dir = arg) I can't think of an example that might say "this is a flag" ...
0
votes
0answers
5 views

Can gschem (gEDA) print special characters (aka other than the “micron” symbol µ)?

I prefer to show low resistance values as 2Ω2 rather than 2.2 in my schematics. However when I print schematics and that character occurs, the printed version has a space instead of the omega symbol. ...
-1
votes
0answers
14 views

Linux mint update Network manager (nmcli)

I'm using linux mint 17.3 rose right now. The version of nmcli is 0.9.8.8. What i need is to update nmcli to at least 0.9.10.0. Is there a way to do this ? How ?
1
vote
0answers
41 views

how to detect CD physically inserted into drive

How to detect that CD was physically inserted into CD mechanics ASAP? The CD is mounted automatically but it takes like 20 seconds sometimes - and it is just then that I know the CD is inserted.. ...
0
votes
0answers
22 views

Recover content of a directory when the block where directory file is located is corrupted?

A user has a Personal folder in it's /home/user folder. Bad sectors appeared on the hard drive. If I vi the Personal folder file it's empty and if I go into it and I do an ls, the system gets stuck ...
3
votes
1answer
41 views

How to change the FROM address in mail

How to change the mail FROM address in Red Hat Linux 6? I send a mail by using this script: TO_ADDRESS="myfriendaddress@gmail.com" FROM_ADDRESS="myaddress@gmail.com" SUBJECT="SERVER FAILURE" ...
0
votes
0answers
25 views

Can naming/running a program “sudo” somehow cause problems? [on hold]

I hope this is an appropriate place to post this--I have no idea what happened. I named a c++ file (a simple sudoku solver) "sudo.cpp" and then compiled it with "g++ sudo.cpp -o sudo" and ran ...
5
votes
2answers
125 views

Better method for acting on IP address change from the ISP?

I have a Debian server at home. The server is my router and provides VPN access to the outside. I do not have a static IP address; the lease time given by the ISP is two hours.This cable cell seems ...