Cisco ASA5505

Konfiguration

Mappa extern IP-adress till intern
Port forwarding (närmast rätt)
Cisco ASA CLI/ASDM for Dummies

När saker inte fungerar

När det inte går spara konfigurationen (full flashdisk):
Om det finns någon gammal version av ASA eller ASDM, så går den plocka bort med “delete”-kommandot
show disk
delete disk0:/asa-gammal-fil.bin

Byta version på adsm eller asa som laddas:
enable
conf t
asdm image disk0:/asdm-792-152.bin
boot system disk0:/asa924-33-k8.bin
write memory
reload

Laga trasig ASDM-inloggning
https://www.grandmetric.com/knowledge-base/design_and_configure/cisco-asa-enable-asdm-access-asa/
To enable ASDM on Cisco ASA, the HTTPS server needs to be enabled, and allow HTTPS connections to the ASA.
To configure ASDM (HTTP) access to Cisco ASA on particular interfaces, where core and management are the nameifs use following commands:

ASA(config)#aaa authentication http console LOCAL
ASA(config)#http server enable
ASA(config)#http 0.0.0.0 0.0.0.0 inside

Remember to create username, password to be able to authenticate to asdm:

ASA(config)#username admin password secretpassword

Uppdateringar

(låst) ASDM och ASA

http://download.escope.net/cisco/

http://www.celinacomputers.com/

Cisco ASDM
Cisco ASDM 7.12.2
Cisco Software Download – ASDM bra att kolla vilken version som ska letas

Cisco ASA 9.12.2
Cisco Software Download – ASA 5505 – kolla version här

Video Tutorials

Cisco ASA 5500 Password Reset Recovery

Cisco 5505 Factory Restore

Cisco ASA Training 101: ASA 5505 Firewall Initial Setup

Cisco ASA5505 firewall teardown an detailed overview for CCNA security lab and repair

Partitioning 16 GB Compact Flash card with WinUAE and PFS3

Cloned from: https://16bitdust.wordpress.com/2015/10/13/partitioning-16-gb-compact-flash-card-with-winuae-and-pfs3/
See also: How to Setup an Amiga Compact Flash Drive using WinUAE [everythingamiga.com]

This article was cloned for archival purposes from the now defunct site 16bitdust.wordpress.com. The directions worked up to recently when WinUAE 4.x was released. Read through the helpful comments at the end on how to make this work for version 4.

Index, or quick links to the sections

Use these quick links if you know how to do some of the steps.

Partitioning 16 GB Compact Flash card with WinUAE and PFS3

(cloned content starts here)
Lately I’ve noticed a lot of questions on how to partition and prepare Compact Flash card (or HDD) for use with Amiga, so I’ve decided to write this tutorial on how to do it and format them as PFS3 partitions.

At least this is how I do it :). Using PC with WinUAE to prepare everything and just pop finished card in Amiga, ready to go.

Preparing Compact Flash card

Regardless if you’re going to do it with real Amiga or with WinUAE, first step is to prepare CF card. For Amiga to be able to use it we need to “clean” any file and partition structures that are present on the card. Luckily, there’s a tool included with windows to do just that, it’s called “diskpart”.

First thing first, connect your CF card to PC, it doesn’t matter how you do it. Integrated card reader, USB card reader, whatever you usually use.

Now we need to start Command Prompt with elevated permissions, aka “as Administrator”. If you have Windows 7 and UAC turned off applications start “as Administrator” by default, but I guess most people use default settings. Anyway, press Start key on keyboard (or click Start icon on taskbar), type “cmd” (without quotes of course, every command I have written with quotes is supposed to go without them, unless explicitly state otherwise). It should find either Command Prompt or cmd.exe, in my case (Windows 10) it was Command Prompt, but if I remember correctly on Windows 7 it says only cmd.exe. Regardless, right click it and choose “Run as administrator”.

Now type “diskpart” and press enter key

This will load diskpart. Now lets see what drives we have available, type “list disk” and press enter, this will list all disk drives that are present in your computer. Find the one representing your CF card. In my case it was 16 GB CF card so it’s the last one, where is says 14 GB. Note that it’s “Disk 5”.

To select it type “select disk #” where # is number your CF/HDD got, followed by enter of course. In my case it was “select disk 5”

You should get message that Disk # is now the selected disk. To make sure type “detail disk” and press enter

It will output details of currently selected disk. Double check you’ve selected the correct one. If you clean wrong disk it’s bye, bye data. After you’re sure you’re sure 🙂 type “clean” and press enter. You should get a message saying it’s been successfully cleaned. If there was some kind of error make sure you’ve started Command Prompt as administrator.

And that’s it for preparing your CF/HDD. You can check with “detail disk” and/or “list disk” (selected disk will get * sign in front of it) commands to see if it’s been cleaned.

Tools and preparation

To make it a bit easier I’ve prepared small pack of tools and file systems. Simply unzip them in folder and assign the folder as hard drive in WinUAE, we’ll get into more details a bit later. Inside the archive is

Diskmaster – Norton Commnder like file manager
HDInstTools
HDToolBox
loadmodule – command line tool, used for loading modules, we use it to load updated scsi.device that enables large hdd usage
Reboot – command line soft reset tool
CLI – Shell
scsi.device – doobrey’s pacthed scsi.device v44.20, I use it without problems with all my A600/A1200
FS folder – I’ve included few filesystems in this folder, few versions of FFS and latest (at the moment v18.5) PFS3 AIO, you can get newest version from aminet
scsi folder – Here I’ve included two scsi.device files I used so far. scsi.device.44.20 is the same one as above, scsi.device.43.45 is patched version of scsi.device 43.43 from WB3.9 BB2 update, reason I included it was because I had problems with 44.20 when used on regular A500 with KS3.1, for some reason it was crashing when it tried to load it, but this version, 43.45, worked fine. I guess it might be something to do with 68000 CPU, when I connected ACA500 with ACA1220 (68020 CPU) to this same A500 it worked fine with v44.20. So just in case, here are both versions.

PrepTools_v02.zip
Dropbox download (from article author)
Alternative download location (shared from my online storage)

WinUAE settings

We’re almost ready for actual work, almost :). First, run WinUAE as administrator, same as with command prompt. Find it’s shortcut (or WinUAE.exe), right click it and choose “Run as administrator”. This will allow WinUAE to access CF card, otherwise OS will block direct access to it.

To make it a bit faster I set WinUAE to emulate a bit beefier then standard Amiga. These are setting that I use for prepping CF cards, WB installations, file copying and so on. I saved it as config so I don’t have to set it up every time.

For ROM settings use Kickstart 3.0 or 3.1, whatever you usually use, for floppy settings mount either Workbench or WorkBench Install floppy (again, either 3.0 or 3.1, whatever you usually use) and set it to turbo speed (slider to maximum left), to speed up WorkBench load.

If you use Workbench floppy instead of Workbench install floppy you’ll get one warning from HDToolBox later on, nothing important, we’ll get to that later, doesn’t really matter.

Now go to HDD settings (CD & Hard drives) and click “Add Directory or Archive…” button

Browse to the folder you unpacked archive from previous chapter. For “Device name” and “Volume label” enter whatever you like. I simply enter “f” in those fields and I’ll use “f” throughout this tutorial. No special reason, that simply means that within workbench you’ll be able to find those files in drive “f”.

Now we need to add CF card to our virtual Amiga. Click “Add Hard Drive…” button, in new window click on the drop down menu and choose your drive.

Also, from drop down menu that says “UAE” choose “A600/A1200/A4000” and click “Add hard drive” button.

Finally, all preparation is done. All that’s left is to click “Start” button and load Workbench. You haven’t forgot to assign WB3.x floppy to floppy drive, have you?

Preparing the card

After it finishes loading you should get something like this

First thing we need to do is load patched scsi.device, original one is limited to 4GB and since our card is 16 GB we need to do something about it. If you’ll use 4 GB card you can skip this scsi.device thing, or if you use direct scsi enabled filesystem you can use up to 8 GB HDDs, like PFS3DS, but I prefer to use scsi.device approach even with 8 GB cards.

To load it we need to get to Shell. Since there’s no Shell on Workbench Install floppy I’ve included it in tools archive. Open drive “f” and you’ll find Shell there

Alternatively, if you used Workbench floppy to boot you can also find Shell in Workbench floppy, System drawer.

Switch to drive “f” by typing “f:”, followed by enter key, and finally type “loadmodule scsi.device” and press enter. This will load new scsi.device to memory and reboot our virtual Amiga. After it boots again, we can go back to shell and type “version scsi.device”, output should say version 44.20.

If you reboot from WinUAE (F12 and then “Reset” button) or stop/start emulation again, you’ll have to repeat this “loadmodule scsi.device” procedure, loadmodule survives only soft reset (ctrl + amiga + amiga, or reboot from command line, remember that Reboot file from zip archive?).

Now that we’ve loaded patched/updated scsi.device we can proceed. Open F drive, HDToolBox drawer and finally run HDToolBox.

HDToolBox should load and show one unknown drive. So let’s introduce them, click “Change Drive Type” button.

Click “Define New…”

And Finally “Read Configuration”, to get drive geometry information.

You’ll get one info dialog so just click Continue and you’ll get correct geometry values. Don’t mind Size negative size. That’s only visual, HDToolBox wasn’t meant for drives so big so they never bothered to use big variables, this is simple programming variable overflow, drive will be formatted correctly.

If you want to precisely set partition sizes you can use calculator I made, at bottom left there’s link to PDF on how to use it. You just need Cylinders, Heads and Block per Track values from this HDToolBox window.

Now just click “Ok” on this and next window.

If you used Workbench floppy to boot you’ll probably get warning complaining how it can’t find L:FastFileSystem, just click continue. Reason for this is that Workbench floppy doesn’t have FFS driver on it. It’s on Install floppy, where HDToolBox usually is so it can find it automatically. If you used Workbench install floppy to boot you’ll simply be back to starting HDToolBox window.

Now that we’re back at starting window, you’ll notice that all buttons have unlocked and that drive is no longer “unknown”. Click “Partition Drive” button

Add checkmark on “Advanced Options” checkbox

Edit “Partition Device Name” from UDH0 to DH0 (I guess it doesn’t matter, but traditionally HDD partitions are named DH0, DH1 and so on), and click on “Add/Update…” button.

Again, if you used Workbench floppy to boot, you wont’ have anything in the list. If you used Workbench install floppy you’ll have Fast File System loaded. If you don’t intend to use it, simply select it and click “Delete File System” button.

To add new file system click on “Add New File System…” button

And type path to file containing desired file system. In that zip file from beginning I’ve put them in FS folder and file name is pfs3_aio-handler, so in this case I typed “f:fs/pfs3_aio-handler”, and click “Ok” button.

Now we need to enter DosType for PFS3, for PFS3 it’s

0x50465303

For PFS3DS aka PDS3 DosType would be 0x50445303 (pfs3_aio-handler supports PDS3, you just need to type this instead of PFS3 one, everything else is the same) and FFS would use 0x444F5301, just for info.

You can leave “Version” and “Revision” fields at default values, sometimes I edit “Revision” to 5 since this is PFS3 v18.5 but it’s not like it really matters. Again, click “Ok” button.

Now we have PFS3 loaded. We can load more filesystems, I’ve included few FFS versions in FS folder. When I started with Amigas few years ago I usually used FFS for DH0 and PFS3 for DH1, but actually there’s not much point to it, PFS3 is better (more modern) than FFS, and OS had to load two drivers so that resulted in a bit more memory used.

Now to set the partition up. I’ve resized it to 500 MB. You can do this via partition slider, which is unprecise, or by directly entering Start Cyl and End Cyl values. Which is what I did. To get those values you can use calculator I mentioned earlier. Finally, click on “Change…” button.

First click on “File System:” block thingy until it says “PFS\03” and then edit MaxTransfer value to 0x1fe00 (these are zeroes, not “O”s) AND PRESS ENTER TO CONFIRM THE VALUE. This is a “feature” on this window, if you enter the value and click “Ok” it will not apply but revert to original value. You have to press enter and then click “Ok” button.

Now set second partition to size you want. I usually use all of the rest of space for it, you can simply stretch it, no need to be precise for that. And repeat last step on it (Change…, File System, MaxTransfer). After you’re done with both (or more) partitions click “Ok” button to return to main HDToolBox window. All that’s left is to click “Save Changes to Drive” button. Only visible difference will be drive status, it will change from “Changed” to “Not Changed”.

