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

4
votes
2answers
34 views

Can I mount a case-insensitive tmpfs/ramfs?

I would like to utilize the performance of tmpfs/ramfs for some file operations, but the programs/processes that use these files assume a case-insensitive file system. I cannot find any documentation ...
2
votes
1answer
782 views

Memory management - how memblock_reserve works

I am new to Linux kernel and I am studying the Linux memory management framework. I have few doubts on this. I am working on Marvel PXA986 boards and in board file I can see few memory reservation ...
1
vote
0answers
15 views

What does ipq_ctl do?

I'm in the process of writing some rust bindings to libipq, and I came across an undocumented function in libipq.h: int ipq_ctl(const struct ipq_handle *h, int request, ...);. However, this doesn't ...
3
votes
3answers
409 views

How can I convert raw printer commands back to a postscript or pdf file?

I have a string of raw printer commands that are for my postscript printer saved to a file. I believe there is a lpr option like -o raw which will read these raw command and send them to the printer. ...
2
votes
0answers
44 views

How do I configure SSHd to require 2 (or more) passwords to log in

I'm asking because I want to setup a server that cannot be administered by any single admin, not without the permission (and oversight) of one other authorized admin (there can be many). Since there ...
1
vote
1answer
23 views

linux nat different rules

eth0 (192.168.1.0/24) --> wan eth2 (192.168.10.0/24) --> lan0 I use these rules to enable NAT on my linux gateway: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -A FORWARD -i ...
0
votes
0answers
14 views

multiple file backup script at different location [closed]

I have script will match keyword from check.conf file and if match is found then it copies that file from App to Directory10 location. I have dir such as Directory10 ,Directory11, Directory12 and so ...
1
vote
1answer
27 views

How to find bandwidth usage/bytes transmitted/received within a certain time frame

I'm looking for a way to get numbers on bandwidth usage of an eth port. But I need to filter the results to only show me numbers for the last 24 hours. Or any time period in hours or minutes. Just ...
0
votes
0answers
13 views

Auto Connect OpenVPN Client on Startup Windows 8 [closed]

I am trying to get my VPN to auto connect on startup so I don't have to always make sure that it is connected and running. I've read numerous ideas for running RegEdit ...
2
votes
2answers
87 views

how to grep for specific time period in a log

We work with log files that have line entries that start with a date/time format such as this: 20150408 13:29:28 <rest of text> What would I need to do in order to grep for a date range? Say ...
0
votes
0answers
17 views

how to use postfix alias for sending email

I am not this question has been asked or not, I have postfix running with MySQL and recently i have created "support@example.com" alias email to multiple folks get email, just like distribution list. ...
1
vote
1answer
28 views

How can I set permissions on a windows share from linux client

I want to write a script to set permissions on a windows share from linux client. I know that I can use smbclient, cifs or smbfs to mount windows share from linux. But I have no idea how to set ...
53
votes
3answers
93k views

How do you empty the buffers and cache on a Linux system?

Prior to doing some benchmarking work how would one free up the memory (RAM) that the Linux Kernel is consuming for its buffers and cache?
0
votes
1answer
736 views

How to select which graphics card to use?

I have a desktop with an integrated graphics card, which i want to use, and a PCI graphics card. I would like to display video through the integrated graphics, and use the PCI card for CUDA based ...
24
votes
5answers
5k views

Block network access of a process?

Is it possible to block the (outgoing) network access of a single process?
0
votes
1answer
39 views

Set home directory of a user to root?

I would like to set the home directory for ftpuser to root. That's my command: # adduser ftproot -shell /bin/false -home /var/www What is the directory term for root?
1
vote
0answers
29 views

Route wireless LAN through OpenVPN

I am trying to set up my home server to act as an OpenVPN gateway so I can connect to my VPN from any device without installing special software of them. My server is running Ubuntu 14.04. The host ...
1
vote
1answer
691 views

Can I use a parallel port as a CUPS input device?

I have an old piece of a hardware that does diagnostics on medical equipment. It prints out results over a parallel port. Is there any way to have CUPS accept jobs from a parallel port and redirect ...
2
votes
0answers
275 views

Can I make the boot even more verbose than loglevel=7 using kernel parameters?

I have an error when booting on a machine, my machine is stuck with the error message: Booting a command list. I can see this message when I add loglevel=7to the kernel parameters via grub boot ...
2
votes
2answers
411 views

How to permanently enable scl CentOS 6.4?

I installed a newer version of devtoolset (1.1) and was wondering how I would go about permanently setting these to be default. Right now, when I ssh into my server running CentOS, I have to run this ...
-1
votes
0answers
21 views

What package should I install to fix this failed dependency issue? [closed]

I'm not entirely sure which package is missing. It keeps giving me this error. [root@indexunixma /]# rpm -ivh samba3-client-3.6.3-44.el5.x86_64.rpm warning: samba3-client-3.6.3-44.el5.x86_64.rpm: ...
1
vote
1answer
19 views

What are `gom-*miner` processes?

I've got few running processes that eat up all my resources, blocked network and disk I/O, after some time whole computer froze, I couldn't even go to classical non-gui terminal. I've found them ...
1
vote
0answers
12 views

How to route vpn traffic over hostapd-raspberry pi

I have a raspberry pi running hostapd and I am able to connect my laptop as a wifi client to the raspberry bi wifi router. The problem is with the vpn traffic, I cant connect to my office vpn with ...
0
votes
0answers
5 views

AWS dist packages [closed]

while in local getting /site packages. for python , and running in AWS its showing dist packages., and how can I get idea about installing django and the kid things in it.. and work inside that server ...
0
votes
1answer
677 views

