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

3
votes
1answer
97 views

Output shutdown messages to multiple consoles

I have configured my system to direct console output on boot to serial and vga using kernel parameters. Serial is the last argument in the kernel parameters and will be the default used for ...
2
votes
1answer
473 views

Hardware Timestamping using PTP

I'm new to Linux programming. I have an Intel NIC with e1000e driver. I'm working on accurate time stamping of packets being captured from a network. My question is if I want to use RT Linux how ...
-2
votes
2answers
34 views

What is a simple example where the use of the command line is unavoidable or better? [closed]

I want to see a simple example that motivates the use of the Linux command line. Like I want to see an example where the use of the command line will do it in seconds and on GUI , it will take you ...
1
vote
1answer
1k views

Deleting Non-empty Directory with smbclient

How can I remove a non-empty directory with smbclient? I have tried the following: 1) rm Result: NT_STATUS_NO_SUCH_FILE listing [dir_path] 2) recurse;rm Result: No Error but also nothing ...
1
vote
1answer
3k views

64bit rpm can not resolve 32bit dependencies

Problem I'm having a RPM that contains mixed 64bit and 32bit binaries. One of the binaries depends on 32bit i686 packages. When I try to install the package yum gives me an error, noting that the ...
3
votes
1answer
24 views

Can I remap SHIFT+CAPS LOCK in a virtual terminal?

I recently acquired an old netbook which has no backslash/pipe key. I have successfully remapped the caps lock to backslash using loadkeys. I would like to map SHIFT+CAPS LOCK to the pipe key in a ...
3
votes
1answer
679 views

cleaning /dev/md0 filesystem ( raid)

I have a CentOS server using raid. The /proc/partitions contains: major minor #blocks name 8 0 976762584 sda 8 1 104391 sda1 8 2 921600855 sda2 8 3 55054755 ...
1
vote
3answers
754 views

how to disable time sync in VM guest?

I have a desktop (centos 6) that has a VM guest (RedHat 5.5). I just try to set the date to past time in VM guest. And it works. However, after 50 minutes, the time is sync to current time. After I ...
1
vote
1answer
44 views

Duplicate UUID's for Physical Volumes But PV's aren't in a Volume Group

I have some dead/stale/non existent logical volumes without group pvs said File descriptor 3 (pipe:[306492]) leaked on pvs invocation. Parent PID 30844: -su Found duplicate PV ...
16
votes
3answers
1k views

How to automate Linux server configuration?

Is there any way to automate Linux server configuration? I'm working on setting up a couple of new build servers, as well as an FTP server, and would like to automate as much of the process as ...
17
votes
4answers
21k views

What's the best way to join files again after splitting them?

If I have a large file and need to split it into 100 megabyte chunks I will do split -b 100m myImage.iso That usually give me something like xaa xab xac xad And to get them back together I have ...
0
votes
0answers
22 views

basic help with safecopy

I have a drive with "Many Bad Sectors". After much deliberation I've chosen to try recovering with safecopy (the choices of tools are overwhelming, and they are all just as cryptic to me - but I ...
0
votes
0answers
16 views

Supervisord scheduling

Is it possible to set jobs to run every n days in supervisord, like what cron is doing? I'm asking because I have different kinds of jobs, continuous / real-time and daily ones. All my jobs are ...
1
vote
1answer
16 views

State of network loopback

Why the state of lo interface is reported as unknown with cat /sys/class/net/lo/operstate even though ifconfig says it's running?
0
votes
1answer
21 views

iptables configuration for Transparent squid proxy

I have to setup a transparent squid proxy server using iptables and squid. Following is the scenario: [INTERNAL NETWORK] -> [Main Switch] -> [Proxy Server] -> [Firewall] -> [EXTERNAL ...
0
votes
1answer
663 views

Unable to mount root fs over NFS

I am attempting to set up the first (of many) Raspberry Pis running Pidora (a Fedora Remix) to boot from an NFS share. It is my goal to eventually place a dozen or more Raspberry Pis in the datacenter ...
-3
votes
0answers
15 views

System Monitoring tool for Linux [duplicate]

I'm looking for the best tool to monitor the Linux system. I've found a lot of interesting tools searching the web but I didn't find one which can do all the requirments (like a one in all tool). I ...
-2
votes
1answer
70 views

Watchdog handler [closed]

I’m interested in monitoring the processes running in a Linux system and determining when they are stuck/running endlessly very quickly. Once I determine this, I also want to take on some actions ...
1
vote
1answer
429 views

Adding multiple user with shell script on Ubuntu

Can someone help me in providing me the shell script for creating multiple users on Ubuntu. Password needs to be different for each user. Thanks in advance
0
votes
1answer
690 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
vote
0answers
18 views

iptables / VLAN: interface names

I have just started working with VLANs. My memory was VLAN interface names are the interface name plus dot plus the VLAN ID. And that is what vconfig offers. After some (successful) manual tests I ...
0
votes
0answers
11 views

org.freedesktop.consolekit launch failed error 127

I have an old Dell laptop that I've been running Crunchbang 11 x64 from a thumbdrive. The hard drive is dead, but I'm it's been pretty useful, running a Plex server, etc. I'm currently having ...
1
vote
1answer
699 views

Bluetooth Device not working debian wheezy

i just installed debian wheezy on msi cx640dx. my bluetooth device not working. here is some information. Kernel version: $uname -r 3.2.0-4-amd64 when i use hcitool dev it don't show any device. ...
3
votes
2answers
2k views

volume hot keys in Crunchbang don't work

I've spent 2 hours on this and still can't figure this out. It's driving me insane. Please save my sanity. When I press mute, the pnmixer control in the top right shows that I've pressed mute, but ...
2
votes
0answers
37 views

Why is systemd-nspawn not appropriate for production deployments?

While reading about systemd-nspawn, it is mentioned that it should not be used in a production environment. The reason seems to be the lack of management and deployment infrastructure. Is practicality ...
0
votes
3answers
31 views

How do I loop through a file with awk

I am using this command sed -e '/^*/d' $WORKFILE | awk -f test.awk >> $OUTPUTFILE in a ksh script to take a file of 274567 lines like this * * * * * syopsf00 a0000096 ...
1
vote
1answer
30 views

How do I use yes with e2fsck?

I have tried the following with both LinuxMint 13 Cinnamon 32 bit and Trisquel 7.0 Gnome 32 bit and get the same error message: $ yes | sudo e2fsck /dev/sdax e2fsck 1.42 (29-Nov-2011) e2fsck: need ...
1
vote
1answer
37 views

How to stop displaying error logs from the terminal in linux?

I am using Linux, there are some error logs related to some applications are over flooding one of my terminal. They look like this: 20/01 15:54:29.894138[3319][65536] Unexpected exception during ...
1
vote
1answer
35 views

Where to search for the core file generated by the crash of a linux application?

I am trying to find out the reason of crash for one of my Linux application. But I don't know where core is going. cat /proc/sys/kernel/core_pattern core.%e.%p Any Idea?
1
vote
1answer
36 views

Every time I run tmux, new ssh-agent child process is started (zshell)

Every time I start tmux or split tmux, new instance of ssh-agent is started ("Agent pid XXXX" appears on the top), which is quite annoying because I have to type the key password every time I want to ...
2
votes
1answer
1k views

undefined symbol in /usr/lib64/libGL.so.1 when using ssh

I frequently use ssh to a computer with redhat using the Y option so I can forward the windows. I always saw errors like this one /usr/lib64/firefox/firefox: symbol lookup error: ...
2
votes
1answer
492 views

Boot graphical application straight from Linux bootup (without verbose boot messages and desktop)

Is it possible to boot from minimum Linux core(Linux/Android) to an application (preferably created in interchangeable platform languages such as C# – Mono / GTK / Java / C) without any verbose ...
1
vote
1answer
934 views

Intel Turbo Boost apparently activated for no reason?

The other day, I reinstalled my operating system (Crunchbang, fork of Debian). For some reason my fan has been running at full speed (and blowing colder-than-room-temperature air) even though I'm ...
7
votes
4answers
498 views

Trouble with understanding the concept of mounting

Having read both What is meant by mounting a device in Linux? and understanding "mount" as a concept in the OS, I have a problem where it is stated that All accessible storage must have ...
0
votes
3answers
47 views

Count new lines in file last 1 minute

With bash, how to count new lines appended to file the last 1 minute? What would be smartest if you want to count new lines for the last 1 minute in multiple files simultanously and get output? I ...
0
votes
1answer
12 views

Trouble understanding why getfattr -d doe not show anything

The successful command from which I started: getfattr -n system.ntfs_times /media/hdd/oldfolder/ output getfattr: Removing leading '/' from absolute path names # file: media/hdd/oldfolder/ ...
8
votes
5answers
4k views

How to make sure only one instance of a bash script runs?

A solution that does not require additional tools would be prefered.
12
votes
3answers
10k views

What is stored in /dev/pts files and can we open them?

According to my knowledge, /dev/pts files are created for ssh or telnet sessions.
0
votes
1answer
30 views

Start graphical user interface using startx and display manager

As title said, can someone tell me what differents between starting graphical user interface using startx command (which xinitrc contains exec gnome-session or exec xfce4-session) and using an display ...
0
votes
1answer
518 views

VPN Setup Errors

I'm trying to install a VPN on one of our servers for use within my campus so that we can play some games, but I appear to be getting errors when I try to connect, as shown below. Not quite sure about ...
0
votes
0answers
25 views

Globally change terminal background in centos 7

This has been frustrating me. I've done a ton of googling, can globally change text in terminal using .bashrc, but I cant figure out how to change the white background to black. Going to terminal ...
3
votes
3answers
84 views

Create Linux distro with minimal number of files

I'm thinking about designing a system for a project using some single-board computer (RaspberryPi, CubieTruck etc) that runs Linux. My main requirement is keeping the complexity of the booted SD card ...
0
votes
1answer
29 views

One liner to ssh into a server, specifying an intermediary to tunnel through [duplicate]

At my company, In order to SSH into anything, I first have to SSH into an intermediary server like so: (me@local.machine) ssh intermediary.server.com (me@intermediary.server.com) ssh ...
1
vote
1answer
25 views

How to carry a string over from one chain to another in iptables?

Here's what I'd like to do. In my rule file (which I use with iptables-restore) I have (with limits removed): -4 -A LOGDROP -j LOG --log-prefix "ipt:4:drop " -6 -A LOGDROP -j LOG --log-prefix ...
5
votes
2answers
1k views

Querying an overlayfs

I'm looking for a way to query a mounted overlay filesystem (overlayfs) in order to check it's upper and lower directory, but until now I haven't found any suitable command for that. Is there is a way ...
2
votes
0answers
30 views

View syscalls/kernel activity for I/O from a running process

I'd like to be able to view syscalls or kernel activity for a process...I'm not actually sure of the terminology I need here! Specifically I'm looking for the difference between I/O going to local ...
3
votes
1answer
344 views

Periodically unable to connect to WPA2-EAP access point

I have setup a WPA2-EAP TLS WiFi access point at home and everything works fine usually. Unfortunately, though, many times I'll drop my connection to the access point and won't be able to reconnect. ...
2
votes
4answers
299 views

Moving a directory from a user to another user, keeping the correct permissions

Let's suppose we have to users: alice and bob. Now Bob wants to move Alice's ~/Documents directory into his home folder. What's the best workflow to do that, updating the permissions (from Alice to ...
0
votes
0answers
15 views

Read from serial port with multiple terminals at the same time?

I am creating a Python script that will monitor a USB device for output. This script currently runs indefinitely so when I am running it I am not able to access the device from.. say a terminal. Is ...
2
votes
1answer
36 views

What is /proc/filesystems supposed to be and why is it different from /lib/modules/linux_ver/kernel/fs?

The very little documentation about /proc/filesystems says it is a "list of supported file systems". I see a lot of file system modules in /lib/modules/linux_ver/kernel/fs, most of which do not appear ...