Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 06 Dec 2019, 04:19
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
FirstRib default WeeDog Linux build system
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 35 of 48 [718 Posts]   Goto page: Previous 1, 2, 3, ..., 33, 34, 35, 36, 37, ..., 46, 47, 48 Next
Author Message
wiak

Joined: 11 Dec 2007
Posts: 1842
Location: not Bulgaria

PostPosted: Fri 13 Sep 2019, 18:37    Post subject:  

Progress report:

Working on build rootfs firstrib plugin changes first, since easier and less to test. I hope to post new build_firstrib_rootfs script within a day from now if not earlier. All going well, should be no limit in plugin scripts that can be sourced.

EDIT: There will be a delay of a day or two. My partner was given a relatively modern laptop she needs OS installed on. It had been Windows 10 booting via secure UEFI but the Windows account was removed... I know/knew nothing about UEFI since always used old machines......
Anyway, to cut a long story short, in my usual fashion, I removed all Windows and repartitioned the hard drive, used a BionicDog64 iso to install grub4dos in MBR and tried a quick frugal install of that Dog. Oops, wouldn't even think about booting (no matter Legacy Mode, Secure Boot off, or whatever...). Luckily I could still (with effort) boot from usb. So after hours of reading up on UEFI, I understood I needed GPT partitioning scheme, so read up on that, and then installed gdisk and partitioned with first small 100MB partition of efi sort required and rest linux ext4. But still didn't know how to get BionicDog64 booting... Oh well, I thought, if any Linux distro I know is likely to sort this out for me, it is likely to be pristine Ubuntu install iso. So I downloaded that (2GB) and dd'd it to a usbflash stick and after setting BIOS to UEFI native again, I tried installation, and it worked... thank goodness. My partner may want to keep Ubuntu (the machine is fast and powerful enough, and it has a touch screen) or maybe, I expect, I can now install other distros frugally on same partition (I am familiar with grub2 configs). So maybe back to FirstRib WeeDog developments some time tomorrow...

EDIT2: Success... dual-booting full Ubuntu install with BionicDog64 frugal install now. Could put WeeDog on here now... HP Elitebook Folio 1020 G1

wiak

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1334
Location: Connecticut, United States

PostPosted: Sat 14 Sep 2019, 21:23    Post subject:  

Hello wiak, (can you please test this)

Successful run of a ZoneMinder build script in a Void Linux WeeDog built from a firstrib00-32.plug and a firstrib00-64.plug.


Using these 4 files:
Code:
build_firstrib_rootfs_101.sh
build_weedog_initramfs05_s103u.sh
firstrib00-64.plug
build_ZM.sh


Download here ->
weedog-ZM scripts & build_ZM.sh

I created a directory in a boot partition called weedog-zm and copied these

build_firstrib_rootfs_103.sh
build_weedog_initramfs05_s203.sh
firstrib00-64.plug

used a small script to run both scripts and create WeeDog
run_all.sh (64 bit)
Code:
#!/bin/sh
./build_firstrib_rootfs_101.sh void rolling amd64 firstrib00-64.plug
./build_weedog_initramfs05_s103u.sh void


run_all.sh (32 bit)
Code:
#!/bin/sh
./build_firstrib_rootfs_101.sh void rolling i386 firstrib00-32.plug
./build_weedog_initramfs05_s103u.sh void


set up menu.lst for Grub4Dos double check that the correct vmlinux-XXX_1 is configured
Code:
title weedog-zm (Void Linux)
  root (hd0,0)
  kernel /weedog-zm/vmlinuz-5.2.14_1 net.ifnames=0 bootfrom=/mnt/sda1/weedog-zm
  initrd /weedog-zm/initramfs05.gz


the network connection is set to use eth0
change this in the firstrib00.plug or manually change after boot. eventually I will add a mechanism to choose either eth0 or wlan

Now booted into the new weedog-zm logged in then started the desktop with startx and on the safe side opened a terminal and did:
Code:
xbps-install -y cpanminus


I copied build_ZM.sh to /root/Build and changed into that directory "cd /root/Build"

open a terminal and run the script ./build_ZM.sh

after the script is finished you should see :
Code:
All done
done setting up ZoneMinder and the LHMP....


