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

5
votes
2answers
392 views

Difference between /run and /var/run

Is there any difference between /run directory and var/run directory. It seems the latter is a link to the former. If the contents are one and the same what is the need for two directories?
0
votes
1answer
577 views

How to compute Linux slab memory leak in GNU/Linux ( proc/slabinfo ) of running process

How to compute Linux slab memory leak in GNU/Linux ( proc/slabinfo ) of running process ? I'm want to free usage is not working properly . I want to way how to check Memory Usage & Memory Leak ...
0
votes
0answers
19 views

How can I embed Linux on a USB stick? (not a bootable drive!) [on hold]

I want to create a USB stick that, when plugged into a computer, starts up and runs its own os in parallel, just like regular 3g USB sticks do. Obviously, I want its system to be Linux! But all I can ...
3
votes
5answers
9k views

How to set DNS resolver in Fedora using network-manager?

I want to try out Google public DNS. For this I need to change the nameserver address. I know it's in the file /etc/resolv.conf, but whenever I start network-manager, it overwrites the values in that ...
1
vote
1answer
993 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
0answers
28 views

Correctly determining the REAL linux memory usage

I have a curiosity about memory management in Linux: It is possible to determine the use of real memory? (That memory that is being used actually, without being allocated only). How can I do it? ...
1
vote
0answers
6 views

Where does Puppet's environment come from?

