Re: I have Debian Now what ? November 07, 2014 04:09PM |
Registered: 9 years ago Posts: 46 |
Re: I have Debian Now what ? November 07, 2014 04:10PM |
Registered: 9 years ago Posts: 46 |
Re: I have Debian Now what ? November 07, 2014 04:11PM |
Registered: 10 years ago Posts: 162 |
Re: I have Debian Now what ? November 07, 2014 04:14PM |
Registered: 9 years ago Posts: 46 |
Re: I have Debian Now what ? November 07, 2014 04:18PM |
Registered: 10 years ago Posts: 162 |
Re: I have Debian Now what ? November 07, 2014 04:19PM |
Registered: 9 years ago Posts: 46 |
Re: I have Debian Now what ? November 07, 2014 04:20PM |
Registered: 10 years ago Posts: 162 |
Re: I have Debian Now what ? November 07, 2014 04:24PM |
Registered: 10 years ago Posts: 162 |
Re: I have Debian Now what ? November 07, 2014 06:17PM |
Registered: 9 years ago Posts: 46 |
Re: I have Debian Now what ? November 07, 2014 06:55PM |
Registered: 10 years ago Posts: 162 |
nano /etc/samba/smb.conf
nano /etc/fstab
nano /etc/minidlna.confIn order to save the file press "CTRL X"
service minidlna restart service samba restart
Re: I have Debian Now what ? November 07, 2014 10:59PM |
Registered: 9 years ago Posts: 46 |
Re: I have Debian Now what ? November 07, 2014 11:03PM |
Registered: 10 years ago Posts: 162 |
Re: I have Debian Now what ? November 08, 2014 08:37AM |
Registered: 9 years ago Posts: 46 |
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
Re: I have Debian Now what ? November 08, 2014 08:44AM |
Registered: 9 years ago Posts: 46 |
Re: I have Debian Now what ? November 08, 2014 09:17AM |
Registered: 9 years ago Posts: 46 |
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
Re: I have Debian Now what ? November 08, 2014 03:23PM |
Registered: 10 years ago Posts: 162 |
nano /etc/minidlna.confedit the text and save it by pressing "CTRL + x"
mkdir /root/.minidlna service minidlna restartYou can also refresh the database
service minidlna force-reload
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
/dev/sda2 /mnt/sda2 ext3 defaults,noatime 0 2
Re: I have Debian Now what ? November 08, 2014 04:00PM |
Registered: 9 years ago Posts: 46 |
Re: I have Debian Now what ? November 08, 2014 04:01PM |
Registered: 10 years ago Posts: 162 |
Re: I have Debian Now what ? November 08, 2014 04:05PM |
Registered: 9 years ago Posts: 46 |
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:~#
Re: I have Debian Now what ? November 08, 2014 04:08PM |
Registered: 10 years ago Posts: 162 |
Re: I have Debian Now what ? November 08, 2014 04:58PM |
Registered: 9 years ago Posts: 46 |
Re: I have Debian Now what ? November 08, 2014 07:04PM |
Registered: 10 years ago Posts: 162 |