Exit HDToolBox and reboot. In some rare occasions new partitions appeared immediately after I saved changes in HDToolBox, but in 90% of cases they didn’t. After reboot they appeared.

Easiest way is to double click Reboot icon that should be in “F” folder so do it. Or open shell again, go to drive “F” and type “reboot” followed by enter. But double clicking Reboot icon is faster/easier.

If you reboot from WinUAE control panel, you’ll have to do that “loadmodule scsi.device” thingy again. Alternative is to reboot via keyboard shortcut (Ctrl + Amiga + Amiga).

After reboot you may have to wait few seconds (3-5) for partitions to appear. But they should appear.

Select first one (DH0), press right mouse button and go to toolbar at the top, choose “Icons” and “Format Disk…”


Enter name you want your drive to have, like System, Main, Workbench… whatever, uncheck “Put Trashcan” checkbox if you want (I uncheck it) and click on “Quick Format” button. This is a must when using flash media like CF cards.

You’ll get two warnings asking you if you’re sure you want to format it, click “Format” button on both dialogs.

Lastly you’ll get one more dialog, simply informing you about some PFS3 info, click “Ok” and wait a bit for format to complete.

Repeat for second (and all consecutive ones if you made them) partition, this one might take 30-60 seconds to complete as it’s quite a bit larger. After it’s done you’ll have two partitions, 500 MB and 14+ GB formatted as PFS3.

Now you can install Workbench on it. But remember, if you make hard reset you’ll have to manually load patched scsi.device again, BEFORE you make any change to filesystem. Usually first partition will be accessible since it’s 500 MB, but DH1 will be NDOS again until you load scsi.device.

If you install Classic Workbench you can simply copy this scsi.device to DH0:DEVS folder, it will load it automatically on boot. If you install “plain” Workbench you’ll have to manually add it to startup-sequence. Tutorial on how to do this is here.

Just be sure to use same scsi.device you used to when partitioning the drive. There are more than one, others might work, but they may also result in corrupted data.

Misc data

http://forum.jotta.no/jotta/problems/recent

GoTek

GoTek jumper settings for MS-DIS

Android

https://stackoverflow.com/questions/36936271/installing-android-support-repository-offline

Firefox

https://addons.mozilla.org/en-US/firefox/addon/fireshot/

Chrome

Recovering a lost session (it’s not possible, Chrome does not make copies of the “Current Session” and “Last Session” files), otherwise than being fast at the first startup after a crash. Session data is stored at AppData/Local (not Roaming as %AppData% points to)
%AppData%\..\Local\Google\Chrome\User Data\Default
In my last crash, I also had a “Default” folder inside the “Default” folder, containing session and history files.

Back up whatever is left of the session and history files. The files of interest is “Current Session”, “Last Session” and “History”. The “History” file is your last resort to recover, it could contain many months of visited pages and there is no way to tell which of those was in currently open and lost tabs.

Copy the “History” file to a real operating system which have sqlite3 available. Open the “History” database:

sqlite3 History

In sqlite3, set up csv export mode and filename:

.headers on
.mode csv
.output my-chrome-crash-history-timesort.csv
SELECT datetime(last_visit_time/1000000-11644473600,'unixepoch','localtime'), url FROM urls ORDER BY last_visit_time DESC;
.output my-chrome-crash-history-urlsort.csv
SELECT datetime(last_visit_time/1000000-11644473600,'unixepoch','localtime'), url FROM urls ORDER BY url;

Examine the files by your favorite calc program (LibreCalc).

Networking stuff

https://www.tecmint.com/test-network-throughput-in-linux/
https://www.commandlinefu.com/commands/view/5799/test-network-speed-without-wasting-disk
https://blog.udance.com.au/2019/03/19/freenas-and-samba-standalone-dfs/

Mail

Spamfilter
ASSP (@SSP)
EFA

Web

https://github.com/soster/htadmin
https://ogp.me/
https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Fpeo.yliniemi.se%2Falbum%2Falbum.php%3Fmd5msg%3D40849e64c77b718fb83224b0d045c301%26album%3D12345677
https://www.google.com/search?q=ajax+jquery+send+post+to+database

Pine Linux computer

https://www.pine64.org/

Debian, live boot USB

https://willhaley.com/blog/custom-debian-live-environment/
https://wiki.archlinux.org/index.php/Systemd#Using_units
https://wiki.archlinux.org/index.php/getty
https://blog.sleeplessbeastie.eu/2012/05/27/how-to-modify-squashfs-image/

Docker

https://stoneriverelearning.com/courses/54298/lectures/1031275

https://www.linkedin.com/learning/search?keywords=vpn
https://github.com/cad/ovpm

Amiga

http://eab.abime.net/showthread.php?t=94493
http://eab.abime.net/showthread.php?t=91638&page=5
https://www.filfre.net/the-digital-antiquarian-e-book-library/

MySQL

https://stackoverflow.com/questions/1420839/cant-connect-to-mysql-server-error-111
https://serverfault.com/questions/139323/how-to-bind-mysql-server-to-more-than-one-ip-address
https://stackoverflow.com/questions/21055826/mysql-enclosed-by-double-quote
https://stackoverflow.com/questions/950414/compare-differences-between-two-tables-in-mysql
https://stackoverflow.com/questions/168736/how-do-you-set-a-default-value-for-a-mysql-datetime-column
https://stackoverflow.com/questions/409705/mysql-selecting-data-from-multiple-tables-all-with-same-structure-but-differen
https://stackoverflow.com/questions/14753321/add-auto-increment-id-to-existing-table
https://www.sqlservercentral.com/forums/topic/insert-into-excluding-one-column
https://stackoverflow.com/questions/740358/reorder-reset-auto-increment-primary-key
http://www.mysqltutorial.org/mysql-copy-table-data.aspx

https://serverfault.com/questions/339562/remote-desktop-auto-start-session-on-workstation-login

https://superuser.com/questions/793219/creating-and-splitting-large-multipage-tiff-images

https://www.cyberciti.biz/faq/bash-for-loop/
https://www.cyberciti.biz/tips/handling-filenames-with-spaces-in-bash.html
https://www.shellhacks.com/bash-read-file-line-by-line-while-read-line-loop/

WordPress

https://woocommerce.com/products/woocommerce-subscriptions/
https://woocommerce.com/products/woocommerce-memberships/
https://docs.woocommerce.com/document/woocommerce-memberships/

https://www.wpbeginner.com/plugins/how-to-turn-off-related-videos-when-embedding-youtube-videos-in-wordpress/
https://wordpress.org/support/plugin/post-type-switcher/
https://canonicalized.com/woocommerce-alternatives/?section=wp-ecommerce
https://wordpress.stackexchange.com/questions/191658/allowing-user-to-edit-only-certain-pages

OsTicket

https://osticket.com/download/
https://docs.osticket.com/en/latest/Getting%20Started/Upgrade%20and%20Migration.html
https://forum.osticket.com/d/90971-plugin-autocloser-closes-old-tickets
http://phpcrossref.com/xref/osticket/include/class.dispatcher.php.html

Windows XP

RetroZilla – Web browser for XP and 95
MyPal – Web browser for XP

Windows

https://manage.accuwebhosting.com/knowledgebase/988/How-to-set-website-redirection-from-IIS-7.html
https://backpackerdeveloper.com/articles/iis/how-to-enable-http-redirect-feature-in-iis-7/
https://knowledge.autodesk.com/search-result/caas/sfdcarticles/sfdcarticles/Are-there-antivirus-exclusions-I-can-implement-to-make-programs-run-better.html
https://itknowledgeexchange.techtarget.com/itanswers/how-to-clear-outlooks-exchange-cache-address-book/
https://superuser.com/questions/445625/how-to-update-all-contacts-from-active-directory
https://community.spiceworks.com/topic/2170480-server-2019-upgrade-domain-administrator-missing-rights
https://www.tenforums.com/virtualization/96729-hyper-v-virtual-switch-breaks-my-network-3.html
https://www.sevenforums.com/customization/220140-folder-shortcut-parameter-open-new-window-two-questions.html
https://support.microsoft.com/en-my/help/252330/when-you-toggle-terminal-services-to-application-server-mode-some-prog
https://support.microsoft.com/en-sg/help/186627/how-to-temporarily-disable-terminal-server-client-logons
https://msfn.org/board/topic/128746-slow-software-installation-on-terminal-servers/
https://stackoverflow.com/questions/581219/find-out-who-is-locking-a-file-on-a-network-share
https://www.108.bz/posts/it/cloning-an-active-directory-group/
https://enterpriseit.co/windows-server/move-remote-desktop-licenses-new-server/
https://www.windowscentral.com/how-disable-windows-10-fast-startup
https://changewindows.org/milestones/redstone5
https://codeslammer.wordpress.com/2009/02/21/wmic-wildcard-search-using-like-and/
https://community.spiceworks.com/topic/359190-user-not-showing-up-in-global-address-list
https://practical365.com/exchange-server/removing-old-quarantined-activesync-devices-from-exchange-server/
https://serverfault.com/questions/410638/can-you-find-out-when-a-new-user-was-created-in-active-directory-on-windows-2003
https://stackoverflow.com/questions/141154/how-can-i-determine-installed-sql-server-instances-and-their-versions
https://www.microsoft.com/en-us/sql-server/sql-server-2019
https://www.microsoft.com/en-us/evalcenter/
https://www.computerhope.com/issues/ch000088.htm

https://www.top-password.com/blog/prevent-windows-10-apps-from-running-in-the-background/
https://ss64.com/vb/regwrite.html
https://4sysops.com/wiki/windows-10-privacy-settings/
https://4sysops.com/archives/windows-10-privacy-all-group-policy-settings/
https://www.tenforums.com/tutorials/76453-enable-disable-advertising-id-relevant-ads-windows-10-a.html

https://www.mysysadmintips.com/windows/clients/545-multiple-rdp-remote-desktop-sessions-in-windows-10
https://github.com/stascorp/rdpwrap
https://github.com/fre4kyC0de/rdpwrap

https://www.virtualhere.com/forum/1
https://iphostmonitor.com/monitoring-toner-level-in-snmp-capable-hp-printer.html
https://www.baitando.de/it/2017/10/28/monitor-printer-ink-level-with-openhab-using-snmp

https://www.dell.com/community/Systems-Management-General/Sending-email-alerts-from-Dell-Open-Manage-Server-Administrator/td-p/3002120

VBA

https://ss64.com/vb/mapnetworkdrive.html
https://gist.github.com/nadvolod/acb3064d2fe16200368fc86f0bc9608a
https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/createtextfile-method

Regular expressions

https://www.regular-expressions.info/replacebackref.html

Networking

https://www.handymanhowto.com/how-to-wire-a-cat6-rj45-ethernet-plug/
https://www.handymanhowto.com/how-to-make-an-ethernet-network-cable-cat5e-cat6/
https://forums.hardwarezone.com.sg/internet-bandwidth-networking-clinic-4/asus-rt-n56u-secondary-router-wireless-bridge-possible-4480164.html
https://bitbucket.org/padavan/rt-n56u/downloads/
https://www.howtoforge.com/reverse-ssh-tunneling

Cisco

https://community.cisco.com/t5/vpn-and-anyconnect/how-do-i-verify-my-site-to-site-vpn-using-asdm/td-p/1818212
https://networkengineering.stackexchange.com/questions/37246/no-traffic-over-asa-5505-site-to-site-tunnel
https://community.cisco.com/t5/vpn-and-anyconnect/connecting-to-localhost-when-connected-to-vpn/td-p/1971443
https://technotes.khitrenovich.com/cisco-asa-not-space-device-error-fixed/
https://www.cisco.com/c/en/us/support/docs/security/asa-5500-x-series-next-generation-firewalls/69984-upgrade-pix-asa7x-asdm.html
https://community.cisco.com/t5/firewalls/port-forwarding-on-cisco-asa5505/td-p/2122761/page/2

Debian

https://cdimage.debian.org/mirror/cdimage/archive/9.4.0-live/i386/iso-hybrid/
http://cdimage.debian.org/mirror/cdimage/archive/9.4.0/i386/iso-cd/
https://wiki.archlinux.org/index.php/Nodm
https://blog.sleeplessbeastie.eu/2012/05/27/how-to-modify-squashfs-image/

Downloads, filelistings (apache autoindex)

http://download.escope.net/cisco/
http://mirror.cogentco.com/pub/misc/
http://lod.com/cisco/

Virtualization

https://www.virten.net/2014/12/howto-create-a-bootable-esxi-installer-usb-flash-drive/
https://www.altaro.com/hyper-v/templating-virtual-machines-with-hyper-v-manager/

Synology NAS – PHP

Enabling extensions in PHP CLI

https://blackswan.ch/archives/594

Become root
Find out which configuration file is used:
php --ini

I get:
Configuration File (php.ini) Path: /usr/local/etc/php70
Loaded Configuration File: /usr/local/etc/php70/php.ini

Edit the php.ini file, check/change extensions dir to where it is located. If PHP was installed through DSM it should be something like ‘/volume1/\@appstore/PHP7.0’
extension_dir = "/volume1/@appstore/PHP7.0/usr/local/lib/php70/modules/"

Enable the extensions you wish to use:
extension = mysqli.so
extension = phar.so
extension = openssl.so
extension = zip.so
extension = curl.so

Installing Composer

Composer documentationhttps://medium.com/unhandled-code/installing-composer-on-synology-6-1-4-eebd1a1c4891

Become root
Enable the extensions as above (phar, openssl and zip are needed for Composer).

Get and install Composer:
cd /usr/local/bin
curl -s http://getcomposer.org/installer | php70

Create shortcut script ‘composer’ in /usr/local/bin:
#!/bin/bash
php70 /usr/local/bin/composer.phar $*

Set permissions:
chmod --reference=composer.phar composer

Test:
composer --version

Arduino Yun

Iduino Yun Shield

Iduino_Yun_Shield, an extremely powerful development for Arduino board, is designed to solve the problems of connection and storage which exist in the Arduino board. Iduino_Yun_Shield runs Open Source OpenWrt System (Same system as runs in Arduino Yun) and it is fully compatible with Arduino IDE V1.5.4 or later versions. Yun Shield is an ideal choice for Arduino Projects which require various internet connections and more storage.

Actually, Iduino_Yun_Shield is equal to the official Arduino Yun, but Iduino_Yun_Shield is more flexible because it can work with other Arduino board such as Uno, Duemilanove, and Mega etc. Iduino_Yun_Shield uses external antenna which provides stable connection under various environments.

The Iduino Yun is the core module of Iduino_Yun_Shield. And it requires 200mA current when in full load, so it is powered by the Arduino VIN pins to avoid overheated in the Arduino onboard 5V LD0.

Features:
1. Open source Linux system (OpenWrt) inside
2. Low power consumption
3. Compatible with Arduino IDE 1.5.4 or later versions. Users can program, debug or upload Sketch to Arduino board
4. Managed by Web GUI, SSH via LAN or Wifi
5. Software upgradable via network
6. Support internet connection via LAN port, Wifi or 3G dongle
7. Support USB flash to provide storage for Arduino projects
8. Reliable design provides robust system
9. Compatible with Arduino Leonardo, Uno, Duemilanove, Diecimila and Mega

For more information, please kindly check at wiki page.

Q: Hello, I am able to access the web GUI with my phone, but no wifi routers show up on the system settings page even though I have two wifi routers in my shop and the same phone can see them, but not the iduino config page via mobile browser. I don’t have a desktop with wifi capability.

Q: Hello Geeetech Team Probleme for software installation. iduino yun shell on a leonardo shell installed Firmware Version Dragino-v2 common-2.0.4 Kernel Version 3.3.8 I wanr to installe some softwares (openssh-server & samba) In System/Software when I do the update lists command, nothing happens. I tried, in terminal mode, the command: root@dragino-6b4f3b:~# opkg update
PROMPT ANSWER
Downloading http://www.dragino.com/downloads/downloads/motherboards/ms14/Firmware/Yun/Packages–v2.x/Packages.gz. with the same result.

