Welcome! Log In Create A New Profile

Advanced

I have Debian Now what ?

Posted by highsinberg 
Re: I have Debian Now what ?
November 07, 2014 04:09PM
it doesnt show up i only see the sd card still
Re: I have Debian Now what ?
November 07, 2014 04:10PM
i had it empty should i load it first i dont see it anywhere
Re: I have Debian Now what ?
November 07, 2014 04:11PM
doesn't show up where? For samba sharing you must do the same procedure as for you did it /mnt/sd
Re: I have Debian Now what ?
November 07, 2014 04:14PM
can u make me a script for the sd card and 4.5 gb of the 8gb flash drive please , its all for samba
Re: I have Debian Now what ?
November 07, 2014 04:18PM
Dude, you really need to start reading wiki and start understanding this stuff. Linux is not for everyone :) unless you are willing to learn. You already have a script, all you have to do just modify it. Once you start modifying you'll understand what you are doing. In the long run, it'll help you a lot so you'll know how easy it is.
Re: I have Debian Now what ?
November 07, 2014 04:19PM
i tryed that last night it didnt help me get the usb working
Re: I have Debian Now what ?
November 07, 2014 04:20PM
well, let's see what you did and started doing and we'll help you along the way.
Re: I have Debian Now what ?
November 07, 2014 04:24PM
Another option is to install Open Media Vault which is full GUI, it might be easier for you http://www.openmediavault.org/?page_id=1188
Re: I have Debian Now what ?
November 07, 2014 06:17PM
this is as far as i got added my flash drive

mkdir /mnt/sda2
chmod 777 /mnt/sda2
mount -t vext3 /dev/sda2 /mnt/sda2

echo ' /dev/sda2 /mnt/usb vext3 user,noauto 0 0' >> /etc/fstab
echo '[global]
guest account = root
load printers = no
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
wins server = 192.168.1.1
map to guest = Bad User
netbios name = PogoPlug
write cache size = 2097152
server string = PogoPlug
workgroup = WORKGROUP
os level = 20
use sendfile = yes
printcap name = /dev/null
security = user
disable spoolss = yes
#unprotected/public share without login
[sd]
path = /mnt/sda2
read only = no
public = yes
writable = yes
guest ok = yes' > /etc/samba/smb.conf


echo 'db_dir=/root/.minidlna
media_dir=/mnt/sd
inotify=yes
notify_interval=900
log_dir=/var/log' >> /etc/minidlna.conf

it didnt seem to do what it did for my sd card

i also want to know how to change my root user password its still stock
im near the end of my setup these last 2 things i think will be all i need to know for a long time



Edited 3 time(s). Last edit at 11/07/2014 06:27PM by highsinberg.
Re: I have Debian Now what ?
November 07, 2014 06:55PM
/etc/fstab file which takes the settings and creates automount at startup so you don't have mount manually.
>> means append. In other word if you append same text to the same file it'll create multiple copies of text.
> means delete everything within the file and add new text to it.

In order to edit the text you must type "nano" and then file
nano /etc/samba/smb.conf
nano /etc/fstab
nano /etc/minidlna.conf
In order to save the file press "CTRL X"

You can change your password by typing "passwd"

Once you change your settings you must restart the device or restart services suchas
service minidlna restart
service samba restart

It should be enough information for you to troubleshoot your problem and edit every configuration file which are probably messed up.
Re: I have Debian Now what ?
November 07, 2014 10:59PM
echo '/dev/sda2 /mnt/sda2 ext3 defaults,noatime 0 2' >> /etc/fstab
shutdown -r now
this command plus the password change made the pogoplug completely undetectable no ip
Re: I have Debian Now what ?
November 07, 2014 11:03PM
it's probably still restarting. Otherwise hard reboot it.
Re: I have Debian Now what ?
November 08, 2014 08:37AM
Linux debian 3.16.0-kirkwood-tld-2 #2 PREEMPT Sun Aug 31 18:56:01 PDT 2014 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Nov  8 06:00:24 2014 from 10.0.0.95
root@debian:~# fdisk -l

Disk /dev/mmcblk0: 1030 MB, 1030225920 bytes
4 heads, 3 sectors/track, 167680 cylinders, total 2012160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdb66db66

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1             243     2012159     1005958+   b  W95 FAT32

Disk /dev/sda: 8166 MB, 8166703104 bytes
252 heads, 62 sectors/track, 1020 cylinders, total 15950592 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x001a95aa

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048     6176767     3087360   83  Linux
/dev/sda2         6176768    15947775     4885504   83  Linux
root@debian:~# mkdir /mnt/sd
mount -t vfat /dev/mmcblk0p1 /mnt/sd


echo '/dev/mmcblk0p1     /mnt/sd      vfat    user,noauto             0       0' >> /etc/fstab
echo '[global]
     guest account = root
     load printers = no
     socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
     wins server = 192.168.1.1
     map to guest = Bad User
     netbios name = PogoPlug
     write cache size = 2097152
     server string = PogoPlug
mkdir:      workgroup = WORKGROUP
     os level = 20
     use sendfile = yes
     printcap name = /dev/null
cannot create directory `/mnt/sd': File exists     security = user
     disable spoolss = yes
#unprotected/public share without login

[sd]
  path = /mnt/sd
  read only = no
  public = yes
  writable = yes
root@debian:~# chmod 777 /mnt/sd

service samba restart
root@debian:~# mount -t vfat /dev/mmcblk0p1 /mnt/sd
root@debian:~#
root@debian:~#
root@debian:~# echo '/dev/mmcblk0p1     /mnt/sd      vfat    user,noauto             0       0' >> /etc/fstab
root@debian:~# echo '[global]
>      guest account = root
>      load printers = no
>      socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
>      wins server = 192.168.1.1
>      map to guest = Bad User
>      netbios name = PogoPlug
>      write cache size = 2097152
>      server string = PogoPlug
>      workgroup = WORKGROUP
>      os level = 20
>      use sendfile = yes
>      printcap name = /dev/null
>      security = user
>      disable spoolss = yes
> #unprotected/public share without login
> [sd]
>   path = /mnt/sd
>   read only = no
>   public = yes
>   writable = yes
>   guest ok = yes' > /etc/samba/smb.conf
root@debian:~#
root@debian:~# echo 'db_dir=/root/.minidlna
> media_dir=/mnt/sd
> inotify=yes
> notify_interval=900
> log_dir=/var/log' >> /etc/minidlna.conf
root@debian:~#
root@debian:~# service samba restart
[ ok ] Stopping Samba daemons: nmbd smbd.
[ ok ] Starting Samba daemons: nmbd smbd.
root@debian:~# service minidlna restart
[....] Restarting DLNA/UPnP-AV media server: minidlna[2014/11/08 06:29:02] utils.c:265: warn: make_dir: cannot create directory '/root/.minidlna'
[2014/11/08 06:29:02] minidlna.c:529: fatal: Database path not accessible! [/root/.minidlna]
 failed!
root@debian:~# service minidlna force-reload
[....] Restarting DLNA/UPnP-AV media server: minidlna[2014/11/08 06:29:02] utils.c:265: warn: make_dir: cannot create directory '/root/.minidlna'
[2014/11/08 06:29:02] minidlna.c:529: fatal: Database path not accessible! [/root/.minidlna]
 failed!
root@debian:~# apt-get clean
root@debian:~# dpkg --clear-avail
root@debian:~# rm /var/lib/apt/lists/* --force
rm: cannot remove `/var/lib/apt/lists/partial': Is a directory
root@debian:~# apt-get update
Get:1 http://ftp.us.debian.org wheezy Release.gpg [1655 B]
Get:2 http://security.debian.org wheezy/updates Release.gpg [836 B]
Get:3 http://ftp.us.debian.org wheezy Release [168 kB]
Get:4 http://security.debian.org wheezy/updates Release [102 kB]
Get:5 http://ftp.us.debian.org wheezy/main armel Packages [5709 kB]
Get:6 http://security.debian.org wheezy/updates/main armel Packages [215 kB]
Get:7 http://security.debian.org wheezy/updates/contrib armel Packages [14 B]
Get:8 http://security.debian.org wheezy/updates/non-free armel Packages [14 B]
Get:9 http://security.debian.org wheezy/updates/contrib Translation-en [14 B]
Get:10 http://security.debian.org wheezy/updates/main Translation-en [125 kB]
Get:11 http://security.debian.org wheezy/updates/non-free Translation-en [14 B]
Get:12 http://ftp.us.debian.org wheezy/main Translation-en [3846 kB]
Fetched 10.2 MB in 1min 11s (142 kB/s)
Reading package lists... Done
root@debian:~# apt-get install minidlna
Reading package lists... Done
Building dependency tree
Reading state information... Done
minidlna is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
root@debian:~# service minidlna restart
[....] Restarting DLNA/UPnP-AV media server: minidlna[2014/11/08 06:33:51] utils.c:265: warn: make_dir: cannot create directory '/root/.minidlna'
[2014/11/08 06:33:51] minidlna.c:529: fatal: Database path not accessible! [/root/.minidlna]
 failed!
