Clean OS (Debian), OpenMediaVault and other "firmwares"

@duncan2015

duncan2015 wrote:

  1. How to enter sleep mode ?

Just install ramlog - sleep mode works fine as is. I posted a script to flash the LED on P36 and just below it is a script (really just a command) to show what files are written in the last x minutes. This will help you identify what the system is writing to and if it’s logs, just redirect them to /var. They will then be managed by ramlog.

Hello Fox_exe,

just wanted to thank you. I installed Clean Debian, and everything is working fine.

Keep the great job!

Fox_exe wrote:


duncan2015 wrote:

  1. I can login to Web GUI by http://mycloud.local/

  2. How to install php5 and mysql,  I run mysql in Web Gui without success.

  3. What should be inside /etc/apt/sources.list

  4. How to enter sleep mode ?


  1. Strange. Works fine for me.
  2. PHP5+nginx already installed (Web GUI base). For install MySQL need roll back Perl (Dependences problems)
  3. Whatewer you want. All standart debian repos by default.
  4. Need change some services (Or disable it). I do it in next version.

Thx, BTW, how to roll back MySQL, Mysql should install inside WEB GUI or command line like "apt-get install mysql " ?

First of all, thank you Fox_exe for all the work you have already put into this - you can certainly see it is very much appreciated by the community as it is.

I myself have been waiting for something like this since I discovered the native system of the wdmycloud is pretty much useless to me.

However, to my problem.

I have installed the newer OMV (1.12) image you provided, using the autoinstall script and the run_… script afterward.

OMV runs and I can log on via ssh without any problems.

However, I encounter numerous issues with the ‘locales’ package. I simply can not install it…

root@MyCloud:~# apt-get install locales
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 locales : Depends: glibc-2.13-1
           Depends: debconf (>= 0.5) but it is not going to be installed or
                    debconf-2.0
E: Unable to correct problems, you have held broken packages.

 Help would be greatly appreciated.

Thank you,

Fox_exe wrote:


duncan2015 wrote:

  1. I can login to Web GUI by http://mycloud.local/

  2. How to install php5 and mysql,  I run mysql in Web Gui without success.

  3. What should be inside /etc/apt/sources.list

  4. How to enter sleep mode ?


  1. Strange. Works fine for me.
  2. PHP5+nginx already installed (Web GUI base). For install MySQL need roll back Perl (Dependences problems)
  3. Whatewer you want. All standart debian repos by default.
  4. Need change some services (Or disable it). I do it in next version.

Just to let you know, i have the same problem 1., i can only log in by  http://mycloud.local/ but it’s only with chrome.

With firefox, no problem with all adress: 192… mycloud.local 

Scooby-2 wrote:

@duncan2015


duncan2015 wrote:

  1. How to enter sleep mode ?

Just install ramlog - sleep mode works fine as is. I posted a script to flash the LED on P36 and just below it is a script (really just a command) to show what files are written in the last x minutes. This will help you identify what the system is writing to and if it’s logs, just redirect them to /var. They will then be managed by ramlog.

How to install ramlog ?

I found that the md0, md1 RAID 1 is marked  as degraded (OMV 1.12), is my Hard drive damage ?

Anyone has this problem ?

duncan2015 wrote:

I found that the md0, md1 RAID 1 is marked  as degraded (OMV 1.12), is my Hard drive damage ?

Everything is all right. And has to be.
But if it confuses you - connect via SSH and type  "/run_me_after_reboot.sh" (Include slash)

duncan2015 wrote :

How to install ramlog ?

See  http://www.tremende.com/ramlog/#install_2 to install ramlog. Also see Hujanita’s post here  http://community.wd.com/t5/WD-My-Cloud/Clean-debian-and-OpenMediaVault-on-WDMyCloud/td-p/785505/page/34 The home page for ramlog contains all the info I needed. I’m not running Samba (I use NFS) nor am I running a media server. I’m running syncthing and also about to install openvpn. My disk goes to sleep fine.

Hi all =)

I sucesfully install OMV, but didn’t change the partitioning or anything.

