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

Restore formated Partition Table on LVM Physical

I have a machine (guest VM running CentOS 6.5) with 2 disks. Main OS on sda and then a 2TB LVM on the second sdc. I added 2 more 2TB disks to the machine and was going through the process of ...
0
votes
0answers
28 views

mysqlcheck -o --all-databases does not finish [migrated]

I have a problem with my MySQL Databaseserver. I have many tables and there is quite some traffic going on there (around 4 connections per second). Since the phpMyAdmin advised me to do a OPTIMIZE ...
4
votes
1answer
42 views

Undocumented pppd exit code

If my machine (OSX 10.9.2) is not connected to the Internet and I want to establish pptp connection by using pppd: $ sudo /usr/sbin/pppd serviceid 5BE14D3A-7B94-4704-ADE0-9883B189199E debug logfile ...
3
votes
1answer
36 views

Installing software the first time a system boots after CentOS installation

I have a custom text based CentOS 6.4 installation that installs the OS, then after the first boot I have a custom rc.local file that installs custom applications and prepares the system for our ...
0
votes
0answers
23 views

Using huawei e303 on a modified linux machine

I am trying to configure a new modem to work on my Linux machine.The machine is based on debian (6) without most of the graphical interface.I'm also using a modified kernel based on 2.6.37.Until ...
4
votes
1answer
47 views

“hard-linking” parts of a big file in which only a small part has changed

I use rsync to make backups: rsync -a --link-dest=PATHTO/$PREVIOUSBACKUP $SOURCE $CURRENTBACKUP This way I save space due to using hard links. The problem appears when I need to backup a huge file ...
1
vote
0answers
14 views

Create Reinstallable OS ISO of RHEL with custom software

Currently we install our custom Linux OS(Based on RHEL) on a VMWare ESXi partition along with all required software and export it as .ova file and share with other teams which they again install on ...
3
votes
1answer
69 views

What's the difference between \b and \< in the grep command

In the man page of grep, I see The symbols \< and \> respectively match the empty string at the beginning and end of a word. The symbol \b matches the empty string at the edge of a ...
3
votes
0answers
42 views

Why does the php 'date' function returns a wrong time (off by ~24 seconds)? [migrated]

I have the following small php snippet running on a gentoo Linux (php version 5.2.10-pl0-gentoo): #!/usr/bin/php5 <? class TestDaemon { public function __construct(){ while (TRUE){ ...
1
vote
0answers
17 views

libpam load pam modules at every connection

I want to reduce ssh connection time, by debugging sshd have found that libpam is loading all pam modules specified in /etc/pam.d/sshd file at every connection. How to configure/modifiy libpam such ...
3
votes
1answer
44 views

Book on Linux OS design? [closed]

