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

3
votes
2answers
11 views

Define physical volume inside non-partitioned disk

I've been able to define a physical volume (LVM) in two ways: Creating a 8e (Linux LVM type) partition and then # pvcreate /dev/sdb1 Usign pvcreate directly using a non-partitioned disk and then # ...
0
votes
1answer
21 views

How to get a list of major number -> driver associations

http://www.nostarch.com/tlpi states: "Each device driver registers its association with a specific major device ID, and this association provides the connection between the device special file and the ...
3
votes
2answers
92 views

Which file in /proc gets read by the kernel during the boot up process?

Which file in /proc gets read by the kernel during the boot up process? This was a question on my LPIC 101 test that I think I might have answered wrong. I searched on google and some other places but ...
0
votes
1answer
28 views

Linux drop packets if received from another equipment

Problem description : When I establish a VPN connexion between a VPN client and my home server, if the connexion are both across my firewall (pfSense) or are established directly, the connexion is ...
0
votes
3answers
41 views

delete all .swp file using rm command

I am trying to find and delete all .swp files in my current directory. I was using below command: rm -i `find . | grep .swp$` But everytime it is giving me this error: rm: missing operand Try `rm ...
2
votes
0answers
10 views

How to find out which process keeps tunnel interface(tun) up?

If I create a tun interface with ip tuntap add mode tun command and force it administratively up with ip link set dev tun1 up command, then the interface itself is always "physically" down: ...
0
votes
0answers
13 views

Using autossh to create a persistent, multiplexed ssh connection without any port forwarding?

I want to use autossh to maintain an ssh session configured for multiplexing. This way I can write scripts on my localhost that take advantage of the persistent ssh connection. I'm having trouble ...
0
votes
0answers
17 views

connecting to virtualbox ubuntu from osx extremly slow

I am running ubuntu 10.04.x as guest on virtualbox from osx x 10.10.x host It works (kind of), but after working a while with it and also after power sleep it can get almost unusable slow. It looks ...
0
votes
0answers
8 views

Unable to boot Kali Linux 1.1.0

recently I have made a USB livestick for Kali 1.1.0 with lili and with Win32DiskImager and tried to boot it in Windows 8.1. When I came to the boot order menu my USB was recognized as an UEFI-device, ...
0
votes
0answers
24 views

compare dynamic file [on hold]

I have a list of file that will be updated each hour and the name given to these file is according to the date and the hour for example: list_hour_date.txt list_9_20042015.txt list_10_20042015.txt ...
1
vote
0answers
15 views

dhcp ipv6 dynamic prefix delegation

I'm trying to setup Linux-based home gateway with IPv6 support. IPv4 configuration is finished and I'm using IPv4 NAT, ISC DHCP for addresses allocation, PowerDNS for local DNS setup, PDNS recursor to ...
0
votes
0answers
11 views

Unable to access localhost in Oracle VM (CentOs[Guest]) from Windows7(Host)

I'm trying to access the localhost in VM from Windows 7 64bit(Host OS), but unfortunately getting "Not Found" Http Error 404. I'm able to login to VM using Putty. Below are the work environment ...
-4
votes
0answers
25 views

transfer and rotate xyz coordinates [on hold]

consider these 10 points point x y z 01 41.809 10.374 16.139 02 43.348 9.633 16.491 03 41.954 11.651 18.934 04 42.428 12.296 19.653 05 40.667 11.310 19.207 06 ...
-3
votes
0answers
19 views

Duplicate Image Searcher using Bash [on hold]

I need to create a script to search through a directory (and sub-directories) of a user’s choice, creating a SHA1 hash value for each image. Each calculated value will need to be compared, where the ...
2
votes
1answer
29 views

How can I rasterize all of the text in a PDF?

You know when you have a pdf, which is a scan of a document and it's a really huge file, because it just stores the picture of the scanned document? And there are OCR tools which can help you to ...
0
votes
3answers
46 views

Windows to Linux migration [on hold]

I have been working with windows application development in C++ and SQL for around 3 years. I want to learn to develop C++ application on Linux and get myself little comfortable with Linux operating ...
17
votes
2answers
26k views

Manually generate password for /etc/shadow

I need to manually edit /etc/shadow to change the root password inside of a virtual machine image. Is there a command-line tool that takes a password and generates an /etc/shadow compatiable password ...
0
votes
2answers
21 views

Change display output with xrandr?

My roommate has a really old 1280x1024 VGA display that the driver sets to 1600x1200 by default and it causes it to display a message saying it can't display the input. I can ctrl+alt+f1 and use ...
1
vote
0answers
24 views

Why can't Adobe Flash for Mac run on Linux?

As we know, Adobe no longer develops new Flash versions for Linux (except for Google Chrome, i know). It does, however, develop actively Flash for Windows and Mac. Linux can run native Windows ...
1
vote
2answers
33 views

busybox tar or split large file to multiple smaller files

I am running Linux version 3.4.8 on an at91sam9g20. I want to take a large record and split it into multiple files. I have tried a number of methods, but none appear to function correctly, e.g. ...
17
votes
1answer
699 views

How does Linux determine what facilities to use to run a (non-text) binary?

I understand that Linux uses shebang line to determine what interpreter to use for scripting languages, but how does it work for binaries? I mean I can run Linux binaries, and having installed both ...
2
votes
1answer
25 views

Detect and respond to ping in userspace

Is there a way to make a linux system react or do something when pinged from another device, besides just sending a reply (or not)?
5
votes
2answers
288 views
+100

How to measure PCI-Express bus usage?

I'm looking for a way to find out if PCIe bus is the bottleneck or not. It's not a problem to measure how much bytes was transferred through any particular NIC: Is there a way to find how much ...
54
votes
4answers
97k views

How do you empty the buffers and cache on a Linux system?

Prior to doing some benchmarking work how would one free up the memory (RAM) that the Linux Kernel is consuming for its buffers and cache?
0
votes
0answers
16 views

Configuring tun0 and tun1 IPSEC interfaces

I'm trying to make two IPSEC tunnel interfaces in order to make a bonding but i don't know how to start it since i can't find any tutorial showing something similar. Can anybody gives me an indication ...
1
vote
1answer
83 views

How do I run a service with numactl

I need to do something like this to run MongoDB $numactl --interleave=all /usr/bin/mongod --config /etc/mongod.conf & What should I change to be able to run the mongo daemon with the options ...
-1
votes
0answers
40 views

Why is gcc compiler divided into four steps? [on hold]

On looking on the GCC compiler, I've noticed that there are four steps going on inside gcc while compiling some chunck of codes. (Preprocessing, compiling, assembling, linking). I understood the ...
1
vote
1answer
952 views

Build Linux and run it (uImage) on the Beagle board - xM

I'm working on some project where I'm using the Beagle board - xM Rev C. Power supply is 5V/2A adapter. My task is porting Linux Angstrom on the board but I have some problems. I have choosen Linux ...
1
vote
1answer
2k views

mod-mono-server 4 is not working, while 2 does

I need to deploy an ASP.NET MVC4 (MVC3 at least) application on Centos 6 server. I've installed Mono 3.2.1, XSP4, mod_mono (for use with apache web server) and succesfully ran the test application ...
1
vote
1answer
1k views

Problem with former RAID hard drive settings in Linux Mint 17

I'm new to Linux, just installed Linux Mint for the first time. I have two hard drives which were previously in a RAID configuration. Now before I have installed Linux I've changed them to individual ...
3
votes
1answer
627 views

Possible issues with SSD SATA3 drive

While investigating the issue with my SATA3 SSD drive being recognized as SATA2 (for some reason had to change SATA ports to fix it) I noticed the following messages when I run: $ dmesg | grep ...
1
vote
1answer
38 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 ...
2
votes
1answer
82 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 ...
1
vote
2answers
643 views

Command/scripts to check the Reverse DNS Lookup time

I am working on a project in which one master communicates with numbers of slaves. For that it has to make connection with hosts in network. But sometimes it hangs. I think that the reason behind is ...
0
votes
2answers
1k views

How to compute Linux slab memory leak in GNU/Linux ( proc/slabinfo ) of running process [on hold]

How to compute Linux slab memory leak in GNU/Linux ( proc/slabinfo ) of running process ? I'm want to free usage is not working properly . I want to way how to check Memory Usage & Memory Leak ...
4
votes
1answer
413 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 ...
3
votes
1answer
33 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 ...
1
vote
2answers
3k views

How to change the Linux Mint Nadia splash screen?

I was wondering if it is possible for me to change the splash screen when Linux Mint is loading? I am talking about the logo of mint which appears when you start the computer. If so what kind of file ...
3
votes
3answers
3k views

How to add more /dev/loop* devices on Fedora 19

How to add more /dev/loop* devices on Fedora 19? I do: # uname -r 3.11.2-201.fc19.x86_64 # lsmod |grep loop # ls /dev/loop* /dev/loop0 /dev/loop1 /dev/loop2 /dev/loop3 /dev/loop4 /dev/loop5 ...
1
vote
1answer
17 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 ...
10
votes
7answers
7k views

Is there any (good) SQLite GUI for Linux?

I'm looking for a SQLite graphical administration utility for Linux but I can't seem to find any (I found an extension for Firefox I'm not a user of that browser). Is there any that you know of?
2
votes
1answer
109 views

Two *different* mountpoints having the *same* absolute path (bind-mount problem)

Scenario a NFS share is mounted on /mnt/temp/dir (and other shares are mounted in subdirectories), I umount everything there but supposedly, it doesn't work well (maybe I start with umount ...
0
votes
1answer
27 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
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
35 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 ...
0
votes
0answers
22 views

Install Acrobat Reader in SuSE 10.3

How to install Adobe Acrobat Reader in SuSE Linux 10.3 using commands in a terminal?
-4
votes
0answers
23 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 ...
1
vote
1answer
462 views

port forwarding to internal lan server

I've ppp0 --> eth1 and eth0 (internal lan). I need forwarding externel 10022 port to port 8999 of the server 192.168.1.254 iptables -t nat -A PREROUTING -p tcp -i ppp0 --dport 10022 -j DNAT --to ...
1
vote
1answer
45 views

extract Embedded initramfs

I have a kernel in which one initramfs is embedded. I want to extract it. I got the output x86 boot sector when I do file bzImage I have System.map file for this kernel image. Is there any way to ...
2
votes
1answer
2k views

php5.6.2 installation with httpd24 ( apache version 2.4.10 ) on centos/rhel

using this repo : http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm for php installation , and for apache i am using amazon linux repo current ...