VOCORECAT
Vocore SuperNub First aid kit
well ...
since one of the things i wanna use it for is a "voice-server" for some kind of personal assistant programme im dabbling on running over several pc's with nothing but bash scripts so far ... i probably need more than that too, even as mp3s a 1GB or more would come in handy to store words and sentences
so i'm gonna figure that out next, i got to uploading a file and it plays
so ... and then some its almost 10am, sunday, i should get to my coffin before the witch hunters come with stakes and pikes
...morning ... half past 10, darkness, i think i found what i missed
it mounts itself automatically as /mnt/mmcblk0
howto install packages to it in case of need? that im gonna have to ask the 1e100
i think i need more sleep theres alphawaves in the air that aint mine and a strange feeling theres a masterplan going on again, those people never learn
so the 1e100 tells me to do, mind you here i only create one partition if theres multiple you need to select, everything is done as root so its quite easy to do irrepairable (software) damage
  1. sudo putty
  2. login with name and psw
  3. root@OpenWrt:/
  4. root@OpenWrt:/fdisk/dev/mmcblk0 (<-check name of your device in /dev)
  5. Welcome to fdisk (util-linx 2.25.2).
    Changes will remain in memory only, until you decide to write them.
    Be careful before using the write command.
    
  6. Command (m for help): d
  7. Selected partition 1
    Partition 1 has been deleted
  8. Command (m for help): p
  9. Disk /dev/mmcklk0: 59.1 MiB, 61996056 bytes, 121088 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
    Disklabel type: dos
    Disk identifier: 0x00000000
    



  10. Command (m for help): n
  11. Partition type
       p  primary (0 primary, 0 extended, 4 free)
       e  extended (container for logical partitions)Select (default) p)
  12.     Select (default) p): p
  13.     Partition number (1-4, default 1): 1
  14.     First sector (2048-121087, default 2048):[ENTER]
  15.     Last sector, +sectors or +size{K,M,G,T,P} (2048-121087, default 121087):[ENTER]

  16. Created a new partition 1 of type 'Linux' and of size 58.1 MiB.

  17.     Command (m for help): v

  18.     Command (m for help): p
  19. Disk /dev/mmcklk0: 59.1 MiB, 61996056 bytes, 121088 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
    Disklabel type: dos
    Disk identifier: 0x00000000


    Device Boot Start End Sectors Size Id Type
    /dev/mmcblk0p1 2048 121087 119040 58.1M 83 Linux

  20.     Command (m for help): w
  21. The partition table has been altered.
    Calling ioctl() to re-read partition table.
    Re-reading the partition table failed.: Success

    The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
    Syncing Disks.

  22.     root@OpenWrt:/
So here i go kneel before the 1e100 and cast a divination spell on partprobe and kpart
mhm, ahah, uhh, ok, partprobe seems fine
  1.     root@OpenWrt:/ partprobe
  2. -ash: partprobe: not found
Silly me, i go to the LUCI web-ui cos i dont know how to check what available with opkg comman ... there is no 'partprobe' or 'kpartx' in the repos i can find so
  1.     root@OpenWrt:/ reboot
