Monday, September 21, 2015

virtual box shared folders on linux guest

using ubuntu desktop 14.04

insert guest additions CD image using Devices menu option
should autorun

shut down guest. then add shared folder in settings. tick automount.

restart guest.
shared folder will show in /media/sf_blahblah

need to add permissions

sudo adduser xxxxxxx vboxsf 
log off, log on. should be able to access now

ubuntu 12.05 server
insert guest additions.iso using Devices menu option
restart(?)
sudo mount /dev/cdrom /media/cdrom
ls /media/cdrom
sudo apt-get install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r)
sudo /media/cdrom/VBoxLinuxAdditions.run   
add permissions as above for ubuntu desktop
 
=-=-=-=-
 ubuntu desktop 14.04
https://www.virtualbox.org/manual/ch04.html#sharedfolders 
http://ubuntuforums.org/showthread.php?t=2083709
ubuntu 12.05 server 
http://en.ig.ma/notebook/2012/virtualbox-guest-additions-on-ubuntu-server

Thursday, August 6, 2015

handy linux commands

run a command at a certain time use : at

$ at 12:49
warning: commands will be executed using (in order) a) $SHELL b) login shell c) /bin/sh
at> enteryrcommandherewhatever [return]
warning: commands will be executed using /bin/sh
[ctrl-d]
at>
job x at 2006-05-01 12:49


http://www.brunolinux.com/02-The_Terminal/The_at_Command.html
http://linux.about.com/library/cmd/blcmdl1_at.htm



to kill a process by name rather than PID

kill $(pgrep name)


to run multiple processes from single line cronjob

use && for command2 to require succesful completion of command1
use ; between commands for independent commands
 
5 0 * * * command1 ; command2 ;

Saturday, May 30, 2015

dropbox on ubuntu vps

>>get the dropbox daemon, un-tar, run and link.

   
wget -O dropbox.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86_64"

tar -xvzf dropbox.tar.gz

~/.dropbox-dist/dropboxd

>>You should see output like this:
   
This client is not linked to any account... Please visit https://www.dropbox.com/cli_link?host_id=7d44a557aa58f285f2da0x67334d02c1 to link this machine.

>> go to url as above. rest is automatic.
will create ~/Dropbox folder, which is auto synced with the cloud dropbox.

a handy script for interfacing with dropboxd
   
wget https://linux.dropbox.com/packages/dropbox.py

++++

~/.dropbox-dist# ./dropbox.py help
Dropbox command-line interface

commands:

Note: use dropbox help to view usage for a specific command.

 status       get current status of the dropboxd
 help         provide help
 puburl       get public url of a file in your dropbox
 stop         stop dropboxd
 running      return whether dropbox is running
 start        start dropboxd
 filestatus   get current sync status of one or more files
 ls           list directory contents with current sync status
 autostart    automatically start dropbox at login
 exclude      ignores/excludes a directory from syncing
 lansync      enables or disables LAN sync



from...

http://www.dropboxwiki.com/tips-and-tricks/install-dropbox-in-an-entirely-text-based-linux-environment#pyDropboxValues

Thursday, September 18, 2014

generate ssh keys


% ssh-keygen -t rsa
Generating public/private dsa key pair.
Enter file in which to save the key (~/.ssh/id_dsa):
(just type return)
Enter passphrase (empty for no passphrase):
(just type return or enter a phrase)
Enter same passphrase again:
(just type return or enter a phrase)
Your identification has been saved in ~/.ssh/id_rsa
Your public key has been saved in ~/.ssh/id_rsa.pub
The key fingerprint is:
Some really long string



once you have generated it, 
run "cat ~/.ssh/id_rsa.pub". That will output the public key






http://www.ece.uci.edu/~chou/ssh-key.html

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2

https://help.github.com/articles/generating-ssh-keys

Thursday, September 11, 2014

wrong version of dbd ?? easy ./configure --with-incompatible-bdb

recently building a newer dogecoin daemon

a whole new process than :
make -f makefile.unix

instead being :
./autogen.sh
./configure
make

had a problem because it required an earlier version of berkeley db

i believe it was looking for berkeley db 5.1 and i have 5.3.
doesnt matter :)

it seems there are all sorts of switches huzzah

./configure --with-incompatible-bdb

wins the prize



=============================================================


Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-miniupnpc        enable UPNP (default is yes if libminiupnpc is
                          found)
  --with-comparison-tool  path to java comparison tool (requires
                          --enable-tests)
  --with-qrencode         enable QR code support (default is yes if qt is
                          enabled and libqrencode is found)
  --with-protoc-bindir=BIN_DIR
                          specify protoc bin path
  --with-incompatible-bdb allow using a bdb version other than 5.1
  --with-boost[=ARG]      use Boost library from a standard location
                          (ARG=yes), from the specified location (ARG=),
                          or disable it (ARG=no) [ARG=yes]
  --with-boost-libdir=LIB_DIR
                          Force given directory for boost libraries. Note that
                          this will override library path detection, so use
                          this parameter only if default library detection
                          fails and you know exactly where your boost
                          libraries are located.
  --with-boost-system[=special-lib]
                          use the System library from boost - it is possible
                          to specify a certain library for the linker e.g.
                          --with-boost-system=boost_system-gcc-mt
  --with-boost-filesystem[=special-lib]
                          use the Filesystem library from boost - it is
                          possible to specify a certain library for the linker
                          e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  --with-boost-program-options[=special-lib]
                          use the program options library from boost - it is
                          possible to specify a certain library for the linker
                          e.g.
                          --with-boost-program-options=boost_program_options-gc$
  --with-boost-thread[=special-lib]
                          use the Thread library from boost - it is possible
                          to specify a certain library for the linker e.g.
                          --with-boost-thread=boost_thread-gcc-mt
  --with-boost-chrono[=special-lib]
                          use the Chrono library from boost - it is possible
                          to specify a certain library for the linker e.g.
                          --with-boost-chrono=boost_chrono-gcc-mt
  --with-boost-unit-test-framework[=special-lib]
                          use the Unit_Test_Framework library from boost - it
                          is possible to specify a certain library for the
                          linker e.g.
                          --with-boost-unit-test-framework=boost_unit_test_fram$
  --with-cli              with CLI (default is yes)
  --with-daemon           with daemon (default is yes)
  --with-gui              with GUI (no|qt4|qt5|auto. default is auto, qt4
                          tried first.)
  --with-qt-incdir=INC_DIR
                          specify qt include path (overridden by pkgconfig)
  --with-qt-libdir=LIB_DIR
                          specify qt lib path (overridden by pkgconfig)
  --with-qt-plugindir=PLUGIN_DIR

  --with-qt-bindir=BIN_DIR
                          specify qt bin path
  --with-qtdbus           enable DBus support (default is yes if qt is enabled
                          and QtDBus is found)

Thursday, June 26, 2014

compile zero coins linux daemons

             
              
need to make new folders.               
 


cd XCOIN/src



mkdir obj


mkdir obj/zerocoin


             
              
need to change permissions.               



cd src/leveldb



chmod +x build_detect_platform


 


make ... 




              

               

troubles.. should you attempt earlier unsuccesful compile, it can break later compile.
               





make clean -f makefile.unix



 
-_-_-_-_-_-_-_

-_-_-_-_-_-_-_
-_-_-_-_-_-_-_
-_-_-_-_-_-_-_


 
             
             
errors that led me...             

opening dependency file obj/zerocoin/Accumulator.d: No such file or directory




/leveldb.h:23: undefined reference to `leveldb::WriteBatch::~WriteBatch()'



 

/////
compiled from random places.