Disclaimer: NovaCrackz.com merely provides serial number or license keys to activate full version software for education purposes to test product before buying and not to encourage any sort of copyright infriging activity. We encourage our visitors to purchase their desired software from their developers after testing Full Version. Cracks are released by trusted cracking groups and were verified to be working at the time of indexing as well as 100% clean of viruses.
Mail Archiver X 5.1.0 - Mail archiving, cleaning, and browsing. Download the latest versions of the best Mac apps at safe and trusted MacUpdate. MailTags 5.1.6 (macOS) 11.74 MB MailTags lets you add comments, due dates, project notes and priority rankings to your messages, all without leaving your Inbox! MailTags is a feature-packed companion to Apple Mail: Integrated interface – Add tagged keywords, project notes, and priority rankings through a convenient side panel. ICal supportCreate synchronized ToDos.
In short, respect the software creators:).
After getting Gentoo to run on the Medion NAS in these posts,
I learned that OpenWRT had been ported to the oxnas platform. This appealed to me, as OpenWRT is installed on the internal flash. Honestlythe Gentoo installation I had on the HDD, was better suited as a webserver, but I just wanted to play with OpenWRT. The only real reason for using OpenWRT instead of Gentoo, is in the hopes that the OpenWRT folks will keep the kernel updated.
I still have my web page, and the files from which it is generated, ona hard disk drive, connected to the SATA port.
I recommend having a serial connection to the NAS running at all times.
This operation can only be executed once, and may brick your device,after the bootstrap there is no way to restore the original firmware.Because of this I can not actually check that these steps are exactlyright, but they are what i recall.
To bootstrap the installation I used the binary image fromGitorious openwrt-oxnas.
Setup a HTTP server on a computer to serve
openwrt-oxnas-stg212-u-boot-initramfs.itb .Telnet into the NAS using the backdoor described on mikrocontroller.net.Login to the web-interface on the NAS, then open http://(NAS IP)/r36807,/adv,/cgi-bin/remote_help-cgi?type=backdoor (you may have to replace the /rXXXXX,/ with the revision number shown in the URL after login).The browser will wait for the CGI script to (never) end, while it’s doing that telnet into the NAS. Login with user root and the passwordalso used by the web interface (default is 1234).
After logging in, download the OpenWRT image to
/tmp/tmpfs . Look in/proc/mtd and make sure kernel is in /dev/mtd4 . Write the imageto /dev/mtd4 , tell U-Boot to boot from it, and reboot.
This is where the serial connection comes in handy, for watching theboot process. If everything went well LUCI, OpenWRT's web interfaceshould be available on the NAS on address 192.168.1.1. When you havecompiled a new OpenWRT image you can flash it, by using LUCI.
OpenWrt Buildroot – About.
Since, for now, oxnas support is only in OpenWRT trunk, everything needsto be build.
I build this on a Gentoo system, which seems to need automake-1.14 installed for glib2 to build.
Getting the sources.
Change into the directory where you want the sources to reside and do:
OpenWRT uses
To have the standard set of packages available for OpenWRT copy
feeds.conf.default to feeds.conf .
Custom feeds.
If you just want a web server, and do not need setuptools for Python 3,or my shiny site generator, you can skip this step.
I have made a couple of custom feeds, that addresses some specificPython 3 needs I have for my static sitegenerator. Tohave these packages available add the following to
feeds.conf :
Comment out the original package line in the file.
Update and add the feeds.
Add the packages to the build system.
Configuring the sources.
I have configured a lot of stuff, that I am not using right now, as modules, so that I can later install them if I find a need. Thisincreases the build time, so it is a trade off compared to buildingjust the packages that you want right now.You can download my configuration file,and use it as a basis for your own configuration.
To configure the OpenWRT build run
make menuconfig in the sourcedirectory.
I can not describe every configuration option, but here are some important ones.
First to build OpenWRT for the NAS these tell the build system about thebasic hardware:
Under
Target Images select
Under
Global build settings I enable at least
If you want to develop or debug the build process of packages in OpenWRT enable
Advanced configuration options (for developers) , some sub-options that I use are:
Under
Base system
In
Kernel modules I believe that everything needed is enabled by default, but there is a little more stuff that is nice.
In
Languages I enable python3 and setuptools for mystatic site generator.
In
LuCI make sure to enable the basic interface and build it as a module. LuCI is the only reliable way I have been able to flash a newimage to the NAS.
In
Network a lot of things like web servers hide.
Compile.
The CA-certificates package expect
python to point to a python 2.xinterpreter, my Gentoo system uses Python 3, which leads to missingcertificates. I made a patch, thatyou can drop into packages/system/ca-certificates/patches in yourOpenWRT directory, if you run into this.
To build everything just run
make . To see all output from the build process use:
The images end up in
bin/oxnas , along with the packages. I flash openwrt-oxnas-stg212-ubifs-sysupgrade.tar using LuCI.
I have chosen to compile most of the software I use, in this installation, as packages that must be installed after flashing thestatic image.Some of these packages are only installed for my own personal convenience, and some because they are needed for my static sitegenerator.
Serving packages for OpenWRT.
Like when installing the bootstrap image you need a web server withthe package files available to OpenWRT. I assume that the OpenWRTpackage tree is copied to the root of the server. You could copy the packagefiles to the HDD, but I have not tried that.
/etc/opkg.conf needan adjustment to tell opkg (the package manager) where to find thepackages:
Replace
severip with the IP address of the computer serving thepackages.
Update the package index.
Installing required packages.
File systems:
Web server:
Installing the optional packages.
These are just tools that are nice to have.
File manager:
Easy editor
SFTP server:
USB mass storage support (aka. USB stick)
Installing packages for ssg.
Python 3:
For some reason my package does not pull in the Python 3 dependencycorrectly, therefore the package
python3 must be installed first.
Git:
Links in
/usr/libexec/git-core/ are wrong, this is corrected bycreating the symlink, see Bug #11930.
System.
Global configuration is done in
/etc/config/system . I sent the logs toa file on the HDD, and limited it at 1Mb in size. You should configure the host name and time zone to your local preferences.
The log levels of different subsystems is configured in this file as well. Notice that for
conloglevel and klogconloglevel a highernumber means more verbose, while for cronloglevel it is the other wayaround.
I have not touched the time server configuration, I only use the clientpart, and it worked out of the box.
Mount points.
There are two 'disks' in the system, the internal flash, and the HDDconnected to the SATA port.
OpenWRT uses
/etc/config/fstab to configure mount points.
The global section tells OpenWRT, to not mount any drives that do nothave their own section in fstab (anon_). Auto_ to mount any filesystem and swap space, from the fstab. Delay mounting for 5 seconds,and perform a file system check if needed.
This section configures
/dev/sda2 as an ext4 partition withread-write access, and mounts it at /mnt/data .
Last is the swap space from `/dev/sda3'.
Create the mount point and mount the partitions.
Create directories for web server, logs, and temporary files.
Adding users and groups.
OpenWRT is not build to be a multiuser system, but it is possible toconfigure it like that. There are two options, either use
shadow likea desktop Linux system, or use busybox build in user handling. I haveused the busybox version, since it is lighter.
User directories are kept on the HDD and linked into the root filesystem.
Users are added using the
adduser command. Replace username withthe user name you want.
Next create the user directory and set the permissions.
I still want root access, but I to log in as a regular user and
su tothe root account, like a desktop system. Busybox needs some setup for the su command to work.
/etc/busybox.conf
Disabling root access from ssh.
Now that
su works, there is no reason to allow root access through ssh, if you do not need ssh it would be even better to disable it.
For non root access:
/etc/config/dropbear
Disable ssh enterily:
File system permissions.
Permissions for
/mnt/data/www/ , the directory served by lighttpd.
Configuring lighttpd.
Configuring Lighttpd,Lighttpd Secure Web Server Tutorial
Configuration is done in
/etc/lighttpd/lighttpd.conf :
I have disabled symlinks in this configuration, which means that the web root directory, cannot be a symlink. You will get something like
403 Forbidden if you try. The same goes for symlinks inside the webroot directory, they won't work.
You can change this behavior by changing
server.follow-symlink = 'disable' to server.follow-symlink = 'enable' , but i encourage you to readthis answer on Server Fault.
Enable lighttpd at boot.
Date: 2015-02-06 17:49:00
Tags: OpenWRT, NAS, Medion MD86517, web server, Category:Computers/OpenWRT/
I was given a Medion MD86517 NASwithout a drive for free. I wanted to put a 2.5' disk in it, and use it as aweb-server. The NAS runs Linux, and the sources are here.
A large part of the installation was done on a regular Gentoo x86/x64 PC,using a SATA to USB converter. Start with a clean drivewith no partitions, connected to the host computer (Not the NAS).
During the install, I have aimed to have all files needed for a new intall,located on the NAS drive itself, in the hopes that it will make a reinstall,easier. You can of course remove these files from
/usr/src , if you do notwant this.
Much of this stuff needs root permissions, and all the NAS side stuff is donethrough a serial connection. If something is unclear, read The Gentoo handbook,this is in essence the same procedure, except I boot into the system instead ofchrooting.
A lot of thanks and credit to the people in this thread,without whom I would never have gotten on the right track.
To boot from the SATA disk, a special partition layout is needed. The ox820reads the start of the drive, to check if it is bootable. A script has beenwritten to put the right data in the first part of the hard disk.Download disk creation files created byWarheadsSE, extract the files somewhere, andenter that directory. Edit the disk_create script to change the target drivein the variable
disk .
Creating the partitions
Prepare the disk using WarheadsSE's tool.
Fire up fdisk to partition the disk.
Format the second and third partition, I use ext4 as the root file system.
Last, mount the second partition to /mnt/gentoo, your partition may have anotherdesignation than
/dev/sdb .
Download a stage 3 Gentoo for ARM5,and extract it to /mnt/gentoo. Though the processor is ARM6 compatible, I couldnot get it to boot beyond the kernel using and ARM6 stage 3.
Set the baud rate in /mnt/gentoo/etc/inittab to 115200. Change:
to:
Copy
resolv.conf from your host /etc directory, to have DNS working.
Create a link from
net.lo to net.eth0 to enable the network at firstboot.
Edit
/mnt/gentoo/etc/fstab to set the devices for the root and swap filesystem. The file should contain something like this:
Copy passwd and shadow from the running system to have your logins and passwordswhen you boot the NAS.
Select mirrors for portage.
Set the timezone.
Set the hostanme.
Set the keymap (just in case).
Last edit and change
UTC to local if needed.
You will need an ARM cross-compiler, Gentoo's
crossdev comes in handy.
Clone linux-oxnas into
/mnt/gentoo/usr/src .
Remember to compile in support for the root file system type, if you did like methis means enabling the ext4 file system.
Compile and create kernel image.
Copy WarheadsSE's disk creation files (contents of onax-sata-boot.tar.gz) to the
/mnt/gentoo/usr/src .
Integrate the new kernel into WarheadsSE's tool.
Unmount and sync the disk.
Remove the drive from the host computer and physically install it in the NAS.
Set the clock. MMDDhhmmCCYY is month, date, hour, minute, century, year
Get the portage tree.
Set the Profile.
I selected
default/linux/arm/13.0/armv5te .
Configure the locales, first put the locales you want supported in
locale.gen .
Generate the locales and select the system-wide one.
Add the network interface to the startup.
Update and install some needed stuff.
Add it to the startup.
You now have a basic Gentoo system running, from here you can install a webserver, a DLNA server, or whatever you want.
Date: 2014-05-21 20:00:00
Tags: Gentoo, NAS, Medion MD86517, web server, Category:Computers/Gentoo/
Generated on 2018-05-03 01:14:21.893443
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |