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
4k 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
304 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
221 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
580 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
166 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
104 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
107 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 * * *
16
votes
4answers
7k 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
4k 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 ...
2
votes
1answer
170 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
13k 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
57 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
5k 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
175 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
280 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
175 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 booted,...
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
42k 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
38 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
146 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 /home/petalumarentals/7077809525.1396808357....
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
1k 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
5k 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 ...
4
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 plain-...
1
vote
0answers
197 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
338 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 ...
5
votes
3answers
8k 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
7k 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 ...
2
votes
0answers
235 views

Debian - cannot find cdrom

Having a jessie/sid debian box on kernel 3.13 (had same issue on kernel 3.10) First thing I notices was that k3b didn't find any optical drives. Then: The optical drives (dvd-writers) are found in ...
9
votes
4answers
2k views

“no such user” but user is in passwd file

Looking at the files in /etc/: /etc/group:lbutler:*:1005: /etc/master.passwd:lbutler:$6$s..../:1005:1005::0:0:L Butler:/home/lbutler:/bin/bash /etc/passwd:lbutler:*:1005:1005:L Butler:/home/lbutler:/...
2
votes
3answers
282 views

how to synchronize two directory?

I want to using crontab to synchronize two directory between my linux partion and windows partion like this: 24 9 * * * cp -r /home/fan/Data /media/T/Data But it would create a directory named ...
0
votes
2answers
231 views

What is the security advantage of running as non-root user? [closed]

I have heard the advice to not work as root user. One convention is to create a server@server user (instead of root@server) and do all the rest administrative tasks as that user. What is the ...
5
votes
3answers
4k views

Renaming file which got a quote mark ' in its name

I got a little bit of a problem. One client tasked me with the migration of sites from a really old server. Don't know how they got there, but there are files with ' in their names. Is there any way ...
1
vote
2answers
104 views

command condition sometimes integer sometimes string

I want to execute this condition while [ $(cat /path_of a file/) -eq 1 ] The condition is only correct if $(cat /path_of a file/) is an integer and not a string ! How can I overcome this ...
6
votes
3answers
940 views

Understanding environmental variables in different contexts

Trying to understand the behaviour of the environment in Linux (Ubuntu 13.04 concretely), I've find different situations where setting envirionment variables are used or defined for/in different ...
1
vote
2answers
313 views

install cisco VPN client on linux in place on WIN XP

I am currently using Windows XP with Cisco VPN Client version 5.0.01.0600 I would like to replace Windows XP with Linux, either Red Hat version 5.x or 6.x My question is, what equivalent VPN ...
1
vote
1answer
125 views

vsftpd limit users to /home/user/minecraft

So using vsftpd I want to lock a user to /home/theirname/Minecraft. I can't change their home directory because a program I'm using(McMyAdmin) will try to reinstall itself but I don't want them having ...
0
votes
3answers
112 views

Verify semantic integrity of filesystem

I just started up my linux box to find that one of my filesystem's had errors: I had to login as root to run fsck and hit y repeatedly. There were a lot of errors. So many that I used silly putty and ...
4
votes
1answer
2k views

Failed to check FreeRDP file descriptor

Using xfreerdp version 1.1.0: oshiro@debian:~$ xfreerdp --version This is FreeRDP version 1.1.0-beta1 (git n/a) oshiro@debian:~$ I am getting the following error message: oshiro@debian:~$ sudo ...
6
votes
2answers
762 views

how to edit and color bash's tab completion list

Following is what i would like to have. When the tab completion is ambiguous, and bash prints the list of possibilities. I would like it to colour the next character I should press inside every word ...

15 30 50 per page