0
votes
4answers
204 views

Linux routing tables

I'm trying to learn Linux routing tables and ran into bit of snag. In the example below I'm not sure what is happening. My understanding is 0.0.0.0 means that for line 1 and 2 any packets outside of ...
4
votes
2answers
153 views

Can swap be shared safely while hibernating?

Suppose I have two different Linux installations A and B, both using the same swap partition. As I understand, running A or B will cause no problems with swap as only one of them is using it at a ...
0
votes
1answer
5k views

No xauth data; using fake authentication. Unable to display remote windows

Whenever I try to ssh -X or -Y into a remote Linux server from my Mac (OSX Mavericks) machine, I get the same message: "Warning: No xauth data; using fake authentication data for X11 ...
2
votes
3answers
896 views

How can I get the last line number of unique commands when grepping my history file?

I rely on my history file for previous commands, especially ones that are long with many parameters. Once I find the command and its line number(nn) I use !nn to run it. I prefer to see the full ...
3
votes
0answers
36 views

Control browser from command line [duplicate]

I have an old router that I have set up as an AP on my home network. For some reason it loses connectivity every few days and needs a reboot. I would like to set up a script to run once every night ...
3
votes
4answers
1k views

How can I count all the files on my system from root?

I want to know the total number of files on my server. Can this be done?
3
votes
2answers
261 views

Can I safely read a file that is appended to by another process?

If process A copies files to some location loc and process B regularly copies the files from loc to some other location, can B read a file that is currently in the process of being copied to loc by A? ...
3
votes
0answers
502 views

How to build and publish binaries for multiple Debian/Ubuntu distributions?

For a proprietary piece of software I'd like to build and publish multiple versions of software for multiple distributions. E.g. 1.0, 1.1 and both versions for squeeze, wheezy and precise. The builds ...
0
votes
1answer
596 views

Targus USB number pad not working in Debian Wheezy

I am running a fresh install of Wheezy x86 and trying to connect a Targus number pad (model AKP10US) which has the USB Vendor/Model IDs of 05A4 / 9840. (FWIW the system is also running in VirtualBox) ...
3
votes
0answers
496 views

How can I disable the mouse wheel in gnome-terminal? [duplicate]

Does anybody know if it's possible to disable mouse wheel up-down events in gnome-terminal? I have a rather twitchy mouse wheel, and every time it twitches it does a history lookup in my terminal. But ...
3
votes
1answer
89 views

Linux to linux USB storage?

I was going to put together a small AoE setup for a small cluster, however 10Gb NICs are still rather expensive. Using superfast USB seems to provide the bandwidth I'm looking for at a much lower ...
28
votes
3answers
7k views

Why do some Linux distributions still have /dev/ttyS0, ttyS1, etc., even though newer computers don't have such a serial port?

Many new laptop and desktop computers do not have 9-pin/25-pin serial ports. Why do many Linux distributions still contain /dev/ttyS0, dev/ttyS1 device files? Since udev can create the device files ...
2
votes
1answer
3k views

Find font file from font name on Linux

I have a font with the name Media Gothic. How can I find the file name of that font in Linux? I need to copy that file to another system. I've tried: find /usr/share/fonts/ -name '*media*' But this ...
2
votes
0answers
295 views

Differences between primary and secondary VGA pass through in virtualization

Xen, and more recently KVM, allows you to pass a VGA adaptor from the host to the guest as either a primary or secondary device. Both links provide some explanation as to why passing a VGA adaptor ...
2
votes
1answer
1k views

How to clone a CentOS server to a VM?

I have a HP Proliant DL380 CentOS 5.10 server that I'd like to clone to a VMWare VM. I have successfully cloned it to identical hardware using Clonezilla, however when I try to restore it to a VM it ...
0
votes
1answer
57 views

how can I set a login prompt as soon as possible in the boot sequence?

I want my login prompt to come as soon as few necessary drivers are loaded. So for example once SPI driver is loaded, I will put the login prompt application just below SPI driver , and the CPU will ...
5
votes
3answers
5k views

Disable daylight saving time in Debian Linux

