These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

4
votes
3answers
460 views

How do pipes and infinite streams work?

I usually use command1 | command2 | command3 a lot in Linux but most of them are dealing with definite content. When I tried this with an infinite stream cat | sed '' | sed '' which hopefully ...
-1
votes
0answers
13 views

MongoDB Shell Commands

i want Run shell command(s) from MongoDB , i connect to My MongoDB With MongoVUE now i want execute shell Command like ls -l can i do it From MongoVUE ?
0
votes
1answer
30 views

FFMpeg : Creating a video clip of approx. 10 seconds when video duration is unknown without audio-

I am working on a project where I am looking to extract a video clip from an input video. I have found many links(Eg : link) which do this task, but in all this I have to specify video duration. ...
0
votes
0answers
20 views

Automatically change screen resolution when the laptop is plugged on the docking station

My setup: Dell e4200 laptop with debian, 13" screen @ 1280 x 800 Dell docking station with 24" screen running @ 1920x1080 The problem whenever I use my laptop off the docking station it works ...
-1
votes
1answer
26 views

File /etc/ld.so.nohwcap is missing in Debian 7

What is the file /etc/ld.so.nohwcap used for?. In my machine (Debian 7), this file is not found. Therefore, Which package or library this file belongs to?
1
vote
0answers
19 views

Crouton/linux problem

I've installed Ubuntu on my chrombook using crouton, so I can switch between OS's. However, the screen keeps flickering to chrome OS when I'm using Ubuntu. Does anybody know how this could be fixed? I ...
0
votes
1answer
27 views

Recovering a partition after being reallocated

I have two partitions, c and d. Recently, I've decided to install Linux Ubuntu on the machine, and intended to do that on the c drive. It seems however that I messed up something during the ...
0
votes
0answers
37 views

Why does Linux seem to automount NTFS USB drives under /media/LABEL but FAT32 USB drives under /media/usb[some_weird_number]?

I need them fat ones to be mounted under /media/LABEL as well... Running Raspbian (7.x something if I remember correctly). Does anybody know the solution?
1
vote
1answer
21 views

tmux: how to bind a key to launch shell command?

I use tmux to develop, with two panes: one to edit the code, and one to compile it. I need to switch pane very often to launch the compile command (say "mvn install"). How can I bind a key (say ...
2
votes
1answer
23 views

Packing a bootloader as kernel image

Can a bootloader (lets say lilo) be packed as a valid zImage to trick other bootloaders to chainload another bootloader? Sorry about my english and excuse me if I am not clear enough.
0
votes
0answers
12 views

how to make your tcsh command promt show LSF job count?

I want to monitor LSF job count through command promt. %j will not give me LSF job count. Can anyone tell how to configure command prompt to show LSF job count ?
1
vote
2answers
37 views

awk + how to append list in file

I have the following list in file more file.ex efifc1a hygg4a hdy5d nhdw4s wesf3a fjfhyr jfhg gsfar how to append any second list after the first list and any third list after the second list ...
0
votes
1answer
70 views

Ubuntu 16.04: How is the bonding kernel module gettting loaded automatically?

I recently set up an Ubuntu 16.04 system with a bonded ethernet configuration. Previously, it appears that to get this to work the bonding module needed to be included in /etc/modules or ...
0
votes
0answers
20 views

Delete Files from a folder / Red Hat 5 [duplicate]

I have a red hat 5 machine in which spool directory there are many files .. how many I don't know, perhaps millions .. I wish to delete all of them. However when I give any command related to it ...
0
votes
1answer
19 views

How to know about automatic installations in CentOS

I have a Centos release 6.7 server where I have installed Apache 2.4. The server came with Apache 2.2 but I have upgraded it to Apache 2.4. From time to time, the system goes back to use Apache 2.2 ...
0
votes
0answers
10 views

wl_inform_single_bss error on startup

Every time I boot Linux Mint, I'm welcomed with the following: [ 35.761843] ERROR @wl_inform_single_bss : cfg80211_inform_bss_frame error Then I have two options: either wait, say about 1-2 ...
0
votes
0answers
85 views

Cannot log in to linux mint

It says: Your session only lasted 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem. View details ~/.xsession-errors file ...
1
vote
1answer
40 views

Strange lines in /var/log/message folder of Centos machine

Below are lines from my /var/log/messages. Can someone help me to understand what these lines mean? I am running a syslog server on this machine. I want to know if these messages would stop the ...
0
votes
1answer
19 views

Restart a service through apache

I am using CentOS 6.6 I trying to call service command in PHP code exec("sudo -u kouser bash ./1.bash 2>&1",$output,$code); 1.bash #!/bin/bash sudo service httpd graceful The output of ...
1
vote
1answer
20 views

linux: Class10 SD card different device and block device size

A have a brand new 16GB class 10 SD card and produce a very strange behavior. After I attached the the card with an USB SD-Card reader, the device appeared as /dev/sdb. I tried to copy a 2GB raw image ...
1
vote
1answer
36 views

How to disable mailed output for an at job?

I'd like to disable at mail notifications for a certain class of jobs. For example, when testing the use case below (killing an at job midstream) I don't want output, but the same code in production I ...
1
vote
0answers
21 views

Persistent network namespace configuration

When creating a namespace with ip netns add <namespace> the namespace and it's related config is deleted on reboot along with created interfaces like veth pairs. What is the correct way to: ...
0
votes
0answers
13 views

Logitech Ultrathin Touch Mouse T630 strange behavior

I'm using a Bluetooth Logitech Ultrathin Touch Mouse T630 on linux (Arch linux with GS 3.x). It works fine 90% of the time. Then suddenly it happens that it starts sending strange inputs like if I'm ...
3
votes
1answer
29 views

Desktop notification

I would like to create a notification, which appears, when turning the Caps Lock on/off. I am using GNOME and I tried the notify-send, but it is too "busy" and involving and I want something more ...
2
votes
0answers
17 views

How can I map the Caps Lock key to ShiftInsert on xubuntu [duplicate]

For a long time I have disabled my Caps Lock key using xmodmap. However I would now like to map it to something useful, specifically Shift+Insert which does the same as the mouse middle button (if ...
0
votes
1answer
28 views

Sensu remediation : not able to trigger client

I am a newbee to Sensu remediation i tried to restart process with custom script Senario: if my http link goes down then i use to manually run the script and start it. we moved to Sensu recently as ...
2
votes
0answers
38 views

How to remove all old kernels except the two latest

The following command deletes all kernels except the latest: package-cleanup --oldkernels --count=1 Does the following command delete all but the two latest kernels? package-cleanup ...
1
vote
1answer
55 views

File location for Syslogs in Centos machine

I am running syslog server (rsyslog 8) on my centos machine. I want to map other device in my network to send the logs to this syslog server. If mapping is done correctly where exactly the syslogs ...
1
vote
1answer
19 views

linux periodic system check script or utility [duplicate]

Is there any commonly used shell script or utility to periodically check Linux file systems for changes, such as permission or ownership changes of configuration files. I am thinking of something ...
2
votes
2answers
49 views

How to use Upstart scripts on CentOS7?

I am learning some stuff about object storages and have an example: I need to create a file /etc/init/start_swift.conf with following commands: description "mount swift drives" start on runlevel ...
1
vote
0answers
27 views

Beagle Bone Black not retaining static IP

I have a Beagle Bone Black to which I have assigned a static IP. My interfaces file is as follows. auto eth0 allow-hotplug eth0 iface eth0 inet static address 172.16.41.226 netmask 255.255.255.0 ...
1
vote
0answers
15 views

cvs auto setenv and login without typing password again

Hi I'm trying to logon to cvs automatically every time I start the machine. This works well but I have to manually type cvs login in the shell: setenv CVSROOT :pserver:$USER@vlsj-cccc:/vols/cvsroot ...
0
votes
0answers
12 views

ldappasswd show error Result: No such object (32)

Why I get error No such object when I run ldappasswd command ? Below is my command to modify password : ldappasswd -H ldap://localhost -x -D "cn=admin,dc=enjaysun,dc=com" -W -S ...
3
votes
1answer
51 views

Linux File Capabilities are lost when I modify the file. Is this expected behavior?

When I modify a file, the file capabilities I had set earlier are lost. Is this the expected behavior? I first set a file capability: $ setcap CAP_NET_RAW+ep ./test.txt $ getcap ./test.txt ...
0
votes
1answer
40 views

Corosync error “No interfaces defined” in a cluster member

I am having an error starting corosync on a cluster member: May 16 00:53:32 neftis corosync[19741]: [MAIN ] Corosync Cluster Engine ('2.3.4'): started and ready to provide service. May 16 00:53:32 ...
1
vote
1answer
22 views

How can I find if my wifi card supports 802.11ac?

I am unsure if my wifi card supports 802.11ac. How can I find out this information?
0
votes
0answers
17 views

How can I set up my ethernet on a fresh install of Fedora Server 23?

I am using Fedora Server 23, and cannot get my ethernet connection to work. It works fine on Ubunutu, OS X, and Windows 7 on the same machine. [root@localhost etc]# ifconfig ens5: ...
1
vote
1answer
27 views

change home folder permissions on exit/disconnect

I have a use case where my folder on the linux server needs to have its permissions opened up so I can use a sudo account to move files from my folder to shared folders. What then happens is often ...
0
votes
1answer
17 views

Stopping infinit loop from php script run in linux terminal

I am currently following a tutorial that teaches how to create a queue in php. An infinite loop was created in a php script. I simplified the code in order to focus on the question at hand: while(1) ...
1
vote
1answer
29 views

How to find the pci slot of an usb controller in Linux?

I have a nearly common Linux machine here. So, it has a PCI (*-X, etc) bus, on that some USB controllers, and I have USB devices on these USB controllers. Similar to this: $ lspci|grep USB 00:12.0 ...
1
vote
1answer
21 views

How to resolve <not counted> problem in perf tool?

perf stat -d ./sample.out Output is: Performance counter stats for './sample.out': 0.586266 task-clock (msec) # 0.007 CPUs utilized 2 ...
1
vote
0answers
33 views

after running chown -R on home system is in read-only-mode [closed]

Unfortunately I run the following command: sudo chown -R m:m /home/m whereas m is my username. The intention was to fix some right issues for another problem, however it caused the whole system ...
3
votes
0answers
19 views

tcsh shell prompt to show unfinished jobs count

How do I make my tcsh shell prompt to show unfinished background jobs? I understand %j will tell me unfinished job number count but prompt goes stale if I keep it idle. Ideally, I would like prompt to ...
0
votes
0answers
10 views

Understanding owner groups of a folder

I am having some problems understanding how users and groups permissions work in Linux. The command I am trying to launch is the following: ln -nfs /home/mmarteau/wfor.it/releases/release_folder ...
5
votes
0answers
60 views

Simulate ethernet cable unplugged on a remote machine while staying connected

I am working from home on remote embedded Linux machine "X" via ssh. It has one physical network card. I need to simulate Ethernet cable unplugged condition on the same remote machine "X" , while ...
0
votes
1answer
34 views

How to enable IOMMU on Gigabyte GA-970-Gaming SLI-CF

I've enabled svm and iommu in the bios, but I get "not available" from dmesg: # root@xen:~# dmesg |grep -i iommu [ 0.000000] Command line: placeholder ...
1
vote
4answers
81 views

Impose character between repeated characters

Given a string of characters ,,a,,,b,,,, I want to impose the character - at the beginning, if no character is preceded comma, and between every comma that has no character. Meaning the result is ...
-1
votes
1answer
22 views

Unable to find expected entry 'main/binary-mipsel/Packages' in Release file

I am currently running debian 8 jessie as my linux distro, and have been following this link to install HHVM https://docs.hhvm.com/hhvm/installation/linux the first two lines I have successfully ...
-6
votes
1answer
23 views

Important files to be backup [closed]

I need to know what is the most important files to be backup in Linux server.
1
vote
1answer
21 views

Disable usb keyboard during suspend

I want to disable an external usb keyboard whenever the computer is put into suspend mode so that the computer can't be woken by press on the usb keyboard. I was referred to this site, but I don't ...