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

1
vote
2answers
26 views

data recovery from form an accidental format on ext4 partition

When I was installing Mint Debian edition unlike the classic edition, the installation automatically formated my home partition when I did not specify to format. So the formatting previously was ext4 ...
0
votes
1answer
28 views

Understanding NAT concepts

I began learning networking on Linux, and I am looking for a way to associate a particular IP to a particular MAC address (i.e. a way to edit the NAT table?). Actually I am trying to assign some IPs ...
1
vote
1answer
22 views

Cluster Lock Manager without TCP/IP

I have 2 linux sharing same SAN disk LUN. There are many cluster files systems to manage lock/unlock. But all of them are using a seperate TCP/IP comminication. But I need a cluster lock manager ...
0
votes
0answers
35 views

As a root user I cannot make any operation on files that I am owning [closed]

I have this interesting situation: [root@server home]# id root uid=0(root) gid=0(root) groupes=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) So far my root user seems to be ok to me. ...
0
votes
1answer
40 views

How can I write an alias for cd such that it will fire ls after going into the directory to which I just cd'ed into? [duplicate]

Lets say I want to do cd home and then ls -lrth. I want these two things combined into a single command. I tried writing an alias, but it didnt work. Can you help me ?
-2
votes
0answers
29 views

Good *NIX Books [closed]

I'm a fairly competent Linux system administrator. I can easily get by on what I know without having to reference online sources too often. I'd like to push my understanding much further. What books ...
0
votes
0answers
24 views

Can I share a Virtual Machine between Ubuntu and Windows 7?

I have a Ubuntu Server virtual machine configured on Windows 7 which has a NAT and Host-Only network adapter configured. I have ports forwarded on the NAT connection in order for my host (W7) to ...
-2
votes
1answer
108 views

`ls ..` and `cd ..;ls` command shows different output [closed]

I use the command ls in the same position, but it shows different output. From /usr/local/services/video_sphinx-1.0. ls -a and ls -a ../video_sphinx-1.0/ command shows different files. Why? ...
2
votes
0answers
18 views

Debian PowerPC Linux installation on IBM IntelliStation POWER 285 9111 fails on yaboot

I'm trying to install Debian Wheezy here. I have two hard drives. One is running AIX well. I'm trying to get Linux to run from the other one. The installer boots fine. Automatic partition creates a ...
2
votes
1answer
33 views

Setting image for i3-lock: “Could not load image x: out of memory”

I use this command for locking screen: i3lock -i /home/freyja/pics/owl.jpg The screen is locked, but there is no picture (only white background). When called from console the command says: Could ...
12
votes
3answers
757 views

Do different distros (but same kernel ver) have same hardware support

As far as I know the device drivers are located in the Linux kernel. For example let's say a GNU/Linux distro A has the same kernel version as a GNU/Linux distro B. Does that mean that they have the ...
0
votes
0answers
16 views

Linux Amateur Radio device connected to PC

The PC is running Windows 7. What would be the best Network solution (VPN, SSH, DDNS, etc) when connecting these two devices? I am wanting my radio to be able to authorize my device easily without a ...
1
vote
0answers
7 views

EACCESS writing /proc/self/oom_score_adj [migrated]

I'm trying to compile "slock" to implement some tweaks. It fails to start, on this: #ifdef __linux__ #include <fcntl.h> static void dontkillme(void) { int fd; fd = ...
0
votes
0answers
31 views

custom built kernel module problems

I have been struggling to find a solution for loading module ath9k into the kernel and I have met a dead end. The kernel is 3.17.1 taken from kernel.org and I am compiling it in Ubuntu Trusty (14.04) ...
1
vote
1answer
17 views

Edit/Remove CLI System Notice

I'm wondering how I can change the default system message that shows when on the CLI from Ctrl+Alt+F1. By default it shows the message Welcome to <name> * Documentation: <url> I was ...
0
votes
0answers
20 views

Set default editor for 'info coreutils' [duplicate]

I'm using Ubuntu 14.04 and have this in my .bash_profile: export EDITOR=/usr/bin/vim export VISUAL=/usr/bin/vim man respects this setting but info always opens in something else, nano or it's own ...
2
votes
2answers
58 views

Is it possible to see remotely what physical display is showing on linux machine without X?

We can use VNC to connect to remote X session but how can I remotely connect to that session which is displayed on physical monitor if remote linux machine does not have X installed? UPDATE to make ...
1
vote
1answer
25 views

IP Camera with embedded Linux

I have purchased an IP Camera from Ebay (http://www.ebay.com/itm/151349669865). When I read the description of the camera, it said it has an embedded linux in it. I though that I will be able to ...
0
votes
0answers
7 views

how to connect to VPN only when ethernet is down and 3g is up

is the following possible and how could it be implemented. set up /etc/network/interfaces file so the VPN "tunnel" only connects when the ethernet cable is disconnected and the 3G interface "ppp0" is ...
1
vote
3answers
89 views

Print total free memory from `free -m`

free -m currently puts out something like this. I would like to know using grep/awk how we can get the total free amount. i.e. 9083
1
vote
2answers
26 views

How to connect to a Windows server on Ubuntu?

At work I usually run Windows 8 but I'm looking to use Linux since I'm mostly a Linux user. How do I connect to it usually? I just type //MIKE-SERVER then hit ENTER key in address bar of a file ...
2
votes
1answer
33 views

What's the correct way to authenticate a user without PAM?

as my related question doesn't seem to get much love, here another one: What's the proper way to authenticate a user via username/password prompt in Linux nowadays? In principle, I suppose I would ...
0
votes
0answers
28 views

Samba 4 has high CPU usage when accessing mapped drive through Windows

I have noticed that when I access my Samba share from Windows, the smbd daemon will always use aprox 10-20% CPU - no matter if the share is used or not from Windows. Even if I close the share/window, ...
1
vote
0answers
29 views

Debian Jessie: My LAN is not working!

I can connect to the Internet without a problem by using wireless networks. I have a DSL connection on defined which can connect to the Internet when LAN is connected. When I plug-in network cable, ...
1
vote
3answers
43 views

Fedora 20 Gnome upgrade - cannot login anymore

I started to use Fedora with with Gnome 2x. I started to upgrade to gnome 3x when I had some eletric energy problem in my build and my machine turned off. Now I cannot log in any more - meggage "Oh ...
1
vote
1answer
18 views

Automatically pauseing rsync if target is full

I need to transfer 80gb's of unsorted text documents from one computer to another and all I have is a 32gb USB. Is there an option to make rsync automatically pause when the USB is full without losing ...
1
vote
2answers
44 views

Doubts about the Buildroot configuration

How can I update my Buildroot without losing my configuration, packages, etc.? And how can I update the Linux kernel that is configured? Is it just change the url from git repository in menuconfig? ...
1
vote
0answers
14 views

Manipulation of the backlight in a embedded linux device is unstable

I want to control the backlight value of a LCD monitor in a embedded linux device. Doing researches throughout the internet I found a couple of references saying that the file called backlight inside ...
4
votes
1answer
77 views

Executing a “fork bomb” safely

We've all seen the "fork bomb" that will render a host non-responsive, even if executed in an unprivileged shell: Warning: Do not execute the following shell script. Just don't. :(){ :|:& };: ...
2
votes
1answer
45 views

Getting an already installed Android x86 partition to run on KVM

(Originally posted on SuperUser here, but posted here due to lack of responses.) I have Android installed on sda3, and it boots fine when loaded from Grub with the following commands: set ...
-1
votes
1answer
42 views

how to patch bash vulnerability (shellshock) bug on RHEL? [duplicate]

We have over 10000 servers to patch for bash vulnerability (shellshock) bug. Now my question is what is the command to patch this bug ? And how we can check whether the patch has been installed and ...
3
votes
0answers
24 views

high precision subsecond cronjob replacement

I am looking for a cron replacement which could run subsecond schedule, is there have any "still alive" project which serve this purpose? Currently running Ubuntu 14
2
votes
0answers
31 views

How to determine the wordsize in Linux kernel programming? [closed]

In userspace code, the macro __WORDSIZE is used, included in <bits/wordsize.h>. However, when I do Linux kernel programming, the __WORDSIZE seems not available. If <bits/wordsize.h> is ...
5
votes
1answer
46 views

List all files that are present in the cache

This question answers to the question on how to find the what is part of cache. However, in the fincore executable you have to pass the filename to check if it is part of cache. Is there a tools or a ...
2
votes
1answer
40 views

How can I know which organisation a special command line tool is belong to?

Frequently we use command line tools to do fancy things in UNIX like system; many of them have a manpage and typically we can know which orgnization/person owns the copyright. For example, on Mac OS X ...
1
vote
0answers
9 views

Can I run linux with Windows EFI partition or do I need to mount /boot to the EFI Partition?

New to Linux here and im currently trying to set up a dual-boot for windows and linux on my laptop. However, I was wondering if I was still required to mount /boot to the EFT partition if im dual ...
0
votes
1answer
29 views

Script a list of users who have been logged in for more than 24 hours?

I am attempting to create a simple script that will produce a simple list of users who are logged into a system for longer than 24 hours. I've seen the w command is good for being able to view idle ...
0
votes
1answer
19 views

module prints to kernel log with delay

I've created a basic linux kernel module, which does the following: static __init int init(void) { printk(KERN_DEBUG "Banana"); return 0; } And of course: module_init(init); Strangely, I ...
2
votes
1answer
64 views

Mounting alternate devices (with different mount options) at the same mount point

I have a server (running Ubuntu 14.04) that has a hot-swap drive bay. I typically use the hot-swap bay to mount one of a bunch of loose hard disks that I shuttle large scientific datasets around on. ...
0
votes
0answers
11 views

shared libraries error trying to run executable

I'm trying to run an executable off the command line in a linux cluster environment. The error message I get states libssh2.so.1: cannot open shared object file: No such file or directory I ...
1
vote
0answers
25 views

GFP mask of 0x200da on a 64-bit system?

Recently, an OOM showed a GFP mask of 0x200da on a 64-bit system. How is that possible? 0xa would suggest we are talking about Movable Highmem, see: ...
0
votes
1answer
63 views

Route Client Traffic Through VPN Tunnel

I have configured a vps following this tutorial, the server and client are successfully connected and can ping each other, server is at 10.8.0.1 and the connected client (android-OpenVPN Connect) get ...
1
vote
0answers
22 views

How can I limit or delay the write speed to specify directory?

I want to limit the write speed and limit to specify directory. Make this directory flakey. Make this directory error for can't write data to it. I have user dmsetup to create the device mapper with ...
1
vote
2answers
27 views

How can a process appear to have different name in ps output?

recently I had to clean up a hacked server. The malicious process would appear as "who" or "ifconfig eth0" or something like that in "ps aux" output, even tough the executable was just a jumble of ...
1
vote
1answer
33 views

Linux server Cpu,memory,swap,run que value to display in percentage

how to write a script to get a linux server below details: CPU |Memory |Swap |Run Queue Peak(%) Relative Avg(%)|Peak(%) Relative Avg(%) ...
1
vote
0answers
10 views

Gargoyle repeater bridge channel hopping

I have the Linux-based Gargoyle firmware running on an old TP-Link router, serving as a Repeater bridge to extend the range of a WIFI access point. Do I need to lock the original access point to a ...
1
vote
2answers
33 views

How to monitor use of Huge Pages per process

I'm trying to determine which process is using a large number of Huge Pages, but I can't find a simple Linux command (like top) to view the Huge Page usage. The best I could find was $ cat ...
0
votes
1answer
28 views

having trouble installing Kali Linux on GRUB

Does anyone know the specific steps on installing Kali Linux through the grub bootloader. I have what should be a kali linux bootable usb and I'm trying to install it on a Lenovo 64-bit intel laptop ...
0
votes
2answers
48 views

How to switch between tty and xorg session

My xorg session is on tty1 and if I want to issue a command from tty (because I cannot do it from xorg session for some reasons), I press Ctrl+Alt+F2, for example, and type a command. But I cannot ...
1
vote
0answers
56 views

Port Forward For OpenVpn

I have setup a OpenVPN server on CentOS 6, and it starts ok when i /etc/init.d/openvpn start it shows me Starting openvpn: [ OK ] so far so good, but ...