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

3
votes
0answers
18 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 ...
6
votes
2answers
71 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 ...
0
votes
0answers
16 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 ...
1
vote
2answers
1k views

Linux empty buffer cache command permission denied

I'm using the following commands to flush cache: # sync; echo 3 > /proc/sys/vm/drop_caches # sync; echo 2 > /proc/sys/vm/drop_caches # sync; echo 1 > /proc/sys/vm/drop_caches When I use ...
2
votes
1answer
359 views

LFS 7.5 - Glibc-2.19 compile errors at section 6.9, are they fatal to my LFS build?

I am using a host Ubuntu 14.04 system, and I am currently going through the Linux From Scratch guide here. At section 6.9, http://www.linuxfromscratch.org/lfs/view/stable/chapter06/glibc.html, after ...
-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 ...
-5
votes
0answers
40 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?
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 ...
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 ...
5
votes
1answer
1k views

What is SSTP vpn server and how can I run one?

I've read a couple of L2TP and PPTP tutorials on the net and there are just dozens of "running PPTP/L2TP on Linux" guides available out there and I successfully made packages like open-swan or pptpd ...
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 ...
1
vote
0answers
38 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 ...
1
vote
1answer
15 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
50 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
2answers
66 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: ...
14
votes
6answers
15k views

Check if folder is a mounted remote filesystem

What is the best way (reliable, portable, etc.) to check if a given folder is on a mounted remote (nfs) filesystem within a shell script? I am looking for a command that would look like: ...
1
vote
1answer
15 views

Alpine: work with some e-mails

How can I setup alpine to use more than one mail address? That SMTP Server parameter in config looks like an global. Can someone help me? NOTE: At least for both e-mails on the same server. Thanks.
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 ...
1
vote
1answer
438 views

Why system call hooking produces different result everytime in Linux/Android 2.6.29?

I have implemented system call hooking for Android 2.6.29 kernel through a LKM module. I am tracing down one Android app for system calls. But interestingly, it returns different results every time I ...
4
votes
2answers
5k views

How to limit application memory usage?

I have spend 2 hours reading questions about this matter, and still there is some misunderstanding. I have this process: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1452 0.4 1.8 ...
8
votes
2answers
344 views

How to limit the total resources (memory) of a process and its children

There are plenty of questions and answers about constraining the resources of a single process, e.g. RLIMIT_AS can be used to constrain the maximum memory allocated by a process that can be seen as ...
2
votes
5answers
5k views

How to install Linux on a Lenovo ThinkPad T400

I want to completely format my computer and replace my current OS with Linux. How should I go about doing this? Particularly, how do I handle finding all the device drivers I'll need? I'm using a ...
1
vote
0answers
25 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 ...
5
votes
3answers
7k views

Adding a Column of values in a tab delimited file

How can I add a Column of values in a file which has a certain number of rows. I have a input file like this: Input file: SPATA17 1 217947738 LYPLAL1 1 219383905 FAM47E 4 77192838 SHROOM3 4 ...
9
votes
2answers
520 views

How do I force a user to change a password at the first time login using ssh?

I'm trying to force a newly created user to change a password at the first time login using ssh. For security reasons I want to give him a secure password until he logs in for the first time. I did ...
0
votes
1answer
482 views

VPN Setup Errors

I'm trying to install a VPN on one of our servers for use within my campus so that we can play some games, but I appear to be getting errors when I try to connect, as shown below. Not quite sure about ...
0
votes
0answers
11 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
36 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) ...
1
vote
1answer
51 views

How to enable using commands on remote host using ssh without password?

i set up to use ssh between two hosts without password. ssh log in is working fine but execute commands failed with the below erro: **isn't allowed to be executed with process or redirect ...
1
vote
1answer
448 views

Determine whether kernel built-in driver supports a device

I'm trying to find a way to accurately determine whether all the hardware on some system has a valid driver installed either via a kernel module or built-in to the kernel. I'm working with RHEL 5.5 ...
0
votes
1answer
965 views

How to execute Netscaler commands through a remote machine via SSH connection

I have been trying to execute some NetScaler commands like "bind" & "unbind" through a Linux Box via an SSH Connection. Now the Problem is, Manually we are able to enter & execute commands on ...
0
votes
3answers
44 views

Setting Up VPN Practice/Service Without Access to Private Internet

I use Lubuntu 14.04. I've gotten concerned about encrypting my internet traffic after reading about the problems with public WiFi and intend to start using VPN. However, all my internet usage is on ...
7
votes
6answers
41k views

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

CentOS 5.9 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 ...
2
votes
1answer
30 views

how does hdparm calculate spin-down times?

I have been trying various options with hdparm, like setting the spin-down time to 5 minutes withhdparm -S 60 and setting the APM to 1, but I end up getting a spin-down in less than 5 seconds... How ...
0
votes
1answer
27 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 [on hold]

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 [on hold]

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?
0
votes
0answers
17 views

bootable usb creator without default bootloader

I want a program (a linux command is more preferable) to create a bootable usb drive but all the programs which I have seen have a default bootloader which they install but I want the bootloader in ...
55
votes
16answers
41k views

How can I get my external IP address in bash?

I need to find my external IP address from a bash script. At the moment I use this function: myip () { lwp-request -o text checkip.dyndns.org | awk '{ print $NF }' } But it depends on ...
3
votes
1answer
1k views

Kernel booting stops right after “Uncompressing Linux…”

I'm trying to bring up an ARM-based board. I've got U-Boot working but can't seem to get the kernel to load. Most of the time it only goes as far as: Starting kernel ... Uncompressing Linux... A ...
10
votes
6answers
42k views

How to remove all the files in a directory?

I am trying to remove all files and subdirectories in a directory. I used rm -r to remove all files, but I want to remove all files and subdirectories, excluding the top directory itself. For ...
2
votes
1answer
550 views

How to monitor per user disk usage in Linux

I have local disk with 2T capacity attached to a host. Nearly 60 user home directories are stored on this disk. Currently no disk quotas are enabled. I need monitor the disk usage of individual ...
1
vote
1answer
32 views

SELinux Sandbox Usage

What am I doing wrong in the following, from the man file and internet it looks like this is right. $ echo "hello world" 1> test $ sandbox -i test cat test /usr/bin/cat: test: Permission denied
1
vote
1answer
23 views

unable to open luks encrypted device (wrong password)

I'm using CentOS 7 with a luks encrypted root partition. Usually I have to type my password during boot, but sometimes the system doesn't accept it. It reacts as it was wrong, but it isn't. I did not ...
0
votes
1answer
43 views

Create A Script That Responds To A Password Prompt

I'm writing a shell script that will respond to a prompt. For example, when I execute a file, the executed file will then prompt the user with this: Please enter the password: Then I want the script ...
0
votes
2answers
3k views

Using port 587 with sendmail

I have been using sendmail to send out mails using internally available mail server. But currently port 25 is blocked for security reasons. I would like to know if there is a way to specify port ...
2
votes
1answer
214 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 ...
10
votes
1answer
2k views

Linux: What is a tainted kernel?

Under certain conditions, the Linux kernel may become tainted. For example, loading a proprietary video driver into the kernel taints the kernel. This condition may be visible in system logs, kernel ...