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
7 views

How do I write a script for testing username/password?

I have about 500+ hosts I need to test a username/password combo to make sure there aren't any false positives in the list. I just need to make sure I can login and log out, no need to run anything ...
0
votes
0answers
8 views

How can I revert to my previous Kernel?

I decided to install the BFS CPU Scheduler by compiling the 3.16 Kernel Sources with the BFS patch and running the following command, sudo dpkg -i linux-image-3.16.7-ckt9_1.0bfs_amd64.deb Now after ...
2
votes
1answer
7 views

Error “/run/lvm/lvmetad.socket: connect failed: No such file or directory” - but not Grub related

All LVM commands give me the error /run/lvm/lvmetad.socket: connect failed: No such file or directory. I Googled this error and found only postings related to Grub and Grub-install. wish to get rid ...
0
votes
2answers
51 views

script using sed command

I need your help using sed command I have this output as a result of difference between two file: < IF-Name :STRING: "lns-wall-01-t2" Index:Gge32: 260 --- > IF-Name :STRING: ...
0
votes
0answers
12 views

WiFi unable to connect after sleep ath9k

When I put my PC to sleep and wake it up, it cant connect to WiFi anymore. Sometimes it asks me 5 times to re enter my password and if it manages to connect connect the ping is 2000+, iwconfig says ...
2
votes
1answer
22 views

Set default color for top

How do you set the default color for top? Right now there is a red that I can barely read. You can toggle from mono to color with z or set it up more thoroughly with Z. But none of those settings ...
4
votes
1answer
118 views

bashrc lazy substitution

How does one get ~/.bashrc aliases to evaluate $() substitutions at run time, instead of at the time that ~/.bashrc is executed (when opening a terminal)? I run this command often enough that I would ...
0
votes
0answers
10 views

Make web project writable by netbeans [on hold]

I know about Make web project writable by apache and other user and I have the same problem, but the solution there is not working for me. I am new to Linux and it is difficult to understand why ...
0
votes
0answers
19 views

Scientific linux GUI Doesn't start

I am a new user of Scientific Linux 6. I am working on a project started by others and unfortunately the GUI stopped working. I need to find out how to troubleshoot the GUI to solve the problem. What ...
0
votes
0answers
6 views

Creating “new” fonts from font variants, using font.conf

Is it possible to make font variants such as condensed versions of certain font families available, by assigning new names to them? In my case, I would like to make use of DejaVu Sans Condensed. The ...
1
vote
0answers
7 views

Map a Linux VM's block device to its vmdk file on the vmware datastore

For development and staging purposes, I must frequently create clones of individual virtual harddisks (vmdk container) and move/deploy them into some other system. While I have been able to hack a ...
1
vote
1answer
15 views

What do the terms CC, LD and SHIPPED refer to during the Kernel Source compilation process?

What do the terms CC, LD and SHIPPED refer to during the Kernel Source compilation process? Am I correct to assume that [M] indicates that it is being compiled as a module?
0
votes
1answer
18 views

Unable to ssh into virtual machine on host only network

I have created a virtual machine in virtual box with host only network. I am able to ping to the virtual machine but when i try to ssh into the same machine it reject my request with following error ...
1
vote
0answers
6 views

Diagonal touchpad movement results in wobbly line

I'm using a ThinkPad L440 with a Synaptics touchpad. A while ago (~1-2 months) the touchpad started acting strange when trying to move the mouse pointer diagonally. The picture shows the first line ...
0
votes
0answers
27 views

sort Errors and Exceptions based on date [on hold]

I need to write a script which will pull all the errors and exceptions from all the .zip as well as from .log files and show them orderly. I wrote this below command echo"$((zgrep -E ...
0
votes
1answer
19 views

how to add application to initrd.gz

I have an initrd.gz (from linux parag*n live cd) I want to edit the file inside and add app like apache,ophcrack,etc. So far I've done extracting by following these step ...
0
votes
1answer
33 views

How to artificially cause a page fault in linux kernel? [on hold]

I am pretty new to linux kernel. I would like to make the linux kernel fault every time a specified page 'P' is being fetched. One simple conceptual idea is to clear the bit indicating the presence of ...
5
votes
2answers
24 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 # ...
2
votes
1answer
1 view

mdadm Software RAID1 with GPT on Debian 8.0 amd64 - Does not boot on disk removal

INTRO: I have spent countless days attaching/detaching MOLEX->SATA power cables, rebooting machines and trying hundreds of edits and commands. I am on the verge of desperation and desperately in need ...
0
votes
4answers
65 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 ...
1
vote
0answers
19 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
1answer
27 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 ...
0
votes
0answers
11 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, ...
3
votes
1answer
128 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
0answers
15 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 ...
-3
votes
0answers
20 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 ...
1
vote
0answers
30 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 ...
2
votes
0answers
12 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
26 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 ...
-4
votes
0answers
27 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 ...
0
votes
3answers
28 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 ...
0
votes
3answers
50 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 ...
3
votes
1answer
29 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)?
1
vote
2answers
36 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. ...
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 ...
0
votes
1answer
22 views

Change screen resolution into Kali on Mac BookPro

I installed Kali in dual boot on my Mac Book Retina, all work, but I have a screen resolution too high. So I need to change the screen resolution, but if I change it, the screen become black, and ...
-1
votes
0answers
44 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 ...
0
votes
0answers
18 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 ...
1
vote
0answers
18 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 ...
18
votes
1answer
716 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 ...
0
votes
1answer
30 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 ...
2
votes
1answer
30 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 ...
4
votes
1answer
415 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
36 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
10 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 ...
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 ...
-4
votes
0answers
24 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
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 ...
0
votes
1answer
11 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 ...