Self-training on puppet and wrote the following manifest: class bratch::test { file { '/var/cache/tempFile': owner => 'root', group => 'root', mode => '0644', source ...
1
vote
3answers
1k views

Color of the fonts in my remote terminal screen when using VI in linux

I notice one of my linux remote login window shows color in VI editor interface but another window doesn't show color. These 2 windows are remotely connected to 2 different server IP addresses. May ...
2
votes
1answer
15 views

Run only the Linux kernel and user programs [on hold]

is it possible to run only a Linux kernel on a system which will load my programs instead of an operating system? I want to work with a Raspberry Pi with a Linux kernel. I am trying to create a ...
4
votes
1answer
55 views

Migrate an unprivileged LXC container between users

I have an Ubuntu 14.04 server installation which acts as an LXC host. It has two users: user1 and user2. user1 owns an unprivileged LXC container, which uses a directory (inside ...
6
votes
1answer
372 views

Is there a tool(!) to list assigned subuid and subgid values for users?

The question is basically in the title. usermod -v (--add-sub-uids) and usermod -w (--add-sub-gids) can be used to manipulate the subuid and subgid ranges for a user account, but there appears to be ...
38
votes
2answers
46k 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?
-1
votes
0answers
9 views

Jar file size mysteriously reduces to 0kb [on hold]

I have a jar file deployed on Centos 5.x, Java process runs fine, but after some time, a few months perhaps, the file size goes to 0. So when you have to restart the process due to any reason, it cant ...
1
vote
1answer
956 views

How to access u boot environment from linux?

How can I access and change the u-Boot env variables in linux. Using the u-boot/tools/env directory in u boot directory: u-boot$ make env Which created the executable file fw_printenv. I copied ...
0
votes
1answer
538 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 ...
1
vote
2answers
1k views

Where / How to install CentOS 7 for 32 bit system?

I have windows 7 with 32 bit system, and previously I used CentOS-6.5-i386-minimal to run centos on my virtual box, but now I would like to run CentOS 7 and it seems (if I am not mistaken) that there ...
0
votes
1answer
13 views

frequent linux mint hangs

My Linux Mint system (17 Cinnamon, lenovo g565) hangs up frequently during work (say, 2-4 times a day). It may look different white screen black screen screen freeze Maybe some of these symtoms ...
0
votes
1answer
32 views

Specify target file system [on hold]

How can I specify which file system the file be stored, in linux command line, after sshing to a machine? Several file systems are mounted, and my goal is to use one of them to store my file (in ...
1
vote
3answers
3k views

iwlwifi error, then WLAN is very slow and can't see other WLANs

I have a wireless interface Intel 1030 on a Dell XPS 15 laptop. lspci says: 03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak] (rev 34) Recently I noticed that ...
2
votes
0answers
10 views

X forwarding from a mac to Linux fails

I have been having problems recently while trying to ssh into linux servers (Ubuntu 14.04) from my mac (OSX Yosemite 10.10). This used to work fine until my latest update, where I systematically get a ...
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 ...
15
votes
4answers
19k 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 ...
1
vote
1answer
27 views

How do I conserve the userns UID/GID mappings when archiving an LXC guest?

I'd like to archive an existing LXC container that has been configured to run as unprivileged LXC container (see this question). How can I conserve all the file system meta-data that is used to store ...
4
votes
3answers
93 views

Disallow File IO for a process except for FIFOs

How do you start a process that cannot do any file IO (opening / closing files, creating / deleting files, reading / writing files, etc.), except to read and write to pre-created FIFOs? (chroot will ...
0
votes
0answers
58 views

Cannot go in sleep mode in Linux Mint

I'm using Linux Mint 17.1. Whenever I try to put my laptop in sleep mode, it seems to do it for a second then wake up immediately. I've checked the logs but cannot see why could wake it up right away. ...
0
votes
0answers
19 views

Unable to trap “CTRL+C” within kickstart “%pre” bash script

I'm using an interactive pre-installation bash script in a CentOS-7 kickstart image. I was trying to use "trap" to catch user ctrl+c (SIGINT) and run some code as follows: trap_ctrl_c() { #Some ...
2
votes
1answer
459 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 ...
2
votes
0answers
28 views

Size Range of ext4 Filesystem Journal

The minimum and maximum sizes respectively for the ext3 filesystem journal are 1,024 blocks and 102,400 blocks. Similarly — what are the minimum and maximum sizes for the journal on an ext4 ...
0
votes
0answers
10 views

how to define the top dir in automake system?

I usually use a typical steps to generate the makefile, and firstly I use the "build.sh init" to generate the configure file, and then I use "configure" to generate the makefile with makefile.am file. ...
0
votes
0answers
30 views

Parameter passed to Shell script is not getting populated under printf command [on hold]

I am calling a script and building html table out of it. The val1 which i am passing is being captured in variable cluster. But its not getting printed in output. sh script.sh val1 > out.htm ...
1
vote
0answers
12 views

Xinerama misbehaving - drags to wrong screen

I am in the midst of setting up a new Debian workstation. Using one AMD HD 7870, I am running 3 screens. It took a little doing to get to the point where all three screens were showing up correctly, ...
2
votes
1answer
625 views

php5.6.2 installation with httpd24 ( apache version 2.4.10 ) on centos/rhel

using this repo : http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm for php installation , and for apache i am using amazon linux repo current ...
0
votes
0answers
17 views

How does one set up a Linode with a certain number of inodes?

Normally when one creates a Linode, they choose a plan, and then deploy a Linux distribution, and choose how much of the disk to allocate. Normally there is a swap partition and a main partition. But ...
1
vote
1answer
548 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. ...
2
votes
0answers
24 views

tmux ignores the configuration files

tmux ignores the configuration files: both /etc/tmux.conf and ~/.tmux.conf. Even I pass the path to the configuration file, using tmux -f path/to/tmux.conf it still doesn't load it. The configuration ...
1
vote
0answers
25 views

How do I combine two keys to act as FN key with xbindkeys?

I have been hammering my head on the wall for the past two days trying to figure out a way to combine two keys to execute a function with xbindkeys. To make a long story short I have a chromebook ...
8
votes
2answers
21k views

Mount cifs Network Drive: write permissions and chown

I have access to a cifs network drive. When I mount it under my OSX machine, I can read and write from and to it. When I mount the drive in ubuntu, using: sudo mount -t cifs -o ...
1
vote
3answers
2k views

mount.cifs fails while smbclient succeeds

I'm trying to mount a NetApp CIFS share to one of our servers and I keep getting "Permission Denied" printed to stderr and NT_STATUS_WRONG_PASSWORD printed to the running dmesg. root@xxxehpvld05 ~ $ ...
1
vote
1answer
2k views

Bridge interfaces with Vlan on Linux based access point

I have a Linux based wireless access point. It has eth0 interface for ethernet, ath0 for wireless and br-wan as a bridge between the two. bridge name bridge id STP enabled ...
0
votes
1answer
45 views

tar & gzip the same folder but get different size [on hold]

There are two identical folders on two external hard disks. Two hard disks are brand new with the same format I tried du -s to check the size of both folders. The sizes are the same. The archives ...
10
votes
5answers
11k views

How to find power draw in watts? [duplicate]

I've been asked to estimate the power consumption of the servers I run for my laboratory. I thought and I'd ask if there was some handy linux commandline to get the power consumption of the server. It ...
2
votes
2answers
514 views

setuid programs don't seem to run setuid in TinyCore Linux

I want to demonstrate the vulnerability of setuid programs using the TinyCore Linux live cd. That is, I craft a special program, with special permissions, so that it runs as the owner of the file ...
0
votes
0answers
15 views

Problems with USB microphone ARCHLinux

My USB mic in webcam in Skype not working (cam works fine). I use Arch Linux with alsa. I set up pulseaudio but then I removed it because it is not stable. cat /proc/asound/cards 0 [SB ...
1
vote
2answers
1k views

running kernel on QEMU

I face this message: Failed to execute /initKernel panic - not syncing: no init found. Try passing init=option to kernel. I am using this command line: qemu-system-x86_64 -hda disk.img -kernel ...
1
vote
1answer
854 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 ...
0
votes
2answers
503 views

Removing a long string from php files - using grep and sed?

I have encountered some malware on my Linux server, and am trying to remove it from many php files. I've tried endlessly with grep | sed and grep | tr and couldn't even erase a simple text string, ...
3
votes
1answer
655 views

Linux Home Firewall

I was recently delving into thoughts of building a small home server to run random things off of (maybe a TF2 server). Thinking about this further I realized I would need to get a better firewall ...
1
vote
3answers
763 views

How to find all disks & their size before using them?

I need to know the following information, before using the harddisk to create logical volumes or database.. Any perl modules or snippet would be of great help. how many hard disks are presented to ...
2
votes
1answer
14 views

Make a request through vpn interface

I want to be able to make request through a specific network interface, like this: ping -I eth0.1 google.be ping -I eth0.2 google.be This example works on my multihomed OpenWRT router. I now want ...
1
vote
0answers
10 views

rpmbuild different path for sysconfdir

I am building rpm for opensips and i want to install this package in /opt/opensips path instead of default system path I have define following in my SPEC file %define _prefix /opt/opensips ...