Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

0
votes
1answer
18 views

Old file deletion script

I used this script: #!/bin/sh for file in "$( find /var/backup/web2 -type f -mtime +1 -maxdepth 1 -exec rm -f {} \; )" do rm -f $file done exit 0 to delete files older than 24h from fixed ...
1
vote
3answers
65 views

Impossible to have two network interfaces wifi and ethernet (as a backup) working together

I have a raspberry 2 with a wifi interface and an ethernet interface. wifi is my main connection with the ability to just plug in the ethernet as a backup method. I want to assign different static ...
2
votes
1answer
34 views

Linux - check IPC stats

What is the best way of checking current status of different types of IPC in Linux (including uids) ? I want to inspect named pipes, half duplex pipes, unix domain sockets, signals. I know for sys V ...
0
votes
1answer
22 views

Sound is gone after booting system in text mode

I started using GRUB_CMDLINE_LINUX_DEFAULT="text" grub argument for my boots, and recently noticed that the sound is missing. I start GUI from terminal using startx command, here's my .xinitrc ...
1
vote
1answer
42 views

Is it possible to tell what source loaded a Linux kernel module?

In my Linux distribution there are a number of modules loaded during boot up and I'm trying to find where they're loaded from. [root /proc]# lsmod Module Size Used by ...
0
votes
1answer
29 views

Export mysql to remote server using one SSH session

I've come across a situation where I had to create a utilitary shell script that would be executed in many servers from different regions. The objective is to dump the local mysql database, copy it to ...
0
votes
1answer
34 views

Is it good to install linux on external hard drive?

I have an external hard drive and I would like to install linux on it (I choose Fedora KDE). I made a bootable dvd and I will choose the external hard drive to install on it the os. Is it good to ...
1
vote
0answers
9 views

Getting “No DEFAULT or UI configuration directive found” when booting from USB

I made a bootable Freya-OS USB. It works fine in my laptop. But, when I am trying to boot my desktop from the USB, it shows this error: "No DEFAULT or UI configuration directive found". Syslinux ...
1
vote
1answer
38 views

How can I boot my desktop using Wake-on-LAN?

I am trying to get Wake-on-LAN (WoL) to work on my desktop. It has an Asus P6T Deluxe v2 motherboard and I have successfully enabled the WoL option within the BIOS power management [1]. The desktop is ...
0
votes
1answer
46 views

Switching to Linux permanently [closed]

I have searched through the forum for similar answers but I had no success in finding a satisfactory one. Windows and I had a fight last night and I decided to break up with 'it'. :)) Therefore I ...
0
votes
0answers
13 views

Linux Mint doesn't recognize hdd in ahci mode after kernel update

