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

1
vote
2answers
2k views

Cannot modify files in my home directory

I have a laptop running Ubuntu Server 12.04 and suddenly, yesterday, I don't know what happened, but all the permissions changed of my home directory, so when ever I try to create a file, it says ...
0
votes
1answer
182 views

Xen crashes when loading X

I installed debian-7.1.0-i386-kde then apt-get install various Xen stuff. After updating Grub I found it boots up using Xen however at the point where it tries to draw my desktop (KDE) I get a bunch ...
12
votes
3answers
4k views

How to get total number of bytes/sectors/blocks written to disk since booting?

I'm considering and update from HDD to SSD. But since Flash cells can only sustain limited writes. I want to know how much data my computer write during normal operation. So I can determine how long ...
9
votes
1answer
2k views

Output visual (ASCII) Debian dependency tree to terminal?

I'm not sure if this is more of a SuperUser or UnixLinux question, but I'll try here... Recently, I found this: #710689 - aptitude: use unicode character in the trees - Debian Bug report logs It ...
5
votes
1answer
7k views

Reading SIM data via file managers using USB datamodem

How to browse a GSM SIM card's filesystem in Linux / nautilus / pcmanfm filemanager, and read the files with suitable editors ? There is one related post: Howto read SMS stored on a SIM card? But ...
3
votes
2answers
25k views

How to sort results from ls command by modification date (directories first)?

I can fire ls -lrt to get files and folders sorted by modification date, but this does not separate directories from files. I want ls to show me first directories by modification date and then ...
3
votes
2answers
999 views

Mount a device as another user

Is there a command (on Debian Wheezy) that a testuser that belongs only to the group testuser can run (maybe he needs to be listed in sudoers first) in order to mount a USB stick as if he belonged to ...
1
vote
2answers
500 views

Dual boot Win8/Fedora19

I just installed Fedora 19 (gnome, 64 bit), in addition to my Windows 8 installation. But when I start the computer, it goes straight to windows, not providing any option to boot into Fedora. How do I ...
5
votes
2answers
1k views

Does linux kill heavy and long running background processes after they reach some threshold?

If I start a really heavy (memory/cpu intensive) running really long running process will the OS terminate it after a period of time arbitrarily? I.e. are there any limits beyond which the OS would ...
1
vote
1answer
2k views

How to use 32 bit compiled shared object (.so) file on 64 bit RHEL?

I have a shared object file libfault.so for my 32 bit compiled application on RHEL 6.4. I want to preload this file while starting my application. I have placed it in /usr/local/lib/ directory. But ...
6
votes
1answer
2k views

limits that are set in an unmodified environment

If /etc/security/limits.conf has not been edited or changed, there are nothing but comments. However 'cat /proc/self/limits' shows there are some limits in effect. Are these compiled into the kernel? ...
4
votes
1answer
3k views

viewing dll and exe file properties/attributes via the command line

I have a need to see some additional file properties for exe and dll files. If I open windows explorer and add the additional columns to my view, I can see things like Company, Copyright, Product ...
0
votes
2answers
184 views

Daemon not running when started over ssh

I'm trying to start the rngd daemon by remotely starting it via ssh. Unfortunately it does not seem to run until I log onto the machine. The command I'm using is: ssh -n -o StrictHostKeyChecking=no -...
2
votes
1answer
549 views

Generate interrupts for purpose of stress testing

I'm testing the quality of a generated PWM signal on a Raspbery Pi. I would like to test how it behaves if there are lots of interrupts coming. Is there a way to fake interrupts or force 2000 ...
3
votes
0answers
85 views

LXC: Have rootfs mounted without nosuid

I have the container's rootfs in a volume mounted with the nosuid option. When I start the container, its / mounted is then also mounted nosuid, which breaks programs such as sudo. How can I avoid ...
1
vote
2answers
15k views

How to know why server keeps restarting?

It seems that my server keeps restarting. I want to know why. How can I know when the last time server was rebooted and why? root pts/0 139.193.156.125 Thu Aug 8 21:10 still logged in ...
1
vote
1answer
329 views

How to ftp as root?

I can ftp to a linux server by doing ftp server But I can't do that with root. Need sftp or something or what?
12
votes
2answers
4k views

Why does Linux require moving IP from eth interface to bridge interface

When a network interface (e.g., eth0) is added to a Linux bridge (e.g., br0), the IP address must be removed from eth0 and added to br0 for the networking to function properly. I recall reading in ...
1
vote
3answers
122 views

Confused on user and su in linux

How could I run a script as a specific user (non-root)? As this? sudo su - john /usr/share/script.pl for user john?
0
votes
1answer
895 views

Gentoo 3.8.13 x86_64 Update problem

I am trying to perform full system update for my Gentoo 3.8.13 x86_64 emerge --update --deep --with-bdeps=y --newuse world But I am getting the following error !!! Problem resolving dependencies ...
4
votes
2answers
4k views

How to install and use at job scheduling?

I am not clear on the following: Is the process for at available to all linux installations? Or do would I need to do something to "install" it?
4
votes
2answers
897 views

Debian-Windows dual boot: which one should I install first?

I have a fresh desktop with no OS that I want to run Windows 7 and Debian stable on. All guides for dual boot setups I found so far assume a pre-installed Windows (possibly because so many PCs come ...
1
vote
1answer
650 views

What is the pipe character “x|y)” in the case statement?

In a script /etc/network/if-up.d/avahi-autoipd in my system, I find statements like this: case "$ADDRFAM" in inet|NetworkManager) ;; *) exit 0 esac case "$METHOD" in static|dhcp|NetworkManager) ;...
5
votes
2answers
11k views

Debugging iptables using live packet views

Are there any CLI or GUI functions that I can use to monitor hits to iptables and watch as packets interact with iptables?
1
vote
1answer
448 views

Why am I getting “no boot disk has been detected” after installing Linux?

After installing a Linux distro (Fedora 19, to be exact) on a Windows 8 machine I got the message: No boot disk has been detected or the disk has failed. What did I do wrong?
7
votes
2answers
560 views

Strange temporary network outage in Linux

I'm facing a very annoying problem that I noticed a week from now and for which I can't find an answer: my network suddenly stops responding, usually coming back exactly 25 seconds later. I was using ...
4
votes
1answer
617 views

What is ionice `none: prio 0` equivalent to?

The ionice manual states that: Note that before kernel 2.6.26 a process that has not asked for an io priority formally uses "none" as scheduling class, but the io scheduler will treat such ...
1
vote
3answers
135 views

Virtualizing a Low End Virtual Server

I have started to teach the lesser fortunate children in my area about technology and computers in general. Some of them show some real promise and I'm planning to introduce them to Linux and Open ...
1
vote
0answers
148 views

AR9485 Wireless Network Adapter with Linux

Lately I change my VivoBook 500ca for Linux. I installed the latest Mint Cinnamon. I have been having some problems with my wireless card : description: Wireless interface product: AR9485 ...
4
votes
2answers
182 views

Linux Kernel limit access to root with a button?

Is it possible to limit the access to a root account from within the kernel? I mean that if I press a button then the system detects the button being pressed and then allows access to the root ...
0
votes
1answer
49 views

Vlook up in gawk or unix

I would like to do a vlookup in unix or gawk. I have a file with a column of numbers (file1) I have a file with several columns (file2) I want to look up for the numbers I have in file 1 into column ...
1
vote
1answer
420 views

can linux be configured to blink an LED (GPIO) on disk activity?

I'm hoping to blink an LED that is wired up to a GPIO line whenever the USB connected disk has activity is there an easy way to pull this off?
4
votes
1answer
153 views

Are there any security risks when mounting as root?

Are there any security related risks when mounting with root privileges compared to mounting with regular users? I have a script which does some ecryptfs mounting with non-root privileges (by design), ...
2
votes
2answers
470 views

How to turn off single user mode on a remote machine?

I have a linux machine that I was accessing remotely and I made the mistake of doing #init 1 which turned off networking on the machine. What is the easiest way to turn networking back on and/or get ...
1
vote
3answers
2k views

Recover Windows partition in a GPT disk (previously MBR)

I have tried installing Arch Linux and what I ended up with was a partition scheme like this: /dev/sda: /dev/sda1 NTFS partition (Windows 7) /dev/sda2 ext4 (Arch) /dev/sda3 swap I don't know ...
1
vote
1answer
875 views

Buildroot OpenGL Capable Backend

I'm trying to configure QT 5 through buildroot and some options are not available with the message requires an OpenGL-capable backend. I'm using buildroot 2013.08-rc1 but the same message comes up ...
5
votes
1answer
121 views

Upgrade kernel for linux system without upgrading user apps/libs?

I built a custom Linux "recovery-cd" image that consists of a compressed initrd and boots via bcdedit (like Ubuntu Wubi) instead of a physical CD. It has various recovery tools for partition editing, ...
3
votes
2answers
2k views

insert text in a file using echo command [duplicate]

I am trying to insert some text in a file in the following way sudo echo "abc-abc/abc/abc" >> /etc/portage/make.conf but it give me the error Permission denied although I am using sudo ...
3
votes
1answer
591 views

Where does Linux store logs of WiFi networks when searching? Does it at all?

For research I wanted to try and keep a log of all the networks that my laptop sees (not connects connects to, but just gets a response from when searching) over a period of time walking around. I was ...
1
vote
1answer
891 views

Command line error in OpenSUSE (old version)

I'm using an old version of OpenSUSE and when I try to update some package via the command line, e.g. Zypper update firefox it shows the message listed below. System management is locked by ...
2
votes
2answers
2k views

a handy tool to measure memory consumption of a program [duplicate]

I develop a C code on Debian. I am looking for a program to monitor memory consumption of my code in real-time. The only value I care is the maximum RAM consumption, it should hold the value even if ...
2
votes
1answer
454 views

lxde-rc.xml: set keybindings for PgDn

I am using LXDE, and I need to create keybinding for ALT + PgDn and ALT + PgUp in my $HOME/.config/openbox/lxde-rc.xml I already have the necessary code, the only thing missing is the correct ...
7
votes
1answer
4k views

How do I find package URLs with Yum?

I want to update my system (Fedora) with Yum, but I want to use aria2 to download the packages. There was something in pacman that you could use to get the update URLs (and put all links in a file.) ...
1
vote
0answers
183 views

Assigning an identity to an IPsec policy in Linux

Page 36 of RFC2367 (PF_KEYv2 Key Management API) states that when the kernel needs an IPsec security association for an outbound packet, but does not have one, it will ask the key management daemon (...
1
vote
2answers
1k views

how to escape unusual/uniq characters from expect scripts?

in expect script I can set any command or character to run it on remote machine but the sad thing is that expect cant send the same character as they defined in the expect script for example I want ...
3
votes
1answer
6k views

Difference between a.out and ./a.out

My Confusion a.out is the output of the programs which I execute in my Ubuntu 12.10. In Red Hat system when I execute a.out in the terminal it executes. While in Ubuntu I have to execute ./a.out to ...
2
votes
1answer
461 views

how to replace IP address on remote host using expect

I wrote the following expect script in order to replace the IP address on remote Linux machine I use a perl one-liner for this task I get errors about can't read "HOME": no such variable , Please ...
32
votes
1answer
79k views

How to see process created by specific user in Unix/linux

I want to see list of process created by specific user or group of user in Linux Can I do it using ps command or is there any other command to achieve this?
2
votes
0answers
129 views

Linux child processes not being culled [closed]

This is causing significant problems for script portability between BSD and Linux. I am on a CentOS 6.4 where this happens. I have a nice compact test case: bash -c "inotifywait -mcr . | sed s/...
1
vote
1answer
2k views

How to disable respawn for terminal?

In old 5.3 rhel, we used to define the number of terminals and their respawn settings in /etc/inittab file as below. 1:2345:respawn:/sbin/mingetty tty1 1:2345:respawn:/sbin/mingetty tty2 1:2345:...