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

1
vote
0answers
5 views

passing tmux variable into shell-command in tmux.conf

I'm trying to edit my bottom left status section of tmux. I would like it to show Session: #{session_name} The current maximum length for this string is set at 20 using this setting ...
0
votes
0answers
8 views

Need to search a minimal hardware with ALSA and Linux

I am very new to this forum as well as new to hardware related stuff but i have a good idea about ALSA and Linux, and i need to work on a project that needs a hardware with minimal memory(again i am ...
1
vote
0answers
20 views

What is the difference between “systemctl restart” and “systemctl start”?

I have two services A and B where B is dependent on A which means in the A's service unit i have After and Requires set to B After=B.service Requires=B.service Now when i stop the service B the ...
4
votes
2answers
48 views

How to copy files from local datacenter to local datacenter and have some failover cases?

I have a script which knows about on which HOSTNAME it will be running as it has the HOSTNAME variable which tells about this and it is being passed from outside. I want to check which datacenter that ...
2
votes
1answer
25 views

Add a static text layer/bar in terminal

I have a script that I use to automatically generate port forwards for SSH, since I am working in several terminal windows across different servers all day, and this checks whether or not the port has ...
0
votes
1answer
23 views

Why is freeBSD rebooting during installation ?

I have a samsung laptop which is around 1.5 years old. I am currently running arch linux and have run various linux distributions succesfully in the past. T The hardware is not obsolete and the ...
2
votes
1answer
22 views

Policy in /etc/pam.d/password-auth is not being enforced

I've updated login.defs and password-auth to include a minimum length on passwords (12), but the minlen is not being enforced when I attempt to change a user's password with passwd. None of the ...
0
votes
0answers
31 views

How to change the password display in linux?

In general when we enter the password, nothing is display in the screen. I want to display * when I enter password in Linux. Current behavior: abc@123:$ su testuser ...
1
vote
0answers
13 views

Linux Kernel Live Patching - WHATIS and HOWTO?

I am trying to understand a new concept I got to know recently as the Linux 4.0 makes it way to the mainline - "Live Patching". Supposedly this is a new feature enhancement of the Linux kernel. It ...
2
votes
2answers
12 views

Can't find emails retrieved by fetchmail

So I set up fetchmail to retrieve emails with IMAP from a remote mail server, I was able to run it. How can I know that it found any emails or not since I did send test emails to the account being ...
0
votes
2answers
37 views

Get all hardisk list (/dev/sd*)Using command line

I need to get all the hardisk connected to my PC like, /dev/sda /dev/sdb /dev/sdc later I have to use it in script and monitor using iostat I alrady found fdisk command, it seems to be hard ...
0
votes
0answers
10 views

postfix some users can send mail to the (distribution lists) and other users not

How can I do the following things: Some users can send mail to the mailing list (distribution lists) and other users not. For example: the everyone@mycomp.com will be able to send e-mails only for ...
1
vote
1answer
14 views

What's the relation betwen ACPI, udev, HAL and pm-utils

I'm trying to figure out how the power management in achieved in Linux (because I want to fix some issues in my laptop). I have found thoughtful documentation about these elements separately. In other ...
2
votes
1answer
31 views

Why can X11 access the video card?

This one is maybe a bit theoretical, but... How the heck can X11 touch the video hardware? As I understand it, X11 is an unprivileged user-mode program. But only kernel-mode software can access the ...
0
votes
0answers
14 views

How to build own custom linux distro [on hold]

I would like to know how to build your own custom linux distro based on other distro like centos. Here, for custom, i mean the distro preloaded with a default particular language, softwares & ...
0
votes
0answers
10 views

Is it possible to compile the Linux-Libre kernel without LILO?

I'd like to compile/install the Linux-Libre kernel but I don't want to use LILO as a bootloader since I already have GRUB, is it possible to do?
1
vote
0answers
6 views

Set ionice for a multi-threaded application

I have a program that spawns multiple threads, all of which do fairly intensive IO, running on the background. I want to set the scheduling class to idle so that it doesn't clog up the system; ...
0
votes
1answer
18 views

Yum Broke For some reason

i am trying to install Mysql Client i am getting this annoying message. I am still unable to find the proper answer. [root@localhost Downloads]# yum install mysql-bench There was a problem importing ...
0
votes
0answers
10 views

c server handle multiple connections, error on port no [migrated]

I've been experimenting with server code from http://www.linuxhowtos.org/C_C++/socket.htm. The regular server code worked fine, I've changed it slightly to hardcode in a port number rather than read ...
0
votes
1answer
24 views

Run custom service remotily on Linux

On the server side : ( @ip for example 10.0.0.3 ) Consider this simple script named script.sh : ( /home/user/script.sh ) #!/bin/bash echo good Let's create new service named script.sh under xinetd ...
2
votes
1answer
37 views

Free up swap space all at once after swap event

I use my Linux box for a lot of computational work, and sometimes a particular computation eats a lot of RAM. When I'm done, I end up with a bunch of swap used and a bunch of free memory, and if I go ...
0
votes
1answer
51 views

Shell script to compare two tables and perform operations on their columns

I have two tables like the following: Table 1 TABLE_NAME COUNT ------------------------------ ------------ AIN_EDP_SCRIPT 33 AMA_CALLTYPE_LOOKUP ...
1
vote
0answers
15 views

No “rwnd” option to “ip route” for managing the receive window?

Context: I'm doing some self-guided studying on TCP Window shaping. The scenario I'm trying to control for are clients which will be pulling down large amounts of data in addition to their normal ...
0
votes
0answers
27 views

Repackage RPM with kernel

I am tinkering with CentOS 5.4 and upgrading the kernel to the latest 2.6.18 build 402. What I need to do is to rebuild the initrd to include a modified init script, then repackage it all into an RPM ...
0
votes
0answers
14 views

isolcpus doesn't work on Ubuntu 14

I added isolcpus=0 to the end of the following line to the file /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="quiet splash isolcpus=0" The idea, as I understand it, is to reserve core 0 from having ...
1
vote
1answer
19 views

Password policy on existing accounts not updated after making changes to login.defs

I have two old accounts that were previously set to defaults (no password expiration). I updated login.defs and /etc/pam.d/system-auth for stricter password policy. New accounts added to the system ...
2
votes
1answer
41 views

How do I fix an “unknown chipset” error when booting Arch Linux?

I have a laptop with this hardware: intel i5 nvidia 820m graphics card 64bit system with uefi boot I burned the Arch Linux ISO to USB, and I am getting the option to choose Arch on booting the ...
2
votes
2answers
34 views

How can I select and copy file names in the command line without using the mouse?

Typically, when I want to perform an action on a file I discovered in the terminal after calling [ls], I would have to - with my mouse - highlight, left click, copy file name, type the command in then ...
0
votes
0answers
9 views

deepin 2014 Starting LightDM Display Manager fail

Upon rebooting my machine The deepin splash screen began to pulsate. I looked at the boot log and found: "* Starting LightDM Display Manager [fail]" Upon looking at the lightdm log I found the error: ...
-1
votes
1answer
21 views

Fastest version of Ubuntu? [on hold]

So I'm new to Linux and would like to use it for at least 30 days without touching windows. I currently have a very old laptop with 512Mb of ram and have tried out Ubuntu 14.10 and Linux Mint 17.1 ...
0
votes
0answers
13 views

Windows Complete Backup [migrated]

I'm looking to try Linux. How do I completely backup my Windows computer and put it into something like an ISO so I can boot from it later if I ever want to switch back from Linux to Windows? Will ...
0
votes
0answers
18 views

Cannot use EPEL repo, get NSS error -5990 (PR_IO_TIMEOUT_ERROR)

I'm using vagrant to start up a centOS 7.0 VM. My provisioner is trying to set up EPEL 7 via yum install epel-release -y and then trying to install ansible via yum install ansible -y It installs ...
1
vote
1answer
23 views

How do I change which monitor the TTY shows up on?

When I boot, or when I press CtrlAltF*, I am taken to a physical terminal/TTY. The problem is that the TTY shows up on my HDMI monitor, which is actually not even in the same room as me. Is it ...
3
votes
1answer
22 views

Set the affinity of a process from a shell script as it is being launched

I have a script (.sh) where I launch applications like this #!/bin/sh ./application1 configuration1.cfg param1 param2 param3 & sleep 2 ./application2 configuration2.cfg param1 param2 param3 ...
1
vote
0answers
13 views

Does all applications which show graphics without an X server has to use the frame buffer device on linux?

I am using limelight embedded on my raspberry pi 2. The application streams games from your Windows PC. It is not an X application because no X server is running. So does this application has to ...
0
votes
0answers
21 views

echo `“hello terminal” > /dev/terminal` - works for /dev/tty[2-5] but not for /dev/pts/n

I'm trying to get to know the input output systems of unix/linux systems better. Since terminals and devices are implemented to interface as ordinary files, I assumed I could on any desired terminal ...
1
vote
0answers
34 views

bash scripting : using expect

I am facing an issue when I run simply these commands. The remote server want to pass "yes" to add the key in RSA file because first time connection established with scp. commands are given below ...
1
vote
3answers
44 views

how to automate creating firewall rules?

There is a complex live system - few vlans. In each of them there are linux servers, and on every server there are services. Services connect together - for example service http on host A connect to ...
0
votes
1answer
48 views

Yum Corrupted on RHEL 6

I really need help. I am encountering the issue with my yum command. It seems to be exactly the same as the issue described on this site, Yum corrupted on CentOS 6.2, Problem importing one the python ...
0
votes
0answers
15 views

Starting Daemons in specified order

I would like to load some custom daemons I have made in a certain order. One daemon starts xflux and one starts the x server. Is it possible to make the xflux daemon run only after the startx daemon? ...
0
votes
2answers
52 views

How to print an element from the corresponding immediate next column after searching the element in the current column?

I have thousands of lines as seen in the following list. file name = "textfile" 3 2 3 1 4 7 5 8 6 8 9 8 8 9 4 7 3 9 2 3 4 4 9 2 2 2 0 9 4 0 0 9 8 2 4 0 I have to search a particular element – ...
0
votes
1answer
38 views

FIle hole - how is it represented? [on hold]

The linux programming interface says, file hole don't take up disk space in general, I did google but didn't found answer to following question: If it don't take up space, then how the file system ...
0
votes
1answer
23 views

Error: you do not appear to have the sources for the 2.6.32-042stab102.9 kernel installed

I've just bought a new VPS with Cent OS 6.6 installed. I'm attempting to install Asterisk 11 on this VPS via command line remotely. I've used the directions here however I get this error: you do not ...
0
votes
0answers
25 views

Fedora 20 won't boot after changing ownership of everything in /var to Apache

It flashes to a blank screen a few times, perhaps trying to load cinammon desktop, then hangs here I accidentally chowned the ownership of everything in /var to the apache group, which caused a few ...
0
votes
3answers
32 views

I have to run `startx` on boot to have a window manager, how can I fix this?

I've had Debian Wheezy for a long time and decided to upgrade yesterday to Jessie, a few things I did wrong, I ran autoremove because I was careless and a few things happened. 1) I have to run startx ...
-1
votes
0answers
17 views

Partition suggestions for dual boot 2 different linux distros? [on hold]

I want to partition my hard disk manually for installing more than 1 os. (2 different distros of linux). I am using Gparted to do the job. My Hard drive is 1 TB or 1000 GB. My first partition was ...
0
votes
0answers
6 views

how to configure codeigniter based website for password protected apache basic auth codeigniter

Actually I want to 'password protect' my website as its still in development. My requirement is simple if anyone try to access my site http://xxxxx.com it should prompt for password (Basic apache auth ...
0
votes
0answers
21 views

trouble booting from cd on very old computer [on hold]

I've been trying to boot from a windows 98 boot cd. I start the computer and get press to boot and press f1 to enter setup. I go into setup and set the cd to boot first. But still I don't notice any ...
1
vote
0answers
44 views

Reading the program header contents of an ELF file

How is it possible to extract loadable program headers individually from ELF files? By examining a binary using readelf one can get output similar to: $ readelf -l helloworld Elf file type is EXEC ...
-1
votes
0answers
36 views

tail command doesn't work for heavy files?

I have NAS reindexed log which is almost 6GB. Output is human readable and text format. When i use tail -100f filename.txt It doesn't show anything. I though it was due to file size is ...