Welcome! Log In Create A New Profile

Advanced

I have Debian Now what ?

Posted by highsinberg 
Re: I have Debian Now what ?
November 01, 2014 01:31AM
Using username "root".
root@10.0.0.23's password:
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: Fri Oct 31 22:59:46 2014 from 10.0.0.4
root@debian:~# fdisk -l

Disk /dev/sda: 8166 MB, 8166703104 bytes
255 heads, 63 sectors/track, 992 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 63 15936479 7968208+ 83 Linux

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
root@debian:~# su
root@debian:~# apt-get update
apt-get -y install samba, minidlna, nano
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 = Torrent_Drive
write cache size = 2097152
server string = Torrent_Drive
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
Hit http://ftp.us.debian.org wheezy Release.gpg
Hit http://ftp.us.debian.org wheezy Release
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://ftp.us.debian.org wheezy/main armel Packages
Hit http://ftp.us.debian.org wheezy/main Translation-en
Hit http://security.debian.org wheezy/updates/main armel Packages
Hit http://security.debian.org wheezy/updates/contrib armel Packages
Hit http://security.debian.org wheezy/updates/non-free armel Packages
Hit http://security.debian.org wheezy/updates/contrib Translation-en
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://security.debian.org wheezy/updates/non-free Translation-en
Reading package lists... Done
root@debian:~# apt-get -y install samba, minidlna, nano
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package samba,
E: Unable to locate package minidlna,
root@debian:~# mkdir /mnt/sd
mkdir: cannot create directory `/mnt/sd': File exists
root@debian:~# chmod 777 /mnt/sd
root@debian:~# mount -t vfat /dev/mmcblk0p1 /mnt/sd
mount: /dev/mmcblk0p1 already mounted or /mnt/sd busy
mount: according to mtab, /dev/mmcblk0p1 is already mounted on /mnt/sd
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 = Torrent_Drive
> write cache size = 2097152
> server string = Torrent_Drive
> 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
bash: /etc/samba/smb.conf: No such file or directory
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
samba: unrecognized service
root@debian:~# service minidlna restart
minidlna: unrecognized service
root@debian:~# service minidlna force-reload
minidlna: unrecognized service
root@debian:~# update-rc.d minidlna defaults
Re: I have Debian Now what ?
November 01, 2014 01:38AM
i cant get this to wrk
apt-get -y install samba, minidlna, nano
root@debian:~# apt-get -y install samba, minidlna, nano
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package samba,
E: Unable to locate package minidlna,
root@debian:~#
Re: I have Debian Now what ?
November 01, 2014 01:38AM
sounds to me like you never put properly rootfs on USB stick.



Edited 1 time(s). Last edit at 11/01/2014 02:29AM by Almaz.
Re: I have Debian Now what ?
November 01, 2014 01:43AM
another option you can give me access so I can ssh into the system and see what's going on. I'd need your IP and password. Probably you'd need to forward 443 port to your linux device.
Re: I have Debian Now what ?
November 01, 2014 05:42PM
How should would do this vnc
Re: I have Debian Now what ?
November 01, 2014 05:51PM
highsinberg,

You can try this first to see if it helps:

apt-get clean
dpkg --clear-avail
rm /var/lib/apt/lists/* --force
dpkg --configure -a
apt-get update
apt-get install samba
apt-get install minidlna

And always sync before shutdown, and turn off power.
sync
shutdown -h now

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: I have Debian Now what ?
November 01, 2014 06:14PM
Im setting up vnc now
can you pm me your ip address and i can add yuou to my vnc ill pm you a link for java for now
password is pogov4



Edited 2 time(s). Last edit at 11/01/2014 06:28PM by highsinberg.
Re: I have Debian Now what ?
November 01, 2014 06:30PM
i pm'd you the server ip and the password is up there
install vnc 5.2.1 r5668 or close to and run a a listening vierwer then i can add you to my desktop



Edited 1 time(s). Last edit at 11/01/2014 06:34PM by highsinberg.
Re: I have Debian Now what ?
November 01, 2014 09:45PM
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 1 15:58:25 2014 from 10.0.0.4
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:~# 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://security.debian.org wheezy/updates/main armel Packages [213 kB]Get:6 http://ftp.us.debian.org wheezy/main armel Packages [5709 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 [124 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 12s (141 kB/s)
Reading package lists... Done
root@debian:~# apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libavahi-client3 libclass-isa-perl libcups2 libfile-copy-recursive-perl
libswitch-perl libtalloc2 libtdb1 libwbclient0 perl perl-base
perl-modules samba-common update-inetd
Suggested packages:
cups-common perl-doc libterm-readline-gnu-perl
libterm-readline-perl-perl make libpod-plainer-perl openbsd-inetd
inet-superserver smbldap-tools ldb-tools ctdb
Recommended packages:
logrotate tdb-tools samba-common-bin
The following NEW packages will be installed:
libavahi-client3 libclass-isa-perl libcups2 libfile-copy-recursive-perl
libswitch-perl libtalloc2 libtdb1 libwbclient0 perl perl-modules samba
samba-common update-inetd
The following packages will be upgraded:
perl-base
1 upgraded, 13 newly installed, 0 to remove and 26 not upgraded.
Need to get 12.7 MB of archives.
After this operation, 47.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Abort.

I cany get capital Y or yes to continue says abort
Re: I have Debian Now what ?
November 02, 2014 07:36AM
Looks like you are good to go. Just make sure to press Y to everything. If you have a problem then just run line by line.
Re: I have Debian Now what ?
November 02, 2014 03:10PM
Almaz Wrote:
-------------------------------------------------------
> sounds to me like you never put properly rootfs on
> USB stick.

I think Almaz is right, the rootfs seems to be corrupted. What I've suggested above was to fix the package database corruption. And it seems to have fixed the problem, for now. But I think it is safer to recreate the rootfs from scratch. Just repeat the process and remember to sync properly before unmounting the stick.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: I have Debian Now what ?
November 02, 2014 04:43PM
almaz can you vnc into my pc to do this for me
Re: I have Debian Now what ?
November 02, 2014 04:55PM
I don't have your ip or password. Make sure to forward your port. Everything should work if you run line by line
Re: I have Debian Now what ?
November 02, 2014 05:03PM
i juats pmd you the ip pass
Re: I have Debian Now what ?
November 02, 2014 05:09PM
can you Run a vnc listening viewer and i will add you in my server? pm me your ip after u get it running
Re: I have Debian Now what ?
November 02, 2014 05:21PM
step by step is woring got samba now 1 command left
Re: I have Debian Now what ?
November 02, 2014 05:26PM
still unpacking on samba
says
(ok) starting samba daemons: rmb smbd.

its done

apt-get install minidlna
gets me a error

E: Unable to locate package minidnla



Edited 2 time(s). Last edit at 11/02/2014 05:34PM by highsinberg.
Re: I have Debian Now what ?
November 02, 2014 05:45PM
should i run this but leave out samba?
apt-get clean
dpkg --clear-avail
rm /var/lib/apt/lists/* --force
dpkg --configure -a
apt-get update
apt-get install samba
apt-get install minidlna
Re: I have Debian Now what ?
November 02, 2014 05:47PM
OK, I changed the script. minidlna only available from Jessie. Run this script again and it should work http://forum.doozan.com/read.php?2,18338,18364#msg-18364



Edited 1 time(s). Last edit at 11/02/2014 05:52PM by Almaz.
Re: I have Debian Now what ?
November 02, 2014 05:59PM
Looks like I was wrong, minidlna available from stable wheezy as well. Your rootfs got corrupted. I strongly suggest to recreate rootfs. All your problems should be resolved. Also to recreate the partition or running fsck (for "file system consistency check") is a must. On the other hand linux is not for everyone and maybe you should revert it back to stock and use built in DLNA.
Re: I have Debian Now what ?
November 02, 2014 06:08PM
can u assist me on real vnc yet ?
Re: I have Debian Now what ?
November 02, 2014 06:09PM
samba works fine now thanks
Re: I have Debian Now what ?
November 02, 2014 06:14PM
Using username "root".
root@10.0.0.23's password:
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: Sun Nov  2 16:01:14 2014 from 10.0.0.4
root@debian:~# echo 'deb http://ftp.us.debian.org/debian jessie main' >> /etc/apt/sources.list
apt-get update
apt-get -y install samba, minidlna, nano
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
root@debian:~# apt-get update
     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 defaultsE: Type 'update-rc.d:' is not known on line 4 in source list /etc/apt/sources.list
E: The list of sources could not be read.
root@debian:~# apt-get -y install samba, minidlna, nano
Reading package lists... Error!
E: Type 'update-rc.d:' is not known on line 4 in source list /etc/apt/sources.list
E: The list of sources could not be read.
E: The package lists or status file could not be parsed or opened.
root@debian:~# mkdir /mnt/sd
mkdir: cannot create directory `/mnt/sd': File exists
root@debian:~# chmod 777 /mnt/sd
root@debian:~# mount -t vfat /dev/mmcblk0p1 /mnt/sd
mount: /dev/mmcblk0p1 already mounted or /mnt/sd busy
mount: according to mtab, /dev/mmcblk0p1 is already mounted on /mnt/sd
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
minidlna: unrecognized service
root@debian:~# service minidlna force-reload
minidlna: unrecognized service
root@debian:~# update-rc.d minidlna defaults
update-rc.d: using dependency based boot sequencing
update-rc.d: error: unable to read /etc/init.d/minidlna
root@debian:~#

