linux

  • Infinite loop issue when passing answers 2019-01-10

    I want to only pass the first answer to a function echo "y" | install and let the choice to the user to answer the next questions , but when i do that i get a infinite loop. --------------Solutions------------- When using pipes, the shell change

    Tags: shell, unix, linux, bash
  • Dominon KX232 (I). not able to use keyboard 2018-12-31

    I'm having an issue with my Dominon KX232 (I). I'm connected on port1 to my server via P2CIM-PS2. I'm getting video from server, but I'm unable to use keyboard or mouse. I tried connecting P2CIM-PS2 to a Debian Server or a Windows Server, but I get t

    Tags: hardware, linux, kvm
  • NAS cifs mount on linux 2018-12-25

    I'm using centos 6, I got a nas with basic file sharing on it. and I've mounted one folder on my centos. Now here is the weird part.. I can create files on it, and read existing files. but I cannot move files to that mounted dir, I cannot cp files fr

    Tags: linux, mount, cifs
  • Redirect hostname to specific path with Apache 2018-12-20

    I'm trying to get a redirect the requests from an url like myApp.myDomain.com to a specific file on the server like /var/www/html/myApp/index.php. I need the user to keep seeing the URL he used to get there. What's the best approach? .htaccess or per

    Tags: linux, apache, mod rewrite, redirect, .htaccess
  • Suppress windows cmd for system command in Perl 2018-12-19

    I am using a system command in Perl to execute java. I have formed an array @args that have different options to execute a jar file. Something like below: $args[0] = $rootpath."/jre/bin/java"; $args[1] = " -jar \"".$rootpath."

    Tags: windows, perl, linux
  • RPM to invoke browser post installation 2018-12-13

    I am creating an RPM installer for centos 6.5, After installation i want the RPM to invoke the browser and show the installation report. This installation report shows the details of how the installation went. Including errors and warnings that occur

    Tags: linux, rpm, rpmbuild, rpm spec, centos6.5
  • "$ make check" is returning only FAILED for each check 2018-12-05

    I downloaded a .tar of source code to build into my user directory in cygwin. I then issued the following commands from Cygwin using the bash shell: ./configure make make check The make check program then proceeds to tell me that everything it checks

    Tags: linux, cygwin, gnu make
  • Read output from ttyUSB0 2018-12-04

    After installing one relay board in respberry pi I tested with success some commands to open and close the relays but I found one problem. I do not receive the status of the eight relays or the status of single relay. How can I fix this? The permissi

    Tags: linux, bash, raspberry pi, raspbian
  • Error running bash script in supervisor 2018-11-28

    I have a bash script that makes some work supervising network stuff, it works great when I run it manually, but when I put it in supervisor the ifs and the whiles does not work, just stops before any of those programming sentences, echos, running cat

    Tags: shell, linux, bash, debian, supervisor
  • www-data user start session in dbus 2018-11-10

    Refering to this question I found out that the www-data user cannot write a session to the dbus under Ubuntu 14.04. How can I make the user be able to start such a session?

    Tags: linux, console, dbus, ubuntu 14.04
  • Configure httpd.conf to add new site on Apache Red Hat Linux

    Configure httpd.conf to add new site on Apache Red Hat Linux 2018-10-30

    I have linux server (Red Hat Enterprise Linux Server release 5.3 (Tikanga)) with apache installed. It is already used for browsing some documents. Now I would like to add a new Directory (with a html page), so whenever the directory is browsed it can

    Tags: linux, apache, httpd.conf
  • Installing OpenSSH on Ubuntu 14.04 2018-10-15

    I'm trying to install openssh in Ubuntu 14.04. I downloaded the tar.gz file, unpacked it, and ran ./config. I got this error message: \*** Can't find recent OpenSSL libcrypto (see config.log for details) *** I looked online, and it was suggested that

    Tags: linux, ubuntu, openssh, openssl
  • python urllib3 pip install error linux 2018-09-25

    I am trying to install urllib3 using pip and get the error posted at the bottom of this message. I have wrestled with the issue for a few days days trying many things I have found online now without success, so I am finally posting here. Unfortunatel

    Tags: linux, python 2.7, failed installation, pip, urllib3
  • Running Local Script On SSH Server 2018-09-20

    I'm using Linux to log into a server using ssh. Once I'm logged in, I would like to execute a local Python script which uses netcat to run some program on the remote machine (it is therefore required to be logged in to access it). Locally I can type

    Tags: linux, bash, ssh
  • is ubuntu still installing im just getting the wallpaper

    is ubuntu still installing im just getting the wallpaper 2018-09-02

    I'm using VirtualBox and I'm trying to install Ubuntu 32 bit and after I get past the part of clicking installing and the message saying it will use the following partitions to install and I hit continue but now so far all I'm getting is the wallpape

    Tags: linux, ubuntu, virtualbox
  • linux cron truncate large file 2018-08-24

    I have a large csv file that I need to reduce to the last 1000 lines through a cron job every day. Can anyone suggest how to accomplish this? What I have so far are two commands but do not know how to combine them For deleting lines from the begginin

    Tags: linux, bash, csv, cron
  • How to use a command from awk in the right way 2018-08-23

    I have the next command : awk -v M="$variable" -v B=$"version"-v R="Pass ok" -v K="1" 'BEGIN {FS=","; OFS=","} $1==M {$14=R} {$3=B} {$23=K} {print}' file1.csv > file2.csv and i dont know why i

    Tags: linux, bash, awk
  • How to get device name of usb storage device? 2018-07-27

    As we know, currently on Ubuntu or lots of other Linux distributions, after an usb storage device is inserted, a /dev/sdX device will be created and the partitions will be automatically mounted. How can I know what is the correct X for this usb stora

    Tags: storage, linux, usb, device
  • script doesn't start on boot with init 2018-05-31

    I have the following script #!/bin/sh # chkconfig: 345 99 01 # description: some startup script ### BEGIN INIT INFO # Provides: weblogic # Required-Start: $local_fs $network $remote_fs # Required-Stop: $local_fs $network $remote_fs # Default-Start: 2

    Tags: shell, linux, bash, init
  • How to automatically enter vim with tt and ? 2018-04-16

    I am using MacVim on Mac OS X. I want to know how to automatically input <leader>tt and <C-e> and <leader>u when I enter vim first time. --------------Solutions------------- You can use :normal (without the usual !, so that the mappings

    Tags: linux, vim, macvim

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 1.764 (s). 7 q(s)