Q: I just got this shield but I am not seeing a wireless network for it when it is opwered up. I ave an Arduino uno and running a 12v power adapter in to power it. I have added the jumper to the uno. All i am getting is a solid light on the R10 led.No unsecured Wifi network is displaying…

A: Hello Mike, you can go to this link for more help,
http://www.geeetech.com/wiki/index.php/Iduino_Yun_Shield#How_to_set_up_Iduino_Yun_Shield
Check whether your computer or smartphone can detect the WIFI called “Iduino-A8404113A358” or not. Before you do this, make sure that you already have a good combination of arduino uno and iduino yun, and be careful not distorting the pins. If you still can’t detect WIFI, try to reset iduino yun.

Q1: Please help , I have iduino yun shell on a leonardo shell installed correctly, but Arduino IDE does not recognize default plate as shown in tutorial. the wiki for DRAGINO shell is exactly the same but there is a link to download files that add dragino plate:
http://wiki.dragino.com/index.php?title=Getting_Start_with_Arduino_Yun#Detect_Dragino_Yun
Where I can download these files for IDUINO yun ? Thank you.

A1: Hello Carlos,you don’t need the files.What you are advised to do is checking the followings:
1.Is the version of Arduino IDE 1.5.4 or higher?
2.Whether your PC is in the same network environment with Iduino_Yun_Shield or not.
3.Sometimes the problem you described may appear when the start of Iduino_Yun_Shield is prior to that of Arduino IDE, so try to restart Iduino_Yun_Shield to solve the problem.

Q2: Quentin Many thanks, I detected not really happened, just disassemble everything and reconnected, now works. Like I said about the Iduino yun shield is installed on Leonardo Shield, so the configuration would it be: Shield “Arduino Leonardo” and Port “Arduino Yun” or Shield “Arduino Yun” and Port “Arduino Yun”. I ask because unfortunately when loading a basic example as “ScanNetworks” (Yun shield energized with 9V DC and charging via USB cable program on Leonardo shield), the serial port says “WiFi shield not present”.
Would I have to load the program for wifi or direct to Yun shield with an USB-USB cable? Thanks for your help.

A2: You’re welcome Carlos. The right configuration should be: Shield “Arduino Leonardo” and Port “Arduino Yun”. For the problem “WiFi shield not present” you mentioned, mabybe it is because your computer didn’t successfully connect to the wifi sent by Arduino yun shield, please check the wifi of your computer. Please feel free to ask us for help. Thank you for your question.

Q3: Thanks, I checked the connections: – Shield Leonardo. – USB port (COM4 Arduino Leonardo) – Puerto WIFI: Iduino at 192.168.240.1 (Arduino Yun) All connections are working properly, I can smoothly enter the settings via web to 192.168.240.1. Ssh access to Linux -_ OK. The failure occurs when loading the “ScanNetworks” (wifi programs) program via USB Arduino Leonardo com4 says: WiFi shield not present. the other basic programs work, but using wifi throw this error.

A3: When your computer is connected to the WiFi sent by Arduino Yun, open Arduino IDE(higher version than 1.5.4),and the Arduino IDE will detect the port of Yun shield. Have your Arduino IDE ever detected such a port?

Q4: wifi always correctly detects the port, even if I change the configuration of Arduino IDE: shield: Yun shield, port: 192.168.240.1 Yun shield, I can load the sketch via wifi . This does not work if the board configuration is Leonardo. I’m thinking of buy a mega 256 shield for test.

A4: If you use wifi to do this, the principle will be:the sketch is first sent to Yun Shield,then it is sent to Leonardo via Yun Shield. So when you are choosing the board type in Arduino IDE, you can only choose Arduino Yun. If you want to use Leonardo type, just connect it with USB and don’t use wifi.

Arduino Yun and the Yun shield

Geeetech
Geeetech Iduino Yun Shield
Iduino Yun Cloud
Geeetech Dragino Yun Shield wiki
Geeetech Iduino Shield Wiki
Geeetech Iduino Shield Wiki (archive.org)

Arduino
Arduino Yun (retired)
Bridge Library for Yun devices
Bridge Library tutorials
Dragino
Dragino Yun
Dragino Yun downloads
Dragino Yun Shield wiki
Linux, WiFi, Ethernet , USB Shield for Arduino