Home » Unix » Page 4
How to configure SSL for Apache2 on OpenSuSE 13.1
Unix

I have OpenSuSE installed on a virtual hosted Server, running multiple virtual websites. On normal http everything works fine. I now would like to run one of my virtual sites on https in addition to http. Hence I've purchased a SSL certificate. I've copied my certificate files to the server:

SSLCertificateFile    /etc/apache2/crt/site.crt
SSLCertificateKeyFile /etc/apache2/key/m

Find files with group permissions more restrictive than owner permissions
Unix

This is an actual work-related problem. Users could previously "su - userx" and was able to execute a script with user:owner permissions as userx:groupz 760 or 540, or modify a file that's userx:groupz 740 or 640. Now, that user may no longer su to userx and must perform tasks as a member of groupz. The group permissions need to be changed, but the problem files must be found first. They ca


Does POSIX allow empty compound-list in first condition and empty condition in case conditional construct?
Unix

Reading POSIX specification for case conditional construct, I see:

case word in
    [(]pattern1) compound-list;;
    [[(]pattern[ | pattern] ... ) compound-list;;] ...
    [[(]pattern[ | pattern] ... ) compound-list]
esac

As I understand, there


How to pick unique file with highest version number
Unix
highestVersion() {
for TEST_PATH in `ls -a "$/TEMP"/*.flg`
 do
   echo " you are here"
   TEST_FILE=`basename "$TEST_PATH"`
   echo "$TEST_FILE"
}

This is the file after printing TEST_FILE In this example "RMG" is a book name having 4 version. How to pick the file with latest version among these set of files and store it in a variab


Comparison and brace expansion
Unix

Following is a simple shell script to demonstrate how environment variables are accessible.

if [[ ${x+X} = X ]] ## If $x is set
then
  if [[ -n $x ]] ## if $x is not empty
  then
    printf " $x = %s
" "$x"
  else
    printf " $x is set but empty
"
  fi
else
  printf " %s is not set
" "$x"
fi

However, I had the following doubts with regards to the first "if con


sed in-place line deletion on full filesystem?
Unix

Due to an application bug as yet undiagnosed, I have several hundred servers with a full disk. There is one file that has been filled up with duplicate lines—not a log file, but a user environment file with variable definitions (so I can't just delete the file).

I wrote a simple sed command to check for the erroneously added lines and delete them, and tested it on a loca


automatically redirect output to /dev/null
Unix

I have a simple script with a lot of output:

#!/bin/bash
{
apt-get update && apt-get upgrade
} 2>&1

Starting it with ./script.sh >/dev/null 2>&1 silences it.

Can I silence the script from the inside?


yum install overwrite manual installation
Unix

Note: I barely know what I'm doing here, as such this may be incredibly obvious, but I wasn't able to find what I was after on Google.

Running CentOS 6.7

Yesterday I followed this guide to set up opendkim on my server, and


awk to compare two files and match
Unix

I'm trying to compare two files and match on field

File1.txt:

bart:29482164591748
 apu:29482164591748
smithers:68468468468464
lisa:68468468468464
maggie:2348578903247548

File2.txt:

68468468468464:keyboard
68463894578424:user
29482164591748:computer

I would like this output:

bart:29482164591748:computer

How to show desktop when remotely accessing Debian?
Unix

Client: Win7 with Xming Server installed. Using putty to access with allowing X11.

Remote: Debian 3.2.73 with GNOME as the GUI environemt. And X11Forward=yes in /etc/ssh/sshd_config

I can launch GUI tools like Gedit for example with no problems. But I need to see the whole Desktop no


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .