These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

2
votes
1answer
1k views

How to write a script to read wifi SSID and password from USB drive at boot up and auto logon to wifi network

I have an embedded system that is running Debian. I want to be able to provide wifi network SSID and password information via a USB thumb drive. That way I can easily deploy it to any wifi network. ...
2
votes
2answers
378 views

Equivalent of “passwd -sa” in RHEL?

I feel a little silly having to ask this, but: In Solaris you can issue a passwd -sa command which gives you (more or less) the same output as passwd -S userName does, except it prints out the status ...
6
votes
3answers
13k views

Where is iptables script stored on DD-WRT filesystem?

I have an ASUS RT-N16 router that I've flashed with the open-source DD-WRT firmware. According to my ssh login, I'm running: DD-WRT v24-sp2 mega (c) 2010 NewMedia-NET GmbH Release: 08/07/10 (SVN ...
0
votes
0answers
112 views

How to create customized xsession in RHEL 6?

I want to create a customized xsession so that it should run at a time only one application without any desktop in RHEL 6
1
vote
0answers
93 views

SPSS temp directory space issue

I am trying to import a table data into SPSS Statistics Server, but due to space constraints in the temp directory location I am not able to facilitate the data import. I need to either increase the ...
1
vote
1answer
144 views

Routing 4 Networks

I've been trying for almost a week to make it work but without success. I'm starting to feel hopeless. I have 4 Ethernet adapters : 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state ...
34
votes
5answers
72k views

How can I find the hardware model in Linux?

I used a system information utility to take the model number of a system, and also of the motherboard. DMI System Manufacturer LENOVO DMI System Product 2306CTO DMI System Version ...
3
votes
1answer
256 views

How can I delete a hardlink to a directory?

Before I get 100s of answers that tell me it is impossible to hardlink directories in linux: yes, I know that. The file in question appeared in lost+fount after I checked the filesystem with e2fsck ...
0
votes
3answers
1k views

NFS server on qemu guest

I need to know how I can mount block devices, placed on a qemu guest system, from host. So in this case we have NFS server placed on guest system and NFS client on the host's side. There are a lot ...
5
votes
2answers
1k views

btrfs and the discard mount option on an ssd

I can't seem to find an answer to this so I thought I would ask here: In /etc/fstab and when using the mount command in ext4 you would add the option discard to activate TRIM on an SSD. Similarly ...
1
vote
1answer
703 views

How to realign a disk on logical volume with minimum to zero down time

A system running un-align disk partition that needs to be aligned without loss of data on all the partition including mbr with the minimum to no down time.
1
vote
2answers
421 views

Can AMD and NVIDIA display cards work together on linux?

I know that two AMD graphics cards/two NVIDIA graphics cards can work together ,e.g. in xinerama/crossfire/multi-view. But if I have one AMD graphics card and one NVIDIA graphics card, can I use them ...
23
votes
4answers
13k views

What doesn't need defragmentation? Linux or the ext2 ext3 FS?

Why don't you have to defrag a Linux system? Because it's using the ext2/ext3 file system or because it's Linux? That's relevant, because a have a double boot system (W7 / Ubuntu) and a common ...
3
votes
2answers
507 views

Install third party software on Linux from source

What are good practices for making Linux installations? Suppose I wanted to install some so-very-useful library of my own design and documentation/reference for it on a Linux system. Which part ...
3
votes
1answer
2k views

Benchmarking Apache using ab

I was doing some performance testing for Apache using ab. Apache in our case is only working as a load balancer balancing load between two Liferay servers. Initially, I did the testing for 1000 ...
0
votes
2answers
735 views

How to create as many variables as needed from shell script(bash)?

I'm making a script for monitoring some user processes with Upstart but, since its for the company I work for, they asked me to do it generic...how's so? Well, the number of processes being monitored ...
1
vote
0answers
101 views

what does the linux standard base specify about the kernel?

I was taking a look at the Linux standard base (lsb) and could not find much interesting info on the kernel. Does the LSB specify anything at all about the kernel or kernel interface? Is it kernel ...
0
votes
1answer
539 views

What is the meaning of “\_” in output of 'ps ef'?

When I executed ps ef command in a linux server, I saw that one of the command starts with \_. For example, \_ /bin/sh /usr/ Could any one please let me know what is the meaning of \_ in this ...
1
vote
3answers
4k views

Virtual Interface Not Showing up in ifconfig?

I am trying to create a virtual interface for the purpose of NameBased Virtual Hosting on my CentOS linux box; please find below is the devices' information:- DEVICE=eth0 BOOTPROTO=dhcp ...
10
votes
1answer
24k views

How to get proccesses currently running semaphores by /proc?

I wonder how to get processes currently running semaphores by /proc ? I guess it's possible by SysVIPC subdirectory.But I don't know how to use this commands. Ubuntu 12.10
9
votes
1answer
612 views

Finding all the hard-links of a file without traversing the file system

I have seen in this page that inodes have a link counter to know how many files (read: "directory entry") point to this inode. Is there a way to know which directories contain such entries without ...
6
votes
3answers
2k views

Can I pipe any two processes to each other?

In this page from The Design and Implementation of the 4.4BSD Operating System, it is said that: A major difference between pipes and sockets is that pipes require a common parent process to set ...
2
votes
1answer
497 views

ssh/scp works but rsync just constantly says “no”

Hi I have a windows 2003 server that I need to back up onto a linux client so I install cygwin on the Win2k3. On the Win2k3 I have enabled ssh, scp but (because the Win2k3 server uses an customised ...
5
votes
3answers
11k views

RHEL: Creating stable names for network interfaces

We have a RHEL 5.5 box with 8 interfaces. And the eth interface naming is flip flopping. Sometimes eth0 comes up on physical port 7th, and sometimes on another physical port. We want the naming to ...
2
votes
2answers
113 views

Can I use partitions made by Windows 7 in Linux?

I am planning to leave Windows and get to Linux (yet do not know which one, but it is not the question). I was using Windows 7, I have 2 partitions (C:198 GB, D:488 GB). And I have a lot of documents ...
6
votes
1answer
5k views

Keep same file owner for newly created files

This question is regarding samba file access. I have created a folder A, and under folder A created two folders B and C. And also created three users A, B and C. User A has access to all three ...
2
votes
1answer
235 views

Adding a user to a group by default

I have a group that all users on the system share. The group name is common and it is to allow for a universal fileshare for everyone on the machine. How would I make it so that all new users are ...
4
votes
2answers
5k views

Specify the sort order with LC_COLLATE so lowercase is before uppercase

Given the file: $ cat file 1 a C B 2 c 3 A b By default sort will: $ sort file 1 2 3 a A b B c C With LC_COLLATE=C so will sort in uppercase letter before lowercase: $ LC_COLLATE=C sort file 1 ...
1
vote
0answers
1k views

Install Linux Mint 14 from CLI

I'm trying to install Linux Mint 14 from a live cd on a HP Pavilion laptop. I got some problem with X and the nvidia card, which prevents X from starting (and therefore prevents the live installer ...
-2
votes
1answer
65 views

How I should load file with setkey -f

I would like to load a text on Fedora. I use this command: setkey -f "name" but the file cannot be found. I have the file on my desktop.
5
votes
2answers
389 views

Which was the very first music player application for Linux?

I'm writing an article about FOSS and Linux music players. What was the very first music player application for Linux? Was there ever a time when the players didn't support proprietary formats like ...
3
votes
4answers
3k views

Dual boot - Kubuntu and Windows 8 - how to?

I recently installed Windows 8 on my computer. These are the specs: Fx-8150 CPU 8 GB RAM ATI HD7870 120 GB SSD 2 TB HDD Mainboard: Gigabyte GA-970A-UD3 (rev 1.1) (only bios but EFI mode possible ...
2
votes
1answer
662 views

Dependencies problem with automake

I am using automake on Debian Squeeze for compiling a very simple C project with 6 source files. The issue comes when I try to compile the sources using the generated Makefile. One of the sources ...
2
votes
2answers
117 views

Auditing Linux: tell me to what IPs a connection was established

I need a command, or something that runs as a cron job, that logs what IPs my machine is communicating with, what ports, and what process did it.
1
vote
3answers
63 views

“Packing” linux up onto USB drive

I have been using my Linux Mint Nadia for some time and customized it a little, I was wondering if I can "pack it" onto a USB and make it into an ISO which I can boot on another computer and it will ...
0
votes
1answer
973 views

Installing a secondary drive in CentOS 6

I am new to Linux and CentOS so I may not be sure of the exact question to ask. It may be best for me to tell you what I have done. I installed a secondary 500gb HD to use for file share storage. I ...
0
votes
1answer
840 views

When running a terminal, I get the default bash prompt

Whenever I run a terminal in Linux (Centos), my console line starts with: bash-4.1$ During the Centos installation, I created a user 'mark'. Later on that day, I needed to change the name to 'john' ...
0
votes
1answer
63 views

How to remove a package for the current user?

How can I remove a package for a given user but leave it installed so that other users can still access it? I'm using Ubuntu 12.10.
21
votes
2answers
10k views

How to blacklist a correct bad RAM sector according to MemTest86+ error indication?

MemTest86+ (the version included with Ubuntu 13.04) says Failing address: 002f796c48 - 759.5 MB What should I specify in the memmap kernel parameter to bypass this area? I've tried running ...
3
votes
3answers
755 views

files in /proc/$PID (e.g. ssh-agent, Chrome) are not owned by user but by root

I am just answering another question here :-) and thus had a look – wanted to have a look at /proc/$PID/fd of ssh-agent in order to find out which socket it uses. But I can't. I am quite surprised to ...
2
votes
1answer
1k views

Missing icons in Nautilus

I've installed Fedora 18 (x64) minimum and I installed Enlightenment with Nautilus. But I see that there are icons missing in Nautilus, I have selected the gnome icon theme so I must be missing some ...
10
votes
2answers
456 views

What are these commands for?

Yesterday I had to install a Windows with its Grub override. Well, it's not the first time I had to fix Grub, so I used LiveCD, mounted the root partition (I don't have boot, just / and home) and ran ...
3
votes
2answers
288 views

Clarification regarding behavior of shell script along with pipe

I need help understanding the behaviour of the following shell script. #!/bin/bash echo "First more" more $1 echo "First echo" echo $1 echo "Second more" more $1 When I run the following command: ...
2
votes
3answers
310 views

/dev/console points to tty0?

I've been trying to understand the /dev/console device, but there are a few things I'm not clear on: What is the purpose of this device? From what I can gather it's just a place for the kernel to ...
0
votes
1answer
290 views

LPIC-1 for non-professional experienced user

I am interested in trying out the LPIC-1 certification however I am slightly worried that I may not have the needed professional experience to pass. I am still studying hard and running a lab with a ...
13
votes
3answers
7k views

How to safely replace a not-yet-failed disk in a Linux RAID5 array?

I have a software RAID5 array (Linux md) on 4 disks. I would like to replace one of the disks with a new one, without putting the array in a degraded state, and if possible, online. How would that ...
2
votes
1answer
280 views

grub2: how to bypass “press any key”?

I recently updated my motherboard and moved my grub2 onto EFI partition. I have same grub menu, but after I select a menu entry and press Enter, a message "Press any key" comes and the loading stops ...
7
votes
1answer
3k views

Explain EV in /proc/bus/input/devices data

Can anybody explain to me what the EV value in /proc/bus/input/devices is? The keyboard always has value 120013. Why?
2
votes
2answers
2k views

Crunchbang as an optimal OS?

I have a small netbook that I've been using for all of my learning to program/learning to *nix needs. It is pretty underpowered (1gb RAM, 1.66hz processor) and has a dire battery life (under an hour ...
1
vote
2answers
2k views

linux + match IP ADDRESS with 3 octets or with 4 octets

how to match IP address with 4 octets or with 3 octets in one command? target - match xxx.xxx.xxx or xxx.xxx.xxx.xxx ( syntax should fit for Linux and Solaris ) how to merge the following commands ...