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

-1
votes
3answers
26 views

Get compilate date [duplicate]

I am trying to extract the compilation date from a linux command (or cpp would be fine too). I am using: stat -c %z ./myProgram.bin However, if I copy myProgram.bin to an another place via ssh for ...
0
votes
0answers
35 views

FreeBSD or simply Docker for my old Linux server?

I have an old obsolete server running a Linux Red Hat server 5.9 and inside a special software for a power plant control and I've been asked to replace this server as not so much spare parts are in ...
1
vote
1answer
21 views

mkswap complains that partition is misalilgned (LVM on RAID-0)

I have a RAID-0 setup on two identical hard disks (same brand and model). The partition table is identical on both (I have cloned it). However, /dev/md0 occupies only part of the disks, because I had ...
0
votes
1answer
33 views

Full system backup with dd include symlinks

I'm really new in unix and Linux and just tried to learn something. My question is how can I make full system image/backup with dd include symlinks? Is dd good or I should use another approach? Can ...
3
votes
1answer
27 views

What are semi-files?

I'm reading a paper about Android/Linux. It contains a line I'm not able to understand. I tried searching about "semi-files" but nothing relative came up. Can someone please rephrase it or explain it ...
0
votes
0answers
14 views

Keep all jars in a folder running on jvm's as services [migrated]

On a remote server I'm having a folder which contains serveral jars. Each of it will represent an application, which will open up a port, on which a web-application is served. It might look like ...
-1
votes
0answers
21 views

Using specific driver version for the device jointly defaul driver [duplicate]

I have dongle USB-RS85 like this, based on CH340G. There is linux kernel driver ch341 that support this device (and create device /dev/ttyUSB0). But this driver does not support parity modes ...
1
vote
1answer
64 views

What to do if the owner of /usr/bin/* changes to a non-root?

It would be the right thing to say that I messed up! Accidentally, I changed the owner of all files in /usr/bin to 'dev' from 'root'. Now, sudo does not work! If I use sudo with any command, I get - ...
0
votes
1answer
37 views

How to forbid ssh connection after sudo -u

After ssh login, user with UserName makes $ sudo -u localusername -i and $ ssh localusername@someserver How to forbid ssh localusername@someserver for UserName via sudo -u localusername but permit it ...
0
votes
0answers
35 views

Linux + what are the steps use the oldest kernel version in place of the current

I have Linux red-hat 5 version I want to reboot the machine with the previous kernel - 2.6.18-408.el5 so I set the default to 1 but before I will reboot the machine to startup with the older kernel ...
1
vote
0answers
11 views

Trouble with linked libraries when installing mediainfo

I have mediainfo installed on a linux machine running busybox, but when I run the mediainfo command, I get the following output: mediainfo: /lib/libstdc++.so.6: no version information available ...
0
votes
1answer
30 views

Having problems updating after esx host problem

So I have a VM that had to be hard shutdown. I can't get the error to stop. CentOS 7.x latest [user@asm-dmz01 ~]$ sudo yum-complete-transaction --cleanup-only Loaded plugins: fastestmirror Loading ...
1
vote
0answers
24 views

Raspbian Jessie Lite “Factory Reset”

I am currently remoting offsite to my Raspberry and since I think I messed up all packages and configuration files I would like to return to default settings before installing all the packages and ...
0
votes
0answers
7 views

How to create a systemd Service for Consul in RHEL7 [closed]

I have setup a consul cluster and I want to make sure that the agent starts by itself whenever the server is restarted. In order to achieve this, I have created an Upstart Service at ...
1
vote
2answers
59 views

How to move from one filesystem to another without changing directory structure?

/dev/xvda1 is full so I want to move its contents onto my 30GB udev filesystem. Filesystem Size Used Avail Use% Mounted on udev 30G 4.0K 30G 1% /dev tmpfs 5.9G 768K ...
0
votes
0answers
18 views

cups restarted automatically

I have installed a cups service on a CentOS 7.1 64 bits. We have some problems with a printer and the only thing I can see on logs is /var/log/messages: May 18 12:11:37 isis systemd: Started CUPS ...
0
votes
1answer
13 views

How to use systemd-nspawn with pptp?

I would like to set a container use the vpn for only network interface. I have used the pptpsetup and pon make a pptp connection works, and got a ppp0 interface. Now, I want all internet connection ...
0
votes
0answers
23 views

What is the purpose of the symbolic `git` link inside the `/data/git` folder of the gogs docker installation?

Initially I asked this as a more generic question here: Is there a purpose to a symbolic link that points back to the directory containing it? Since it relates to gogs specifically I'm asking for a ...
2
votes
1answer
46 views

Is there a purpose to a symbolic link that points back to the directory containing it?

When Gogs docker installation is run it creates a symbolic link /data/git/git that points back to the parent folder: lrwxrwxrwx 1 1000 1000 9 May 13 19:37 git -> /data/git I'm ...
4
votes
3answers
462 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
31 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
21 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
31 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
20 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
41 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
24 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
38 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
92 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
11 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
89 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
41 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
21 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
23 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
56 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
22 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
50 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
28 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 ...