Re: I have Debian Now what ?
November 02, 2014 06:19PM
@highsinberg,

Do what Almaz has suggested: recreate your rootfs, and reinstall packages. After you've rebuilt your package database like I posted above, all the inconsistency about dpkg/apt database should have been fixed. If the problem comes back like you've experienced above, it indicates that your rootfs is no good. Don't fight it :) you're going to waste your time again when the next package installation problem surface.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 11/02/2014 06:22PM by bodhi.
Re: I have Debian Now what ?
November 02, 2014 07:05PM
ok ill try it again maybe my usb stick is bad or wrong format i wanted 4gb linux and 4gb samba share how can i do this while im makin gthe rootfs stick
Re: I have Debian Now what ?
November 02, 2014 07:08PM
Yes, it can be done with gparted or fdisk using live mint linux
Re: I have Debian Now what ?
November 06, 2014 06:44PM
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 63 6733823 3366880+ 83 Linux
/dev/sda2 6733824 15949823 83 Linux


i want to add in my 4.5gb part off my usb sda2

just same as my sd card before its 4.5gb ext3 format usb partition



Edited 1 time(s). Last edit at 11/06/2014 06:46PM by highsinberg.
Re: I have Debian Now what ?
November 06, 2014 06:59PM
You have to mount the folder. There are 2 options. It can be done automatically on startup or can be done manually.

First let's create the folder where we would like to mount the drive
mkdir /mnt/sda2
In order to automount on startup
echo '/dev/sda2      /mnt/sda2        ext3    defaults,noatime    0     2' >> /etc/fstab
shutdown -r now
or you can mount it manually
mount /dev/sda2 /mnt/sda2
Re: I have Debian Now what ?
November 07, 2014 04:07PM
root@debian:~# mkdir /mnt/sda2
mkdir: cannot create directory `/mnt/sda2': File exists
root@debian:~# echo '/dev/sda2 /mnt/sda2 ext3 defaults,noatime 0 2' >> /etc/fstab
root@debian:~# mount /dev/sda2 /mnt/sda2
mount: /dev/sda2 already mounted or /mnt/sda2 busy
mount: according to mtab, /dev/sda2 is already mounted on /mnt/sda2
Re: I have Debian Now what ?
November 07, 2014 04:08PM
It means you are good to go. All the files should be in /mnt/sda2
Author:

Your Email:


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: