LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Extract package .deb to $temp/

Posted Yesterday at 10:03 AM by Habitual (Spock's Brain)
Updated Yesterday at 10:35 AM by Habitual

Target for this example is apache2, or "what were the defaults?"

Code:
mkdir -pv /path/to/temp/
dpkg-deb -x /var/cache/apt/archives/apache2_2.4.18-2ubuntu3.4_amd64.deb /path/to/temp/
Below /path/to/temp/ is
Code:
/path/to/temp/etc/
/path/to/temp/lib/
/path/to/temp/usr/
/path/to/temp/var/
remove all but etc, so
Code:
rm -fr /path/to/temp/{lib,usr,var}
and there they are!

Code:
/path/to/temp/etc/apache2/sites-available/000-default.conf
...
LQ Addict
Posted in Uncategorized
Views 18 Comments 0 Habitual is offline
Old

Eclipse2017

Posted 08-21-2017 at 05:33 PM by Habitual (Spock's Brain)

Missed it.
Turdpress migration.

I may run out of sun, but never work.
LQ Addict
Posted in Uncategorized
Views 101 Comments 0 Habitual is offline
Old

The Loss of a Pet

Posted 03-18-2017 at 07:02 AM by Habitual (Spock's Brain)
Updated 03-19-2017 at 05:53 AM by Habitual

Dear Friends:

I woke up this morning to one of my "sugar gliders" laying on the bottom of the cage.
I could not tell, but I think it was the female, "Sweetie". She seemed to have been
struggling as of late moving about the cage.

If you don't know what a Sugar Glider is, I encourage you to go to images.google.com
and search for
Code:
sugar gliders
or see the attachment.

I can't be a complete asshole, my...
Attached Images
File Type: jpg Sweetie.jpg (43.9 KB, 14 views)
LQ Addict
Posted in Uncategorized
Views 1048 Comments 3 Habitual is offline
Old

Scripting a Wordpress rollout - Method II

Posted 11-30-2015 at 12:50 PM by Habitual (Spock's Brain)
Updated 11-30-2015 at 03:21 PM by Habitual

Now even shinier!
It's a rude and crude script, but it works for experienced admins who knows what they are doing,
and where they are doing it.

Code:
#!/bin/bash
### 11/30/2015 
### jj/Habitual

clear

do_work ()
{ 
    BASEDIR=/var/www/html
    mkdir -pv "$BASEDIR"/"$DOMAIN"/
    cp -pr /var/www/wordpress/* "$BASEDIR"/"$DOMAIN"/
    cp "$BASEDIR"/"$DOMAIN"/wp-config-sample.php
...
LQ Addict
Posted in Uncategorized
Views 2277 Comments 0 Habitual is offline
Old

Scripting a Wordpress rollout - Method I

Posted 11-27-2015 at 06:11 PM by Habitual (Spock's Brain)
Updated 12-08-2015 at 12:54 PM by Habitual

We have 60 Wordpress sites to roll-out and I dislike tedious crap, so I scripted it.
# CentOS release 6.7 (Final)

Code:
#!/bin/bash
### 11/27/2015 07:03:58 PM
### jj/Habitual
### Wordpress files deployment
BASEDIR=/var/www/html

echo -n "Domain? " ; read DOMAIN

if [ -d $BASEDIR/$DOMAIN ] ; then
echo "directory exists, exiting..." ; exit 1
else
mkdir -pv "$BASEDIR"/"$DOMAIN"
...
LQ Addict
Posted in Uncategorized
Views 2064 Comments 0 Habitual is offline

  



All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration