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

4
votes
1answer
392 views

Can I write C programs for Linux on OS X?

In case I'm writing a program (of any kind) in C, that is meant to be run on Linux environment, can I write it under OS X? (concurrency wise for example) I'm asking this because I like programming in ...
2
votes
1answer
26 views

use tar to extract and immediately compress files from tarball

I have a compressed tarball (eg foo.tar.gz) that I wish to extract all the files from, but the files within the tarball are not compressed. That is to say, the contents of foo.tar.gz are ...
0
votes
1answer
9 views

How to capture traffic from a website using tcpdump

I need to capture traffic to https://gmail.com using tcpdump. I solved this by using tcpdump -n dst host <ipaddress of gmail> But is there any way I can directly specify gmail.com instead of the ...
2
votes
0answers
33 views

How often are user repositories abused? [on hold]

No matter which distribution you use, you probably have a package manager and most likely installed one or two packages from an "unofficial source", meaning a regular user has provided it. As ...
2
votes
1answer
71 views

Mount linux mount in windows (without ftp)?

I successfully mounted my external hard drive (ntfs) to /mnt/seagate. I'm using debian and the server is connected over LAN to my PC. So how can I mount my hard drive in my windows explorer without ...
-4
votes
0answers
21 views

Please help me with below expect code

Can anyone please help me with below code :- spawn /usr/bin/scp /opt/ldap/unboundid/backup/binbak/ConsumerDev/binbak_`date +%Y_%m_%d`.tar ...
0
votes
1answer
14 views

Get the time when nohup R program finishes

I want to get the time when program finish. But it always show the same time. Here is my shell script. But it always show that START TIME is same as END TIME. START=$(date +"%r") nohup Rscript ...
0
votes
1answer
8 views

How to benchmark memory in an embedded linux device?

Is there a generic utility to benchmark external memory device (eMMC, DDR) throughput on an embedded device (e.g. raspberry pi)? memtester, bonnie, bonnie++, memtest, dd? I've been running into ...
2
votes
1answer
49 views

Run script every 30 min with systemd

I would like to execute a script every 30 min after booting into the system. I know you can use cron, but I don't plan to use this feature often therefore I'd like to try it with systemd. So far I ...
0
votes
0answers
51 views

Assistance with script on multiple hosts [on hold]

I am running the below script on Server A. Before running this I read the following link: Generate an RSA key pair for version 2 of the SSH protocol #!/bin/bash HOSTS="serverA, serverB" ...
0
votes
0answers
31 views

Should I learn Linux using Raspbian or Debian? [on hold]

Alright so I've worked with Unix a bit in the past (a university course) in which I've gained a slight knowledge of the basic commands, bash scripting and makefiles. Now I'm planning on actually ...
0
votes
0answers
21 views

Install Acrobat Reader in SuSE 10.3

How to install Adobe Acrobat Reader in SuSE Linux 10.3 using commands in a terminal?
1
vote
2answers
22 views

Extracting duplicity backup data

I've made some backups of my previous systems using Deja Dup (duplicity). In my current distribution it's not available, so I've simply extracted the data. Now in order to make that data meaningful ...
1
vote
2answers
20 views

VGEXTEND: How to avoid wiping a swap signature in /dev/sda3?

The problem: [root@195623 ~]# vgs VG #PV #LV #SN Attr VSize VFree fedora_195623 1 3 0 wz--n- 9,50g 0 [root@195623 ~]# vgextend fedora_195623 /dev/sda3 WARNING: swap ...
1
vote
1answer
23 views

my Vimrc disabled the copy/paste action using mouse right click

Am using an open source .vimrc file from https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim, but it is screwing up my default mouse right click copy paste actions. Whenever I do a right click, ...
1
vote
2answers
50 views

What exactly happens in Linux internally when an ethernet cable is connected?

I would like to understand what exactly happens when a cable is being connected to the Ethernet port (assuming dynamic IP addressing): What services are being run and how are they triggered? What ...
4
votes
4answers
286 views

How can I recognize that a certain Linux distribution is based on Debian, looking at file structure? [duplicate]

I have an unknown (let's assume uname -a returns nothing) Linux distribution I have root access to. How can I verify, looking at file structure, that it is based on Debian?
-3
votes
0answers
24 views

Linux os issue when installed [on hold]

I've installed RHEL OS in server. But when i was trying to login immediately after installing the OS ,I wasn't able to do anything. But I can see the OS in the server.I can see only the login page. I ...
0
votes
1answer
21 views

assistance with scripting list of users

I'm new to scripting, so far I've created this: #!/bin/sh ( echo List of users in PRD echo $(date) cat /etc/passwd | awk -F: '{print $1,$3,$5}' | sort | \ while read username uid gecos do echo ...
0
votes
1answer
19 views

Compile network card driver on debian

I buy a new network card , D-Link DGE-528T. My OS is Debian(Jessie) kernel : 3.16.0-4-amd64 but it can't detect the new network card, so I must to compile driver by myself. follow README file. ...
1
vote
0answers
25 views

Kali Linux openVPN does not pass the DNS Leak test

I recently installed Kali Linux on VMWare. I was able to successfully install openVPN following these instructions, but it seems that it does not pass the DNS Leak test. Is there anything that can fix ...
-2
votes
0answers
38 views

Script for getting user list ,filtering through parameter and emailing [on hold]

As an example : Below output is one of the lines from /etc/passwd file rambo:!:2098:203:rambo_babu:/home/rambo:/usr/bin/ks If i run below command on /etc/passwd cat /etc/passwd | awk -F: '{printf $1" ...
1
vote
1answer
40 views

How are the values represented with the “free” command

I am interested in the totals of the 3 lines. Specifcally, if the "used" values can be counted as what's going on in real time, or if that's just a running total since the OS was started? How does ...
1
vote
0answers
30 views

USB bar code scanner not working on Raspbian

My USB bar code scanner (SYMBOL LS2208) is recognized as a HID. hid-generic 0003:05E0:0600.000F: hiddev0,hidraw0: USB HID v1.10 Device [\xffffffef\xffffffbe\xffffffa9\xffffffbe\xffffffa9Symbol ...
-3
votes
0answers
26 views

Linux - Use in the IT sector [on hold]

I'm interested in networking rather than programming. I would like to know how Linux is used in the IT industry as a networking tool.
0
votes
0answers
18 views

output in columns [duplicate]

i am trying to put my data after a snmp walk in a table this is my code: for i in `cat $Rep_Scripts/IP_ALU_LIST.txt | awk '{print}'` do read hostname ip <<< $(echo $i |sed 's/;/ /') ...
1
vote
0answers
11 views

Record video from camera and get frame number on demand

I'm using avconv at the moment to store the input of my camera as an video. This works fine. Now i'm asking myself if it is possible to get the current frame number at a particular time of the video ...
0
votes
1answer
21 views

How to rebuild ISO removing file from its mounted image?

I built an ISO that contains, for example: Directory listing of / d--------- 0 0 0 2048 Mar 19 2015 [ 29 02] . d--------- 0 0 0 2048 Mar 19 2015 [ 29 ...
0
votes
0answers
32 views

How to configure the various components of a LAMP stack [on hold]

Setting up a LAMP stack with a frontend Web server and backend Application server and a separate DB server. I need a nice simple walk-through guide on polishing it all up and getting everything ...
1
vote
1answer
32 views

Automatically run command before umounting a filesystem

I want to execute a command automatically shortly before a filesystem is unmounted. The command still needs the filesystem to be mounted but I am interested in information as "new" as possible. ...
0
votes
1answer
27 views

How to make virtual interface ping to a host in the network

I crated a virtual interface as indicated in this link. sudo modprobe dummy sudo ip link set name eth10 dev dummy0 sudo ifconfig eth10 up sudo ifconfig eth10 192.168.1.150 now if I want to make a ...
1
vote
3answers
40 views

My SD card has a partition but Linux doesn't create a device entry for the partition

OK, I don't know what's going on here, at first I thought it was a problem I remember having some time ago where I couldn't mount a vfat partition because it had some flag set that it had not been ...
0
votes
0answers
25 views

Linux within the confines of a Pi-based system [on hold]

Earlier today I was browsing software internships on my schools job posting website (I'm a CS student) and I noticed one of the jobs had this requirement: Experience with Linux programming, ...
1
vote
1answer
33 views

How can I monitor network connections for an app

I'm running a chat application on my machine called foo - how do I view all connection attempts (failed or successful) for foo? I have attempted this with netstat, but I am unsure how to associate ...
0
votes
0answers
9 views

can you explain with code how you solve the problem of install in hp g5 380 in fedora x or centos 7 [on hold]

can you explain with code how you solve the problem of install in hp g5 380, everything you type and which option you choose when the system operation start In the Install Fedora core 15 on HP Smart ...
0
votes
1answer
26 views

Make udisks2 clean up stale mount points?

udisks2 with udiskie are set up to automount USB storage devices. Connecting a pen drive labeled MYDRIVE, it is mounted to: /media/MYDRIVE When pulling the drive without prior unmounting, the above ...
0
votes
1answer
10 views

chcon: failed to change context of `/etc/oddjobd.conf.d' to `unconfined_u:object_r:oddjob_t:s0': Permission denied

A friend of mine had trouble with SELinux. The server is configured with SELinux in enforcing mode, using the targeted policy. When using Puppet, restorecon or chcon, he had errors like this, even if ...
1
vote
1answer
15 views

How do I punch a hole (FALLOC_FL_PUNCH_HOLE) in a file from command line?

There is fallocate(2) system call to make sparse files by erasing a "holes" in them. Is there a command line tool for it? Expecting something like: makehole myfile.dat --offset=10G --length=1G
3
votes
2answers
39 views

Set default kernel in GRUB

How can I pick which kernel GRUB2 should load by default? I recently installed a the linux realtime kernel and now it loads by default. I'd like to load the regular one by default. So far I only ...
1
vote
1answer
7 views

Authentication token type [(null)] is not supported

I have configured sssd on my servers (some RHEL and CentOS 6), but on some of them, I get the following error in /var/log/sssd/sssd_example.com.log: [sssd[be[example.com]]] [sdap_auth_send] (1): ...
0
votes
3answers
28 views

Bootable USB creator for Linux

Is there a Linux version of http://www.linuxliveusb.com/ for example? A GUI way to creating a bootable USB stick.
-2
votes
0answers
16 views

Where is Virtual Address Space of the program stored in linux? [on hold]

Where is virtual address space is stored in linux for a process?
1
vote
0answers
10 views

Issues while eMMC partitioned using sfdisk

I am writing firmware(MLO,u-boot.img, uImage(ver 3.12), dtb, rootfs.tar.gz) programming script for am335x based custom board. Rootfile system is to be put onto the eMMC. Firmware programming script ...
0
votes
1answer
22 views

need help with inserting variables in a file path on GNU linux (SLES 11)

I am tryin to insert 3 variables to build a path, but unable to get it . I am trying the below log_path="/vol02/logs/$dname/logs/103602_$msname/${msname}_start.log" dname=cfp msname=cfp003 i get ...
0
votes
1answer
14 views

How do I install cifs-utils? [on hold]

How do I install cifs-utils on Oracle Linux Server release 5.8 2.6.32 400.21.1.el5uek x86_64 GenuineIntel x86_64? I need to mount a Windows share on Linux. # yum -y install cifs-utils Setting up ...
1
vote
2answers
46 views

Are “kernel mode” and “user mode” hardware features or software features?

I read that there are two modes called “kernel mode” and “user mode” to handle execution of processes. (Understanding the Linux Kernel, 3rd Edition.) Is that a hardware switch (kernel/user) that is ...
2
votes
1answer
15 views

add key to proc/keys

How do I add a key to a keyring in /proc/keys ? My openembedded Linux does not come with a keyctl command program. And all I can find on google is the programming interface, but I would like to do ...
1
vote
1answer
21 views

ssh 3des private key encrypt and decrypt

i have converted my ssh private key with 3des encryption openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_rsa.old -out ~/.ssh/id_rsa how do I remove encryption and get the old key?
7
votes
2answers
51 views

How does the /proc/<pid>/exe symlink differ from ordinary symlinks?

If I start a process and then delete the binary of it, I can still recover it from /proc/<pid>/exe: $ cp `which sleep` . $ ./sleep 10m & [1] 13728 $ rm sleep $ readlink /proc/13728/exe ...
2
votes
1answer
38 views

“mount: wrong fs type..” error when mounting USB

I'm stuck trying to mount a USB drive on a Raspberry Pi (Wheezy). I've reformatted it (ext4) and tried re-mounting it in /media/owncloud (following sudo chown -R pi:pi /media/owncloud), but hit an ...