Jump to content


Photo

XP1000 - locked black screen


  • Please log in to reply
77 replies to this topic

Re: XP1000 - locked black screen #61 thimon

  • Member
  • 45 posts

0
Neutral

Posted 15 June 2013 - 00:25

btw, you must not use my "synology".

Edit auto.master file and line "/media/synology /etc/auto.synology" modify f.eg. to:

 

/media/mypc /etc/auto.mypc

 

first parameter is mountpoint ( /media/mypc ), second is autoconfig file (auto.mypc)

Then mounted dirs will be in "/media/mypc/..."  and file for config will be "/etc/auto.mypc"

 

Note: there in /media/ should not exists directory with same name as will be created by autofs ! 

 

/etc/auto.master

/autofs     /etc/auto.hotplug
/media/mypc /etc/auto.mypc

 

/etc/auto.mypc

mypc -fstype=cifs,username=u,password=u,noatime,noserverino,iocharset=utf8,sec=ntlmv2 ://192.168.1.103/xp1000

 

root@xp1000:~# /etc/init.d/autofs restart
Stopping automounter: done.
Starting automounter: done.
 
 
root@xp1000:~# mount
rootfs on / type rootfs (rw)
ubi0:rootfs on / type ubifs (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=117936k,nr_inodes=29484,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /media type tmpfs (rw,relatime,size=64k)
/dev/sda1 on /media/usb type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /var/volatile type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
automount(pid1990) on /autofs type autofs (rw,relatime,fd=4,pgrp=1990,timeout=5,minproto=2,maxproto=4,indirect)
automount(pid2040) on /media/mypc type autofs (rw,relatime,fd=4,pgrp=2040,timeout=5,minproto=2,maxproto=4,indirect)
 
 
The setup is exactly as the example, but does not work.
 
 
root@xp1000:~# ls /media/mypc/
mypc
root@xp1000:~# ls /media/mypc/mypc/
ls: /media/mypc/mypc/: No such file or directory
root@xp1000:~#
 
I do not know what else to do.
 


Re: XP1000 - locked black screen #62 ims

  • PLi® Core member
  • 13,780 posts

+214
Excellent

Posted 15 June 2013 - 08:02

It works. (tried on XP) , but you must use existing user and he must using password.

 

(I am using in this cases administrator acount. You can see on internet, how enable administrator acount and how hide it in start screen.), but it works with any account with password.  On XP is shared dir as AVI

 

 

/etc/auto.master  ... only ONE line

/media/mypc /etc/auto.mypc
 

 

 

/etc/auto.mypc

video -fstype=cifs,username=administrator,password=adminpswd,noatime,noserverino,iocharset=utf8,sec=ntlmv2 ://192.168.1.105/avi

 

then there is /media/mypc/video


Kdo nic nedělá, nic nezkazí!

Re: XP1000 - locked black screen #63 thimon

  • Member
  • 45 posts

0
Neutral

Posted 15 June 2013 - 12:59

The setup is exactly as you said, but does not work.
 
The user "u" with the password "u" exists.
Through MountManager works perfectly.
 
I give up, I will use the same MountManager... after record programming I umount sharing.


Re: XP1000 - locked black screen #64 ims

  • PLi® Core member
  • 13,780 posts

+214
Excellent

Posted 15 June 2013 - 13:30

try, if you can mount this directory from PC to PC. Do you using XP or 7 ? For me it works with XP only.


Kdo nic nedělá, nic nezkazí!

Re: XP1000 - locked black screen #65 thimon

  • Member
  • 45 posts

0
Neutral

Posted 15 June 2013 - 14:02

I tried with windows 7 and 8.
 
I'll try to emulate a WindowsXP via virtualbox with the network in bridge.


Re: XP1000 - locked black screen #66 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 15 June 2013 - 17:21

I've been reading about CIFS mounting and it seems there may be a problem with mounting sub-folders...

 

For instance:

 

I have a problem with mount.cifs or mount-t cifs function.

The following works:

mount.cifs //192.168.0.3/share_usb/ /DATA/movie/Filme1 -ro dom=Arbeitsgruppe,user=user,pass=1234

The following does not work:
mount.cifs //192.168.0.3/share_usb/filme /DATA/movie/Filme1 -ro dom=Arbeitsgruppe,user=user,pass=1234"

 

A principle for our context:

 

http://dream.reichholf.net/wiki/Fstab

 

Per CIFS die Festplatte des PC mounten

Der Eintrag in der fstab

[code]//server/share /mount/point cifs username=[username],password=[password] 0 0
[/code]

 

CIFS module for Enigma2: http://www.sat-unive...p/t-108515.html

 

Common Internet File System (CIFS).

copy module to /lib/modules/
or
/var/lib for flash version
from telnet run

insmod /lib/modules/cifs.ko


mount -t cifs -o username=root,password=relook //192.168.0.1/winxp /media/cifs

192.168.0.1 = you pc ip;server_ip
winxp = sharefolder on your pc.

to make enigma2 mount server automatically after reboot.
edit /etc/init.d/mountall
and add

insmod /lib/modules/cifs.ko
wait 2
mount -t cifs //192.168.0.1/winxp /media/cifs -o username=root,password=relook

just over the line
: exit 0


<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: XP1000 - locked black screen #67 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 15 June 2013 - 17:45

Here is what I wrote, first sorting things out in Win7:

 

In Windows7 sort out the sharing components first:

Start => Control Panel => Programs and Features => Turn Windows Features On or Off => tick the Media Features, Network stuff, Telnet Client, TFTP => OK.

Next, go to Start => Control Panel\All Control Panel Items\Network and Sharing Centre => click on Choose homegroup and sharing options => Choose the folders to share. Tick the option to "Stream your pictures, music and videos on my home network".

Click on Change Advanced Sharing Options. You are in Control Panel\Network and Internet\Network and Sharing Centre\Advanced sharing settings:

turn on network discovery

turn on file and printer sharing

stop the "Public Folder Sharing".

Go to Media Streaming Options, which is in Control Panel\Network and Internet\Network and Sharing Centre\Media streaming options => and there...

Name your media library [your nick, for instance]

Show devices in the local network => Allow all

Media programs etc. etc. => Allowed.

Go back [BACK button]:

leave the 128b encryption to on

turn off password protected sharing

allow Windows to manage homegroup connections.

Then, start your Windows Explorer and

find all the folders you want to share;

right click on each folder and go to Properties;

click on Share tab => click on the little arrow downwards to get the drop down menu and choose Everyone, then click on Add.

Give "Everyone" the permission to READ ONLY and click on Share.

You have more controls/options under Advanced Sharing button in the little window, too. Go to it and check the permissions etc. When you're done, in the main Properties little window, finish by clicking on Apply and Close.

Reboot your PC and after sorting out your STB with Enigma 2, try finding your PC and the folders to stream from. Sometimes, one needn't reboot, mind!

 

From memory there were problems with CIFS and fstab mounting but maybe the answer is above, so try this now:

 

Edit the fstab file is in /etc and put this line at the end:

\\\\192.168.1.2\\server_shared_folder /media/STB_folder cifs username=,password= rw 0 0 0 0 

 

The writer of this bit used username/password protected sharing.

 

In that case:

 

\\\\192.168.1.2\\movies /media/films cifs username=nick,password=something rw 0 0 0 0

 

Add your username and pass intead of "nick/something", of course...

 

Good luck and do tell...


<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: XP1000 - locked black screen #68 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 15 June 2013 - 17:52

Words of caution for password protected sharing here:

 

https://wiki.ubuntu....aresPermanently

 

Mount password protected network folders

The quickest way to auto-mounting a password-protected share is to edit /etc/fstab (with root privileges), to add this line:

//servername/sharename  /media/windowsshare  cifs  username=msusername,password=mspassword,iocharset=utf8,sec=ntlm  0  0

This is not a good idea however: /etc/fstab is readable by everyone and so is your Windows password in it. The way around this is to use a credentials file. This is a file that contains just the username and password.

 

Using a text editor, create a file for your remote servers logon credential:

 

gedit ~/.smbcredentials

Enter your Windows username and password in the file:

 

username=msusername
password=mspassword

Save the file, exit the editor.

Change the permissions of the file to prevent unwanted access to your credentials:

 

chmod 600 ~/.smbcredentials

Then edit your /etc/fstab file (with root privileges) to add this line (replacing the insecure line in the example above, if you added it):

 

//servername/sharename /media/windowsshare cifs credentials=/home/ubuntuusername/.smbcredentials,iocharset=utf8,sec=ntlm 0 0 

Save the file, exit the editor.

Finally, test the fstab entry by issuing:

 

sudo mount -a

If there are no errors, you should test how it works after a reboot. Your remote share should mount automatically.

 

Special permissions

If you need special permission (like chmod etc.), you'll need to add a uid (short for 'user id') or gid (for 'group id') parameter to the share's mount options.

 

//servername/sharename  /media/windowsshare  cifs   uid=ubuntuuser,credentials=/home/ubuntuuser/.smbcredentials,iocharset=utf8,sec=ntlm   0       0

<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: XP1000 - locked black screen #69 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 15 June 2013 - 17:57

This is important and after this text goes the TROUBLOESHOOTING:

 

http://ubuntuforums....ad.php?t=288534

 

If your samba server requires a password to access the shared files, you should create a credentials file so the username and password are hidden from prying eyes. If you don't have password protected access to your samba share, skip this section and start with the line that says "Now we edit fstab:".

To create a credentials file, do the following:

 
sudo nano /root/.smbcredentials
WARNING!!! Do not use a GUI text editor (like KATE) to create this file!!!

Add the following lines (change winusername and winpassword to the correct username and password for the samba/windows server you want to connect to):

username=winusername
password=winpassword
 

Save the file by hitting ctrl+x, type "y" to save the buffer, and <enter> to exit.

Now, change the permissions of the file so only root can read and edit it:

 

sudo chmod 700 /root/.smbcredentials

 

Now we edit fstab:

 

sudo nano /etc/fstab

 

and at the end of the file, insert one (1) of the following 3 lines according to your needs. Make sure you change "netbiosname" and "sharename" to the correct names for the server you are trying to connect to. (if you don't know what these are, please see the next post)

icon_arrow.gif For a password protected share with read/write permission.

 

//netbiosname/sharename /media/sharename cifs credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

 

icon_arrow.gif For a non-password protected share with read/write permission use this instead:


 

//netbiosname/sharename /media/sharename cifs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

 

icon_arrow.gif For read only guest access:


 

//netbiosname/sharename /media/sharename cifs guest,iocharset=utf8 0 0

 

Save the file by hitting ctrl+x, type "y" to save the buffer, and <enter> to exit.


note: if you've used a text editor other than nano, make sure that there is a blank line at the end of this file.

Finally, test your settings to make sure they work:

 

sudo mount -a

 

If you get a folder on your desktop with your server shares, then you have configured everything correctly. If not, please see the "Troubleshooting" section below, review the howto, or post in the thread.

Now, your samba shares will be mounted every time you start the computer. If you are not connected to your network when you boot, this will not cause problems. The share will simply not appear on your desktop.

 

(...)


<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: XP1000 - locked black screen #70 ims

  • PLi® Core member
  • 13,780 posts

+214
Excellent

Posted 15 June 2013 - 18:35

I tried with windows 7 and 8.
 
I'll try to emulate a WindowsXP via virtualbox with the network in bridge.

i have success with sec=nltm ( instead sec=ntlmv2 ) under Win7


Kdo nic nedělá, nic nezkazí!

Re: XP1000 - locked black screen #71 thimon

  • Member
  • 45 posts

0
Neutral

Posted 16 June 2013 - 21:03

 

I tried with windows 7 and 8.
 
I'll try to emulate a WindowsXP via virtualbox with the network in bridge.

i have success with sec=nltm ( instead sec=ntlmv2 ) under Win7

 

Using sec=nltm worked perfectly.

Can I use the share as "replacement hdd"?



Re: XP1000 - locked black screen #72 Dimitrij

  • PLi® Core member
  • 10,297 posts

+347
Excellent

Posted 16 June 2013 - 21:10

Can I use the share as "replacement hdd"?

I do not see the logic.
You turn off the laptop, on which the stable operation of the receiver can speak...


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: XP1000 - locked black screen #73 thimon

  • Member
  • 45 posts

0
Neutral

Posted 16 June 2013 - 21:14

Can I use the share as "replacement hdd"?

I do not see the logic.
You turn off the laptop, on which the stable operation of the receiver can speak...

 

My desktop is connected 24 hours.
I managed to access the share via autofs, but wanted to share this work as HDD.


Re: XP1000 - locked black screen #74 thimon

  • Member
  • 45 posts

0
Neutral

Posted 16 June 2013 - 22:15

I created a symbolic link to /media/hdd going to the shared folder.
 
It worked perfectly, but if the PC goes into standby mode... when the PC wakes up, locked on black screen.
 
The receiver does some checking /media/hdd when you wake up.
If the hdd is off, it lock at the black screen.


Re: XP1000 - locked black screen #75 Dimitrij

  • PLi® Core member
  • 10,297 posts

+347
Excellent

Posted 17 June 2013 - 05:14

If the hdd is off, it lock at the black screen.

 

black screen=system is busy(20-30sec)


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: XP1000 - locked black screen #76 Dimitrij

  • PLi® Core member
  • 10,297 posts

+347
Excellent

Posted 17 June 2013 - 05:23

 

If the hdd is off, it lock at the black screen.

 

black screen=system is busy(20-30sec)

black screen=system is busy(20-30sec)=standby mode=live tv=when the PC wakes up/disable


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: XP1000 - locked black screen #77 ims

  • PLi® Core member
  • 13,780 posts

+214
Excellent

Posted 17 June 2013 - 07:53

I created a symbolic link to /media/hdd going to the shared folder.
 
It worked perfectly, but if the PC goes into standby mode... when the PC wakes up, locked on black screen.
 
The receiver does some checking /media/hdd when you wake up.
If the hdd is off, it lock at the black screen.

why you made link ? I think, it could be possible use easy it as HDD with changing recordings paths... Try it there in Menu-Setup-System-Recording paths.

( I am not using NAS boxe as replacement. When is any of my 3 NAS boxes turned off, nothing delay on XP1000's start.)


Kdo nic nedělá, nic nezkazí!

Re: XP1000 - locked black screen #78 thimon

  • Member
  • 45 posts

0
Neutral

Posted 17 June 2013 - 22:53

 

I created a symbolic link to /media/hdd going to the shared folder.
 
It worked perfectly, but if the PC goes into standby mode... when the PC wakes up, locked on black screen.
 
The receiver does some checking /media/hdd when you wake up.
If the hdd is off, it lock at the black screen.

why you made link ? I think, it could be possible use easy it as HDD with changing recordings paths... Try it there in Menu-Setup-System-Recording paths.

( I am not using NAS boxe as replacement. When is any of my 3 NAS boxes turned off, nothing delay on XP1000's start.)

 

Thank you ... worked ... using autofs to mount the share and changing the save location on the menu was not longer locked. When the receiver wakes up from standby, is at most 30s on black screen and then works normally.

 

Thank you all for your patience. :-)




16 user(s) are reading this topic

0 members, 16 guests, 0 anonymous users