and hope for the best xD
... connection reset by peer ... "you are now connected to the network VOCORE2" .. UH? 0_o ... mwell, check my wi-fi panel, connect back to my telenetwork, dhcp still works it seems i has internet access and the LUCI ... b/c of copy-paste not working with putty (yes i had to type all of the above by hand good thing im generation-notepad-is-teh-win-for-coding, i now uss ssh to login
  1. servercat@charon ~ $ ssh root@192.168.0.198
  2. The authenticity of host '192.168.0.198 (192.168.0.198)' can't be established.
    RSA key fingerprint is SHA256:t8pQamgwjQkVGK2a3UYDpovH0sjyK8jtPMaYmLbf1iw.
  3. Are you sure you want to continue connecting (yes/no)? yes
  4. Warning: Permanently added '192.168.0.198' (RSA) to the list of known hosts.
  5. root@192.168.0.198's password:[yeasuremanofcourse]


  6. BusyBox v1.23.2 (2016-09-03 09:56:08 CST) built-in shell (ash)
    
      _______                     ________        __
     |       |.-----.-----.-----.|  |  |  |.----.|  |_
     |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
     |_______||   __|_____|__|__||________||__|  |____|
              |__| W I R E L E S S   F R E E D O M
     -----------------------------------------------------
     CHAOS CALMER (Chaos Calmer, r49378)
     -----------------------------------------------------
      * 1 1/2 oz Gin            Shake with a glassful
      * 1/4 oz Triple Sec       of broken ice and pour
      * 3/4 oz Lime Juice       unstrained into a goblet.
      * 1 1/2 oz Orange Juice
      * 1 tsp. Grenadine Syrup
     -----------------------------------------------------
    
  7. root@OpenWrt:~#
w00t ... copy-paste from terminal ftw
uh...
  1. root@OpenWrt:~# ls
  2. root@OpenWrt:~# cd /
  3. root@OpenWrt:/# ls
  4. bin      etc      mnt      proc     root     sys      usr      www
    dev      lib      overlay  rom      sbin     tmp      var
    
  5. root@OpenWrt:/# cd mnt
  6. root@OpenWrt:/mnt# ls
  7. mmcblk0
  8. root@OpenWrt:/mnt# cd mmcklk0
  9. -ash: cd: can't cd to mmcklk0
  10. root@OpenWrt:/mnt# cd mmcblk0
  11. root@OpenWrt:/mnt/mmcblk0# ls
  12. AVF_INFO b
that's fucked, deleting a partition and creating a new one usually has a nasty habit of erasing everything, which it clearly didnt do
  1. root@OpenWrt:/mnt/mmcblk0# mkdir test
  2. root@OpenWrt:/mnt/mmcblk0# ls
  3. AVF_INFO b test
  4. root@OpenWrt:/mnt/mmcblk0#
writeable, readable ... useable for my purposes ... doesnt tell me why it didnt erase the partition
so we go hardcore then ?
  1. root@OpenWrt:/mnt/mmcblk0# dd if=/dev/zero of=/dev/mmcblk0
  2. dd: writing '/dev/mmcblk0': No space left on device
    121089+0 records in
    121088+0 records out
  3. root@OpenWrt:/mnt/mmcblk0# ls
  4. root@OpenWrt:/mnt/mmcblk0# touch test
  5. root@OpenWrt:/mnt/mmcblk0# ls
  6. root@OpenWrt:/mnt/mmcblk0# mkdir test
  7. mkdir: can't create directory 'test': File exists
  8. root@OpenWrt:/mnt/mmcblk0# ls
  9. root@OpenWrt:/mnt/mmcblk0# ls -al
  10. drwxrwxrwx 7 root root 16384 Mar 20 02:57 .
    drwxr-xr-x 1 root root 0 Jan 1 1970 ..

AAAAAAAArrrgh...

  1. root@OpenWrt:/mnt/mmcblk0# reboot
  2. root@OpenWrt:/mnt/mmcblk0# packet_write_wait: Connection to 192.168.0.198 port 22: Broken pipe
  3. servercat@charon ~ $ ssh root@192.168.0.198
  4. root@192.168.0.198's password:
  5. busybox, login screen logo chaoscalmer etc
  6. root@OpenWrt:~# cd /mnt
  7. root@OpenWrt:/mnt# ls
  8. mmcblk0
  9. root@OpenWrt:/mnt# cd mmcblk0
  10. root@OpenWrt:/mnt/mmcblk0# ls
  11. root@OpenWrt:/mnt/mmcblk0# mkdir test
  12. @OpenWrt:/mnt/mmcblk0# ls
  13. test
  14. root@OpenWrt:/mnt/mmcblk0#
yes well, im afraid cos you forced my hand my wage expectations would now be slightly above 10 euros an hour for nagging people in a prehistoric retard scripted callcenter, you should have taken it when i said "will work from home" as if my name was inspector columbo cos believe you me, im kinda hellapissed with you fucking retards, you could ask my old folks what kind of a baby i am when im hellapissed, stubborn like a mule self-destructive .. oop off-topic .. i dont do this to prove anything i do this cos i do this cos i been wanting to do this for years and that vocore is a cheap solution for an excon with no skills(degrees) who has no money cos there is only "work-for-you" and no work-for-myself so fuck you ... woops off-topic okay back to the matters at hand ... BITCH ...where was i ?...
  1. servercat@charon ~/COMMON/minimalMel/voice $ scp 1.wav root@192.168.0.198 /mnt/mmcblk0/
  2. /mnt/mmcblk0/: No such file or directory
  3. servercat@charon ~/COMMON/minimalMel/voice $ sudo scp 1.wav root@192.168.0.198 /mnt/mmcblk0/test
  4. [sudo] password for servercat:
    /mnt/mmcblk0/test: No such file or directory
one little character, i never done this but i pray to the 1e100 to help me rise above the nubness...
  1. servercat@charon ~/COMMON/minimalMel/voice $ sudo scp 1.wav root@192.168.0.198:/mnt/mmcblk0/test
  2. The authenticity of host '192.168.0.198 (192.168.0.198)' can't be established. RSA key fingerprint is SHA256:t8xxamxxjQxxGKxx3UXxpoxx0sxxK8xxPMxxmLxx1ix.
  3. Are you sure you want to continue connecting (yes/no)? yes
  4. Warning: Permanently added '192.168.0.198' (RSA) to the list of known hosts.
yea sure mate thats what you said last time
  1. root@192.168.0.198's password:
  2. 1.wav 100% 389KB 194.5KB/s 00:02
  3. servercat@charon ~/COMMON/minimalMel/voice $ ssh root@192.168.0.198
  4. root@192.168.0.198's password:
  5. login screen and shit
  6. root@OpenWrt:~# cd /mnt/mmcblk0/test
  7. root@OpenWrt:/mnt/mmcblk0/test# ls
  8. 1.wav
this is where i plug the audiocable into my undocked vc2 which already has 2 bent pins due to my absolute start from zero-electronics man ... connection lost and all that, i noticed also inserting the sd card while the cable is plugged in (power/usb) is impossible without unhinging it, then again, im using the cable that came with my phone maybe im supposed to solder, which i wont cos thats just not me,

RIGHT

boot up, log back in, testing 1.wav, SHIT I FORGOT, madplay doesnt play .wav files
log out quick install "...install audacity" ftw, convert 1.wav to 1.mp3 upload as above
log back in
  1. root@OpenWrt:/mnt/mmcblk0/test# madplay 1.mp3
  2. MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
            Artist: its a female voice sample asking "Did you bar the door?" i use for my PA-scriptogramme
    88 frames decoded (0:00:02.2), -4.9 dB peak amplitude, 0 clipped samples
sounds like a sexy female voice asking me if i barred the door to me @320kbps insane stereo quality only 25% space needed compard to the .WAV-file thats like 90kb i can store a lot on that 64mb sd card for starters afters all, why overkill if you have something around and your poor as fuckdirt, dirt .. (fuck)
one more thing to test for my own 1thingiwasgonnauseitforthing
well i do have other sd-cards, i just didnt know what to do with this one until now,

SOOOoooo....

  1. root@OpenWrt:/mnt/mmcblk0/test# exitConnection to 192.168.0.198 closed.
yes, no carriage return in the terminal here
  1. servercat@charon ~/COMMON/minimalMel/voice $ ssh root@192.168.0.198 madplay /mnt/mmcblk0/test/1.mp3
  2. root@192.168.0.198's password:
  3. MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
            Artist: its a female voice sample asking "Did you bar the door?" i use for my PA-scriptogramme
    88 frames decoded (0:00:02.2), -4.9 dB peak amplitude, 0 clipped samples
like a charm .... so i guess that's scriptable if i make it trusted with no password and i'm set for one thing i was gonna
i'll keep my hood-comms or housing block intercomms as long as in range of the hive for later and move to the 'identify yourself or i shut down the room' bit cos that yubikey here was lying right next to that 64mb sd card and it would be fuckin awesome
keyboard input hm ? but the question was ... yesterday i think how to install packages on sd card cos i dont have room
sorry got carried away there but id really like to know too, its 6am i need to hide from salems lot
yes there's a few things but there always is like ... in LUCI it doesnt show a mountpoint but its there when i log in SSH, and IF when using dd is not conditional it means probably 'input file' or similar, thats why syntax is a waste of brainspace, every innovator wants to piss on his territory as if its brainstem was primitive or there would be only one type of phone charger in the world : the best one
and so on ... im getting morning-ey, time to hit the coffin
might as well get the whole directory in place while im there
  1. servercat@charon ~/COMMON/minimalMel $ scp -rp voice root@192.168.0.198:/mnt/mmcblk0/test/
had to re-do that cos i forgot to convert the .wav files to .mp3 first and i have no clue wether i can convert audioformats on a standard vocore
20170325-232am
another try
Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): e
Partition number (1-4, default 1): 1
First sector (16-121087, default 16): 
Last sector, +sectors or +size{K,M,G,T,P} (16-121087, default 121087): 64000

Created a new partition 1 of type 'Extended' and of size 31.2 MiB.

Command (m for help): c
DOS Compatibility flag is not set

Command (m for help): e
e: unknown command

Command (m for help): n
Partition type
   p   primary (0 primary, 1 extended, 3 free)
   l   logical (numbered from 5)
Select (default p): l

Adding logical partition 5
First sector (2064-64000, default 4096):   
Last sector, +sectors or +size{K,M,G,T,P} (4096-64000, default 64000): 

Created a new partition 5 of type 'Linux' and of size 29.3 MiB.

Command (m for help): p
Disk /dev/mmcblk0: 59.1 MiB, 61997056 bytes, 121088 sectors
Geometry: 4 heads, 16 sectors/track, 1892 cylinders
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf258eb46

Device         Boot Start   End Sectors  Size Id Type
/dev/mmcblk0p1         16 64000   63985 31.2M  5 Extended
/dev/mmcblk0p5       4096 64000   59905 29.3M 83 Linux


Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

root@OpenWrt:~# reboot
root@OpenWrt:~# packet_write_wait: Connection to 192.168.0.198 port 22: Broken pipe
servercat@charon ~ $ 


after reboot the samples still play on motion detection, since they are stored on the card i just partitioned i dont need to log back in to know it failed, better luck next time, in the meantime my shyte werkz