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

1
vote
2answers
47 views

How to make apt-get working in Oracle Linux?

I have tried to install Wine on to my Oracle Linux by using apt-get install wine, but it didn't work. I have tried this as normal user but it was showing this error: bash: apt-get: command not ...
1
vote
2answers
38 views

iptables on CentOS 6.6

I'm trying to open a port on CentOS, but it doesn't seem to work: port 16 seems to be closed and 4075 seems to be open, even though according to iptables it should be visa versa. Chain INPUT (policy ...
1
vote
2answers
24 views

Conditional variables in Makefile

I am trying to compile source code in various ways. For example, suppose I want to compile a fortran program with source code main.f90, file1.f90, and file2.f90 as inputs. To generate hello.exe, I ...
1
vote
2answers
82 views

How to configure macvtap to let it pass multicast packet correctly?

I'm trying to create VMs which can see each other and host. They are hosted with qemu/kvm and managed via libvirt. The network adapter of VMs is created with macvtap(VEPA mode) for performance. After ...
1
vote
2answers
55 views

How do I connect to SSH over an existing OpenVPN connection?

I have a dedicated server running OpenVPN and SSH on Ubuntu 14.04. Sometimes, port 22 is blocked on a remote network, while OpenVPN can still be used. So how do I manage to connect to SSH over the ...
1
vote
2answers
96 views

Route outgoing traffic through whonix gateway/tails, allow incoming VPN traffic (me->my VPN server-> Tor)

Basically I want to do VPN -> Tor, but with all outgoing traffic from the VPN server going through Tor, and the Virtual Machines only on the VPN server, not on my PC. So I will have a VPN which will ...
1
vote
2answers
43 views

How can I put my CentOS on public IP so that I can access it WinSCP from home?

I have a centOS system at office and I want to access it from home via WinSCP. I have a static public IP at office. Please help!
1
vote
2answers
42 views

Clone Drive Using Linux DD Command: Send IMG Over SSH Connection

I SSH to a VPN running Ubuntu Linux. To make backup copies of the hard drive, I use the following dd command: sudo dd if=/dev/sda1 of=/home/rick/hdImage-20150704.img It works, however, is there a ...
1
vote
2answers
26 views

download file in Linux console from server that use redirection

First of all, I just don't want to change name of curl's output file. The great example is http://www.getsoloapp.com/download. When you do: curl http://www.getsoloapp.com/download you download html. ...
1
vote
2answers
133 views

error in script (bash): ambiguous redirect

I'm rewriting a simple script, CopyScript.sh, I wrote a few years ago to copy contents from my NAS to a USB disk. #!/bin/bash SYNCPATH="/volume1/" ...
1
vote
2answers
34 views

how to log information when a file is executed

I want to log information when a file is executed and hopefully tail that information. What is the best way to log for example a timestamp and ip address when a file is being executed via ssh terminal ...
1
vote
2answers
85 views

How to execute sudo NOPASSWD command on other server via SSH

I have read all the post related to the issue. But If you can see mine as well and give suggestion. I am trying to do passwordless SSH and run a script on remote server. But Sudo access ask for ...
1
vote
2answers
57 views

Backing up linux server on ntfs harddrive

I'm looking for a way to backup my debian server. For the data partition I have a solution using rsync, the backup goes to an encrypted ntfs-drive. NTFS because I often take the drive with me to watch ...
1
vote
2answers
46 views

How to set a time length of ssh and redirect the error message

I have a hostlist and there are several hosts. I want to use ssh to connect to them. I want to see whether the host is available or not by the time length of ssh takes. If it take long than 5s (which ...
1
vote
2answers
46 views

Where to set advanced settings for serial port on linux

I use a special USB to serial adapter to get data from legacy hardware. Under Windows i have to set some advanced settings in order to start sending data in a way the devices can "understand" and ...
1
vote
2answers
74 views

What is the shortcut to minimize all the windows except the active one in Linux

I know there's 'Aero Shake' for Windows and I want something similar for Debian 7. I already checked all the keyboard shortcuts but couldn't find anything related to it.
1
vote
2answers
71 views

How to keep the reverse shell open in Netcat?

As soon as the command prompt is closed on the target machine the reverse shell is closed on the client machine. Is there any way to keep the port open and Netcat working after the target machine ...
1
vote
2answers
67 views

PHP server permissisons for files and directories granted, but still not allowed

I have php code on Codeanywhere where I'm simply trying to create a file on the server but yet gets the following error : "Warning: fopen(file.txt): failed to open stream: Permission denied in ...
1
vote
2answers
40 views

Is there any way to install any linux distro without acesssing the bios? (broken screen)

I am trying to run a Linux system from my y500 Lenovo ideapad but I can not access the boot menu or bios at all. This is because I have a broken screen and am using an external display to make use of ...
1
vote
2answers
48 views

Connecting two separate SSH connections together

I'm working on a small project and looking for some advice on how to make a portion of the project work. Goal - join two separate ssh sessions together. I want to see if keys used to login to bastion ...
1
vote
2answers
119 views

sudo alternative to allow certain user to execute chmod from a program

I would like to allow a certain user who does not own the files in a directory to execute chmod on them. Interactively, I know that I can do this by configuring sudo with the sudoers config file(s), ...
1
vote
2answers
101 views

can we do the full disk encryption of a already installed Linux machine?

I need some information regarding any possibility to do full disk encryption for a already installed Linux system(e.g centOS or Ubuntu). Is there any default mechanism for FDE present in Linux like ...
1
vote
2answers
164 views

ERROR: could not load library “/usr/lib64/pgsql/hstore.so”: /lib64/libc.so.6: version `GLIBC_2.14' not found

I’m trying to enable hstore on my PostgreSQL database running on an Amazon Linux AMI. I’ve already jumped through a ton of hurdles and ended up with this error that I can’t get past: ERROR: could ...
1
vote
2answers
57 views

Does the Mac OS X SSH client integrate with other systems?

I have MacBook Pro running Mac OS X 10.10 (Yosemite), when I enable the SSH from (“Preferences - > Sharing”) it gives me link like this : members-12-13.hallsnetwork.xxxx.com Well, clearly the link ...
1
vote
2answers
78 views

Mounting an old DOS harddrive on Linux

I'm trying to mount an old harddrive from a mid 90's 486 for file recovery. The harddrive (Matrox 7850 AV) is identified correctly by the motherboard (Asus P5QL PRO), but it can't be mounted in Slacko ...
1
vote
2answers
91 views

Deduplicate images synced across devices in various resolutions

I currently have a couple of scripts and Android apps that together do the following for a set of member devices (smartphones, PCs, digital cameras): all pictures taken by all member devices are ...
1
vote
2answers
159 views

Stats on /proc/diskstats always shows more writes than reads

I've taken the following stats from /proc/diskstats: 9 0 md0 106989 0 _2923830_ 0 117988 0 _3448953_ 0 0 0 0 8 0 sda 33840 22299 _1143351_ 871132 87336 194804 _2003961_ 2201868 0 949992 ...
1
vote
2answers
54 views

How can I save Chrome's opened pdf from ftp site?

I have opened a PDF file in Google chrome version 38 in Linux. But, when I wanted to save the PDF, Chrome wants to re-download again. How do I save the pdf without re-downloading? FYI, I could ...
1
vote
2answers
68 views

Why can't I view the arp table on my VPS server?

I'm running CentOS Linux release 7.0.1406 on a VPS server. Attempted to use the "arp" command and found it was missing. I tried as root as well to make sure the command wasn't in sbin. Then I googled ...
1
vote
2answers
35 views

Need help trying to get a script to start on boot

Luke here! Although I've been using Linux as my main OS for quite a while, I'm still pretty much a noob when it comes to using it. Sorry. I have a Raspberry Pi that I'm trying to set up with the ...
1
vote
2answers
203 views

Fedora 21 fedup CLI error

I'm trying to upgrade my Fedora 20 Atom netbook to F21 using the official CLI tools, as well as the KFUpgrade fedup GUI tool I found on SourceForge. The ISO from getfedora.org wasn't recognized as a ...
1
vote
2answers
7k views

SSH error ssh_exchange_identification: read: Connection reset by peer

I am trying to access ssh to a server but got "ssh_exchange_identification: read: Connection reset by peer". The same client works well when I move the computer to home but show the error when the ...
1
vote
2answers
153 views

Cannot load tp_smapi module on thinkpad x60

I have an old thinkpad x60 running debian. Recently, I brought a new battery, to check the stats(manufacture-data, first use etc ..) I installed a common program called tlp on the machine. But It ...
1
vote
2answers
110 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 ...
1
vote
2answers
38 views

Having trouble replacing a specific hyphen in directories that follow a specific format in Bash

I have a list of directories using the format: 2014-12-03 13-03 2014-09-03 12-07 etc. I need to change them to: 2014-12-03 13:03 2014-09-03 12:07 … I’m trying to do this with for d in *\ ...
1
vote
2answers
96 views

Linux/Bash: Create relative soft links to files in directory tree?

I'd like to make links to all files in a directory tree. Which means, create the same directory structure and make the links in them to the respective subdirectory in the original dir. That could be ...
1
vote
2answers
422 views

zip command on linux how to force to zip only files and not whole directories structure?

I want just stupid, simple thing. ZIP all the content of given directory. What I get as result of: zip -r /home/andi/MEDIA_DUMPS/xyz_media.zip /home/andi/xyz/mega_backend/mega_www/media Is ...
1
vote
2answers
218 views

How to strip metadata from MP3 files?

I want to strip metadata from MP3 files. In a brief: How to simply get a stream of pure MP3 frames out of a MP3 file – by means of command line tools? Preferable using tools out of the box of a linux ...
1
vote
2answers
246 views

Status line in linux shell

I use Windows and Putty in order to remotely connect (ssh) to some linux servers. I have set my hardstatus in my .screenrc file so that I can monitor some useful information. But this works only when ...
1
vote
2answers
950 views

Links SSL Error

What version of links does the user called "bytepool" have that he's able to find this workaround? Refer to link below. How to tell `links` to ignore expired SSL certificate and proceed? He writes ...
1
vote
2answers
685 views

SSH Multiple Session -> “stdin: is not a tty”

I have a Linux-VPS, using it as GIT- and HTTP-Server. HTTP: Apache Git-server: git-http-backend via vhost When i log me in via SSH, everything is fine. But if i open a second SSH-Connection , i get ...
1
vote
2answers
75 views

Unexpected behavior when using screen with init.d

I added a shell script in startup with the following command: su - root -c "/usr/bin/screen -dmS SomeServer java -jar /home/SomeServer.jar" When I normally run this command, screen is created & ...
1
vote
2answers
329 views

use sed to replace a specific string with slashes

I have a big text file -a windows registry file- about 5.5MB and I have to remove a string "serv\b\Param\". Opening with gedit or nano doesn't work. It will either consume 100% cpu time for some ...
1
vote
2answers
52 views

Protect certain files from being modified or deleted

I'm trying to expand my knowledge of Linux security and one thing I'm looking for is protecting select directories and files from modification, deletion, or alteration of attributes. I understand that ...
1
vote
2answers
170 views

The easiest way of visualizing data from stdout as a graph?

I have an application that prints data to stdout, a floating point number about every second. I would like to visualize the numbers as a graph. How is the easiest way to do this, preferably ...
1
vote
2answers
55 views

Firefox opens directories with kdesvn

When I open the containing folder for a download in Firefox it launches kdesvn (which then fails). This isn't listed in the Applications tab in the Preferences window, and grepping kdesvn in ...
1
vote
2answers
417 views

Add a file to /etc/yum.repos.d to install Oracle JDK 1.6.0-45 from yum?

I have a fresh RedHat 6.5 virtual machine on Amazon Web Services (EC2), its repos look like this currently: [root@ip-172-31-11-112 tmp]# ls -1 /etc/yum.repos.d/ redhat-rhui-client-config.repo ...
1
vote
2answers
2k views

How to be able to resolve multiple domains using /etc/resolv.conf on Linux?

I'm running Ubuntu 12.04 and I'm trying to ping the following systems: system0.oldcompany.com system1.fing.oldcompany.com system2.newcompany.com system3.thing.newcompany.com My resolv.conf # ...
1
vote
2answers
119 views

Java under OpenVZ and hosting under virtual machines

Skype Chat [10:27:47 PM] Koby: Xen is better for Java anyway [10:28:11 PM] ME: does java have issues in other virts? [10:28:47 PM] Koby: OpenVZ, yes. [10:29:03 PM] ME: any reason why? [10:29:04 PM] ...
1
vote
2answers
832 views

Set backlight brightness on boot on a ThinkPad T440s runing on Arch

I recently bought a new Lenovo ThinkPad T440s laptop and installed Arch Linux on it. Most things worked out of the box. One minor problem, among few others, is with the backlight brightness. I can ...