Playing or converting .dv4 files in Linux

I need to find a way to playback a number of .dv4 files on Ubuntu 12.04 and Fedora 20, possibly after having converted them to a more conventional format. So far I have managed to convert the files ...
0
votes
1answer
1k views

Add a new user steps for Oracle Linux 5

It's been over 10 years since I last used RedHat (which I believe that Oracle Linux came from). So I cannot remember the steps to create a new user, add them to the appropriate groups, set up their ...
1
vote
0answers
22 views

Loud persistent fan on Linux Mint 17 with discrete graphics card

I've been running Linux Mint 17 for the last half year with no fan problems, but last week the laptop fan turned on and hasn't stopped since. I hadn't messed around with bumblebee or nvidia drivers ...
1
vote
1answer
36 views

Remapping Caps Lock to Compose

Because I now and then need to use scandinavian letters despite using US Dvorak as my layout, I would like to use Caps Lock as a compose key. (I don't need Caps Lock at all, I'm not a forum troll) ...
1
vote
1answer
364 views

Fork / Cannot allocate memory

I have a 64-bit server running linux 3.x that reports "bash: fork: cannot allocate memory". This server has plenty of RAM (64G) and swap (128G) and I cannot see a particular process being the culript ...
3
votes
1answer
49 views

Remount a busy disk to read-only mode

I want to force a disk partition to read only mode and keep it read-only for more than 30 minutes. What I have tried: mount -o remount,ro (partition-identifier) (mount-point) -t (filesystem) ...
0
votes
0answers
13 views

Increase multipathed filesystem journaling threads?

We have some hardware which is utilizing multipath to speak to backend storage. A situation has been observed which some are attributing to too few journaling threads being allocated by the kernel. ...
1
vote
1answer
13 views

Mount iscsi drive at boot - system halts

I am running Oracle Linux 7 (CentOS/RH) in a Virtual Box VM on a Mac with OS X 10.10. I have a Synology Diskstation serving as an iscsi target. I have successfully connected to the Synology, ...
3
votes
0answers
21 views

How to generate graphs from lmbench results?

I need to use the lmbench benchmarking tool to get the system performance statistics. I am able to execute and run the results. In the results folder this is a MakeFile with this information # ...
0
votes
1answer
47 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
33 views

Saving power on a linux cluster

I would like to buy a cluster (30-60 nodes) for work and install linux on it. The cluster should have a queue system like PBS, for instance. It should also be capable of doing parallel computation. I ...
1
vote
0answers
10 views

Using apprarmor/grsec to gain capabilities for file

I know that using apparmor, one can reduce process capabilities(7). But is it possible to gain them? For example: ping requires CAP_NET_RAW. It's binary has no suid set and doesn't have any file ...
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 ...
0
votes
1answer
29 views

What is the purpose of flag kern.geom.debugflags in FreeBSD?

My question is as stated above, on a FreeBSD system, what is the use of the kern.geom.debugflags ? I see it written before the command to write on to a disk. sysctl kern.geom.debugflags=16 What ...
1
vote
1answer
37 views

Limit max thread use for multithreaded java app

I have downloaded a .jar file and am using java with it, and it seems multithreaded, which is great ... unless I don't want it to be multithreaded, or unless I want to use only N threads with it. Is ...
1
vote
2answers
36 views

Systemd dependency tree saving

As I know systemd stores dependencies between services in unit files. I need to know how systemd behaves on boot: Does it load unit files from specific paths and recalculate dependencies every time ...
0
votes
0answers
25 views

How should my program behave to handle errors? [migrated]

I have written a program (with code from SO) that does printenv | sort | less and now I should implement error-handling. How can that be done? The program should fail gracefully, for example when ...
5
votes
1answer
206 views

GNU/Linux swapping blocks system

I have used GNU/Linux on systems from 4 MB RAM to 512 GB RAM. When they start swapping, most of the time you can still log in and kill off the offending process - you just have to be 100-1000 times ...
1
vote
0answers
27 views

Svn Error on import time no space left on device

When I import file in svn repository I get following error . svn: E000028: Failed writing updated file: No space left on device Following is mine diskspace and inode details # df -i ...
14
votes
6answers
69k views

Why does find -mtime +1 only return files older than 2 days?

I'm struggling to wrap my mind around why the find interprets file modification times the way it does. Specifically, I don't understand why the -mtime +1 doesn't show files less than 48 hours old. ...
0
votes
1answer
956 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 ...
0
votes
2answers
51 views

SSH authenticity couldn't be established

Last night I SSH'ed to different systems.... one system/SSH reported that the "authenticity of HOSTNAME couldn't be established......." and it asks if I want to continue or something, I didn't and ...
-1
votes
1answer
16 views

separate the system & hardware clock in linux

I want to separate the system clock from the hardware clock which I synchronize first. But now I want to change both: hardware clock with the UTC time & system with the GPS time.
0
votes
0answers
25 views

Connect multiple bluetooth devices to multiple bluetooth usb adapters

I have lots of bluetooth devices that need to connect to a Raspberry Pi. Currently I have a scanner script that locates and connects to each device. My current limitation is the fact that a one ...
0
votes
0answers
23 views

I chowned / recursively. How can I restore default permissions? [duplicate]

In a completely boneheaded moment, I ran the following command: #chown -R user:usergroup . What I failed to realize is that I was in the root directory, not in my target directory. Now the entire ...
0
votes
0answers
25 views

How to forward range ports in my linux server?

Is there any tools to do range port forwarding in my CentOS system? Just like any ports from 8000 to 9000 shoud be forwarded another IP's 8000~9000 respectively. I know it's easy to be done in Router ...