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

3
votes
1answer
678 views

Command line per-application volume (maybe amixer or pactl?)

I can change the master volume with these commands (from the command line), and it affects all applications, but how do I change the volume for just one application (XMMS for example)? amixer -q set ...
3
votes
1answer
259 views

How do I detect that my system has auto-rebooted after a kernel panic?

I'm using Linux in embedded systems, and want to configure the system to automatically reboot after a kernel panic. However, when the system comes back up, it's important for me to detect and log the ...
1
vote
0answers
300 views

cannot upgrade kernel (grubby fatal error: unable to find a suitable template)

I have an appliance (read: a PC in a rackmount chassis which sits in the rack and does its job for years without anyone really paying it much attention until it dies) running CentOS 5.4. Trying to ...
4
votes
1answer
251 views

How to properly change the keyboard mapping?

I will try to describe the problem in details. Very often I use external keyboard with my netbook. The keyboard is "TK Stealth": Click to zoom You can see, that the numpad, is very similar to the ...
3
votes
0answers
243 views

Expanding root partition CentOS 6 With using fdisk

I am trying to expand the root partition on a VM which is not using LVM and I do not have (nor want to try and create then use) a disk to boot from. As such I followed what I felt was the logical ...
0
votes
1answer
100 views

list users who are all created by current user in linux

I have set of users with root access.I want to know list of users who are all created by currently logged in user. From below structure if user1 login to system , how to list user's like user11,...
2
votes
1answer
279 views

Mounting USB drives on command line in Ubuntu

In Ubuntu, I can click a drive in Nautilus to mount that drive and I do not need to use sudo. Is there a command line alternative to this action? I know about the mount command, but is there a direct ...
0
votes
1answer
174 views

Delete duplicate entries in a text file [duplicate]

I created a txt file using two requests, one LDAP and one SQL. Results of the two requests are stored in the same txt file. The txt file looks like this : user1@domain.fr user2@domain.fr user3@...
1
vote
2answers
45 views

How do I migrate a RAID system to a larger set of HDDS?

All the posts I've found are about moving to new machines or migrating an entire OS from one HDD to another. I don't really know what the hell I'm doing, but I'm apparently the Linux expert. We ...
1
vote
1answer
73 views

Is there a way to have logcheck send a daily digest as well as the hourly mails?

I'm looking for a way to get logcheck to send the hourly notifications but also send me daily digest at the end of the day. Is there a way to achieve that at all? It'd be fine to invoke logcheck ...
4
votes
1answer
426 views

How to detect special hidden files in Linux (e.g. .reiser_priv)?

I've recently found out that there are special hidden directories found on Linux that are not displayed with ls -a command. Namely the one I encountered is .reiserfs_priv directory located in the root ...
1
vote
0answers
108 views

Recover VG after Adding Disks and Rebooting

I had an old 1.5 TB NTFS formatted disk I wanted to use in by RHEL 7 box, so I put it in my desktop booted, and proceed to delete the partition table using fdisk. I created a physical volume on it ...
0
votes
1answer
33 views

How to see the password in rhel6 [duplicate]

How to see the password what we are entering in RHEL6. If not how to see at least the entering password in some special characters.
0
votes
1answer
25 views

RPM to invoke browser post installation

I am creating an RPM installer for centos 6.5, After installation i want the RPM to invoke the browser and show the installation report. This installation report shows the details of how the ...
0
votes
1answer
110 views

videoconferencing/audio-only-conferencing on LAN

The given scenario is an office-building with several floors. Using linux servers and linux clients it is necessary to create a system for videoconferencing or if not possible then audio-only ...
1
vote
0answers
109 views

Recursively lowercase, replace space and remove invalid characters on linux FS

I want to recursively run the following commands on a directory as part of a cron. The first line changes everything to lowercase, the second replaces spaces with _ and the third removes all invalid ...
2
votes
1answer
139 views

linux kernel module building prerequisites

The "How to Build External Modules" section of the kernel.org kbuild documentation ( https://www.kernel.org/doc/Documentation/kbuild/modules.txt ) says: To build external modules, you must have a ...
3
votes
2answers
702 views

How to determine the maximum number to pass to make -j option?

I want to compile as fast as possible. Go figure. And would like to automate the choice of the number following the -j option. How can I programmatically choose that value, e.g. in a shell script? ...
1
vote
1answer
258 views

How to free a serial port owned by Getty

I have machines in pairs. They're connected to each other by a null modem serial cable. These machines sometimes go down, and the only way to diagnose them is through that cable, using the other node ...
1
vote
1answer
272 views

Socket and Core information - How do I check empty sockets?

I am trying to grab the number of sockets and core information. Till now I found that one socket can have multiple cores. http://rcritical.blogspot.com/2010/09/finding-cpu-socket-and-core-using.html ...
0
votes
1answer
2k views

CentOS: How is it possible to reset all your network configuration?

I'm not really sure the best question to ask in my situation, so let's go with "How is it possible to delete all your network commands?". Here's the situation: I have a CentOS 7 minimalist CLI ...
0
votes
2answers
313 views

Removing files based on date given in filename

In a directory, I have some zip files as given below: DBSOURCE20150601.gz WINDOWS20150504.gz NETWORK20150609.gz PATCHTEST20150512.gz ................. ................ I want to delete zip files ...
0
votes
0answers
445 views

Openvpn client and server cannot ping each other(Connection established)

I have setup OpenVPN client and server between two VPS. I have a client and server setup, server using 10.8.0.1 and 10.8.0.2 IPs in tun interface, and client using 10.8.0.6 and 10.8.0.5 in tun ...
5
votes
1answer
278 views

Difference in execution of init with embedded vs. external initramfs?

I'm building a very minimal linux system that just consists of the kernel (v4.1-rc5) and an initramfs populated with busybox (v1.23.2). It works fine for the most part, but I observe a difference in ...
1
vote
1answer
374 views

Linux kernel: meaning of source-tree, in-tree and out-of-tree

What do the terms "in-tree" and "out-of-tree" exactly mean? Also, does "source tree" specifically refer to the official kernel released from / maintained at kernel.org or is it a more general term ...
2
votes
1answer
291 views

kexec crashing when booting a kernel without initramfs (ARM)

First, a few details about the setup: Linux-3.14.1 ARM am335x chip U-Boot bootloader What I am trying to achieve: U-Boot loads a kernel that contains an initramfs (call this kernel 1). U-Boot ...
17
votes
4answers
20k views

How do I know that my CPU supports 64bit operating systems under Linux?

How can I find out that my CPU supports 64bit operating systems under Linux, e.g.: Ubuntu, Fedora?
5
votes
4answers
1k views

How to create loop sequence?

I am trying to create a script that will be getting one variable from user and should print a pyramid as below: * ** *** **** ***** I used this script but it shows me numbers: for i in {1..5} do ...
0
votes
1answer
86 views

DHCP server does not appear on nmap, no errors

I have tried to get into Ubuntu thing recently (newest edition), but I've got a problem with DHCP server. I configured the files /etc/network/interfaces and /etc/dhcp/dhcpd.conf according to my ...
0
votes
0answers
192 views

python install on linux RHEL5 - GCC 4.1.2-52

I used the following guide from the Beyond Linux From Scratch SVN Book, not knowing that my distribution was actually RPM Based (see comments), and now I am getting the following error during python 2....
2
votes
1answer
470 views

How to Mark Traffic using IPtables?

I'm trying to mark traffic, How shall I write following code in terms of IPtables? /ip firewall mangle> add chain=prerouting src-address=10.1.1.1/32 action=mark-connection \ new-connection-mark=...
2
votes
2answers
522 views

How to save boot.log between reboots?

How do you save the /var/log/boot.log between reboots? Or, more specifically, how can you just have boots be appended to that file? I have an issue with a kernel that I am running and need to be able ...
1
vote
1answer
1k views

Fedora GUI package installer takes very long (>15min) to start [closed]

I tried to use Linux GUI for Fedora but I did not find it intuitive than that of windows. Whenever I tried installing any software using rpm file by double clicking file, many times it stuck and ...
2
votes
2answers
101 views

Trying to transplant bash to /mnt for chroot, what does bash want in order to work?

I have a stage 3 gentoo tarball.. extracted it to /mnt which is hosting /dev/sda3. Though there was no bin and no sign of bash after unpacking. Far as I'm aware, the rest of the configuration involves ...
1
vote
1answer
106 views

udevadm does not show expected information

I'm building my own Embedded Linux distro using bitbake . I added udev in the list of dependencies (RDEPENDS). I noticed that the output of: udevadm info --query=property --path=/sys/block/sda is ...
4
votes
1answer
595 views

How to configure QoS per IP basis?

We have say 4 users in a private network connected to the Internet trough a Linux router with a public IP address that is doing network address translation (NAT). I gotta configure QoS to give access ...
4
votes
1answer
2k views

How do you deliberately trigger a “text file busy” error?

Very occasionally I encounter "text file busy" error while using my Linux 4.0.4 computer. I read that when the error happens, kernel is preventing modification to a file that is being "used". So I ...
2
votes
1answer
112 views

data recovery after partial shred

well i issued the following command: shred -v /dev/sdb. However I wanted to shred /dev/sda. I realized my mistake after about 2gb had been shredded (out of 2.7tb raid volume). what is the ...
0
votes
1answer
46 views

How can I loggin from VM1 to VM2 using script?

I am using script to loggin my VM2 from VM1 (Password of the VM2: fifa): for i in {a..z}{a..z}{a..z}{a..z} do # $i as a password ssh root@ipaddress read i echo $i done bit it doesn't work. ...
2
votes
1answer
959 views

Debian jessie without desktop

So, I installed debian Jessie on my computer. And it does not have any desktop. I have used numerous of different commands but it just say cannot be found. Thanks for the help. EDIT! One way to fix ...
4
votes
2answers
12k views

Where kernel configuration file is stored?

I currently run Angstrom Linux 2.6.32. I intend to upgrade linux kernel from 2.6.32 to 3.0.7. For this reason, I had to configure kernel 3.0.7 running make menuconfig. Now, I want to compare the new ...
1
vote
0answers
18 views

Is it possible to let the active virtual term be the only one with audio access?

I'm currently running Fedora 22 and want a setup where Kodi runs on vterm1 while steam runs on vterm2. I have set up two seats using LightDM. I am currently using ALSA in order to let Kodi bitstream ...
0
votes
1answer
128 views

Linux Mint 17.1 Mate stops responding

I was using LM 17.1 Mate version quite smoothly until one day I found my desktop wallpaper had changed to the original. Then after refreshing for 2nd time it keeps on refreshing and it seems that my ...
0
votes
0answers
91 views

Getting error in nslookup

I am trying to do nslookup skhdphost1 but I am getting below error. When I try to Reverse lookup checking using command nslookup 172.16.xxx.xx again getting the same error: The error message is: [...
2
votes
1answer
550 views

Why sudo user can use sched_setscheduler SCHED_RR while root can not?

I am running Arch Linux on a Raspberry Pi 2. I have a user-space program that uses Gordon's wiringPi library and, in particular, the piHiPri() function that attempts to set the highest priority for ...
2
votes
1answer
119 views

Piping a file that's being written and discarding the contents?

A software writes its logs on a file ("tonsOf.log"). Those logs are mostly useless and I process them later on with some pattern matching (line by line). So, for say 1 GB of logs, I end up with 40KB ...
2
votes
1answer
196 views

Capture specific column from command output

I know how to redirect first 5 lines of the output to a file when I execute a command. I want to know how to redirect only specific information from the output. For example I would like to execute ...
1
vote
1answer
77 views

True average CPU usage

On my system with 32 physical cores I'm constantly spawning 100 threads that run for anywhere between 0 and 3 seconds. After all are finished, the next batch is spawned. I'd like to get correct ...
2
votes
2answers
55 views

How to track resources' (inodes, blocks) usage change upon starting a program

I am supposed to track how file system's usage of resources (i-nodes, blocks) changes before I start a program, after I start a program, delete its executable file, and then finally after I kill its ...
1
vote
1answer
254 views

Is the Linux kernel affected by paging?

Is the whole kernel always loaded to RAM whatever the size of the RAM? In other words, can the Linux kernel be affected by paging (some part of kernel reside in virtual memory)?