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

0
votes
0answers
14 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 ...
0
votes
0answers
25 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? ...
0
votes
0answers
5 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
0answers
15 views

forward function and variables into sudo su - <user> <<EOF

my question is simple but I'm not possible to find out solution. I have declared function and variable in bash/ksh and I need forward them into sudo su - {user} << EOF: #!/bin/bash lof_f() { ...
-1
votes
0answers
8 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 ...
0
votes
1answer
16 views

CROSS compilation of BTRFS file system

We are developing Beaglebone black based custom board, We are planing to use eMMC for storage. To decide the file system on the eMMC we want to cross compile Btrfs user space utility, Does anyone know ...
5
votes
2answers
379 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
12 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 ...
2
votes
0answers
8 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 ...
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 ...
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
18 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 ...
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. ...
1
vote
0answers
11 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, ...
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 ...
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 ...
2
votes
0answers
23 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
24 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 ...
2
votes
1answer
13 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 ...
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
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 ...
0
votes
0answers
27 views

Using NVIDIA instead of Intel causes a different theme

My current setup is a laptop with an NVIDIA Optimus graphics card running Ubuntu 14.10 with Cinnamon as my desktop environment. I usually use the Intel card because of the reason I'm asking this ...
1
vote
2answers
31 views

do not show error if file doesn't exist on copy, without sending to dev null

I want to avoid my script posting an error if I try to cp a file that does not exist. However, I would like error messages to print out for any other error, such as insufficient permissions. This ...
1
vote
1answer
30 views

ls -lh vs du -sh * for file sizes within a directory

This might be a simple question to ask but I guess I am little confused in terms of 2 commands so I need help In a particular directory I have some files. If I want to check the size of the files, I ...
2
votes
1answer
52 views

sudo - ubuntu 12.04 [on hold]

I am running a Ubuntu 12.04 LTS server. Today I have been doing some maintenance to the server, and a security audit. I realized that sudo is not working the way I expected it to. In the default ...
2
votes
0answers
10 views

Cross-NFS file move adds ACL

Moving a file from one NFS4 mount to another adds an ACL. The reason, if I understand the process correctly, is that mv queries the system.nfs4_acl extended attribute of the source file, and uses the ...
3
votes
0answers
20 views

Does Samba 4 actually respect Unix file acls?

After researching the subject on the internet I drew a conclusion that Samba should take into account Unix file acls. During my tests I found the opposite. Only Unix file mode bits are respected, and ...
1
vote
1answer
32 views

Why doesn't Linux remove route from routing table if interface is physically down?

As seen below, Linux(3.7-trunk-686-pae) keeps route to 10.10.12.64/28 in routing table although the interface is physically down: root@kali:~# ip addr show dev eth0 2: eth0: ...
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 ...
0
votes
0answers
18 views

Enabling Integrated Graphics card and Nvidia Graphics card

I have IGC (intel) and Nvidia graphics card. currently my progress bar during boot time displays on the monitor connected to IGC (intel) . requirement : Progress Bar during Boot time should display ...
-5
votes
0answers
41 views

Is there really no need an antivirus for Linux [on hold]

I heard about Linux won't need any kind of antivirus. Is it true?
-1
votes
0answers
24 views

Best version of Linux for Java developer [on hold]

I'm a Java developer and want to choose the best flavour of Linux for my developing purpose. I've grown tired of Windows and I know Linux is the best alternative platform. I'm familiar with Java SE ...
0
votes
0answers
13 views

I overwrote OSX with Linux by accident [migrated]

So here is what happened. I installed Ubuntu onto a flashdrive hoping to be able to dual boot Linux/OSX. I burned Ubuntu onto the flash drive on my desktop PC (windows 8.1) with universal USB ...
4
votes
1answer
36 views

what's the difference between page cache and buffer cache?

In linux OS, you can type command "echo 3 > /proc/sys/vm/drop_cache" to release memory, and you can type command "sync" to release the memory. And in linux kernel there are two kind of cache, one is ...
2
votes
1answer
30 views

Generic shared resource locking techniques - is flock the solution?

I need to implement a locking scheme so that multiple processes can share a set of resources, while a "special" process can obtain exclusive access to that set of resources. These are batch ...
2
votes
1answer
12 views

(S/D)NAT over NF hooks

Could someone help on explaining the advantage of iptables NAT over the netfilter hooks. Say suppose, instead of using NAT if we create custom kernel module to bind handler with netfilter for PRE/POST ...
1
vote
0answers
51 views

Fedora 21 won't boot anymore; Computer wants me to perform MOK management

I have Fedora 21 installed. Last time it booted, I changed Gnome theme. Then I restarted and now I get following: If I select to continue boot, computer restarts and I get this window again. If I ...
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 ...
0
votes
0answers
14 views

ipmitool set idrac mode

I have a DELL server R610, on this server there is a RHEL 6.4 This server has an idrac entreprise. I would like to configure the idrac from command line, avoiding reboot. I read on the man page of ...
6
votes
2answers
80 views

How to show line numbers in vim on the right side of the buffer?

I have set nu in my .vimrc which shows line numbers on the left side of current buffer. I would like to see line numbers on the right side. How to achieve this? UPDATE: This should also work for set ...
2
votes
2answers
67 views

How to find a specific file and move it to a specific directory?

How to find a specific file, and move it to the specific directory /var/tmp? For example I want to find the file 0914_Jul-2014.gz. Remark, the file 0914_Jul-2014.gz, is under ~300 subdirectories: ...
1
vote
0answers
26 views

X won't start on its own after kernel update [on hold]

I built a Fedora 20 home theater pc following the Fedora 20 nVidia Drivers Install guide. It did work well. However after yum update all ( in which the kernel was updated to 3.17 ) the machine boots ...
1
vote
1answer
18 views

creating a custom service on ubuntu

I am setting up an ap called scumblr (https://github.com/Netflix/Scumblr/wiki) The final step calls for initiating the server using the following 3 commands: redis-server & ...
1
vote
0answers
40 views

Trouble switching from DHCP to a static IP on Kali Linux

When I installed Kali Linux 64bit, I forgot to set up a static IP address, and now DHCP determines my address with my router. I have already modified /etc/hosts and /etc/network/interfaces to declare ...
0
votes
0answers
12 views

install grub from grub bootable cd-rom

I want to install grub from grub bootable cd-rom. I found the instruction to make grub bootable cd-rom at ...
0
votes
1answer
37 views

Rename files in selected folder in Linux [duplicate]

Command for rename file as IMG0001 to 4R0001 in folder for f in *;do mv "$f" `echo "$f" | sed 's/IMG/4R/g' `; done AND I just want rename selected folder /tmp/2014/1201 (rename files) ...
0
votes
1answer
28 views

Backing up Linux server to Windows domain

I'm maintaining a small Linux workstation/server in a Windows-domain-based environment. Apart from being in the same network, the Linux computer is not connected to the domain. Until now, I'm using a ...
0
votes
1answer
30 views

Make own graphical server [closed]

I had experience to work with framebuffer and found it pretty well to make own graphical applications. But the problem is that framebuffer is too slow. My goal: 1) Make a new tty which will work for ...
0
votes
1answer
42 views

How to copy a file with scp via another server

I have three machines. The local machine L, Server1 A, Server2 B. L is able to connect to A A is able to connect to B L is not able to connect to B I want to copy a file from L to B without ...
1
vote
0answers
23 views

A modern, easily configurable DE [closed]

I am looking for a linux desktop environment with modern look and feel and can be configured programmably (or has the capability of easily exporting and importing configuration) Does it exist?