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
1answer
42 views

Linux Debian memory leak? [duplicate]

I am running an application which needs to be restarted everyday. I am noticing that when I close this application and I run "free -m" It says: total used free shared ...
3
votes
3answers
861 views

How to do domain filtering in Linux?

Preferably something similar to iptables. Basically, I want to do domain filtering/whitelisting/blacklisting like I would with IPs in iptables. Are there any recommendations on how to do this?
3
votes
1answer
151 views

How to get gnome to run /etc/gdm/PostSession/Default when using XRDP w/ VNC

I use Microsoft's Remote Desktop Client (mstsc.exe) to connect to a linux server with GNOME as my desktop. I've set up /etc/gdm/PostSession/Default to execute some steps on cleanup - which works when ...
1
vote
1answer
21 views

Why can't I see the output of scripts ran using ForceCommand in sshd_config?

I set up sshd_config with ForceCommand /path/myscript.sh for the user "tester": myscript.sh: #!/bin/sh echo test1 echo test2 | tee -a /home/tester/test.log The script is executed properly on login ...
9
votes
3answers
5k views

Viewing system console messages in GUI

Under Linux, is it possible to view error messages that show up on the text mode terminal while in GUI mode, instead of having to press Ctrl+Alt+F1 or Ctrl+Alt+F2 to view the messages every time and ...
4
votes
2answers
189 views

How to parallelize dd?

I'm currently having trouble with dd invoked with a sparse file as input (if) and a file as output (of) with conv=sparse. dd seems to be using one core of the CPU (Intel(R) Core(TM) i7-3632QM CPU @ ...
2
votes
3answers
2k views

How to remove an empty directory (btrfs filesystem)?

I'm using the experimental btrfs filesystem. My directory looks like this: ls -la empytfolder total 4 drwxr-xr-x 1 root root 0 19. Mär 14:00 . drwxr-xr-x 1 root root 298 19. Mär 13:59 .. I ...
0
votes
2answers
51 views

Linux File System for an External HDD

I'm looking for a file system for an external HDD which will be basically used for backups. It will only be used with Linux machines, so I don't mind having a Linux-specific file system. I may ...
1
vote
1answer
39 views

Why does `systemctl enable rpcbind' change the volume of my sound? And how do I prevent this?

I just did: $ systemctl enable rpcbind And this caused the volume on my headphones to increase severly. First off, I don't understand why this happens, as rpcbind seems completely unrelated to my ...
5
votes
2answers
1k views

Querying an overlayfs

I'm looking for a way to query a mounted overlay filesystem (overlayfs) in order to check it's upper and lower directory, but until now I haven't found any suitable command for that. Is there is a way ...
-2
votes
0answers
17 views

what is readelf -l <name of binary> | grep interpreter [closed]

I don't know how to use it and which binary program. Which binary program is mentioned there?
1
vote
1answer
848 views

Build Linux and run it (uImage) on the Beagle board - xM

I'm working on some project where I'm using the Beagle board - xM Rev C. Power supply is 5V/2A adapter. My task is porting Linux Angstrom on the board but I have some problems. I have choosen Linux ...
1
vote
0answers
11 views

can I delete abstract socket path? [migrated]

I created a abstract socket. #define SOCKET_PATH @/tmp/xyz /*in server code of socket_server.c*/ int sockfd = -1; int len; struct sockaddr_un address; int result; sockfd = socket(AF_UNIX, ...
-3
votes
1answer
25 views

Difference between different Linux distributions? [closed]

I am new to Linux and I saw many different distros, they use different desktop environments (eg. Xfce, kde, gnome, unity) and different package manager (pacman, apt, etc.). Moreover, they have ...
1
vote
1answer
24 views

Plot values returned by command output

I have a little script that prints the CPU temperature after each T period of time, so the output is something like this: 19/02/15,01:00 30 19/02/15,02:00 33 19/02/15,03:00 38 19/02/15,04:00 32 ...
1
vote
3answers
101 views

how to set up permissions of “download” dir to prevent execution of exploit program

There is a host with a local service that receives data from a remote location (via e.g. http) and saves it locally under /var/log/data/ in some mydir. $ ls -al /var/log/data drwxr-sr-x+ 4 root ...
0
votes
1answer
4k views

rsh shows “poll: protocol failure in circuit setup”, why?

In the starting rsh worked properly, but after making some changes it shows some error [changes are shown in the end of this question, see that], I am sharing the same. Command $ /usr/bin/rsh ...
6
votes
1answer
726 views

USB 2.0 device is not working in USB 3.0 ports

I have a Ubuntu 12.04 system. On that system I have one USB 3.0 port. In this port I am trying use my USB 2.0 device, but every time when I plug in that USB 2.0 device into the USB 3.0 port, the ...
1
vote
1answer
11 views

Selecting IO scheduler on external drives

I'm running linux on the beaglebone black. My system is running directly from the sdcard. To change the IO scheduler I need to configure /sys/block/xxx/queue/scheduler where xxx is the mounted ...
7
votes
3answers
746 views

How to prevent user from changing files using linux permission

Is it possible, using linux permission scheme, to allow users create files but not edit or delete them at a later time? I mean, we have a delivery folder where users put artifacts there and we do not ...
0
votes
0answers
14 views

Slow graphics when using kernel without module unloading support

If this is the wrong place for this question, please let me know. I didn't know where to ask, so here we go: Initially I wanted to disable module loading support for my linux kernel because I know ...
2
votes
2answers
502 views

Where to find the VBR on the /dev/sda1 partition?

I have one built-in hard disk /dev/sda which looks like this: Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors Units = sectors of 1 * ...
0
votes
3answers
45 views

Which commands or operations can be used to put the cpu under intense load?

I would like to measure latencies during high cpu usage but I don't have benchmarking tools like stress and I can't install them. Which operations do you recommend to put the cpu under intense load? ...
62
votes
18answers
50k views

How can I get my external IP address in bash?

I need to find my external IP address from a bash script. At the moment I use this function: myip () { lwp-request -o text checkip.dyndns.org | awk '{ print $NF }' } But it depends on ...
1
vote
0answers
17 views

Specify auto login for a specific tty in rhel 6.5

Hi everyone I have a problem in auto login for only a specific (say tty1) tty. I want to startx in tty 1 for that I have modify /etc/init/tty.conf file lik this : exec /sbin/mingetty --autologin ...
1
vote
1answer
77 views

Debian Jessie: My LAN is not working!

I can connect to the Internet without a problem by using wireless networks. I have a DSL connection on defined which can connect to the Internet when LAN is connected. When I plug-in network cable, ...
2
votes
1answer
1k views

Ubuntu: wire network is not stable and must restart network-manager periodcally

I don't know why my wire network now is not stable. After a short time of using, maybe 30 minutes, 15 minutes or maybe just 2 minutes, my network is down. When my network is down, I must run this ...
8
votes
2answers
381 views

How to make linux 'perf record' work for libc and libstdc++ symbols?

I'm using perf record -g on x86-64 Linux to profile a program. Several symbols in libc or libstdc++ have 0 as a parent: __GI___strcmp_ssse3 (libc) and strcmp@plt (libstdc++) for example. (I can ...
3
votes
1answer
2k views

Kernel booting stops right after “Uncompressing Linux…”

I'm trying to bring up an ARM-based board. I've got U-Boot working but can't seem to get the kernel to load. Most of the time it only goes as far as: Starting kernel ... Uncompressing Linux... A ...
0
votes
0answers
14 views

How to capture single process and graph it to cacti?

Is there any way that I can get CPU usage or memory usage for single process and graph it to cacti ?
0
votes
1answer
51 views

Run a Vim command from a bash script

This is related to a question I asked earlier but I would like to keep it separate in case anyone else can find use in it. I have a command that I am running on a file called dummy.out from the ...
-2
votes
1answer
27 views

Using 'grep' to search for a specific pattern [duplicate]

I'm playing with the Linux terminal and I have to do a exercise which states that I have to find inside a file for any line that contains at least an a, b and c, it doesn't matter it the lane has 2 a, ...
1
vote
2answers
32 views

How to Overwrite Linux Mint 13 with 17.1 with Windows 8.1 dualboot?

I have recently been given a disk from my friend to install Linux Mint and have installed it to dual boot with my Windows 8.1. The version he gave me was version 13 (maya). I want to overwrite this ...
-1
votes
0answers
17 views

Configuring core dump in Suse Enterprise Linux

can anyone help me to know step by step how to configure core dump in Suse Enterprise Linux so that it could create core dump file in case of any type of process crash whether it is system or the ...
0
votes
0answers
5 views

can all the users access internet using single credentials in user based squid

configured user based proxy, created one user, and gave the same credentials to all the users in the LAN, will there be any problem?
1
vote
0answers
5 views

Constant 60KB Shared library memory on /proc/<pid>/maps

In a quest for understanding RAM requirements of system processes, I arrived to analysis of /proc/pid/maps. I have noticed a pattern: many shared libraries have exactly 60KB space allocated in their ...
1
vote
1answer
22 views

How can I configure the default transmission rate for 802.11 (“WiFi”) in Debian 7 GNU/Linux?

I need to lower the transmission rate of my IEEE 802.11g network interface controller to have acceptable packet loss ratio (< 0.5 %), otherwise it becomes very high (> 50 % is ...
6
votes
5answers
3k views

How can I get an alert when my battery is about to die in Linux Mint?

This happens to me more than I'd like to admit, but sometimes I don't notice the power getting low since it only shows up in my status bar, then the computer just quits. I'd like a big alert that ...
3
votes
1answer
1k views

Excessively high memory usage reported (3 GB) after reboot

Brief problem description: A 64-bit Gentoo on Intel Core-2 Q6600 reports about 3GB used out of 8GB total memory after reboot. This memory is neither claimed by any process, nor is it used by ...
0
votes
1answer
44 views

changing default centos 7 workspaces

On CentOS7, using the gnome environment, I do not seem to be able to add, remove, or change the workspaces. I prefer to have 2 workspaces, or no workspaces, and understand the usefulness of the ...
1
vote
1answer
21 views

How do I know I should turn swappiness down?

I have 5.5 GiB memory, using 2.8 GiB (~50%), but my swap is using 1.9 GiB of 5.6 GiB (~33%). My computer operates okay but is sluggish at times. So is this a high amount of swap usage or completely ...
0
votes
2answers
53 views

Buildroot - missing i2c kernel modules

I've used Buildroot to build a minimal operative system. During the configuration step with the menuconfig utility I specified to install I2C tools. The option was is Target Package -> Hardware ...
2
votes
2answers
648 views

Lost window title bars and everything after selecting bad window theme in Linux Mint

I've selected a window theme from the "Advanced Settings" in Linux Mint 12 which seems to be corrupted and I've lost everything on my desktop. I can't start any applications but I can open the ...
1
vote
1answer
23 views

Simple floating point benchmark that can be compiled from source?

I am interested in benchmarking some ARM platforms; can anyone suggest a simple benchmark with source code that can be used to benchmark floating point performance? A package such as a .deb file ...
-2
votes
0answers
33 views

Unable to download file using unix

I have few files in the BOX (an application to store files). I have to download one of that file using unix commands. The command I am using is wget myurl But the above command downloads the xml ...
1
vote
1answer
5k views

How to dual boot linux and windows 8.1?

I have a computer running Windows 8.1 and I would love to dual boot it with Linux. I am very new to Linux. I have run it in a virtual machine a few times before, but virtual machines are slow. I want ...
2
votes
1answer
38 views

What does -/+ buffers/cache means in the output of free? [closed]

I know this is a lame question, but I want to understand why CentOS consumes my Physical memory when certain process stopped. Suppose I have opened a file of 10GB then it consumes 10GB in ram and ...
4
votes
1answer
91 views

Linux can't see any of my partitions — The backup GPT table is not at the end of the disk

I'm trying to install Linux on my HP Pavilion 14 inch ultrabook, but without any success. At first I tried installing Ubuntu on it; everything went fine, I got into the Live DVD (yes I'm oldschool ...
1
vote
1answer
21 views

Auto-start multiple background user sessions in Linux Mint

I could use some help with what I think is a basic request on the newest edition of Linux Mint (which I think would also be applicable to Ubuntu). I have a home system with 3GB of RAM and accounts ...
5
votes
1answer
1k views

What is SSTP vpn server and how can I run one?

I've read a couple of L2TP and PPTP tutorials on the net and there are just dozens of "running PPTP/L2TP on Linux" guides available out there and I successfully made packages like open-swan or pptpd ...