I do not want my system to use daylight saving time. root@ali-debserver:~# cat /etc/timezone Asia/Tehran root@ali-debserver:~# cat /etc/default/rcS # # /etc/default/rcS # # Default settings for the ...
2
votes
4answers
214 views

Can a running script identify the logging context?

Let us say I redirect the STDOUT, STDERR of a program to files. ./script.sh 1> output.log 2> error.log Can the running program find this out i.e. know the paths to these files?
1
vote
2answers
549 views

Understanding a simple configuration file for initramfs

I am new to file system. Can somebody explain me what is happening in the following? # This is a very simple, default initramfs dir /dev 0755 0 0 nod /dev/console 0600 0 0 c 5 1 nod ...
1
vote
1answer
156 views

How to get the authentication status from the last PAM module run

If I have the following PAM stack: auth required default_pam.so auth requisite my_custom_pam.so .... How do you obtain the authentication status from the last/previous PAM module run for use in ...
0
votes
2answers
103 views

GNU/Linux licensing confusion

I am building a Gnu/Linux distribution. I am keeping the kernel open source but the desktop environment and the programs (the ones built by me) on top of it will be proprietary. Is it possible? The ...
1
vote
1answer
103 views

Can a real-time process exist in the 'expired' queue of linux kernel?

In the Linux kernel 2.4: Real-time processes are given a priority of 0-99 and they co-exist in the ready queue along with the nice processes (who's priority goes between 100 and 139). But real-time ...
8
votes
2answers
5k views

Application updates inside of Docker containers?

Typically on a server, automatic updates of security-related patches are configured. Therefore, if I'm running MySQL 5.5 and a new security patch comes out, Ubuntu Server will apply the upgrade and ...
0
votes
1answer
3k views

Getting a Bad Hour Error in crontab

I am getting Bad Hour error for below peice of code in crontab */05 17-05 * * * wget -q -O /dev/null "http://abcd/cron/abcd" Is there any issue with this. I want the cron to run from evening 5 PM ...
0
votes
1answer
2k views

Cron task starts at 5:30 and runs every 5 mins once

I want to run a crontab cron job which start at 5:30 AM and runs every 5 mins. How do i set it up in Linux? I am able to give like below. But how do i make it 5:30 ? */05 5-16 * * *
14
votes
4answers
6k views

What is the difference between 'env' and 'printenv'?

What is the difference between the two commands env and printenv? They both show the environment variables, and the output is exactly the same aside from _. Are there any historical reasons for there ...
4
votes
1answer
3k views

How to trace system calls being invoked after typing command?

This question is relevant to the question of 'what happens when we type a simple command on shell?' I posted earlier. (I thought it would be better to post it seperately. But if not, please let me ...
0
votes
0answers
51 views

How to find the currently running app from terminal on OS X?

I'm writing a shell script runs in the background and monitors user activity. I'd like to be able to capture current application/document if possible. Can I do that? (Cross-posting this from ...
2
votes
1answer
163 views

Specifying full range of printable ASCII characters in a glob pattern

I want to use a globbing pattern to match only printable (including space) ASCII characters 0x20 through to 0x7e. This is being used inside a super super.tab database. I've arrived at the pattern: ...
5
votes
2answers
12k views

Can't boot system with systemd version above 208

I recently upgraded systemd from version 208 to 212 (also tried any other version between these two numbers) And the system can't boot anymore. Looks like it cannot mount /tmp, but in emergency shell ...
-5
votes
1answer
55 views

In what directory can I find the list of terminal commands or the set of scripts that give each one its purpose/power?

Is it hidden or accessible? Also, can you create a new script and define a new command to execute system-wide by adding it to this directory and giving it the same privileges?
21
votes
2answers
4k views

What happens when we type a simple command on shell? [duplicate]

I have a simple doubt on execution of a simple command. As per my understanding, when we type a command such as ls on interactive shell, Shell interpretes the command. Shell creates a child process ...
2
votes
1answer
2k views

mdadm : difference in metadata versions

Can anyone tell me the difference between the different metadata versions for mdadm? When I try the command mdadm --examine /dev/sda1, I can't seem to find "preferred superblocks" on version 1.2. ...
2
votes
1answer
163 views

Is there an exhaustive list of plugins for Dovecot?

Background I am looking for plugins for Dovecot (specifically authentication plugins) because I would like to look at source code for reference as to how to make an authentication plugin for Dovecot. ...
4
votes
1answer
251 views

Disabling an Xorg server's extension at runtime (for new clients)?

I have an old Xorg server whose "Render" extension seems to be buggy (if enabled, most of the fonts are invisible, unless hovering over them -- after upgrading the packages with X clients and ...
2
votes
1answer
170 views

Kernel Panic on 3.14.0-gentoo on an IBM 9228LGA / SMP Stack Trace

So I've spent the past weekend trying to get this IBM Xeon server up and running. I also took this opportunity to try and get a bootable GPT/Grub2/BIOS setup going. I am able to get the kernel ...
1
vote
2answers
1k views

How to enable horizontal scroll bar in GNU Emacs for linux ubuntu?

How can u put a horizontal scroll bar with "don't wrap"? I am also new to linux. Thanks
22
votes
2answers
38k views

Why is my find not recursive?

I am running the following command, but it is not performed recursively: find . -name *.java I know there are java files further down in the current directory but it is performing the find on the ...
1
vote
0answers
37 views

Can't stream both audio sources, only mic works

Why does the following code not stream both audio sources? #!/bin/bash INRES="1920x1080" OUTRES="1280x720" FPS="20" QUAL="medium" STREAM_KEY=$(cat ~/.twitch_key) avconv -g 0 \ -f x11grab -s $INRES ...
1
vote
1answer
143 views

how to fix default sound device for a user

when I "play" (with SoX) a .wav file using my own account on Debian it plays fine: jcomeau@aspire:~$ play ~petalumarentals/7077809525.1396808357.711.wav ...
6
votes
1answer
2k views

How to use agetty from the command line

Is it possible to use agetty from the command line? I tried the command sudo agetty -s 34800 tty8 linux but it returns after a few seconds and tty8 is not open. Is it the expected behaviour? Also, ...
1
vote
1answer
2k views

s3cmd: how to use exclude-from with a file list of excluded directories

I cannot seem to get the --exclude-from= option to work with my exclude GLOB file when synchronizing with my s3 bucket. Here is a trivial example to demonstrate: I create the following file tree ...
2
votes
2answers
965 views

Retrieve value of RTS threshold without iwconfig

Is there a way in OpenWrt to read the current value of the RTS threshold for a specific interface without installing iwconfig? What I'm looking for is the value of RTS thr that can be found in the ...
2
votes
2answers
4k views

How to edit /etc/inittab?

I want to edit /etc/inittab in order to get a login prompt on the serial console once the system boots. By default, inittab file complains to be ro. I tried both gksudo gedit /etc/inittab and sudo vi ...
1
vote
1answer
1k views

Yum doesn't work

Today I try to list installed php packages with yum but when I run "yum list php*". I have got a strange error "There was a problem importing one of the Python modules required to run yum. The error ...
3
votes
1answer
3k views

SOCKS5 is there encryption between client and proxy server?

I've read the wikipedia article on socks and cannot find information about encryption between client and proxy-server. There is only information about authentication. Is socks5 connection a ...
1
vote
0answers
189 views

Change Alt-Tab icon size in mint

I have linux mint 16 cinnamon. Is it possible to change the size of icons in Alt-Tab?
1
vote
1answer
333 views

What are the differences between creating a directory inside /home and /home/$USER directories?

I want to create a folder inside /home directory and another one inside /home/$USER directory. Does another user on the same system may be able to access the folder which was inside the /home ...
4
votes
3answers
7k views

Close all file descriptors in bash

Is there a way to close all the open file descriptors, without having an explicit list of them beforehand?
8
votes
1answer
6k views

What is the difference between JAVA_HOME and update-alternatives?

I have been trying to figure out the best way to run OpenJDK Java Runtime as default Java for my Fedora box and use Oracle JDK 6 for Android development namely for running Android SDK Manager, Android ...

15 30 50 per page