Questions tagged [linux]
A family of Unix-like operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.
58,800
questions
0
votes
2
answers
2k
views
Why can't I redirect output from awk?
I've written this one liner to show MB read/written every 5 seconds.
#!/bin/bash
#iosum.sh
iostat -dmz 5 |\
awk 'BEGIN{rx=wx=0}{if($0 == ""){printf"%.1f %.1f\n",rx,wx}else if($0~/^Device:/){rx=wx=...
1
vote
1
answer
1k
views
Scan for duplicate files with different extensions
I am looking for duplicate file names with different file extensions.
Here is the command I run:
find -maxdepth 2 -type f \( -name "*.avi" -or -name "*.mkv" -or -name "*.mp4" -or -name "*.mpg" -or -...
0
votes
1
answer
1k
views
How to ignore parent directories with wget?
I am trying to scrape a particular online directory of its .flac files. I am typing the following command
wget -r -a flac,FLAC http://website.com/directory
Basically this give me all the files I ...
1
vote
2
answers
16k
views
ISPConfig showing default apache page
I am trying to install ISPConfig on Debian Jessie.
I was following this tut https://www.howtoforge.com/tutorial/perfect-server-debian-8-jessie-apache-bind-dovecot-ispconfig-3/3/
I can install ...
3
votes
1
answer
4k
views
Why does duplicity require the GnuPG passphrase when rotating backups?
I am using duplicity 0.7.05 to periodically backup a directory that resides on a Linux system, using a GnuPG key pair with an encrypted private key. Since the public key is not encrypted, the ...
0
votes
1
answer
902
views
Windows 10 and Linux dualboot disk encryption accessibility
I am considering buying Dell Latitude laptop which comes with Windows 10 preinstalled. I also want to install Kubuntu on it, so, in the end I will end up with a GRUB2 dualboot of Windows and Linux.
...
2
votes
4
answers
17k
views
Kali Linux deletes everything on shutdown
I just downloaded Kali for VirtualBox. And I want to make some changes to it. But i figured out, that when i shut it down, it deletes everything, unless I 'save state'. But when it is in 'saved state' ...
0
votes
3
answers
2k
views
How to use source within a bash script to change the terminal prompt?
I need to be able to use a script in ~/.local/bin/ (which is part of $PATH) to quickly change the prompt.
The desired result can achieved by running the following in a console:
echo PS1='$\ ' > /...
1
vote
0
answers
129
views
Libreoffice Calc adds extra commas or semicolons to formulas and doesn't return the answer
I am using
LibreOffice 3.5.4.2
Build ID: 350m1(Build:2)
On a Debian Jessie machine.
Whenever I input any inbuilt calc/excel function, it adds random commas (sometimes semicolumns) between ...
6
votes
3
answers
26k
views
Installing Ghostscript in Linux
I'm trying to install Ghostscript on my web server but the instructions on the website don't seem to work for me.
I'm logged into my ssh terminal.
I type in:
wget http://downloads.ghostscript.com/...
3
votes
0
answers
2k
views
Unable to use paths with spaces in FFMPEG, Android
I'm using ffmpeg command line in Android. When I use the command ffmpeg -i /sdcard/d 1.jpg, it says /sdcard/d: No such file or directory.
I tried /sdcard/d\ 1.jpg which showed error as /sdcard/d\: ...
0
votes
1
answer
509
views
How would you count every occurrence of a term in all files in the current directory?
How would you count every occurrence of a term in all files in the current directory? - and subdirectories(?)
I've read that to do this you would use grep; what is the exact command?
Also, is it ...
1
vote
0
answers
1k
views
Apache httpd-2.2.10 crosscompile to ARM
I'm trying to crosscompile Apache 2.2.10 to ARM architecture.
I've exported CC, ARM variables. Also I've sucessfully crosscompiled openssl, apr, apr-util and pcre packets for target ARM architecture.
...
1
vote
0
answers
589
views
Chrome not using configured proxy
I am fighting and losing trying to set a proxy in Chrome that is signed into a school account. When I sign out of the account the proxy works, when I sign back in the proxy seems to stop working. Now ...
0
votes
1
answer
252
views
Problems getting IP address from AP
I'm having issues getting an IP address from an access point. The access point is an open one, but requires login via a captive portal.
I am using Debian Jessie, and connecting via the terminal. I ...
0
votes
1
answer
375
views
Cron strange behaviour
I've got a Bash script with all the permission to be excecuted, I attach it to to a cron job, this script basically only kills and restarts a specific process. The strange behaviour is that if I run ...
1
vote
2
answers
369
views
How to fetch file from remote content based on partial file name?
I have some sub folders ( A, B , C ,D .. ) in a remote server which contains around 100.gz files . The file naming pattern is like ND2_58_20151105173030_20151105173240_1234.log.gz where 3-rd and 4-th ...
0
votes
1
answer
8k
views
How to properly clone /dev/sda on /dev/sdb
I have two hard disks with the same sizes - represented as /dev/sda and /dev/sdb. I am trying to copy /dev/sda on /dev/sdb. /dev/sda has one ext3 partition. /dev/sda and /dev/sdb have the same ...
1
vote
1
answer
2k
views
My printer in /dev/usb/lp0 always disappear after few seconds, and can't print, how to fix it? (Ubuntu 14.04)
Please, help...
I have a 'EPPOS Model EPT-58H' thermal printer.
When I plugin via usb, it detected as /dev/usb/lp0 with ls -l /dev command.
Then I run echo "sometext" > /dev/usb/lp0 in terminal to ...
0
votes
1
answer
621
views
How does Starbucks wifi / etc "hijack" your internet connection?
I don't have a strong knowledge of DNS, but I do have a little bit, like I've done apropos dns and flicked through some of the mentioned man pages.
When I sign onto what I'll call "corporate-free" ...
0
votes
1
answer
463
views
Ubuntu 14.04 SSH: Rejected From External Network
When trying to connect to my home server's SSH server, I receive the following:
ssh: connect to host host-here port 2222: Connection refused
I port forwarded 2222, to match up with 192.168.1.128:22, ...
1
vote
0
answers
4k
views
(sda) Assuming drive cache: write through hang on boot
I just install CentOS 7 on VMware EXSi 6.0 with encryption.
and after the configuration and boot i got it hang with message:
[sda] Assuming drive cache: write through
I did search on Internet and ...
1
vote
1
answer
1k
views
How to show hidden files (.*) in Java app's open file dialog on Linux?
I have an Java application (JabRef to be specific) on Linux OS (Fedora 22), and I want to open a file under a hidden directory (one beginning with dot). But in the open file dialog, I cannot find how ...
0
votes
1
answer
1k
views
Booting Fedora 23 after installation fails
I just installed the Fedora 23 from the official iso.
Installation succeed and computer reboot.
But Fedora starting to load (just after grub selection) it write on my screen upper the loading bar:
...
1
vote
2
answers
3k
views
Backup of a Linux desktop on a Synology NAS (DS 5.2) using backintime
I am trying to setup a backup of my Linux desktop machine on a Synology NAS with backintime.
However, I am stuck with the following error message:
Entfernter Rechner <nas.ip.address> ...
1
vote
1
answer
554
views
Hosting a Server on a CentOS Virtual Machine - Bridged Connection?
I have a Virtual Machine (VMWare) running CentOS 6.7. I am looking to host a Shiny Server for R, with which I am deploying a Web Application on my corporate network.
I think that I need a Static ...
4
votes
1
answer
281
views
Using dd command fails after the first mount
I am using dd command to copy disk drive /dev/sda on /dev/sdb. What I do is the following: I run
dd if=/dev/sda of=/dev/sdb
then mount /dev/sdb1 (note that /dev/sdb1 is not mounted on boot) to make ...
2
votes
0
answers
2k
views
How to upgrade kernel in Ubuntu 14.04?
I want to use Docker on my Linux server for which I need to upgrade the kernel to 3.10 or higher. So following this answer I was trying sudo apt-get install linux-generic-lts-trusty, which results in:
...
2
votes
2
answers
5k
views
Unable to install Fedora 23 as UEFI
I Downloaded Fedora 23 workstation and created Live USB using these methods.
using command # dd if=Fedora-Live-----.iso of=/dev/sdb bs=4m &&
sync.
Using Fedora Live USB tool.
using Rawrite32 ...
2
votes
1
answer
317
views
Allow reverse SSH tunnel but not simple SSH
I have a computer (let's name it A) behind a NAT, and I need a SSH connection to it from another computer (let's name it B).
I saw that I needed an SSH reverse tunnel, I tried, and it works.
In ...
0
votes
1
answer
291
views
can't boot fedora 23 livecd on my tablet
I can get it booting and can see the filling splash. However, my usb drive is attached through the tablet's OTG port which needs DWC3_XHCI to be on, which most kernels don't. Can I re-compile the ...
0
votes
1
answer
135
views
How to select grub entry via PS2 port?
We want to output the grub entry to serial port and select the grub entry on another machine via serial port.
We have two machines.
For the machine with built-in serial port, we followed the ...
4
votes
1
answer
13k
views
Does mdadm record array event history?
I received an automated email from the mdadm daemon:
A Fail event had been detected on md device /dev/md0.
It could be related to component device /dev/sdh.
I find the wording strange. "could be"? ...
0
votes
1
answer
277
views
Skype Starts with the Console
I use Linux Mind Debian Edition 2 'Betsy.' I used the wiki to install skype.
Now, skype opens whenever I open the terminal. Skype closes upon closing the console. The console is useless until I open ...
0
votes
0
answers
7k
views
File chooser opens in background
Linux file chooser opens in background and gets obscured by the main window of the program. I want to have it open in the foreground.
opensuse 13.2/kde 4.14.9
5
votes
1
answer
1k
views
Emerging package from overlay
I'm using gentoo, and I've been trying to emerge leksah package from haskell overlay:
root # layman -a haskell
root # layman -s haskell
root # emerge -av app-editors/leksah
However emerge keeps ...
2
votes
2
answers
15k
views
VPN on Ubuntu server
I have an Linux server running Ubuntu 14.04. On it, I have xfce installed to act as a desktop. Additionally, I have xrdp installed so I can remote into the machine.
Once a remote session is started, ...
16
votes
2
answers
6k
views
Keep color in less after make and pipe
I would like to keep color in less command after using "make 2>&1" to compile some program. There are similar topics with "grep" and "ls" commands but solutions do not work with this command.
For ...
8
votes
1
answer
9k
views
Hairpinning in Linux
I have a router in which I installed a Linux system.
I want my router to support NAT hairpinning.
Does a such feature exists in Kernel Linux? If yes how to activate it? Are there a patch to apply it ...
0
votes
1
answer
50
views
Discrepancy finding and counting all files on the system
I have been researching the different methods of counting up all files on my system. In my case, I want all the files starting at / and going into subfolders. Here is what I have come up with so far:
...
0
votes
1
answer
499
views
ssh port forwarding through a pseudo terminal
Here's a situation:
I do all my work on a Mac.
There's a certain linux server 'server01' that provides access to
another linux server 'server02' via a pseudo terminal
So, to ssh into '...
0
votes
0
answers
199
views
Drive replacement on Intel Raid, Ubuntu errors
I have a RAID 1 system with two drives. The other drive was reported as failing so I replaced it.
However, the rebuild seems not to work as expected. The Intel manager (pre-boot) marks the raid for ...
1
vote
3
answers
1k
views
Is there a program in Linux which will execute a command and send an email if it fails?
I have a process which is started by Сron like this:
timeout 1h /app/longprocess.sh
Now I want to be notified by email if something goes wrong with it. Imagine this:
notifyme [email protected] ...
3
votes
1
answer
2k
views
Is Plasma 5 supposed to be lighter than KDE4?
I think this could lead to subjective opinions, but I'm looking for a general idea on this question.
Is Plasma 5 intended to be lighter than KDE4? Is Qt5 necessarily leading to faster and/or lighter ...
2
votes
1
answer
6k
views
bash: /home/user/.bashrc: Permission denied when try to change user from root to user
I'm on centos, when I login as root and use su x to change user to x, it shows this:
bash: /home/x/.bashrc: Permission denied
I try to source ~/.bashrc but nothing changes and I also tried following ...
3
votes
4
answers
4k
views
Why does Linux have both a shadow file and passwd file? [duplicate]
I understand the difference between shadow and passwd, but my question is why do they have both? It seems like an unnecessary complication. Why not just store the encrypted password in the passwd file?...
0
votes
2
answers
4k
views
AllowUsers with nothing following it in sshd_config file?
I have no way of testing this and can't find the answer online. If I put AllowUsers in my sshd_config file with nothing following it would the behavior be to allow everyone to SSH into the computer, ...
3
votes
0
answers
892
views
Can I read a serial console over USB (not with an adapter)?
I'm working with a device that provides serial console access via a USB-B port. My workstation is a laptop running Linux Mint 17.1.
Previously, I was able to access the serial console from my laptop ...
0
votes
1
answer
336
views
Getting "premature end of file /syslinux/vmlinuz0" during Fedora 22 installation
I am trying to install Fedora 22 64 bit using an USB. I have created the bootable USB stick using Fedora live USB creator. When I start the boot, I get this error.
error: premature end of file /...
0
votes
2
answers
2k
views
Using external HDD as a programming environment
I'd like to set up a programming environment separate from my Windows OS, and I don't want to partition my internal drive. I was thinking of installing a linux distro to an external USB hard drive and ...