Sometimes ago after a kernel update (or more, I didn't reboot, just did sleep/resume day in day out) I finally tried to reboot and got kernel panic problem you can see at the screenshot ('VFS: cannot ...
1
vote
0answers
22 views

Ubuntu boots to terminal by default

I am using Ubuntu 14.10 in my Dell Inspiron N5010.Recently I installed confizconfig settings manager.After that,my computer started to hang often(touchpad doesn't work).so I uninstalled compizconfig ...
0
votes
0answers
19 views

Application could not execute becuase shared library issue

I am trying to execute arm application which uses ffmpeg's .so libraries . I run application on ARM board and it gave me error "error while loading shared libraries: libavcodec.so.56: cannot open ...
1
vote
1answer
24 views

How to run the latest version of a program?

I'm quite new to the Linux world but very happy with my Linux Mint installation. One thing that confuses me is that I'm not sure how to update certain programs. For example, I installed Blender from ...
1
vote
0answers
12 views

How to catch my bluetooth service events

I have usb bluetooth device which is using btusb 0.6 module (driver). The thing is I am interested to know is: how is the systemctl start bluetooth.service event invoked? I was looking info about ...
0
votes
1answer
35 views

SSH Connect to hosts by using tunnel

I want to ssh connect from host A to host C directly with one ssh command. +---+ +---+ +---+ | A | -> | B | -> | C | +---+ +---+ +---+ Host A already have keys ...
0
votes
0answers
22 views

Full Linux Install On USB Drive - GRUB Problems

I recently bought a new laptop and decided to install Kali Linux on it. However, the laptop (an Asus Zenbook btw.) has a 128GB drive which is not very much. That is why I bought a 64GB, SanDisk, ...
1
vote
4answers
51 views

Duplicate the field in the first column

I need help please. I have the below input L12194C; ;1;8;12 ;2;30;46 ;3;49;71 ;4;0;0 ;5;0;0 ...
0
votes
1answer
27 views

Is there a way to comment more than one entry at a time in cron?

I know the standard way to disable a task in cron is to comment the line with the task using the # sign in front of it, as with most Unix config files or shell scripts. e.g.: 53 23 * * * ...
0
votes
2answers
34 views

Can all OSS for Linux be built to run on an Illumos based OS like OpenIndiana?

I like trying different OSs, but I have yet to try a Illumos-based OS. Can I run all or most Linux Software, just by building from source?
1
vote
0answers
19 views

Make X11 react on “dev/input/eventx”?

I have a debian 7 on kernel 3.8 running with a touchscreen. With evtest, I see that I get the screen's coordinates for device "dev/input/event2". How do I have to configurate my X server, that the ...
2
votes
1answer
66 views

Convert IP Address to Coordinates using database

I have a file which contains IP and I wanted to compare it to Coordinates using a local database (instead of API). I tried following a process and break down to pieces and created scripts referring ...
0
votes
1answer
61 views

Cloned server will only boot read-only

I have cloned one of my servers that is about the to be shut down into a virtualbox machine. I used rsync for that, remembering to keep the relevant attributes etc. I also modified fstab. I have ...
2
votes
1answer
14 views

Redirect or trigger on dev node input event

Is it possible to trigger an event when data is available at a dev node? Very simply, if some widget device sends information over usb to my linux box, would it be possible to trap into some event ...
1
vote
0answers
20 views

lp prints blank pages for pure text file

Printing a text file through lp result in blank page while printing same file through gedit works fine. lp is able to print pdf and jpg image files, but not text file. On further looking in to ...
0
votes
0answers
14 views

Trying to boot Mint via ISO on Drive using a DVD

I use Mint on a Windows PC that I cannot install Grub on. I am trying to figure out how to boot an ISO on the root directory of the C drive (c:\mint.iso) on my Windows PC by running Grub off of the ...
0
votes
0answers
16 views

How to limit internet access for specific program? [duplicate]

Well, the title says it all. Suppose I have some program, I run it as normal user, and I want it to have no internet access. P.S. I'm using Arch Linux, but I'm also interested in more general ...
4
votes
4answers
169 views

How can I convert two-valued text data to binary (bit-representation)

I have a text file with two (2) only possible characters (and maybe new lines \n). Example: ABBBAAAABBBBBABBABBBABBB (Size 24 bytes) How can I convert this to a binary file, meaning a bit ...
2
votes
0answers
22 views

What happens if the last process in a namespace exits?

I am running Linux. I have a single process in a mount namespace. I did in this process a mount -t tmpfs tmpfs /mountpoint. What happens if the process exits and there are no more processes in ...
0
votes
2answers
28 views

Mount a partition in Terminal with udisks

I'm running Linux Mint 17.1, based on Ubuntu Trusty. If I run udisks --mount /dev/sda7 then the partition is mounted in /media and not in /media/$USER as it should. What am I doing wrong?
1
vote
0answers
24 views

no internet through wwan0 when cable attached to eth0

On my Beaglebone card I run Angstrom Linux. It has one cable in the ethernet port (etho) and a USB 3G modem dongle in the USB port whose interface is named wwan0. At the other end of the crossover ...
0
votes
1answer
16 views

Captive portal [HostApd] detection by the browser?

I'm using hostApd to develop a captive portal. My machine provides à Wifi (password free), and I plan the clients to get a popup saying "hello". You know, like the popup of wifi providers, asking for ...
-1
votes
0answers
19 views

What does ls > list do, what does ls >> list do? [duplicate]

I have been asked to explain how and why ls > list and ls >> list are different, unfortunately I don't even know what either of these do :( Also when I typed them into Linux nothing seemed to ...
0
votes
1answer
18 views

How to change JAVA_HOME temprorary with env command

I use openjdk for my work, but sometimes I need oracle's JRE. I thought that I could use 'env' command for this, but can't figure out why it's not working. I have openjdk in ...
0
votes
1answer
23 views

Strange commands on FTP logs

I'm battling with wordpress security problems and sometimes even I have tried everything my server sends spam by some hacker. I have checked my FTP log and I found this code ...
0
votes
1answer
50 views

Can a kernel preemption happen in the process context with `TASK_INTERRUPTIBLE` state?

If a process sets itself to the sate of TASK_INTERRUPTIBLE, can it be preempted by other kernel components? If it does, I think this process maybe lost wake-up chance due to failed to check the ...
1
vote
0answers
16 views

SD card protected area

The Wikipedia article on SD cards mentions that about 10% of the capacity of an SD card is a so-called protected area, which is used for the security-related features of the card. Let's say I don't ...
0
votes
1answer
32 views

Add and Compile apt-get package manager for LFS

I'm trying to add apt-get package manager to LFS (LINUX FROM SCRATCH) system. I have found a solution explaining how to 'compile apt-get and dpkg' for LFS. But it's very old and unusable. I searched ...
0
votes
0answers
30 views

Error with GNOME and AMD Catalyst

I have two computers, both with AMD video card. I'm trying to install them Fedora 22 with GNOME, I followed the same steps on both, but when I turn on the computer, only one works, while the other ...
0
votes
1answer
26 views

Intermittent Network disconnection, Ubuntu, troubleshooting help

I purged network manager from my system (OS: Linux 3.13.0-53-generic #89-Ubuntu) Networking service runs on my system: sudo service networking status networking start/running Static interface ...
-3
votes
1answer
21 views

moving to homedirecory without using just cd foritself

Your current directory is cambridge. Move to your home directory using a relative pathname (don't use cd by itself for this move)
0
votes
1answer
20 views

How to exclude .jpg, .jpeg, .png, .gif from a ClamAV Scan (clamscan)

As the title says. I'm running a clamscan command to scan my users home directories, I'd like to exclude images from the scan as these sites specifically have thousands of images. M
-1
votes
0answers
13 views

How to move a compressed tar from one remote server to another?

I have a .tar.gz file at remote server A. I want to copy this file to remote server B and uncompress it there. How can it be done? [you@localhost ~]$ scp examplefile ...
1
vote
1answer
32 views

How to make Apache piped logging scripts not run as root?

The organization I work for is very security-minded. There is a separation between the group of System Administrators who are responsible for the operating systems (who, obviously, have root) and ...
1
vote
0answers
14 views

Installing KDE broke my Cinnamon installation

I started my adventure with Linux Mint installing the MATE DE. Then I installed Cinnamon and switched to it. Recently I wanted to try KDE out. So I installed mint-meta-kde, kde-full, amarok, ...
0
votes
0answers
7 views

check_nrpe ssl couldnt complete handshake, in both master and client server it works fine individually

I am getting this check_nrep ssl couldnt complete handshake erro in master server when i try executing the below command. /usr/local/nagios/libexec/check_nrpe -H 10.192.122.234 10.192.122.234 --> ...
-1
votes
0answers
23 views

Heap memory calculation with /proc/PID/smaps

I want to know how to calculate the Heap memory utilisation from the output of command /proc/PID/smaps. we have the PID of a process and getting the heap value out of it, but what the size fields ...
0
votes
0answers
23 views

Unable to Boot After removing Old Kernels

I removed old linux-image and linux-header files to free up space in /boot. I did this first by purging them in terminal, and when I noticed some issues with how the the operating system performed, i ...
0
votes
0answers
40 views

Do I need to stop NTP service for client or only the server for leap second bug in linux

I have a server with suse 11 sp1 which are connected to NTP server that is also of same version. How can prevent leap second bug from effecting the servers? Can stoping the NTP service prevent effects ...
3
votes
1answer
39 views

How do I forbid access to physical memory in Linux?

I'm on an embedded system (Zynq from Xilinx. It uses ARMv7, Cortex-A9), and running Linux. I need to ensure that no access to a certain physical memory range is ever made, either accidentally by the ...