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
0answers
4 views

security setup for a Linux box expose to Internet

I need to setup a Linux box (CentOS) and expose it to Internet. I just need to expose http service. Wondering if any security setup guide? I am not a security expert, just want to get a easy to follow ...
0
votes
1answer
4 views

Running a ruby cron job

I was trying to create a cron job which runs a ruby code on digital ocean, however it seems I'm making a mistake. It doesn't give any error but it doesn't also do anything. I ran this cronjob on my ...
0
votes
0answers
16 views

Script to check if file exists and copy

Pretty new to shell script, Want to write script which checks if any file .300 extension exists on /exports/files on server 10.xx.xxx.xx .If *.300 exists, move file to /exports/files/arch and send an ...
0
votes
0answers
13 views

Rsync dry-run statistics- Different statistics after executing 'cp' and 'rsync' commands

In order to generate some random files, I have created a script which is as follows: #!/bin/bash for dir in `seq 1 10` do mkdir /root/mandar/RsyncSrc/$dir cd ...
1
vote
1answer
32 views

Get all filenames in a directory created before input date

I have a directory containing lots of files. The output of ls command is -rw-r--r-- 1 nobody nogroup 427494 May 26 13:59 14_20150526065238928590_102.txt -rw-r--r-- 1 nobody nogroup 2113592 May ...
2
votes
2answers
90 views

how to print field between the double quote

I have the following file: more conf.txt perl /home/site/gen.pl "GG - W C1 Test - sai1" "15072" && ssh 13.4.93.103 perl /home/site/gen.pl "GG - W C1 Test - sai2" "15072" && ssh ...
0
votes
0answers
7 views

“avahi-daemon[1540]: server.c: Packet too short or invalid while reading response record. (Maybe a UTF-8 problem?)”

We are developing an application in Java for our internal project. Apache-Tomcat-7.0.57 is running on a Linux machine (Red Hat 4.4.6-4). But it throws an error avahi-daemon[1540]: server.c: Packet ...
0
votes
0answers
14 views

Why I can not access the windows network shared folder from SUSE

All, Forgive me I am not familiar with the Linux. Currently I just set up a network shared folder in a windows machine. I can access it from another windows system. The path looks like \\10.50.90.18. ...
0
votes
0answers
12 views

High read/write system call time

I am facing a weird problem with one of process taking more processing time in one system comparing to other systems. Most of the time is spending on read and write system call on problem host. I am ...
1
vote
3answers
45 views

Which program is altering my resolv.conf?

On Debian 8 stable, I add dns server IPs in /etc/resolv.conf but after some time they get overwritten. I don't have gnome installed (I use i3wm) and network-manager is not installed either. On ...
0
votes
0answers
13 views

Is there any way to read files from the virtual /proc directory using smbclient?

Is there any way to read files from the virtual /proc directory using smbclient? No root access. Both server and client are Debian Linux machines. Server is running Samba 3. Smbclient version is ...
0
votes
0answers
12 views

Why does my program screen dims down?

I wrote a program to run on Linux OS. I noticed whenever I ran the program and clicked on a button to open a window, sometimes the main application screen dims down. This doesn't happen on all the ...
0
votes
1answer
23 views

Wifi is not working on Linux Mint

I have a Dell Latitude E4310 laptop which ran Ubuntu for the last 4 years (with various versions). Recently I have installed Linux Mint (version 17), and afterwards the WiFi is not working. It was ...
1
vote
1answer
21 views

Cleaning up after installing libary

As part of installing ImageMagick and PDFtk I fetched tarballs and extracted them to my home directory. Went through install process and got both libraries working. If I run which on pdftk or any ...
-2
votes
0answers
13 views

How to write shell script code for display reserved memory space for application (buffer + cache) [on hold]

Anyone can help me how to write shell script code using the bash shell that perform the following functions: Display reserved memory space for application (buffer + cache). Display real used memory ...
1
vote
2answers
31 views

Triggering hardware interrupts by connecting parallel port pins 9 and 10 does not work

I want to trigger hardware interrupts as described in the book Linux Device Drivers by connecting pins 9 and 10 with a wire. I tried that but apparently there's no interrupt beeing triggered: cat ...
0
votes
0answers
9 views

Cylon Linux stuck on loading screen?

So, I have been trying to get a Linux distro for a while now called Cylon Linux. I heard about it from a website and looked into it. I downloaded the .iso file and burned it to a disk. I tried to boot ...
3
votes
1answer
44 views

Linux doesn't drop FS Caches. Instead Memory starts Swapping

I'm quite confused about this behaviour of linux memory caching. total used free shared buffers cached Mem: 15953 14188 1765 64 ...
0
votes
0answers
8 views

How to transform a LFS system it to an (iso) installable system or live cd? [on hold]

I want to make my own lieux distro from scratch I want to build the kernel then crosscompile the kernel.. But my big problem is how I’ll make it installable after building it? (like Ubuntu, arch, deb ...
0
votes
0answers
14 views

systemd kill my processes before ExecStop completed

I'm trying to update my application to use it with systemd. When I have used Upstart, I've just create a /etc/init.d/myService script: #!/bin/bash #chkconfig: 2345 90 10 #description: myDescription ...
1
vote
2answers
10 views

Delete files that are not part of a bash array

Right now I backup the mysql databases using a cronjob everyday. Now that the server is getting full, I only want to keep one backup for every month, one backup from sunday every week and the last 7 ...
0
votes
0answers
42 views

How to make a fifo in C? [migrated]

I have to use mkfifo in my C program in Ubuntu. But I have an error when I compile: no such file or directory . I think the problem because I have not set the panel_fifo environment variables. But I ...
1
vote
0answers
42 views

Unable to mount a partition on an SSD over USB

I'm trying to mount a 120GB SSD connected externally via USB to the new server. The SSD is full of data and I can't format it. mount /dev/sdd1 /mnt/sdd1 mount: wrong fs type, bad option, bad ...
0
votes
1answer
21 views

“fdisk -l” output: what are Disk label type“ and ”Disk identifier"

fdisk -l output: . . Disk label type: dos Disk identifier: 0x0006a8bd . . what are Disk label type" and "Disk identifier" Also, apart from the manuals, where else can I find more information ...
1
vote
0answers
42 views

Linux randomly hibernates [on hold]

I'm facing some issues with Linux (Fedora and Ubuntu). First of all, when I installed Ubuntu it was sort of hibernating when booting then I installed Fedora, everything works fine, but when I boot the ...
2
votes
0answers
26 views

Thread running between fork and exec blocks other thread read [migrated]

While studying the possibility of improving Recoll performance by using vfork() instead of fork(), I've encountered a fork() issue which I can't explain. Recoll repeatedly execs external commands to ...
1
vote
2answers
36 views

Midnight Commander - editor in hex mode

I can't find a way to toggle mc internal editor in hex mode. Here it says to use F4 however it suggest to replace. How to do it?
0
votes
0answers
9 views

Linux Mint 17.1 Mate stops responding

I was using LM 17.1 Mate version quite smoothly until one day I found my desktop wallpaper had changed to the original. Then after refreshing for 2nd time it keeps on refreshing and it seems that my ...
0
votes
0answers
18 views

Error on login on Ubuntu 14.04 [on hold]

Now,before I begin,be prepared for a lot. I am having a on-login problem that, when "send a report" is clicked, goes away. But after a minute or two, I get a whole lot of mess of errors. Here is my ...
0
votes
0answers
7 views

Parrot Security OS Does Not Play Sound? [on hold]

I use a distro of Linux called Parrot Security OS. I have recently noticed that the sound on it refuses to play in any sort of way. I have tired muting then un-muting. I have used the advanced ...
1
vote
2answers
47 views

tunnel rsync:// protocol over ssh

on my LAN (debian server, windows client) I use rsync:// protocol with this code cwRsync\rsync.exe -avLP --force --append-verify rsync://rsync-usb@server/rsync-usb/* usb/ I have read, that rsync in ...
0
votes
0answers
27 views

“Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block” and “LZMA data is corrupt”

I recently bought a new computer and I am experiencing problems while trying to install Linux. Things I have tried: A variety of distributions: Ubuntu; Elementary OS; Crunchbang++; Manjaro; and ...
10
votes
2answers
268 views

Unable to copy large file onto ext2 usb stick [on hold]

I have an 8G usb stick (I'm on linux Mint), and I'm trying to copy a 5.4G file into it, but getting No space left on device The filesize of the copied file before failing is always 3.6G An output ...
3
votes
2answers
54 views

Convert binary mode to text mode and the reverse option

By the following way I convert a simple binary file into a text file od –t x1 Check.tar | cut –c8- > Check.txt What is the opposite way to convert the Check.txt to Check.tar as the original file ...
0
votes
1answer
34 views

Linux distros: Which one suits me? [on hold]

I decided to use Linux alongside MS Windows so I read some articles for beginners and I installed Linux Ubuntu 14 LTS. Less than one month, it crahed and became unfunctional after an upgrade process ...
3
votes
1answer
31 views

What happens when a tmpfs volume is full and swap is full? Is Linux's OOM-killer involved? [duplicate]

I understand that if a persistent / disk-based volume is full, files need to be explicitly deleted to free up space before more can be added. Further, I understand that if memory is exhausted, the ...
1
vote
2answers
29 views

Using another's device resources for software execution

I have an old weak laptop (core duo at 1.7Ghz) and a quad core phone(arm cortex a7). Both are running linux. Could I use phone's resources from laptop to execute(process) stuff for laptop? Is there ...
0
votes
1answer
31 views

Hyphen/Dash “-” Symbol's use in Linux bash /dir + GRUB booting for newbs

I am attempting to complete this GitHub tutorial on creating a custom GRUB loader for a stubborn Asus Win8.1 laptop on which I am hoping to install Ubuntu: ...
2
votes
1answer
14 views

How do I turn a local yum repository into a local satellite for many other repositories

I am not sure I am asking this question in the best way. I am doing my best to ask it in the clearest way possible. I would like to build a local (to my cluster) yum repository server such that I ...
0
votes
1answer
35 views

to allow certain ips and block all other connections on AMAZON EC2 ubuntu 12.04

How do I allow certain IPs and block all other connection in iptables on AMAZON EC2?
1
vote
3answers
36 views

I can not install MySQL using yum on Centos7

I've installed centos7 recently, but, when I am trying to install MySQL using the command: yum install mysql-community-server I keep getting Exiting on user cancel while I am not hitting any ...
3
votes
1answer
30 views

Auto disconnect from WLAN if unused

For Nokia N900 there is an app called AutoDisconnect which monitors the WLAN usage and closes the connection if the traffic is very low. I'd like to have something like this on my future notebook in ...
4
votes
2answers
123 views

What's the difference between poweroff and halt? [duplicate]

To turn off my system, I can use one of these three commands: sudo halt Or: sudo poweroff Or: sudo shutdown -h now What are the differences between these commands, or are they all just ...
1
vote
0answers
12 views

How to get miniature(live thumnail preview) of open windows on linux?

Gnome-shell does it in the 'activities' screen, unity/compiz has it in 'Spread','Shift','ALT-Tab'. How do I get those live window previews in C++?
1
vote
2answers
23 views

Depends: libqtgui4 (>= 4.6.2) but it is not installed

I want to install the Wing IDE for python. When I executed it, dpkg showed me some qt packages that were not installed. I installed a few of them via Synaptic Package Manager, but the rest cannot be ...
1
vote
1answer
20 views

Random crashes on XFCE - how to diagnose what's happening?

I'm on Parabola (a fork of Arch), and I'm running the XFCE desktop environment. However, I periodically get these weird crashes, where my entire desktop freezes. I have no ability to move my cursor ...
2
votes
0answers
14 views

How to use blktrace to monitor the eMMC Flash access pattern?

I'm trying to simulate a FTL(Flash Translation Layer) algorithm and evaluate its performance. What I need is a trace file of a flash access(containing information about block and page access). I'm ...
0
votes
0answers
31 views

read failure error while connecting to the server [on hold]

There was a problem last night when I tried to connect to a remote server from my personal computer having Linux. First, I received the following error: ssh_exchange_identification: read: Connection ...
0
votes
2answers
28 views

Log file processing [on hold]

I have a log file like this; I can get NOW=HOUR=date +'%H' I can get login time in hour with something like cat file | awk '{print $2}' | cut -d: -f1 Is there a way I can compare the login times ...
0
votes
1answer
29 views

cant run dd command on android device

The main objective is to send a splited file to an android and join it back up with a .sh script, the file is splited to 5MB parts but its total size is unknown (trying to make an universal script), ...