What is a good book about why linux has been designed the way it has? Such as why are HDs in /dev/sda, why /dev/ null, zero, urandom and such are files (or pipes). Why do we have loopback device (I ...
0
votes
0answers
21 views

Which getty should I use for /dev/tty1 - tty6 text consoles in linux, agetty or something other

I'm configuring LFS linux and I want to select right "getty" for /etc/inittab to handle text consoles /dev/tty1 - /dev/tty6 (the text consoles handled by linux kernel, with output on first display). ...
1
vote
1answer
66 views

Convenient way to check if system is using systemd or sysvinit in BASH? [duplicate]

I am defining common bash files which I want to use across different distributions. I need a way to check if system is using systemd or sysvinit (/etc/init.d/). I need this so I run appropriate ...
1
vote
1answer
25 views

Linux Interrupts [closed]

I'm trying to write my own interrupt controller but I'm having some difficulties finding good documentation. Where can I find some information about interrupt management in Linux? To be more ...
1
vote
0answers
32 views

Which filter configuration in kernel rate limit the outgoing packets to 1packet/sec?

Which net filter in kernel configuration other than iptables enable rate limiting on the outgoing packets on ethernet port?
4
votes
2answers
188 views

check if interface eth0 is up (configured)

I need to check with a script, whether eth0 is configured. If so, the script will do nothing. Otherwise it will start wlan0. (I don't want both eth0 and wlan0 to be up at the same time). What would ...
0
votes
1answer
47 views

Resetting password expiry date by number of days instead of specifying date

Is there a way with either commands passwd or chage to force the password to expire 90 days from the time of command execution? I know I can do it by date, such as: chage -E "2014-07-31" userid ...
1
vote
1answer
44 views

How to add bootloader to ISO? Or, make ISO bootable?

How do I add a bootloader to a Linux ISO? When I isoinfo -d -i ... I do not see the bootloader on one of the ISO's that I have; but on another ISO there is a bootloader.
1
vote
1answer
86 views

Setting CPU governor to on demand or conservative on Arch Linux

I'm struggling with cpupower on ArchLinux. I want to set governor to ondemand or even to conservative. First if I do $ sudo cpupower frequency-info --governors, I only get performance powersave. So ...
2
votes
1answer
30 views

On an Apple Keyboard under Linux, how do I make the Function keys work without the fn modifier key?

I use an Apple wired keyboard on Linux. By default the function keys (F1, F2, F3, etc) require the fn key to be pressed for them to work. Without the fn key, these keys control the features like ...
1
vote
0answers
17 views

Compose key works on console/TTY, but not in X session

My compose key does not work in my X session anymore if I change a certain line in my /etc/default/keyboard that (if I am not mistaken) should only affect the keymap of the TTY. I'll try to elaborate ...
-1
votes
2answers
23 views

how to get the return value of wpa_supplicant?

My question is really simple I want to get the return value of the command wpa_supplicant, when connected to the internet, to know that I am connected or not with a shell script.
0
votes
0answers
10 views

How to run the EDKnrc code

I have installed the EGSnrc code on a LINUX system and want to use the EDKnrc code for a "dose distribution" in the spherical Phantom, how can I run this code? can this code is run by the GUI similar ...
3
votes
2answers
288 views

Is there any substitute for `lspci`?

lspci is not implemented in petalinux. So is there any alternative for this? Any file where I can read lspci output?
0
votes
0answers
24 views

Possibility to use app in LAN and via Internet

I use web based (https encapsulated) app in my home network and via Internet. The app has dedicated Linux desktop client (I use Mageia ver4 Linux for laptop). Of course server address I have connected ...
0
votes
2answers
48 views

this mount point is invalid. The /root directory must be on / file system

I'm preparing CentOS 6.5 x86_64 system with following mount points /usr/local – 10 GB or more *** /var – 10 GB or more *** /root – 200 MB or more *** /tmp – 200 MB or more *** The ...
0
votes
2answers
55 views

Game server hosting and security

I'm working on a small controlpanel for a hobby project of mine, which is supposed to set up game servers. But I have some concerns regarding security that I would like some input on. My first idea ...
4
votes
1answer
54 views

LVM2 pvdisplay and vgdisplay disagree

In my laptop, I have a single hard drive (/dev/sda). On this hard drive, I have an EFI partition (/dev/sda1), a boot partition (/dev/sda2), and an encrypted partition containing / (/dev/sda3). Inside ...
2
votes
2answers
158 views

Merging /usr/bin and /usr/sbin into /bin (GNU/Linux)

I've read quite a number of discussions about people wanting to merge /bin and /sbin into /usr/bin. The same cannot be said for doing it the other way around. Is there any technical reason why one ...
0
votes
1answer
23 views

Basic syslog confusion

When an application logs using syslog does it mean that it stores the logs somewhere under /var/log? Or can it be elsewhere as well?
1
vote
1answer
41 views

Can I mirror lo as eth0? [closed]

Is it possible to make eth0 point to lo? I have dumb process that keeps acting as eth0 exists while it doesn't.
0
votes
1answer
51 views

Fedora doesn't boot after migration to new disk

I bought a new larger SSD and copied all data from the old SSD to the new one. On the SSD I have Ubuntu and Fedora, Ubuntu works normally after migration but Fedora boots into Emergency Mode. I have ...
1
vote
1answer
32 views

Modifying linux for different boards

There are different linux available for different boards- called "linux ports" For example a (uc)linux port for STM32F4291 Discovery kit, a linux port for Beagleboard and so on. I want to know what ...
0
votes
1answer
44 views

Authentication failure for FTP server [duplicate]

I followed this link to install ftp server. And also added ftp user(ftpuser) and also added ftp password(1234567). But when I am using this password in any wordpress site or any ftp software such as ...
1
vote
2answers
53 views

difference between “ls –alR /” and “ls –alR / &”? [duplicate]

What is the difference between "ls –alR /" and "ls –alR / &"? I seem to get the same out put. but the & sign i think should run it in background?
3
votes
1answer
67 views

USB keypad (HID) not responding in linux but in grub

An external USB keypad I'd like to use gets recognised as a USB HID device, but it is not functional when Linux is booted. It does work when plugged into a Windows desktop and it does work while in ...
3
votes
2answers
120 views

File system that never breaks (data loss acceptable)

There're several existing topics revolving around this issue, but what I seek is slightly different. I have an sd card on an embedded Linux and it suffers from power loss. I might be able to modify ...
1
vote
3answers
49 views

Mount a second ssd drive on centos - How can I figure out which is the unused drive?

I need to mount my secound ssd drive to /home2. I already created the folder /home2 - Now, how can i figure out which is the unused drive ? Is this /dev/sda or sdb ? What is the exactly thing i`ve to ...
2
votes
0answers
25 views

Opening a device node in a device driver in linux [migrated]

I am writing a device driver on Xillinux that will read and write data to an FPGA application over Xillybus. Basically I want to create device nodes such as /dev/pe1, and when I write to the nodes ...
1
vote
2answers
52 views

Disk on key is read only on every computer

I have a 16 GB SanDisk Cruzer Blade Disk-on-key. After a few days of use, it has become write-protected/read-only. When I plug it in, you can see this in my Ubuntu's dmesg: [ 819.003359] usb 2-5: ...
11
votes
4answers
1k views

How Does Linux deal with shell scripts?

For this question, let's consider a bash shell script, though this question must be applicable to all types of shell script. When someone executes a shell script, does Linux load all the script at ...
0
votes
0answers
24 views

SSH into servers each with different subdomain over one IP [duplicate]

I have several Ubuntu VMs (bridged) behind a router that I want to access remotely. I've also got an nginx reverse proxy that handles the port 80 traffic like this: sub1.example.com -> server1 via ...
0
votes
1answer
49 views

Upgrading CentOS 6.3 to 6.5

[Note: I manually moved this here from StackOverflow] I'm trying to update CentOS 6.3 to 6.5. If it matters, I'm doing this inside VBox 4.3.8, on a Mac running OSX 10.9.2. Following directions found ...
5
votes
4answers
168 views

Run a command when system is idle and when is active again

I want to run a command when the user becomes inactive (the system is idle). For example: echo "You started to be inactive." Also, when the user becomes active again (the system is not idle ...
2
votes
1answer
89 views

SSH agent forwarding, multiple hop

I tested this setup with Linux origin machine - everything is the same - only the first hop can use keys from origin machine. Initial problem I'm trying to set up SSH agent forwarding with multiple ...
0
votes
2answers
59 views

Socks5 server on Debian

I would like to setup socks proxy on my Debian VPS. I try to use squid but its to hard for me. I saw a Dante software and think about it. I would like to setup dante to work with the web browser and ...
3
votes
4answers
118 views

Work out the link count of inode number?

How can I work out the link count of an inode number? If I know the inode number is, say, 592255 - what workings out can I do to find out the link count? I know directories have a link count of at ...
1
vote
1answer
55 views

Not able to copy multiple files using rsync 3.0.9 version?

I am trying to copy two files using rsync from a machineB but somehow it always copies only one file but not the second file - Here is the syntax I am using - rsync -avz ...
0
votes
1answer
114 views

usb kernel module does not load on demand but works fine with insmod and modprobe from the shell

I have a USB Linux Kernel module that compiles and builds. Running insmod loads my module and dmseg and tail -f /var/log/debug shows me it works as expected. Running depmod -a then modprobe from the ...
2
votes
0answers
29 views

Automatically memtest and then boot

Is there some way to reboot server, so it runs memtest (say, 1 or 2 passes) and then reboots back to Linux and writes report to some log? This feature in Windows Server 2012 helped me to diagnose bad ...