Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

4
votes
6answers
1k views

Force output buffer flush in running program

I have a long-running python script that periodically outputs data to standard output that I've invoked with something like: python script.py > output.txt This script has been running for a ...
11
votes
10answers
3k views

Determine Linux distribution

I am trying to determine what flavor of linux server is running. I am not trying to determine the kernel version - but rater the distributor. gcc is installed, and in the version output, it says ...
13
votes
3answers
11k views

Get home directory by username

I want to obtain home dir of any user with echo echo ~puchuu >> /home/puchuu But I cant use variable echo ~$USER >> ~puchuu echo `echo ~$USER` >> ~puchuu
1
vote
0answers
22 views

How to create route for dummy interface

I have two linux servers 172.20.140.10 and 172.20.140.11 in same network. 172.20.140.10 is used for simulating the devices and 172.20.140.11 is my Collector. In 172.20.140.10 I have created 2000 ...
0
votes
1answer
37 views

how to save iptables rules permanently?

I want to keep some iptables rules permanence, so I just only add the rules manually: /sbin/iptables -I OUTPUT -p tcp --sport 80 -j QUEUE I am sure that the command works, because I could see it ...
3
votes
2answers
40 views

Packets not received when running IPv6 through a bridge

I have a setup with two network interface: eth0 and tap0, bridged by br0 bridge name bridge id STP enabled interfaces br0 8000.************ no ...
-1
votes
0answers
7 views

Yum installation fails with RHEL 6.5

I am trying to install shibboleth SP package using YUM installation (Yum install shibboleth). I am getting the following error while installing. Downloading Packages: ...
0
votes
0answers
7 views

Jenkins using .war file on Linux

I have deployed .war file of Jenkins on web-logic in Linux system, and created one job that job invoking ant file. It is working fine on my windows system but on Linux it giving me following issue, ...
7
votes
4answers
5k views

Why am I always asked to unlock my login keyring at startup?

I'm using the xfce window manager and reboot and shutdown seem to work normally. However, whenever I log back in, I always see the following: Why do I always see this message? I would expect that ...
0
votes
0answers
15 views

How to backup Dell's partitions (PBR Image and WINRETOOLS) using Linux?

My HDD recently crashed and I can't access my Windows 8 PRO partition anymore, so I bought a SSD to reinstall it. The problem is that my Windows is OEM and I need to backup the PBR Image and ...
0
votes
1answer
19 views

Sudo asking for password

I am new in Jenkins CI development, Tying to setup Jenkins on Linux system for that I have referring site But, when I type provided url sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jen it ...
1
vote
3answers
5k views

How can I install gcj on Linux?

How can I install gcj? Do I need to recompile gcc? I have a system with gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3) and another with gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44) Running gcj on both ...
1
vote
2answers
32 views

Rename files do the tree folder name in terminal, shell mac or shell linux

I'm working with a tree of folders and files with the structure \ Stories \ 00 \ 0 \ 00000 \ temp.xxx \ Stories \ 00 \ 0 \ 00001 \ temp.xxx ... \ History \ 10 \ 5 \ 10552 \ temp.xxx \ History \ 10 ...
3
votes
5answers
292 views

Is it possible to delete an MP3 file currently played in mplayer?

I would like to remove an MP3 file that is currently being played back in mplayer. If possible I would like to do it with an mplayer command. So that I don't have to quit mplayer and delete this file ...
0
votes
0answers
8 views

What is the timeframe used, for TCPBacklogDrop value calculation in netstat

I'm interested in the value TCPBacklogDrop of the command netstat -s on linux. But I don't know which timeframe is considered, when calculating it.
0
votes
0answers
11 views

Configuring Ansible for Docker Dynamic Inventory

I'm trying to setup Ansible's Dynamic inventory for Docker. I read the instructions in the docker.py and docker.yml file. My docker.yml contains: --- defaults: host: unix:///var/run/docker.sock ...
-1
votes
0answers
23 views

Removed log folder and now my PHP script will not run

I deleted a log folder(log folder and all the sub folder within log folder) under var folder because it was taking 19GB of my disk space. After this, I can't run any php script. It show as a source ...
0
votes
1answer
29 views

Raspberry Pi: “Cannot find host”

I changed my hostname on my raspberry pi using this resource: How to Change Your Raspberry Pi (or Other Linux Device’s) Hostname. When I use the host name on the ssh client to connect to the ssh ...
4
votes
1answer
67 views

Require user passwords on linux only on weekdays

Is it possible to make linux require user password only during specified time range, eg. from Monday to Friday? I want to set it this way on my Linux Mint, so that kids cannot access computer on ...
1
vote
1answer
2k views

Prevent auto mounting Android sdcard under Linux Mint

I recently obtained an older Android phone, so that I could test Android Apps on it. I've needed it because I have a Nexus 7 but not older Android versions, hardware, etc. to test on. I'm having a ...
-1
votes
0answers
16 views

How can I download network-manager-gnome package with all dependencies

I have Windows and Kali on dual-boot. "network-manager-grome" is uninstalled and when I'm trying to install this package (after downloading it on Windows) on Linux some errors dependencies returned. ...
-7
votes
0answers
27 views

OpenGrok configuration in Linux - SEVERE: Error: No Exuberant Ctags found in PATH

When I tried running the following command in Linux Environment java -jar opengrok.jar -W /home/app/OpenGrok/opengrok-0.11.1/configuration.xml -c /home/app/OpenGrok/Ctags/ctags.exe -P -S -v -s ...
7
votes
3answers
4k views

How do you import an EPS file in Inkscape?

I'm using Inkscape, and I'm trying to import an EPS file to use it as a vector and eventually save it as an SVG. This link here mentions several methods: ...
0
votes
0answers
17 views

How to isolate bluetooth device mfg and model when not listed in specs?

I am working on an HP Pavilion DV7-6166NR that has various potential matches from HP's driver section. I have not been able to find any actual enumeration or specification of what Bluetooth device ...
0
votes
2answers
3k views

Openconnect for Cisco VPN doesn't recognize private key file - asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

I'm trying to use my Synology DS212 NAS box also act as VPN gateway to my companies VPN. Sadly, they only use Cisco ASA and to complicate stuff even further, we've got to use personal certificates ...
0
votes
3answers
37 views

Unix Command to grep a time range

I have a log file, saved with particular date. I wanna fetch log entries during a particular time and date range to another file. Ex: all entries from 2014-12-04 00:00:00 time to 2014-12-04 17:00:00 ...
0
votes
1answer
411 views

How to bridge tap to eth0 on raspberry pi?

I am using my raspberry pi as a openvpn cleint for my xbox 360 because at my college i get kicked off xbox live for either strict nat type or a connection limit. I can connect to the vpn just fine, i ...
12
votes
3answers
30k views

How to check if I have sudo access?

I recently got into trouble because of this. $sudo vim /etc/motd [sudo] password for bruce: bruce is not in the sudoers file. This incident will be reported. Is there a way to check if I have ...
0
votes
1answer
42 views

Use cloud-init with VirtualBox?

Cloudinit is used by many cloud images e.g. on EC2 to obtain their initial configuration, like IP address, ssh keys and the like. Is there a way of using it with VirtualBox in a similar way? I'm ...
10
votes
3answers
7k views

How long does badblocks take on a 1TB drive?

I'm running badblocks (or rather "e2fsck -c") on a 1TB drive and if the progress indicator is any indication (no pun intended), it's going to take almost forever to complete. Right now it says 0.01% ...
0
votes
0answers
19 views

What is the CentOS 7 equivilent package for python's “rhpl” from CentOS 5 (textdomain_codeset)

I have legacy Python (2.4) code from a CentOS 5 machine, which I am porting to CentOS 7 with Python 2.7. The file "timeconfig.py" (used for setting system time and date "graphically" on a text ...
2
votes
1answer
4k views

Kali 1.0.5 Internet Connection Problems

I have recently installed Kali Linux and am having connection issues. It says I am connected to the network, but I am not able to access the Web. A Ubuntu 13.04 running on the same machine (dual boot) ...
-1
votes
0answers
19 views

Multi-OS bootable USB for Mac and Windows?

At the moment I have two usb's with different linuxes on them , Kali and Ubuntu. I recently found out that both were taking up little space, which means I could use one usb instyead of two, with extra ...
-1
votes
0answers
15 views

Giant Swap File fills hard drive to capacity

Today I had a most odd experience on our student computing server. Suddenly, you could not save a file and you got a "file system full" message. So I did a du -sh on all user directories to see what ...
0
votes
2answers
998 views

blocking port 80 via iptables

I'm having problems with iptables. I am trying to block port 80 from the outside, basically plan is we just need to Tunnel via SSH then we can get on the GUI etc. on a server I have this in my rule: ...
53
votes
8answers
27k views

Reload a Linux user's group assignments without logging out

When assigning a user's secondary group list using: # usermod -G <grouplist> <user> is it possible to force this group assignment to take effect without logging out all running ...
0
votes
1answer
26 views

from which file grep found match

when doing something like this: cat *.* | grep mystring is it possible to know from which file each match comes from? If not what would be the alternative?
0
votes
1answer
294 views

Ubuntu wrong clock time (universal and local)

Local time and universal time are wrong. They are shifted to -2 hours to the real time. Setting the timezone didn't solve because the universal time is wrong. I'm running Ubuntu 14.04 and I have a ...
6
votes
2answers
705 views

What does the output of fdisk mean?

I've got a flash drive and I want to understand the properties of it as is outputted from fdisk. I inserted it and check the dmesg and I could see that it was mounted as /dev/sdb1 so I ran fdisk to ...
3
votes
2answers
3k views

What does an empty iptables mean?

I'm using CentOS and when type the command: iptables -L -v The output is as follows: Chain INPUT (policy ACCEPT 19614 packets, 2312K bytes) pkts bytes target prot opt in out ...
0
votes
1answer
27 views

Mount external drive as writeable for all users

Okay, the neat thing about Ubuntu is that it automatically mounts any extra drives as read/write for non-root users in /media. But, whenever I use mount from the command line on Ubuntu or any ...
1
vote
2answers
71 views

Is it safe to remove /var/cache to free space?

I am trying to free some disk space from my Ubuntu 12.04 installation before making an image of the partition. I was wondering if it is safe to delete the contents in /var/cache? Here are the top ...
2
votes
1answer
24 views

Copy file from remote host to another with scp/ssh tunnel

I want to copy a file from a remote host (remote1) to another remote host (remote2) via my local machine. I can only establish ssh connections from this local machine to either of the two remotes. ...
0
votes
0answers
9 views

BTRFS & F2FS userspace utilites cross compilation

Is there any weblink/document which describes the steps to cross-compile btrfs & F2fs user space utilities ? Any steps ? special tuning suggestion for arm based board.(AM335x) ?
1
vote
0answers
24 views

How to download certain elements of a web page, skipping long tag attributes

(formerly titled: Curl -- how to exclude certain elements) Background: I regularly use command line cURL (on linux) to retrieve web pages. Situation: A new page I have to get is heavily bloated with ...
0
votes
2answers
35 views

Can you see whats happening under the gui?

When I start application with gui from linux terminal, i am able to see whats happening iunder the gui in that terminal. And if it crashes, most of the time there is problem why did it crashed. So my ...
0
votes
1answer
25 views

Changing TCP sliding window behaviour

We all know that TCP's congestion control uses additive (linear) increase and multiplicative decrease when adjusting sliding window size. Is there a way to change it to "linear decrease"? When a ...
0
votes
2answers
42 views

du and ls report different directory size?

In trying to verify that a copy-operation completed successfully (or at least that it didn't skip any files), I ran du -b inside the source and destination directory and it showed a difference of ...
0
votes
0answers
2 views

Apache redirect awstats always to the same configuration

I configured apache to make a simple redirect for awstats: RewriteRule ^/awstats$ /awstats/ RewriteRule ^/awstats/$ /awstats/awstats.pl?config=domain.com [R] This configuration is inside a ...
0
votes
0answers
12 views

systemd user and system

I'm trying to understand a little better systemd by writing some services. I have difficulties in understanding the differences between those 2 services for instance, well I'd like to be sure I ...