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

4
votes
1answer
432 views

Why does activation of LVM partition with large snapshot take a long time?

After creating a large snapshot (I assume it drifted about 30GB from the original) I noticed that vgchange -ay took noticeable longer (to the point I thought computer hanged). What does the ...
0
votes
0answers
4 views

How to check and run a script if it's not running?

I created a pretty simple script that will run 2 python programs in background, code is: python /opt/cuckoo/cuckoo-2/cuckoo.py 1>cuckoo_script/cuckoo_start.txt 2>&1 & python /opt/cuckoo/...
0
votes
1answer
13 views

how to download poky onto a micro SD card

How do I download Linux Poky onto a micro SD card? The goal is to be able to insert the SD card into a gumstix camera so that we can input commands directly to the camera.
1
vote
1answer
11 views

Kernel parameters “console” and “earlycon” refer to old hardware?

I first found this by investigating parameters for earlycon but found that the options for console look almost identical. Both are present below and were taken from this source: From documentation ...
0
votes
0answers
3 views

New Battery Not Charging. Driver Issue? Kali Linux

first time poster to this forum, first time user of Kali. I look forward to learning a lot. I have installed Kali Linux on my Asus X551M. I have just purchased a new battery and installed it (It's ...
2
votes
2answers
51 views

using systemd timers instead of cron

I am on Arch Linux where I am trying to create a systemd timer as a cron alternative for hibernating my laptop on low battery. So I wrote these three files: /etc/systemd/system/battery.service [...
0
votes
0answers
6 views

Booting kernel (FIT image) with no rootfs

An embedded Linux device I am working with has the following kernel parameter: root=/dev/ram0 Additionally, the kernel image is bundled together with an initrd and device tree to make a flattened ...
0
votes
0answers
8 views

How to run a chef cookbook on 100 servers

i am new to chef i have successfully configured chef workstation and server. here i am using hosted chef, I was bit confused how to launch 100 or more instances by knife EC2 command and how to run a ...
5
votes
1answer
1k views

What are the different ways to set file permissions etc on gnu/linux

On Unix, a long time back, I learned about chmod: the traditional way to set permissions, on Unix (and to allow programs to gain privileges, using setuid, setgid). I have recently discovered some ...
1
vote
0answers
22 views

Get `scp path/` behave like `rsync path/`

I have local file structure: /tmp/24 /dir1 /file1 /file2 /dir2 /file3 /file4 and I want to upload it to remote compute. When I use rsync /tmp/24 host:/...
1
vote
0answers
9 views

How to Reflash Toshiba Satellite L855-10P BIOS in a Linux Distro?

Hi I need to Reflash the BIOS of my Toshiba Satellite L855-10P using a Linux distro. How can one do this? I have found lots of info on how to read the BIOS (windows & Linux), dump memory from it ...
1
vote
2answers
82 views

move IP address from one interface to another without interruption

When I need to move IP address from one interface to another, I have usually done simply for example ip addr flush dev eth0; ip addr add 10.10.10.181/26 dev eth0.35 over an SSH session. So far I have ...
2
votes
0answers
180 views

Which boot loader is used for live CD and why? [on hold]

I have been using Ubuntu on my local machine and occasionally running Debian and other Linux distributions for experience. Until recently I thought GRUB 2 is far common, but that was misleading. ...
0
votes
0answers
28 views

Curl gets 200 OK, while browser shows 503

I have a bash script: code=$(curl -I -s -S --resolve $host:$port:$ip $link | grep 'HTTP/1.' | awk '{ print $2 }') if [ $code -eq 502 -o $code -eq 503 -o $code -eq 504 ]; then /usr/sbin/service ...
0
votes
1answer
28 views

Redirect keyboard input to unfocused program

I'm looking for some help with a computing issue. I'm running Openbox 3.5.2 on Raspbian/Pi3 and a single monitor. I want to have one program focused and in fullscreen while the keyboard outputs to ...
1
vote
0answers
9 views

Large TCP backlog in docker container, but no visible connections

In a setup with three docker instances, one running haproxy and two others running a flask-based python application through uWsgi, we run into a situation after about a day where no new connections is ...
1
vote
2answers
1k views

Installing Popcorn Time SE

After extracting Popcorn-Time-linux32.tar.gz, it shows these 4 files: libffmpegsumo.so, nw.pak, package.nw e o Popcorn-time. How to install it on Linux Mint 17 Cinnamon 32-bit (v 2.2.16)?
-4
votes
0answers
21 views

Using the top, kill and ps commands for system management [on hold]

I recognise that this question has been asked in multiple ways recently but I am required to complete research for an exam and I need an in-depth analysis. Hopefully this is specific enough as I don't ...
0
votes
0answers
13 views

Replacing Ubuntu 14.04 with Arch Linux on a dual boot Windows 10 configuration

I want to migrate to Arch Linux. I have read all about the installation process on Arch Wiki and got a fair idea about the process. But I have a doubt on how will the GRUB installed by Ubuntu behave ...
0
votes
0answers
10 views

How to automatically switch between DHCP Server and Client mode on startup of several devices?

I do wan't to have several embedded devices to boot up at the same time and automatically select the first booted device as the dhcp server and the others as client. But every client can be the server ...
0
votes
0answers
10 views

How to unbind a device from kernel space?

How to unbind a device from its driver from kernel space? I'm looking for the equivalent of echo 0000:00:dev > /sys/bus.../unbind but from kernel space itself.
1
vote
1answer
13 views

Installing Proprietary NVidia 304 drivers on Debian Testing/Stretch

I am trying to install the legacy nvidia 304 drivers on my old Latitude D820, which has a GeForce Go 7300, but the installer fails saying : Failed to build the NVIDIA kernel module . Here is the ...
1
vote
2answers
33 views

Find files with pattern and get latest one

I want to find file with specific pattern and print the latest file matching the pattern with full path find ../*.gz -type f -print0 | sort -nr | cut -d: -f2- | head -n 1 How do I print the full ...
0
votes
1answer
38 views

IO benchmark tools block size impact?

Many IO benchmark tools (fio, dd, etc...) provide way to set block size. Lets say that I change 4K to 64k and test read/write on mounted SATA disk. I will get higher data throughput in sequential ...
0
votes
1answer
12 views

apt-get broke after trying to install wine

I'm a new Linux user. I use Kali Linux and tried to install wine via: sudo apt-get install wine winetricks This, however, didn't work as there were some errors. After that, I cannot install, update ...
0
votes
0answers
8 views

yum + how to know the repository PATH , or local repository or external ( VIA internet )?

when I run the yum repolist , I get the follwoing repositories names yum repolist Loaded plugins: rhnplugin, security This system is receiving updates from RHN Classic or RHN Satellite. ...
2
votes
1answer
17 views

Linux router - Throughput speed of clients

I have a computer that is configured as a router with two NIC's, one is connected to Internet, the other is connected to the local network switch. I know that I can get the current throughput of NIC'...
0
votes
0answers
563 views

Is there a version of linux that can be run on the 2015 Kindle Fire

I have been doing some research and I have been reading all kinds of answers but none of them fully answer my question. I wanted to know if the 2015 Kindle Fire can support a version of Linux? If so, ...
0
votes
0answers
25 views

Trying to get my system running without an initrd

I've been trying to configure a kernel that will not require an initrd to boot. I haven't succeeded. The filesystem I'm attempting to boot from is ext4, and I have all the extended filesystems ...
1
vote
2answers
26 views

Create Partition (Standard partition vs LVM physical volume) in CentOS installation

All. Forgive me I not familiar with the Linux. I am trying to install CentOS in the VMWare. As I knew, Linux can only create three kinds of partitions. they are primary, extended, and logical, For ...
1
vote
1answer
15 views

Does the format or columns of /proc/dev/net change often?

I'm writing a script to scrape some data from this. I'm wondering if this file changes often or is different between distros.
143
votes
21answers
136k views

How can I get my external IP address in a shell script?

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

Apache 2 and PHP 5 not working

I have a test.php file in the web server directory with php phpinfo(); content. When I try to execute php test.php at a shell then it executes correctly. But when I try to open the web page in a ...
0
votes
1answer
20 views

xfce gtk themes problem [duplicate]

I'm using "delorean-dark-theme.3.8" (wich support gtk2 and 3) on xfce, all xfce gtk2 and some gtk3 apps looks great but some gtk3 apps especially gnome apps looks terrible button backgrounds and ...
2
votes
0answers
19 views

How to identify what capabilities are required for a command?

When I run a command within a docker container, I see: # ip netns exec 9ee961d90990 ifconfig setting the network namespace "9ee961d90990" failed: Operation not permitted I can launch my container ...
1
vote
0answers
16 views

expanding /var/lib [on hold]

There are many requests to increase /var and /var/lib by the app teams. I would like to know what are good practices to increase filesystems. I know these fs are under rootvg, it is not a good idea to ...
1
vote
1answer
23 views

Use same IP for 2 Ethernet Adapters in different Physical networks

We have a Linux Panel with 2 Network Interfaces. On this Panel runs a software wich needs to comunicate to our devices in our network, and needs to be accessible from the customers network. One ...
3
votes
1answer
4k views

Why does startx give a black screen, with no errors?

I recently wanted to solve a problem with using a second monitor from my laptop that is running debian (jessie) but because I lack knowledge things didn't go as planned. Now I am getting booted into ...
0
votes
1answer
19 views

How to create extended partition in Ubuntu

All, I am tring to create partition in the installation of Ubuntu. As I knew. MBR partitioning scheme allows you to have up to 4 partitions on a drive, one of those partitions can be an "...
6
votes
3answers
7k views

How to permanently enable scl CentOS 6.4?

I installed a newer version of devtoolset (1.1) and was wondering how I would go about permanently setting these to be default. Right now, when I ssh into my server running CentOS, I have to run this ...
3
votes
1answer
49 views
+100

Automatically switch display on lenovo docking and linux

I have a lenovo thinkpad with nvidia optimus and a mini docking station series 3. I want that while docked, it should automatically switch to an external monitor if possible and if I undock it, it ...
5
votes
3answers
27k views

Movie Player requires additional plugins to decode this file

I'm using RHEL 6 .Newbie to Linux. I'm unable to play the video using Movie Player. It shows an error, Movie Player requires additional plugins to decode this file. The following plugins are required ...
10
votes
1answer
983 views

Why are there two different values for the size of a drive and how to reconcile them with device-mapper and LVM?

I have a 1 TB drive attached via USB. It contains an LVM physical volume filling the entire device (without any partition table). When I tried to extend a logical volume by using the entire PV, the ...
1
vote
2answers
790 views

bcmwl-kernel-source driver issues on install

I am installing Mint 17.1 (MATE) on my MacBook Pro Retina (due to it having much better hardware than my PC, on which I successfully installed Mint 17.1 in the past). I followed the instructions on ...
-2
votes
2answers
57 views

To filter out input in lowercase characters [on hold]

I need to filter out input in lowercase characters. I tried giving a file to the command: cat ws2.txt | sed "s/[a-zA-Z0-9]/[A-Z]/g"
1
vote
3answers
213 views

Hide ones command history from other users on a Linux server

When I log in via ssh on a Linux(Ubuntu) server, I notice that all the bash commands executed by other users on the server are saved in the command history. Is there a way that could allow me to hide ...
1
vote
1answer
29 views

how to search file for begin of string and save a variable

i am trying to find a way of searching a file for string, it needs to work by searching then file and if any line in the file begin with what i am searching for, then take that whole line and save it ...
1
vote
1answer
16 views

Any consideration for oracle installation which need to be done in OS installation?

Please forgive me if I post the question in the inappropriate place. Because I am not sure if it belongs to the DBA SO. Thanks. I am trying to install CentOS 64bit in the VMware for Oracle 11g 64bit. ...
1
vote
1answer
7k 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 ...
0
votes
0answers
10 views

KDE: Does not log dbus name

I'm new with KDE. I have ubuntu 14.04 and installed KDE on it, I'm logged in as user A, create process as user B, that process creates session for user B(using /etc/gdm/Xsession startkde), as I know ...