root@debian:~# service minidlna force-reload
[....] Restarting DLNA/UPnP-AV media server: minidlna[2014/11/08 06:33:51] utils.c:265: warn: make_dir: cannot create directory '/root/.minidlna'
[2014/11/08 06:33:51] minidlna.c:529: fatal: Database path not accessible! [/root/.minidlna]
 failed!
root@debian:
i redid the rootfs again i still can't get the usb drive to samba shar ive tryed all commands u gave me



Edited 1 time(s). Last edit at 11/08/2014 08:40AM by highsinberg.
Re: I have Debian Now what ?
November 08, 2014 08:44AM
my mini dnla is failing 2 it installed fine

i did a sftp into the rotfs i seen the minidlna folder is empty

this is how im using my flash drive for now
i downloaded ES File Explorer (android app)
open click the top left network scan it should find Lan Pogoplug thats the sd card
and u will see SFTP u have to tap that 1 edit login setting
Once your inside the rootfs Browse to MNT open
there is the SD folder And sda2 folder video streaming works from here using Streaming player



Edited 2 time(s). Last edit at 11/08/2014 08:56AM by highsinberg.
Re: I have Debian Now what ?
November 08, 2014 09:17AM
path = /mnt/sd
this is the line i think needs to be changed can i do this ?

path = /mnt/sd /mnt/sda2


Right now i have to do this everytime i turn it on

mkdir /mnt/sd
chmod 777 /mnt/sd
mount -t vfat /dev/mmcblk0p1 /mnt/sd


echo '/dev/mmcblk0p1     /mnt/sd      vfat    user,noauto             0       0' >> /etc/fstab
echo '[global]
     guest account = root
     load printers = no
     socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
     wins server = 192.168.1.1
     map to guest = Bad User
     netbios name = PogoPlug
     write cache size = 2097152
     server string = PogoPlug
     workgroup = WORKGROUP
     os level = 20
     use sendfile = yes
     printcap name = /dev/null
     security = user
     disable spoolss = yes
#unprotected/public share without login
[sd]
  path = /mnt/sd
  read only = no
  public = yes
  writable = yes
  guest ok = yes' > /etc/samba/smb.conf

echo 'db_dir=/root/.minidlna
media_dir=/mnt/sd
inotify=yes
notify_interval=900
log_dir=/var/log' >> /etc/minidlna.conf

service samba restart
service minidlna restart
service minidlna force-reload
update-rc.d minidlna defaults

mount /dev/sda2 /mnt/sda2



Edited 1 time(s). Last edit at 11/08/2014 10:05AM by highsinberg.
Re: I have Debian Now what ?
November 08, 2014 03:23PM
MiniDLNA is looking for path where all the media files are located so you'd have to change it to media_dir=/mnt/sda2
nano /etc/minidlna.conf
edit the text and save it by pressing "CTRL + x"
You don't have to run the script all the time. you have to use editor nano to edit the file manually. MiniDLNA can't start because it's missing a folder so create the folder and restart minidlna
mkdir /root/.minidlna
service minidlna restart
You can also refresh the database
service minidlna force-reload


Now let's make a new configuration file smb.conf
chmod 777 /mnt/sd
mkdir /mnt/sda2
chmod 777 /mnt/sda2
echo '[global]
     guest account = root
     load printers = no
     socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
     wins server = 192.168.1.1
     map to guest = Bad User
     netbios name = PogoPlug
     write cache size = 2097152
     server string = PogoPlug
     workgroup = WORKGROUP
     os level = 20
     use sendfile = yes
     printcap name = /dev/null
     security = user
     disable spoolss = yes
#unprotected/public share without login
[sd]
  path = /mnt/sd
  read only = no
  public = yes
  writable = yes
  guest ok = yes
[sda2]
  path = /mnt/sda2
  read only = no
  public = yes
  writable = yes
  guest ok = yes' > /etc/samba/smb.conf
service samba restart

Everything will be working if you did mount sda2. If not then add sda2 to /etc/fstab then restart. Make sure to add the line manually by editing the file, otherwise you'll mess up rootfs and won't be able to boot.
/dev/sda2      /mnt/sda2        ext3    defaults,noatime    0     2



Edited 2 time(s). Last edit at 11/08/2014 03:36PM by Almaz.
Re: I have Debian Now what ?
November 08, 2014 04:00PM
i tryed to edit the line right under warning it did not work
Re: I have Debian Now what ?
November 08, 2014 04:01PM
did you use nano to edit the file?
Re: I have Debian Now what ?
November 08, 2014 04:05PM
it was the line under warning i just backspaced to media was gone and pasted
media_dir=/mnt/sda2

root@debian:~# chmod 777 /mnt/sd
chmod 777 /mnt/sda2
echo '[global]
     guest account = root
     load printers = no
     socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
     wins server = 192.168.1.1
     map to guest = Bad User
     netbios name = PogoPlug
     write cache size = 2097152
     server string = PogoPlug
     workgroup = WORKGROUP
     os level = 20
     use sendfile = yes
     printcap name = /dev/null
     security = user
     disable spoolss = yes
#unprotected/public share without login
[sd]
  path = /mnt/sd
  read only = no
  public = yes
  writable = yes
  guest ok = yes
[sda2]
  path = /mnt/sda2
  read only = no
  public = yes
  writable = yes
  guest ok = yes' > /etc/samba/smb.conf
service samba restartroot@debian:~# mkdir /mnt/sda2
mkdir: cannot create directory `/mnt/sda2': File exists
root@debian:~# chmod 777 /mnt/sda2
root@debian:~# echo '[global]
>      guest account = root
>      load printers = no
>      socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
>      wins server = 192.168.1.1
>      map to guest = Bad User
>      netbios name = PogoPlug
>      write cache size = 2097152
>      server string = PogoPlug
>      workgroup = WORKGROUP
>      os level = 20
>      use sendfile = yes
>      printcap name = /dev/null
>      security = user
>      disable spoolss = yes
> #unprotected/public share without login
> [sd]
>   path = /mnt/sd
>   read only = no
>   public = yes
>   writable = yes
>   guest ok = yes
> [sda2]
>   path = /mnt/sda2
>   read only = no
>   public = yes
>   writable = yes
>   guest ok = yes' > /etc/samba/smb.conf
root@debian:~# service samba restart
[ ok ] Stopping Samba daemons: nmbd smbd.
[ ok ] Starting Samba daemons: nmbd smbd.
root@debian:~# apt-get clean
root@debian:~# dpkg --clear-avail
root@debian:~# rm /var/lib/apt/lists/* --force
rm: cannot remove `/var/lib/apt/lists/partial': Is a directory
root@debian:~# dpkg --configure -a
root@debian:~#
root@debian:~# apt-get update
Get:1 http://ftp.us.debian.org wheezy Release.gpg [1655 B]
Get:2 http://security.debian.org wheezy/updates Release.gpg [836 B]
Get:3 http://ftp.us.debian.org wheezy Release [168 kB]
Get:4 http://security.debian.org wheezy/updates Release [102 kB]
Get:5 http://ftp.us.debian.org wheezy/main armel Packages [5709 kB]
Get:6 http://security.debian.org wheezy/updates/main armel Packages [215 kB]
Get:7 http://security.debian.org wheezy/updates/contrib armel Packages [14 B]
Get:8 http://security.debian.org wheezy/updates/non-free armel Packages [14 B]
Get:9 http://security.debian.org wheezy/updates/contrib Translation-en [14 B]
Get:10 http://security.debian.org wheezy/updates/main Translation-en [125 kB]
Get:11 http://security.debian.org wheezy/updates/non-free Translation-en [14 B]
Get:12 http://ftp.us.debian.org wheezy/main Translation-en [3846 kB]
Fetched 10.2 MB in 3min 9s (53.6 kB/s)
Reading package lists... Done
root@debian:~# apt-get purge minidlna
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libavcodec53 libavformat53 libavutil51 libdirac-encoder0 libexif12 libflac8 libgsm1
  libid3tag0 libjpeg8 libmp3lame0 libogg0 libopenjpeg2 liborc-0.4-0 librtmp0
  libschroedinger-1.0-0 libspeex1 libsqlite3-0 libtheora0 libva1 libvorbis0a
  libvorbisenc2 libvpx1 libx264-123 libxvidcore4
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  minidlna*
0 upgraded, 0 newly installed, 1 to remove and 27 not upgraded.
After this operation, 330 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 13439 files and directories currently installed.)
Removing minidlna ...
Purging configuration files for minidlna ...
Removing user 'minidlna'...
Done.
Processing triggers for man-db ...
root@debian:~# . In order to uninstall you have to
-bash: In: No such file or directory
root@debian:~# apt-get install minidlna
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  minidlna
0 upgraded, 1 newly installed, 0 to remove and 27 not upgraded.
Need to get 144 kB of archives.
After this operation, 330 kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian/ wheezy/main minidlna armel 1.0.24+dfsg-1 [144 kB]
Fetched 144 kB in 1s (129 kB/s)
Selecting previously unselected package minidlna.
(Reading database ... 13427 files and directories currently installed.)
Unpacking minidlna (from .../minidlna_1.0.24+dfsg-1_armel.deb) ...
Processing triggers for man-db ...
Setting up minidlna (1.0.24+dfsg-1) ...
root@debian:~# nano /etc/minidlna.conf
root@debian:~# mkdir /root/.minidlna
mkdir: cannot create directory `/root/.minidlna': File exists
root@debian:~# service minidlna restart
[....] Restarting DLNA/UPnP-AV media server: minidlna[2014/11/08 14:32:28] minidlna.c:474: error: Media directory "/mnt/sda2#   * "M" - "Music"" not accessible! [No such file or directory]
. ok
root@debian:~#



Edited 2 time(s). Last edit at 11/08/2014 04:36PM by highsinberg.
Re: I have Debian Now what ?
November 08, 2014 04:08PM
It's got nothing to do with clean install. apt-get clean just cleans list of known packages from debian repo. In order to uninstall you have to
apt-get purge packagename

The reason it doesn't work because you are not using my directions which are very clear.
Re: I have Debian Now what ?
November 08, 2014 04:58PM
the usb share works perfect even on reboot just need to add the sd to fstab
how do i add sd to /etc/fstab it doesnt show up on a restart

is this it

/dev/mmcblk0p1     /mnt/sd      vfat    user,noauto             0       0



Edited 2 time(s). Last edit at 11/08/2014 05:05PM by highsinberg.
Re: I have Debian Now what ?
November 08, 2014 07:04PM
That's correct.
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: