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
24 views

Disable commands for users

I have users that login automatically via ssh to a script I defined instead of a shell. The script basically launches a program which has a shell-escape in it which would allow the user to execute ...
0
votes
2answers
12 views

How I can enable Linux full tickless mode using CONFIG_NO_HZ_FULL?

Where do I enable the CONFIG_NO_HZ_FULL kernel configuration? Is it something I can set in conf files or is it something that has to be enabled when I build the kernel? I am using CentOS with an ...
1
vote
1answer
21 views

determine what service is running a script

I share a dev server with some colleagues, it's a Ubuntu server and we have several scripts there, so basically the usual way we run a process is using a screen session. My problem is that when I do ...
0
votes
3answers
40 views

How can we remove duplicate line without sorting?

I want to remove duplicate lines without sorting lines. Also I want to ignore leading white space. cat test.txt abc def pqr abc xyz def efg then ...
2
votes
1answer
14 views

mutliple default gateways for alias interfaces (SOLVED)

Alias interfaces defined in /etc/network/interfaces cannot have multiple default gateways. Unfortunately I would like to use the same interface to access 2 differents nets, and I need to define 2 ...
6
votes
1answer
167 views

Why is the kernel using the default block driver instead of my driver's code?

I wrote a block driver program which creates a dummy block device (sbd0). I registered all device operations for that block device: (Refer to include/linux/blkdev.h in 2.6.32 kernel source) static ...
0
votes
1answer
8 views

Current pending sector count error

Recently my hard disk show some error message in SMART utility, I have taken a screenshot from error messages. That's something like : Current pending sector count error && Relocated sector ...
1
vote
1answer
23 views

try to dd a rootfs on a partition, but it didn't work - a small error

I guess this is not a big problem, still I can't see what's the matter. I'm building Images for an Embedded Linux (2.6.39) ARM9 System with Buildroot 2013.11, which is booting from an SD card. I was ...
0
votes
3answers
59 views

Open a terminal with a login prompt [on hold]

I want to open a terminal (xterm, gnome-terminal, tilda, whatever) and have it prompt for a username and password to login as. I thought this would be simple but all my Google results are polluted ...
3
votes
1answer
24 views

When would you use pivot_root over switch_root?

I'm wanting to understand the Linux init process better in order to netboot a system over ceph rather than nfs. In the process I've come across two forms of switching root. One called switch_root, ...
0
votes
0answers
12 views

linux + dose openswan vpn can support checkpoint gateway + client to site configuration [duplicate]

Openswan is a VPN client for linux Please advice if this VPN can support the following configuration VPN client to site ( client to Checkpoint gateway ) The following diagram explain the scenario ...
2
votes
1answer
33 views

VPN client for linux machine + support checkpoint gateway

Since Checkpoint Company does not have a VPN client for Linux (checkpoint VPN SNX R71 is not fit for us because this VPN required changes on the gateway side ). I'm trying to find if there is a VPN ...
0
votes
1answer
61 views

what programming language required to develop linux O.S? [on hold]

I want to know, what programming language is required to develop Linux operating system?. How to start and what are the required concepts ? I want to create my own O.S to my PC. I have knowledge in C ...
1
vote
0answers
4 views

tcplay: cannot mount filesystem on TrueCrypt volume with hidden volume protection after mapping it

I am using tcplay to work with a Truecrypt volume with a 4 GB hidden volume located at the final gigabyte. When I mount either the normal volume or the hidden volume, they mount just fine. However, ...
0
votes
1answer
9 views

Unrar local files to remote server [duplicate]

I have two Linux servers, one which has several RAR files and another empty one. I would like to extract the archives and move the content to Server 2. The problem is: I do not have enough storage to ...
3
votes
1answer
31 views

Unrar local files to remote server

I have two Linux servers, one which has several RAR files and another empty one. I would like to extract the archives and move the content to Server 2. The problem is: I do not have enough storage to ...
-3
votes
1answer
41 views

Kali tools on Ubuntu [on hold]

Okay, So I am new to UBUNTU, and have little experience with Kali and Backtrack! so I wanted to install ALL the Kali Linux tools in UBUNTU, not one by one, or just transform the Kali Linux into Ubuntu ...
0
votes
2answers
86 views

Extract data in linux/unix

I have input data which I want to parse and extract values using awk/grep/sed: group-2 9 10 text color=black,from=ABCB11,fromid=4,order=2,thickness=3,to=ACE,toid=11,use=1,z=1 group-3 0 1 text ...
0
votes
1answer
21 views

How to dump bios data to a file

I want to dump the bios data of my laptop to a file. The only solution I found is the following command: dd if=/dev/mem bs=X skip=Y count=1 X and Y are different in suggested solutions by different ...
2
votes
2answers
39 views

Lose network connectivity when bringing up second NIC

I currently have a CentOS 6.5 box with 4 NICs. eth0, eth2 and eth3 all come up fine, however when I bring eth1 up with an IP address, even on it's own, it causes complete network loss. If I remove ...
0
votes
2answers
49 views

Different forms of executing a shell script

There are a few similar questions around that I've already seen, but I've come up with something different. I'm reading this http://www.tldp.org/LDP/abs/html/invoking.html and I got confused when I ...
6
votes
1answer
65 views

Possible to see dead proccesses?

In man ps, it clearly states the different states a process can have on Linux. D Uninterruptible sleep (usually IO) R Running or runnable (on run queue) S Interruptible sleep (waiting for an ...
2
votes
1answer
39 views

How to make a bash script wait till a pendrive is mounted?

I have a bash script which has a line cd /run/media/Username/121C-E137/ this script is triggered as soon as the pen-drive is recognized by the CPU but this line should be executed only after the ...
1
vote
2answers
47 views

Do I compile Ubuntu Source code on Red Hat System?

If we install the Red Hat System then can we compile the other distros of linux on the Red Hat server system? If so, please provide me the tutorials and links.
1
vote
1answer
24 views

How to know my server's time offset? [duplicate]

I have a few guest machines on VMware. Up until now I was keeping my time sync with ntpd inside guests. Now our VMware admins decided to setup VM hosts to keep time, so VMs don't have to. I disabled ...
0
votes
2answers
29 views

Launch a program on boot (Debian server)

Path to folder: root/CumulusServer Command to execute: ./CumulusServer --daemon [--pidfile=/var/run/CumulusServer.pid] I've spent considerable time trying to figure out how to modify init.d? Any ...
1
vote
2answers
32 views

Openbox won't load wallpaper on startup

I've tried a lot of things. I googled and followed tutorials and I'm still unable to have my wallpaper load on startup. What I've done so far is I've added the wallpaper of my choice via feh feh ...
1
vote
1answer
39 views

Selectively forward email based on domain?

I have an alias on my mail server, call it splitusers. Based on which domain (a couple are run off one mail server) is used, I would like the mail forwarded to a different user account. Eg: ...
3
votes
0answers
17 views

How to use btrfs send/receive for transmitting backup snapshots over a slow and unreliable network connection?

I'd like to use btrfs' send/receive feature for transmitting backup snapshots over a rather slow (initial seed of about 50-100GB, upstream bandwith ~1-2MBit/s) and unreliable (daily forced ...
-1
votes
0answers
34 views

Write a script file 'account.awk' that from a file 'orders' creates the formated printout of account

Write a script file account.awk that from a file orders creates the formatted printout of account. The file orders is as follows: http://pastebin.com/kPF5B0c0 Beside the column Cost the account ...
0
votes
0answers
18 views

RHEL Linux 6 teamviewer 9 upgrade error

I had teamviewer 7 installed on my server RHEL 6, but I wanted to upgrade it. I downloaded the latest rpm teamviewer 9 en from here and upgraded it, now my server X window system won't start up. ...
0
votes
0answers
7 views

Can I use lldb to remotely debug the Linux kernel?

With GDB, I can remotely debug the Linux kernel. lldb, which promises to completely replace GDB, should be able to remotely debug the Linux kernel too. However, I cannot find any tutorial about this ...
3
votes
2answers
21 views

How to tell if a SCSI device is removable?

In DMESG I see: [sdb] Attached SCSI removable disk How does Linux decide what is removable and not removable? Is there a way I can look up if a device is "removable" or not other than the log, for ...
1
vote
1answer
26 views

WARNING: at kernel/irq/handle.c - after changing rootfs, but why?

today I changed from an image with initramfs to an image with separate kernel and rootfs. Theses images are used for an Embedded System (ARM9 SAM9G25), that is runnging with an Linux 2.6.39. During ...
0
votes
1answer
30 views

modpost.h:12:23: fatal error: elfconfig.h: No such file or directory

I am running Ubuntu: #lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.4 LTS Release: 12.04 Codename: precise Kernel info: 3.8.0-38-generic ...
1
vote
2answers
38 views

FATAL: Module hello.ko not found

I'm using CentOS-6.5 and default kernel is 2.6.32-431.11.2.el6.x86_64. I downloaded 2.6.32 and built that kernel (under /lib/modules/2.6.32). I wrote a module for simple hello world program. This ...
-1
votes
0answers
15 views

Linux nagative Multipath configuration? [on hold]

I m using two HP server Prolient DL 380de gen8 server installed RHEL 6.5 and have EMC2 VNX5300 Storage.Each server i have 4 nic port and first two ports i configured it as bonding. and in storage have ...
1
vote
0answers
44 views

Segmentation Fault on execution [on hold]

I am getting this segmentation fault (core dumped) error on excecuting my c++ program on Centos. I am compiling my code using g++. Everything was executing fine for hours. Suddenly, on executing the ...
0
votes
0answers
52 views

Question. How to write a Shell script? [on hold]

I need to write a script which could read information from txt file. In that txt file should be 3 words. When Script has to make 3 different directories with those words and two of them should be ...
1
vote
0answers
18 views

Dual seat in Linux with 3d acceleration and one video card

Is there anyway to set up a dual seats (i.e. two keyboards, mice, screens) with 3d acceleration but only one video card, in particular an AMD APU? They seem to support multiple monitors, so it doesn't ...
1
vote
2answers
39 views

Block physical console access

I'd like to block physical console access to my linux. I'd like to find, which module is responsible for keyboard input (ps/2, usb, ...) and vga output (only physical), so I can remove them from my ...
0
votes
1answer
48 views

Do I have to compile the kernel every time, even for a small change?

In my project I configure the kernel (2.6.32) in block/ioctl.c. We all know that kernel compiling and building takes few hours. Even for a small change, I'm compiling from scratch. So is there any way ...
0
votes
1answer
39 views

Bash code runs correctly when it is executed in terminal but does not work properly when executed using udev

I am trying to move various files present in a pendrive into their respective folders on PC. ie ,Music files into music folder,text files into Documents and so on.. I have written a script for that ...
0
votes
1answer
27 views

Syntax for compress utility [on hold]

I've been having some trouble deciphering the syntax from the man page, as well as other sources. I feel a bit stupid, as I've been studying Linux for a while now and this is the first thing I can't ...
1
vote
2answers
61 views

How to copy three files at once instead of one file at a time in bash shell scripting?

I am running my shell script on machineA which copies the files from machineB and machineC to machineA. If the file is not there in machineB, then it should be there in machineC for sure. So I will ...
3
votes
1answer
38 views

Where can i find any information about ancient doshell(8)?

I check the openvt manual by running "man openvt" command, and i found doshell(8) under "SEE ALSO" section: But there's no manual if i do "man 8 doshell": I checked the online manual at ...
1
vote
1answer
22 views

why can't I install packages with rpm? I get “transaction lock”

I'm having problems with yum and I am trying to re-install it. I've download yum.3.2.0-40-el6.centos.noarch.rpm. When I try: $ rpm -ivh yum.3.2.0-40-el6.centos.noarch.rpm I get: error: can't ...
0
votes
1answer
44 views

Tips on switching to Linux? [on hold]

I plan to switch to Linux as my sole OS in a few weeks/months, and I'm not sure what I'd like to do. I've used CentOS Server, but only in CLI mode, and Ubuntu Desktop. I liked Ubuntu, but Unity was ...
0
votes
0answers
36 views

Can't fix Arch, help please [on hold]

I've been trying to get Arch Linux installed on a 22GB partition on my HDD (Attempting to dual boot from Win8-Arch). I can boot into it, which takes me to grub4dos. I'm able to set my Kernel and ...
0
votes
0answers
26 views

Shrew Soft VPN Client 2.2.1 + how to configure user.c file for checkpoint VPN

I download the latest VPN client - ike-2.2.1-release from: https://www.shrew.net/download/ike. I need to install this VPN on my Linux Red Hat machine – version 6.3. I read that shrew VPN client ...