open /etc/hiawatha/hiawatha.conf and go into the virtualhost block and modify the block for the LAN address to match yours subnet IP (i.e. 192.168.0.13)

open a terminal type
Code:
hiawatha
zmpkg.pl start


run firefox and open http://localhost/zm

please refer to zoneminder docs for further information.

Downloads of the files are here
https://github.com/techrockedge/weedog-ZM

Last edited by rockedge on Thu 26 Sep 2019, 19:17; edited 16 times in total
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 1334
Location: Connecticut, United States

PostPosted: Sat 14 Sep 2019, 21:31    Post subject:  

ZoneMinder default user=admin passwd=admin

WeeDog user=root passwd=root
zoneminder configuration files are here -> /etc/zm
zoneminder database .sql are here -> /usr/local/share/zoneminder/db
main zoneminder web console components are here -> /usr/share/zoneminder/www
Error logs are here -> /var/log/zm

start Hiawatha -> hiawatha
stop Hiawatha -> killall hiawatha
starting and stopping zoneminder ->
Usage: zmpkg.pl {start|stop|restart|status|logrot|state|version}
starting mysql -> mysqld --user=root
stopping mysql -> killall mysqld


zoneminder documentation -> https://zoneminder.readthedocs.io/en/stable/

zoneminder github -> https://github.com/ZoneMinder/zoneminder

ZoneMinder web site -> https://zoneminder.com/

Hiawatha server -> https://www.hiawatha-webserver.org/

Hiawatha server manual -> https://www.hiawatha-webserver.org/manpages/hiawatha

Hiawatha How-To -> https://www.hiawatha-webserver.org/howto

Here is a script to easily manage start,stop,status,restart of ZM. Place it in
/usr/local/bin/zoneminder and
Code:
chmod +x /usr/local/bin/zoneminder


Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides:          zoneminder
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $network $remote_fs $syslog
# Should-Start:      mysql
# Should-Stop:       mysql
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description:  Control ZoneMinder as a Service
# Description: ZoneMinder CCTV recording and surveillance system
### END INIT INFO
# chkconfig: 2345 20 20

# Source function library.
#. /lib/lsb/init-functions

prog=ZoneMinder
ZM_PATH_BIN="/usr/local/bin"
RUNDIR="/var/run/zm"
TMPDIR="/tmp/zm"
command="$ZM_PATH_BIN/zmpkg.pl"

start() {
   echo -n "Starting $prog: "
   export TZ=:/etc/localtime
   mkdir -p "$RUNDIR" && chown www-data:www-data "$RUNDIR"
   mkdir -p "$TMPDIR" && chown www-data:www-data "$TMPDIR"
   $command start
   RETVAL=$?
   [ $RETVAL = 0 ] && echo success
   [ $RETVAL != 0 ] && echo failure
   echo
   [ $RETVAL = 0 ] && touch /var/lock/zm
   return $RETVAL
}
stop() {
   echo -n "Stopping $prog: "
   #
   # Why is this status check being done?
   # as $command stop returns 1 if zoneminder
   # is stopped, which will result in
   # this returning 1, which will stuff
   # dpkg when it tries to stop zoneminder before
   # uninstalling . . .
   #
   result=`$command status`
   if [ ! "$result" = "running" ]; then
      echo "Zoneminder already stopped"
      echo
      RETVAL=0
   else
      $command stop
      RETVAL=$?
      [ $RETVAL = 0 ] && echo success
      [ $RETVAL != 0 ] && echo failure
      echo
      [ $RETVAL = 0 ] && rm -f /var/lock/zm
   fi
}
status() {
   result=`$command status`
   if [ "$result" = "running" ]; then
      echo "ZoneMinder is running"
      RETVAL=0
   else
      echo "ZoneMinder is stopped"
      RETVAL=1
   fi
}

case "$1" in
'start')
   start
   ;;
'stop')
   stop
   ;;
'restart' | 'force-reload')
   stop
   start
   ;;
'status')
   status
   ;;
*)
   echo "Usage: $0 { start | stop | restart | status }"
   RETVAL=1
   ;;
esac
exit $RETVAL


use it like this ->

Code:
bash-5.0# zoneminder
Usage: /usr/local/bin/zoneminder { start | stop | restart | status }


example:
Code:
bash-5.0# zoneminder status
09/16/2019 16:18:12.023741 zmpkg[11939].INF [main:310] [Sanity checking States table...]
09/16/2019 16:18:12.057970 zmpkg[11939].INF [main:95] [Command: status]
ZoneMinder is running


_

Last edited by rockedge on Mon 16 Sep 2019, 22:39; edited 12 times in total
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 1334
Location: Connecticut, United States

PostPosted: Sat 14 Sep 2019, 21:42    Post subject:  

any one who tests please check the build_ZM.sh script over and make changes where it fits.
the script can be also be done manually in a terminal or just used as a guide

let me know if anyone has any success....

if it works I will start a new thread for the WeeDog plug and build_ZM.sh script
Back to top
View user's profile Send private message Visit poster's website 
wiak

Joined: 11 Dec 2007
Posts: 1842
Location: not Bulgaria

PostPosted: Sun 15 Sep 2019, 01:09    Post subject:  

rockedge wrote:
Hello wiak, (can you please test this)

Successful run of a ZoneMinder build script in a Void Linux WeeDog built from a firstrib00-32.plug and a firstrib00-64.plug.


That's great rockedge. You've been very busy I see. I'll download and give it all a try. (Just finishing off installation job on my partners machine and after that will be back to FirstRib/WeeDog work). I'm excited to try out Zoneminder.

wiak

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130
Back to top
View user's profile Send private message 
rufwoof


Joined: 24 Feb 2014
Posts: 3665

PostPosted: Sun 15 Sep 2019, 19:50    Post subject:  

Sorry rockedge, been busy tidying up and adding/changing things in my own firstrib http://murga-linux.com/puppy/viewtopic.php?p=1035078#1035078

Program launcher (mouse into top left corner or alt-space) has a few more programs now, ssr ...etc.


(clickable thumbnail)

The installed android file transfer works OK, but I might swap that out for something else as its not as intuitive as I'd like.

I've stuck to the single file setup, where wiaks scripts are all integral to that i.e. just run "./firstrib00.plug build" ... and it does all the rest (output is the vmlinuz, initramfs and main sfs (01firstrib_rootfs.sfs) all ready to add to menu.lst (grub4dos).

I do intend to get around to trying/testing yours however over the next couple of days and will report back.

_________________
( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb

echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 1842
Location: not Bulgaria

PostPosted: Mon 16 Sep 2019, 04:00    Post subject:  

rockedge wrote:
Hello wiak, (can you please test this)

Successful run of a ZoneMinder build script in a Void Linux WeeDog built from a firstrib00-32.plug and a firstrib00-64.plug.


Using these 4 files:
Code:
build_firstrib_rootfs_101.sh
build_weedog_initramfs05_s103u.sh
firstrib00-64.plug
build_ZM.sh


Building it per your instructions right now rockedge. Will report back later. Also started work on improving firstrib00.plug handling (to allow easy chaining) - new version for that build rootfs shouldn't be too far away. Thereafter will get back to new build initramfs script which, as I described previously, will also account for huge initramfs builds.

Meanwhile rockedge zoneminder firstrib plug build config scripts buzzing away doing their job preparing things whilst I'm typing this and generally relaxing...

wiak

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 1842
Location: not Bulgaria

PostPosted: Mon 16 Sep 2019, 07:09    Post subject:  

Congratulations rockedge. That system is great!

Well... I don't actually have monitor working yet, but I'm talking about the build itself. Took ages on my slow rural broadband, but whole build completed fine by following your instructions. Did have a couple of minor glitches (basically caused by myself):

I build the basic system using the build rootfs and build initramfs with the firstrib00.plug, but didn't realise I was to use ethernet connection on booting it... (you should mention that in case someone else dumb like me tries it).

Of course I had to do a chmod +x on the downloaded build_ZM.sh script (no problem there). Wow, it was fascinating watching that in action - so much stuff done till it reached the All done message (I really doubted after so much going on it could possibly be okay...). Then I was daft again:

I went to /etc/hiawatha and edited hiawatha.conf. However, I forgot your system had X and geany and so on, so I used vi to do the editing... sigh... oh well, that was fine - I have (basically) used vi many times... and changed the IP to that of my machine (I determined that using command "ip address").

Then I ran the: hiawatha; zmpkg.pl start

It was then I read you next instruction to use firefox (which is when I realised I hadn't needed to use vi!!!...). So did a startx, and ran firefox and opened url http://localhost/zm

and there it was! Zoneminder Console and so on. I also clicked on the link to Zoneminder Documentation and read some quick start stuff. Anyway, long story short - I added a monitor: Local and /dev/video0 and went for 640x480 hoping to capture from machines webcam. Alas, when I clicked on the Monitor-1, ZM said that monitor wasn't capturing so couldn't display images... Oh well - close enough for now - I'm sure just something I need to do and will know doubt work it out after reading more ZM docs.

Looks like a great system. Just using a bit over 500MB RAM on my system and running very efficiently more generally.

Any pointers or likely reason webcam didn't display would be appreciated. I should manage to work it out - afterall I did write pAVrecord once upon a day (and weX) later and they all used /dev/video0 (along with ffmpeg).

Anyway, I see what you mean about your need to chain plugins. Good news is that the next version I talked about will allow you to fully automate the whole thing since you will be able to access whatever config scripts you wish in your plugin(s). I'll get on to working on that tomorrow (late here now).

Many thanks for that zm build - I'll keep that one for further experiments with ZM. It certainly makes an easy way to build a custom and very efficient/full-featured Zoneminder Surveillance system. (I'm hoping to use an old android phone as a simple IP camera - I did used to use an old B/W video camera, with capture card with simple 'Motion' vid surveillance program, but no longer have that camera orold desktop PCI capture card).

wiak

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1334
Location: Connecticut, United States

PostPosted: Mon 16 Sep 2019, 09:04    Post subject:  

Hello wiak,

glad it worked! You can see it is somewhat involved to create a working version. The documentation needs a lot of work and there is much more in docs for zoneminder, I only listed the one source and only made the briefest instruction set.

I would recommend building the WeeDog then booting and login use "startx" then running the build_ZM.sh

In the folder "applications" there are .desktop files for pmcputemp and retrovol...a simple click will start those 2 programs and they will appear on the jwm tray. Eventually I will add a mechanism that will give the option to auto start those 2 programs. The desktop also features midnight commander so "mc" will work in any shell or terminal. I use the mc editor instead of vi. Or use geany or leafpad which are both present as are viewnior and xarchive....which I just use rox to "Set run action" to associate tar.gz or .zip and which ever to xarchive and the image files to viewnior so when I click on them they open up.

Now as far as your web cam goes it usually occurs when the user www-data has no rights to /dev/video0....so in a terminal try:
Code:
chown www-data /dev/video0


also add www-data to the video group by:
Code:
usermod -a -G video www-data

this should eliminate the need to chown every time on /dev/video*

then in the camera configuration window use "save" again to restart the camera.
But as always the ZM's "Log" menu option will help. Plus I added the xdebug PHP module that is a powerful PHP debugger for those who want to really jump into the machinery.

the firstrib00.plug creates a desktop for many uses and is intended for any user to look it over and modify and improve it as well as the build_ZM.sh script.

I need to add a WLAN option so I most likely will "borrow" rufwoof's script code or yours for the WiFi connections.

Also the ability selecting the root password, network connection and which mounted partition is displayed on the rox pinboard at startup could use some refinement.

But as keeping with the spirit of the project I leave a lot of choices and setup to the individual user and attempt to keep it simple enough to follow so others can modify and improve the scripts and plug. The desktop is pretty basic but all the tools are there to really make a full featured use it everyday desktop or a specialty system built for a specific purpose.

The system is such that this is possible for anyone willing to try it out and be successful...enough to brave charting their own course and experiment or those just interested in having a really powerful camera security system with network video recording across multiple servers if required.

now I need to make some documentation to at least add some trouble shooting tips but I am not straying far from standard Void Linux stuff to keep this in line with all the documentation that exists already.

@rufwoof I am about to embark on a setup using your firstrib00.plug and build system...and then try to run the build_ZM.sh script in that!!! should be cool...I would like to show the developers of ZoneMinder a working system using your creation. This is more for the home user with just a few cameras and older machines....most commercial applications of ZoneMinder involve hundreds of cameras and run on Ubuntu servers headless.

any way rufwoof I like the ideas of your desktop and want to mess around with it to write documentation as a reason to do it.

thanks for the test wiak and definitely try to chown the /dev/video0 to www-data


_
Back to top
View user's profile Send private message Visit poster's website 
rufwoof


Joined: 24 Feb 2014
Posts: 3665

PostPosted: Mon 16 Sep 2019, 10:54    Post subject:  

rockedge wrote:
The desktop also features midnight commander so "mc" will work in any shell or terminal. I use the mc editor instead of vi. Or use geany or leafpad which are both present as are viewnior and xarchive....which I just use rox to "Set run action" to associate tar.gz or .zip and which ever to xarchive and the image files to viewnior so when I click on them they open up.

Been otherwise preoccupied today, so haven't yet started with your build. Out again shortly so hopefully if I'm home early enough will be able get going with that later today.

I set mc to use both the Open and View options for a range of file types, for instance for mp3 Open will open it in vlc, whilst view opens it in audacity. In other cases I just use the command line, i.e. navigate to highlight a particular file and action it using the mc command line using %f as the substitute for the filename. i.e. if over "somefile" then on the mc command line geany %f opens that file in geany. On the command line you can use the usual tab completion, but you do have to press the <esc> key beforehand. Do that twice <esc><tab><esc><tab> and it presents a full list of all possible autocomplete choices.

In mc editor if you press shift before making a mouse drag selection then that uses the standard clipboard buffer (otherwise it uses the mc' internal buffer).

I was raised on vi so often use that, but mc and its internal editor are great. But for multiple files and much movement I use geany.

mc automatically opens tar files in the pane, so you can just copy files as usual using F5 (copy).

_________________
( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb

echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1334
Location: Connecticut, United States

PostPosted: Mon 16 Sep 2019, 12:14    Post subject:  

I should mention I used the cutting edge version of ZoneMinder from the master snapshot at github...so any time to update ZM go to /root/Build/zoneminder and open a terminal in the directory or cd to the location. use
Code:
git pull
cmake CMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=ON -DCMAKE_VERBOSE_MAKEFILE=OFF -DCMAKE_COLOR_MAKEFILE=ON -DZM_RUNDIR=/var/run/zm -DZM_SOCKDIR=/var/run/zm -DZM_TMPDIR=/var/tmp/zm -DZM_LOGDIR=/var/log/zm -DZM_WEBDIR=/usr/share/zoneminder/www -DZM_CONTENTDIR=/var/cache/zoneminder -DZM_CGIDIR=/usr/lib/zoneminder/cgi-bin -DZM_CACHEDIR=/var/cache/zoneminder/cache -DZM_WEB_USER=www-data -DZM_WEB_GROUP=www-data -DCMAKE_INSTALL_SYSCONFDIR=etc/zm -DZM_CONFIG_DIR=/etc/zm -DCMAKE_BUILD_TYPE=Release .
make
make install


then in a terminal run:
Code:
zmupdate.pl


if the database is up to date use
Code:
zmupdate.pl -f


to freshen up the zm database tabels ( optional)
Back to top
View user's profile Send private message Visit poster's website 
rufwoof


Joined: 24 Feb 2014
Posts: 3665

PostPosted: Mon 16 Sep 2019, 12:49    Post subject:  

Hi rockedge

In a 'what the hell' moment, for my first build I just dropped your build_ZM script in among my own and appended the running of that to the end of my MAIN script (that calls all other scripts). i.e. it was run inside the build chroot, after all of my usual installs/build/configuration. Took around a hour I guess in total to build (didn't actually time it) - that's for all of mine and yours combined, seems like 99% there, but did throw out errors/warnings

Didn't really baby sit it, but did capture a few notes during the build (didn't capture the output either so these are just visual 'scribbles' that I did notice whilst looking. This is a direct copy of my scratchpad notes ...
Quote:
Quite a few Test module failures ...

Building and testing Test-Warn-0.36 ... FAIL
! Installing Test::Warn failed. See /root/.cpanm/work/1568648944.16620/build.log for details. Retry with --force to force install it.

Loads of locale warnings ....

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_COLLATE = "C",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").


At the near end of processing (just before mksquashfs) quite a few ...

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 "No such file or directory")


firstrib_rootfs 5GB size (non compressed) ... mine is around 3.5 to 4GB (depending if uk specific/cleaning or not ... and where that is with uncleaned i.e. 4GB so ZM looking like it adds around 1GB)

lz4 -Xhc for mine is around 1.5GB uncleaned, so zm perhaps increases that to 2GB sfs filesize

Didn't time it, but around 1 hour perhaps total build time, mine + rockedge's zm

128MB in /var/cache/xbps i.e. I put zm install after my xbps-cache clear

I made that 2GB estimate for the final sfs filesize whilst it was still building, the actual sfs size was a little less than that. But that includes loads of stuff that could be removed (multiple languages for libre dictionaries etc.). I do clear out /var/cache/xbps folder content for my builds, but appending the zm build to that looks like /var/cache/xbps does have the zm build files still there (having booted, ncdu is showing 127.4MB in /var/cache/xbps).

Booted/running that now, but haven't a clue what to run, so its back to your instructions post to follow that and see what has been installed/works/doesn't-work.

As I said, just a what-the-hell build choice - but seeing that seemingly do well - its looking good.

_________________
( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb

echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
Back to top
View user's profile Send private message 
rufwoof


Joined: 24 Feb 2014
Posts: 3665

PostPosted: Mon 16 Sep 2019, 13:07    Post subject:  

ifconfig showed my IP as 192.168.1.5 so I put that into the virtual hosts section as described. Then running ...

Code:
# hiawatha
# zmpkg.pl start
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = (unset),
   LC_COLLATE = "C",
   LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/vendor_perl/ZoneMinder/Database.pm line 110.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/vendor_perl/ZoneMinder/Database.pm line 110.
09/16/19 17:54:44.944872 zmpkg[30319].ERR [ZoneMinder::Database:113] [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) error val:]
09/16/19 17:54:44.945786 zmpkg[30319].ERR [ZoneMinder::Database:113] [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) error val:]
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/vendor_perl/ZoneMinder/Database.pm line 110.
09/16/19 17:54:44.947405 zmpkg[30319].ERR [ZoneMinder::Database:113] [Error reconnecting to db: errstr:Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) error val:]
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 96.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 147.
Compilation failed in require at /usr/share/perl5/vendor_perl/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/ZoneMinder.pm line 33.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 34.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 34.
#

Opening chromium and http://localhost/zm shows
Code:
Unable to connect to ZM db.SQLSTATE[HY000] [2002] No such file or directory

As expected giving my previous posting.

Off out soon so doing a proper build will have to wait until tomorrow.

_________________
( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb

echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1334
Location: Connecticut, United States

PostPosted: Mon 16 Sep 2019, 13:52    Post subject:  

I am about to attempt using rufwoof's firstrib00.plug then once I have booted that will run the build_ZM.sh script to see how that does.

rufwoof it looks like a lot of PERL modules didn't build correctly or get installed by cpanminus in your attempt. I am going to do the steps similar to the one I set up .

I will report the results as they come in......

UPDATE: just realized on the test machine I have only eth0 I will need a small variation to proceed! Unless I switch machines......but in 32 bit......

Last edited by rockedge on Mon 16 Sep 2019, 14:21; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 1334
Location: Connecticut, United States

PostPosted: Mon 16 Sep 2019, 13:57    Post subject:  

how they look on my machine Optiplex 990 WeeDog (Void) kernel 5.2.14_1
2019-09-16-140128_600px_scrot.png
 Description   
 Filesize   75.06 KB
 Viewed   244 Time(s)

2019-09-16-140128_600px_scrot.png

2019-09-16-120204_600px_scrot.png
 Description   
 Filesize   137.54 KB
 Viewed   245 Time(s)

2019-09-16-120204_600px_scrot.png

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 35 of 48 [718 Posts]   Goto page: Previous 1, 2, 3, ..., 33, 34, 35, 36, 37, ..., 46, 47, 48 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0958s ][ Queries: 13 (0.0123s) ][ GZIP on ]