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
vote
2answers
38 views

Linux file hierarchy - what's the best location to store lockfiles?

I want to synchronize processes based on lock files (/ socket files). These files should only be removable by their creator user. There are plenty of choices: /dev/shm /var/lock /run/lock ...
0
votes
0answers
20 views

Unable to access http server when ufw is running, on Raspbian?

I have a Raspberry Pi running Raspbian, with Apache2 for the web server. Some recent change seems to have broken my ability to access my web server, when ufw is running. The server simply doesn't ...
0
votes
2answers
535 views

setcap for rhel5

A quick question: I am not able to find much info to run setcap on rhel5 . I searched few packages in my system # yum install libcap Loaded plugins: product-id, security, ...
2
votes
1answer
667 views

How to make this conky (Conky Vision) use other language than English?

I want to use this conky script: Conky Vision But I don't want the days of the week to be displayed in English. When I change my locale to another language, the day of today is displayed in that ...
4
votes
2answers
1k views

Increasing Accuracy of Synaptics Touchpad - Arch Linux

Here's my current problem with my Arch Linux installation. The touchpad is horribly inaccurate. And by that, I mean, I cannot click links without having to sway back and forth. I've been resorting to ...
-1
votes
1answer
45 views

Getting “Permission denied” when trying to create a file despite correct permissions

I’m using Amazon Linux and running a script through a Jenkins job, including this line touch /usr/java/jboss/standalone/deployments/myproject.war.dodeploy which results in the error … touch: ...
2
votes
2answers
65 views

What is the best way to setup 3 HDDs with 3 OS on one computer?

I am building a new PC, I am a developer of whatever people want me to make, but I personally like to code games. To do this, I have a simple set of requirements: Machine must run Windows 7, to run ...
0
votes
2answers
30 views

Centralized system information

Does anyone know of a software capable of keeping track of Linux/UNIX systems configurations centralized on a server? Possibly with a web GUI and history capabilities? I am looking for something that ...
0
votes
1answer
43 views

Touchpad and Sound card undetected Debian 8 - asus R547U

I just installed Debian 8 on my new machine (an ASUS laptop i5/SSD 256Go/...), but I find myself stuck with two main problems. First, my touchpad is not recognized by Debian. To be more precise, I ...
0
votes
0answers
37 views

interceptty error message

I want to listen to a certain device on my linux system. therefore I am using interceptty. When I call: mv ttyO0 ttyO0-orig and then: ./interceptty -o ttyO0.out /dev/ttyO0-orig /dev/ttyO0 & ...
-2
votes
2answers
55 views

Keep CPU busy at certain percent (to prevent CPU buzzing frequency noises) [on hold]

On Dell Inspiron 7559 there is electric buzzing from beneath the keyboard that changes frequency when I touch the touchpad. However, if the CPU is busy I hear no buzzing as the frequency gets out of ...
5
votes
1answer
12k views

How to execute Windows commands remotely from Linux machine using rdesktop command?

Is it possible to run Windows commands using rdesktop tool in Linux? I tried with rdesktop -s option: rdesktop -u user -p 10.0.0.2 -s "cmd.exe" but I'm not able to open the cmd.exe using the above ...
2
votes
1answer
36 views

How to track ssh connection time, disconnection time and idle time?

How can I track ssh sessions on my server including ssh connection time, disconnection time and idle time? Here's what I have for connections: cat /var/log/{auth.log,auth.log.1} | grep -i Accepted | ...
0
votes
1answer
28 views

UNIX multi-variable definition on single line

UNIX/LINUX: Wondering if it's possible to have a single line command that echoes value at the end: let N=444,M=555,O=N*M,echo "$0" Thanks for the help!
-4
votes
0answers
28 views

Need Help in Shell Scripting [closed]

Want to create shell script At 00:00 AM I have GlobalFile.csv From GlobalFile.csv I want to find out repeated entries from column one and those are repeated I will add them to Escalate.csv and non ...
0
votes
0answers
15 views

How can I run GUI emacs (using a shortcut) in a very light xmonad installation? [migrated]

I am trying to launch Emacs through a keyboard shortcut on my Debian/xmonad system. Relevant lines from my xmonad.hs: ~$ cat .xmonad/xmonad.hs import XMonad ... main = xmonad =<< xmobar ...
-7
votes
0answers
18 views

how to create domain user [on hold]

question Lists in a list item: - Indented four spaces. * indented eight spaces. - Four spaces again. 2. Multiple paragraphs in a list items: It's best to indent the paragraphs ...
3
votes
0answers
60 views

Read but not write access to a socket on Linux, what can one do with that?

On a server installation, I found sockets writable by group, but only readable by others. I assume that the latter has no effect, as my understanding was that write access is needed to be able to work ...
4
votes
1answer
4k views

Understand the Route table

I just setup the OpenVPN and it is working as expected. However, the routing table of the client is confusing me to no end. Here is the route table: # route -n Kernel IP routing table Destination ...
16
votes
5answers
7k views

What constitutes a 'field' for the cut command?

For example, the cut command can take a parameter -f, which according to man select only these fields; also print any line that contains no delimiter character, unless the -s ...
2
votes
1answer
504 views

tty not resizing properly

I'm running an embedded poky linux (linux-yocto v3.13) on a beagleboard. However, I'm having trouble when logging in over a serial using PuTTY: the terminal does not resize at all. Usually, the ...
2
votes
1answer
2k views

SOLVED: Useradd fails: useradd: cannot lock /etc/passwd; try again later

When I attempt to add a user or delete a user, as root, I get the following error: useradd: cannot lock /etc/passwd; try again later. After looking thru many posts I don't have any of the usual ...
5
votes
4answers
7k views

Constantly check if file is modified bash

I have a file called file1 I want in a script, whenever there is a change in it, do something, a beep sound actually. How do I do that ¿? Thank you in advance
0
votes
1answer
24 views

Kali Linux doesn't install

I have a problem with Kali Linux. I want to install it with live DVD, so I burned DVD, and also booted it in BIOS, but when the install options shows (install, Live amd64, Live forensic mode and so ...
7
votes
1answer
3k views

How to shrink root filesystem without booting a livecd

I find myself needing to rearrange a system's partitions to move data previously under the root filesystem into dedicated mount points. The volumes are all in LVM, so this is relatively easy: create ...
0
votes
1answer
27 views

Overhead of using loop-mounted images under Linux

Is there a CPU/RAM overhead associated with using loop-mounted images versus using a physical partition under Linux?
1
vote
1answer
2k 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 ...
0
votes
2answers
24 views

Linux use second terminal in minimal iso

I installed centos minimal iso, as you know there is only one terminal in opening so I made everything within there but I wanna know; Can I open a second terminal window ? I am downloading on ...
3
votes
4answers
2k views

Debian Wheezy installation with preseed

I have a USB stick with netinst version of Debian Wheezy (testing). I am trying to load a preseed file, named "preseed.cfg" in the USB root folder (same folder as initrd.gz). I use GRUB and my entry ...
0
votes
1answer
18 views

Copy /home without root [duplicate]

I installed Xubuntu on a friend's PC and he understood, that is it greater than Windows 10. He has no practice with shell and dont want to use it! The PC is used by several people. He (the owner) is ...
3
votes
2answers
72 views

Keep NumLock always on [Linux Mint]

I have a simple objective: Keep NumLock always on OS and DE: Linux Mint 17.3 Cinnamon I found this Keep NumLock always on So, I created this small script -rwxr--r-- 1 root root 47 Apr ...
2
votes
1answer
4k views

Unable to use yum repos whether with baseurl or mirrorlist in CentOS 6.5

Since a couple of days, I'm unable to retrieve repositories data with Yum, in my CentOS 6.5 server. I did yum clean all a dozen of times, it emptied all but didn't solved the problem. I tried to ...
1
vote
1answer
44 views

Create encrypted live USB Kali or Ubuntu (Debian) [closed]

I'd like to: Configure Linux os, for example Kali or Ubuntu for my needs. Then encrypt the WHOLE bootable USB drive. If it's not possible to encrypt the WHOLE USB drive, maybe leave just /boot ...
1
vote
2answers
17 views

Deleting lines by matching 3rd and 4th character only

I am running a script that fetches me the data as given below, 1400d2b8 1f4d1e2507 1200781e As you can see the 3rd and 4th character is 0 in line 1 and line 3. I am trying to write a single line ...
0
votes
2answers
35 views

Force an application to use a specific connection

So my Mint 17 has 2 connections (wired and wireless) when both connected by default the wired is used, what I want to do is keep wireless for file download and general Internet usage, and use the ...
2
votes
0answers
15 views

Can not seem to get the jp2 delegate to work in ImageMagick on Ubuntu 15.10

As the title says, I have tried to install the library on both 14.04 and 15.10. Every time I type in convert -version the delegates do not contain jp2000. I have installed libopenjpeg-dev and ...
1
vote
1answer
1k views

Two-finger scrolling on Linux Mint

I recently installed Mint 17 Cinnamon on my laptop and am not able to get the Two-finger scrolling to work. I have changed the Panel Layout to Two-finger scrolling in system settings but that doesn't ...
1
vote
0answers
18 views

VPN Connected but url not not open

I have use CentOS 7 system and developing a SOAP web service. I connected FortiClient CLI using the terminal to the VPN server that is hosted on a windows server and it's working perfectly. But ...
-1
votes
1answer
39 views

Principles of file indexing in Linux [closed]

I have read a lot about indexing in Mysql and I know that Linux has a great utility locate to find files. Maybe Linux has the same principle to do indexing as Mysql have provided. But I think the ...
3
votes
4answers
805 views

Active Directory Domain with SAMBA or Other Tool

Can I create a domain using SAMBA and set up Active Directory with SAMBA on it? And by this I mean no windows servers involved. I would also like to be able to log in from a Windows machine. ...
3
votes
1answer
85 views

Filesystem still showing the old value after reduction in linux, however showing the correct value in LVM

We have a task to resize the filesystem from 8T to 7T which is in LVM. We have given resize2fs command, while the command is still being run we have got the error "Write failed: Connection reset by ...
5
votes
3answers
9k views

Set default kernel in GRUB

How can I pick which kernel GRUB2 should load by default? I recently installed a the linux realtime kernel and now it loads by default. I'd like to load the regular one by default. So far I only ...
0
votes
1answer
27 views

Simple BASH script treating flags as commands

I've been trying to write a really simple bash script as follows: #!/bin/bash gcc –Werror –std=c99 client.c –o client gcc –Werror –std=c99 server.c –o server Each of the commands works fine when ...
-3
votes
0answers
14 views

how can I address the root cause of the high “in” and “cs” at the vmstat output

root@wis-virtual-machine:~# vmstat 1 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st ...
4
votes
2answers
488 views

Digging through huge gziped log files

From time to time I need to dig through huge log files (several GB unpacked) to debug a specific error. Now, vim is OK for browsing through the file, but when I need to find something in the file ...
0
votes
1answer
12 views

why rc and rc.x are linked

May I know why we have them linked ? is there any reason behind this ? lrwxrwxrwx. 1 root root 7 Aug 7 2015 rc -> rc.d/rc lrwxrwxrwx. 1 root root 15 Aug 7 2015 rc.sysinit -> ...
0
votes
0answers
12 views

stop dm-cache from caching temporarily

I am want to benchmark my system(Centos) IOPS with dm-cache and without dm-cache.I have taken benchmark result for my system dm-cache .Now I want dm-cache to stop temporary so that I can take ...
2
votes
1answer
13 views

How can I find out the ownership of a tap interface?

I can set up a persistent Linux tap interface and make it owned by a specific user and group with one of these: tunctl -u someuser -g somegroup -t example.tap ip tuntap add dev example.tap mode tap ...
1
vote
0answers
47 views

Linux kernel running only with use of physical address

Is it theoretically possible to make Linux which for its own kernel (include modules) uses only physical addresses? (it means it completely omits MMU) For processes how would you know if there was ...
1
vote
2answers
79 views

Main stacks in Linux

What are the main stacks in Linux? What I mean is, for example when an interrupt occurs what stack will be used for it, and what is the difference between user process and kernel process stacks?