Questions specifically about Linux but not specific to a particular distribution. If the question could apply to any Unix-like system, specify your Linux distribution in the body of your question but do not use the /linux tag.

learn more… | top users | synonyms

1
vote
2answers
40 views

Remotely access my computer's framebuffer console from Android

I need to remotely view my computer's display. I am using programs that I launch from a text console, then they create their own graphical session, like Kodi or EmulationStation (it does not start if ...
5
votes
3answers
304 views

Externaly limiting number of CPU cores used

I need to externally limit a process/session to a certain number of cores. Are there any other possibilities than CPU affinity (I don't like the need to specify the actual cores) and cgroups (hard to ...
1
vote
2answers
813 views

How to install jdk in Linux Mint

I am unable to install jdk on Linux Mint. I tried the following: # apt-get install openjdk-7-jdk openjdk-7-doc openjdk-7-jre-lib Reading package lists... Done Building dependency tree Reading ...
1
vote
2answers
196 views

Why doesn't Linux remove route from routing table if interface is physically down?

As seen below, Linux(3.7-trunk-686-pae) keeps route to 10.10.12.64/28 in routing table although the interface is physically down: root@kali:~# ip addr show dev eth0 2: eth0: ...
10
votes
8answers
7k views

How to flash firmware under Linux in practice?

Well, I am feeling too old for jumping through several burning hoops to upgrade several firmwares via the usual vendor-specific way: Download some DOS tools, waste some time creating a (Free-)DOS boot ...
0
votes
2answers
43 views

How to create (or modify) Linux distro? [closed]

I've read about this and I think that Linux From Scratch is good, however, I'm confused what part I should begin with. My intention is to modify Linux distro - adding or removing some features and ...
2
votes
0answers
40 views

Disk i/o latency using /proc/vmstat file

How do i calculate Disk read and write latency in Linux? Is it possible to do the calculation using /proc file system? I am used iostat and vmstat command. But i do not understand how the ...
1
vote
2answers
170 views

What is “fs” short for in kernel function “get_fs()”?

There are two Linux kernel functions: get_ds() and get_fs() According to this article, I know ds is short for data segment. However, I cannot guess what "fs" is short for. Any explanations?
3
votes
2answers
408 views

How to create GUIs (such as menuconfig) with lxdialog

I try to generate a menuconfig by my own with the help of lxdialog (source: lxdialog). Unfortunately this is not so well documented as I wished for. Example: So what I did: I included these files ...
0
votes
0answers
16 views

internal and extern ip adress when installing softwares etc [closed]

I rent a Linux Debian server. I have problems with installing software on it. When I install centovacast, I have no problem, but when I create a radiostation into centova for a client, it gives them ...
0
votes
0answers
31 views

How can i distribute a software package to workstations on the same network?

I want to distribute a software package from my Linux server automatically to the windows workstations on the network. I'm doing it manually at the moment, and I want to do it automatically from the ...
-1
votes
0answers
19 views

Password prompt is coming on screen

I have below code for auto login if ! [ -f $HOME/.ssh/id_dsa.pub ]; then expect -c" spawn ssh-keygen -t dsa -f $HOME/.ssh/id_dsa expect y/n { send y\r ; exp_continue } ...
0
votes
1answer
25 views

How to run bunch of hierarchical dummy shell processes (process of another process, etc.)?

I would like to run multiple processes where each process is running another one, so it will create a long process branch. I've tried: $ bash -c '(bash -c "sleep 20"); sleep 20' & $ pstree ...
0
votes
1answer
31 views

Big XML - copy data from nth Occurrences to another file

<XML> <Employee> <firstname></firstname><lastname></lastname> </Employee> <Employee> ...
5
votes
2answers
9k views

Cross compiling expect for ARM

I have downloaded expect5.4 . I'm trying to cross compile it for ARM(PandaBoard) running stripped down version of linux. In the initial setup of configuring , I try Shell$ ./configure --host=ARM ...
0
votes
1answer
14 views

opensuse 13.2 installation

I have 1 tb hard disk in that I have installed windows 8.1 which occupies 2 partition windows/system reserved then I have 1 NTFS partition for my data and 1 extended partition in which I have ...
4
votes
1answer
595 views

Gentoo Live CD from Hard Drive: No Mountable Filesystems on root after modules loaded

I am attempting to install Gentoo on my PowerPC Mac. I have reached the point where I can boot the Live CD (I have no functional CD Drive, so it is from a spare Hard Drive), but after the kernel is ...
1
vote
1answer
25 views

Are Modules listed under /sys/module all the Loaded Modules?

I'm wondering if I can use the directory listing of /sys/module instead of lsmod to get a list of currently loaded modules. Is that the list of loaded modules only? Or maybe that combined with ...
-2
votes
0answers
28 views

Linux command line: How to move all files except those with a certain extension? [duplicate]

I have a folder with a bunch of files and .sh scripts. I want to move all of the files except the scripts to another folder. I am not looking for a bash command just a regular command which I can type ...
0
votes
0answers
14 views

How to boot linux from usb and then change root, or something

My motherboard has USB3 ports on it but the BIOS Boot Mgr will only boot from the USB2 ports. I have a Xubuntu bootable system I have installed on a USB3 stick, but I'm stuck running it from a slow ...
0
votes
2answers
37 views

SSH to docker container is not working

I'm running a Discourse forum software container in an Ubuntu Server, I was able to login to container using the command. sudo docker exec -it app bash And then I've setup password for the root ...
4
votes
1answer
65 views

Permanent swapping with lots of free memory

We have a Linux server running Debian 4.0.5 (Kernel 4.0.0-2) with 32G RAM installed and 16G Swap configured. The system uses lxc containers for compartmentalisation, but that shouldn't matter here. ...
1
vote
1answer
14 views

Freeradius: No reply message for Failed Authentications

I have configured freeradius on RHEL 6.5 server for MAC based authentications and for this, I've followed this guide. According to the mentioned guide, I have created authorized_macs file for the ...
1
vote
3answers
278 views

Everything is a file?

In Linux, every single entity is considered as FILE. If I do vim <cd-Name> then, vim will open the directory content into it's editor, because, it do not differentiate between file and ...
1
vote
0answers
30 views

What happens to a multithreaded Linux process if it gets a signal?

If a Unix (Posix) process receives a signal, a signal handler will run. What will happen to it in a multithreaded process? Which thread receives the signal? On my opinion, the signal API should be ...
3
votes
1answer
586 views

GDM will not start on boot, unable to login into graphical interface

I am running RHEL 5.8 . SELinux is enabled but in permissive mode. Here are some snippets from /var/log/messages on boot. kernel: type=1400 audit(1360613500.551:6): avc: denied { write } for ...
0
votes
0answers
10 views

send bootup script output to virtual terminal

I have a script that I symlink in as /etc/rc.d/rc3.d/S30initialize which basically makes it get called when entering runlevel 3. I want for the output of this script to appear on the virtual ...
0
votes
0answers
20 views

Kernel config for HP Stream 13 (booting from emmc disk)

I'm trying to install gentoo on hp stream 13 device and i am unable to boot up system from the emmc hard drive. Before trying gentoo on this device i have successfully installed debian, which clearly ...
2
votes
1answer
3k 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 ...
1
vote
1answer
21 views

service launched at boot, after all other?

Config : Linux Mint 17,2 (Ubuntu based, Debian based). I launch a home-made service at boot. Added with update-rc.d homemadeserviceName defaults I need to be sure homemadeserviceName runs after ...
3
votes
2answers
181 views

What is the difference between /sys/block/sda1/stat and /sys/block/xvda1/stat?

On my local machine, I have /sys/block/sda1/stat. On an Amazon machine, I have /sys/block/xvda1/stat. When I run cat /sys/block/sda1/stat or cat /sys/block/xvda1/stat both give 11 fields of output. ...
4
votes
4answers
3k views

How to recover a file just deleted [duplicate]

I just deleted a file in Nautilus with Shift+Delete, which warned me that "If you delete an item, it will be permanently lost." I wonder if there is no way to recover the file? My OS is Ubuntu 10.10. ...
4
votes
5answers
767 views

Multiple terminals at once without an X server

There is a way to visualize multiple terminals at the same time without running a Xorg session ? I have a really low profile machine that could be great for some basic stuff but has an horrible ...
1
vote
1answer
23 views

Making service NOT launch at boot

Context I made a service in init.d to be launched at boot (let's call it the primary service). And I updated update-rc.d primaryservice defaults This service calls 2 scripts (2 different task ...
2
votes
3answers
42 views

Assigning “awk” or “nawk” to a variable in a shell script [closed]

I have a script to be run on both Solaris and Red Hat systems. I want to use "nawk" in Solaris and "awk" in Red Hat systems as text processing tool. For that, I have a code snippet as below in my ...
0
votes
0answers
5 views

Spamassassin training problem with amavisd

I wrote a Outlook add-on that uses the Tell command to train spamassassin. The user selects the messages and clicks a Spam or Ham button. It works great. I have got everything to work but I cannot get ...
3
votes
0answers
71 views

How to best track adventures of a novice administrator

I have this user that has limited sudo privileges, yet he manages to screw up from time to time. I would like to keep an eye on his adventures, so that I can reverse any damage with less digging. ...
2
votes
1answer
963 views

Memory management - how memblock_reserve works

I am new to Linux kernel and I am studying the Linux memory management framework. I have few doubts on this. I am working on Marvel PXA986 boards and in board file I can see few memory reservation ...
0
votes
1answer
512 views

FreeRadius: Authentication with active directory

I need to setup a radius server with active directory authentication, on a RHEL 6.5 server. I have been following this guide. As per the guide, I have made necessary configurations which are as ...
2
votes
6answers
5k views

Bash eval array variable name

Here is my bash case: First case, this is what I want to do "aliasing" var with myvarA: myvarA="variableA" varname="A" eval varAlias=\$"myvar"$varname echo $varAlias Second case for array variable ...
2
votes
4answers
6k views

Installing crontab using bash script

I have created a script to install two scripts on to the crontab. #!/bin/bash sudo crontab -l > mycron #echo new cron into cron file echo "*/05 * * * * bash ...
0
votes
2answers
27 views

nohup not updating nohup.out

Boiling down to the smallest problem here is a simple python script that I want to run using nohup on linux. I run it using the following (on linux): nohup python test.py & The command seems ...
23
votes
3answers
37k views

Linux: How to find the device driver used for a device?

If my target has one device connected and many drivers for that device loaded, how can I understand what device is using which driver?
6
votes
4answers
21k views

How to play RTSP stream under Linux for the BOSCH AutoDome Junior HD IVA camera?

I have a AutoDome Junior HD IVA camera. How do I play RTSP stream in my Linux distro? I tried VLC but it fails. Is there any other reliable tool? Follow up: Try 1: fail $ mplayer ...
1
vote
1answer
58 views

What are XRuns?

I have read about them several times and encounter them myself when setting the buffer size too low in jack or quitting audio applications. Nobody ever explains though what XRuns are. Can someone ...
1
vote
1answer
62 views

How can I *automatically* backup my contacts in Google Contacts/Gmail?

On a similar theme to this question, how can I automatically (on a schedule) back up my contacts from Google Contacts/Gmail from the command line (Linux or OS X)? Ideally, this mechanism would be a ...
0
votes
0answers
19 views

Valid keycode but no scancode [duplicate]

Please reopen the question, it's substantially different. I asked about keys which don't work in this question. In tty I ran showkey --scancodes I found out that the keys don't even send a ...
0
votes
1answer
2k views

How can I simulate usb storage device connection with qemu?

I'm writting a program for controlling usb storage device connections (this is a classic subject). All it's ok with my program, but now, I want to write some tests. So in order to do that, I realized ...
-1
votes
0answers
28 views

Linux Mint 17.2 boot hang-up

I installed Linux Mint 17.2 XFCE on an old PC. The problem begins at the end of the installation process: the installation window disappears and I am only left with the live cd desktop that does ...
10
votes
4answers
36k views

How do I partition a USB drive so that it's bootable and has a Windows-compatible data storage partition?

split from here I have a 16gb flash drive, which I want a live ISO to boot from (via unetbootin or something similar). It'll be some 32bit distro that I can plug-in and boot on whatever computer I ...