I’d just like to try to reinstall it… would the install.sh script be able to do a clean reinstallation or will I end up with a mess?

Many thanks

Fox_exe wrote:

Run this:

mdadm --stop /dev/md1
mdadm /dev/md1 --remove /dev/sda2
mdadm --wait /dev/md1
mdadm --zero-superblock --force --verbose /dev/sda2
mdadm /dev/md0 --add /dev/sda2

Its revert mdraid to normal state (Need for easy change/revert firmware by my Autoinstall script)

 

About mycloud.local - just edit /etc/hosts and change to what you want (Or just delete “mycloud” and “local”)

What about if I install omv now, do I still need to run those commands or by any chance you updated your script? (sorry but I’m not sure about what they do)

Many thanks

regarding my OMV (1.12) image-locales problem - I kind of solved it.

I installed aptitude and tried to install locales - the only available solution was to remove lots of packages, so I obliged.

Afterwards it still wanted to remove further packages (also OMV) - I also did this.

After installation and reconiguration of locales, I installed OMV again (1.13)

→ works just fine, owncloud, minidlna and NFS mounts up and running.

I am still having problems accessing the Samba shares from Linux - since I don’t run Windows anywhere and NFS works, this doesn’t bother me too much.

Does anyone have experience with the Calibre plugin for OMV?

When I want to add shared folder in openmediavault, nothing find in the volume list.

Does this due to the UUID problem? 

Which line should I modifed in config.xml?

Any other way to add shared folder?

Thanks

wd_pnn wrote:

When I want to add shared folder in openmediavault, nothing find in the volume list.

Does this due to the UUID problem? 

Which line should I modifed in config.xml?

 

Any other way to add shared folder?

 

Thanks

You have to mount data partition (partition 4) in omv.

Scooby-2 wrote:

 

  1. Be aware that Samba writes constantly to its logs.

 

 

Do you mean samba has to disable in order to let HDD spin down /sleep ?

I have to install hdparm and ramlog in order to let HDD spin down /sleep ?

Thx

duncan2015 wrote:


Scooby-2 wrote:

 

  1. Be aware that Samba writes constantly to its logs.

 

 


Do you mean samba has to disable in order to let HDD spin down /sleep ?

 

I have to install hdparm and ramlog in order to let HDD spin down /sleep ?

 

Thx

You do not need to disable Samba but you need to ensure it sends its logs to /var, which can then be manged by ramlog.

If you want to use the script which I wrote, yes you will need to install hdparm and ramlog. It’s easy and quick. You may want to try 

hdparm -y /dev/sda

to make sure it spins your disk down. If it works, then install ramlog and the script.

Hope this helps.

I cannot install mysql in omv (1.14)

here is the output in ssh

root@MyCloud:~# apt-get install mysql

Reading package lists… Done

Building dependency tree       

Reading state information… Done

E: Unable to locate package mysql

How can i get  mysql installed ?

Thx everybody.

Scooby-2 wrote:


You do not need to disable Samba but you need to ensure it sends its logs to /var, which can then be manged by ramlog.

hdparm -y /dev/sda

to make sure it spins your disk down. If it works, then install ramlog and the script.

Hope this helps.> I test with hdparm -y /dev/sda, my hdd enter standby mode at once, however it wake up a few seconds later, is it normal ?> I have installed ramlog, do i have to modified samba start file and ramlog file ? How to do it ?> Thx

duncan2015 wrote:

E: Unable to locate package mysql

There is no ‘mysql’ package in repo.

apt-get install mysql-server

or

apt-get install openmediavault-mysql

Fox_exe wrote:


duncan2015 wrote:

E: Unable to locate package mysql


There is no ‘mysql’ package in repo.

apt-get install mysql-server

or

apt-get install openmediavault-mysql

Still fail to install mysql

root@MyCloud:~# apt-get install mysql-server
Reading package lists… Done
Building dependency tree        
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@MyCloud:~# apt-get install openmediavault-mysql
Reading package lists… Done
Building dependency tree       
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openmediavault-mysql : Depends: mysql-server but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

What’s wrong