Archive

Archive for the ‘technology’ Category

Install Dropbox remotely on Ubuntu

May 17th, 2010 No comments

DropboxEverybody know how useful Dropbox is (up to 10Gb free web-disk with amazing sync capabilities), I wanted to install it on a Ubuntu Server remotely (over a ssh connection) to automatically copy my backups to a external server.

I was having some trouble but after some digging I found the way (sources: here and here).

Here is a quick to do list and the commands you have to run to do it.

Install Dropbox

Delete any version of Dropbox on your computer, download and untar the Dropbox daemon to your home folder:

cd ~
rm -rf .dropbox* Dropbox
wget http://dl-web.dropbox.com/u/17/dropbox-lnx.x86-0.7.110.tar.gz
tar xzf dropbox-lnx.x86-0.7.110.tar.gz

Start the “.dropbox-dist/dropbox” executable from the terminal:

.dropbox-dist/dropbox

Copy and paste the link the Dropbox daemon gives you, into the web browser on your local computer.
Once the DB client is linked to the correct account, shut it down and start it in the background:

nohup .dropbox-dist/dropboxd &

Now the Dropbox is install and running but once you reboot Dropbox won’t automatically startup.

Add Dropbox to system startup

Create a startup script:

sudo nano /etc/init.d/dropbox

Copy the text below to the new file you have created:

# chkconfig: 345 85 15
# description: Startup script for dropbox daemon
#
# processname: dropboxd
# pidfile: /var/run/dropbox.pid
#
# Source function library.
. /etc/rc.d/init.d/functions

DROPBOX_USERS=”user1 user2″

prog=dropboxd
lockfile=${LOCKFILE-/var/lock/subsys/dropbox}
RETVAL=0

start() {
echo -n $”Starting $prog”
for dbuser in $DROPBOX_USERS; do
daemon –user $dbuser /home/$dbuser/.dropbox-dist/dropboxd
done

RETVAL=$?
echo
[ $RETVAL = 0 ] && touch ${lockfile}
return $RETVAL
}

stop() {
echo -n $”Stopping $prog”
for dbuser in $DROPBOX_USERS; do
killproc /home/$dbuser/.dropbox-dist/dropboxd
done
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}

# See how we were called.
case “$1″ in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $”Usage: $prog {start|stop|restart}”
RETVAL=3
esac

exit $RETVAL

Change above the DROPBOX_USERS to include all users that want to run dropboxd (separated by spaces), and save the file.
Make the script executable:

sudo chmod +x /etc/init.d/dropbox

Add the script to the startup scripts:

sudo update-rc.d dropbox defaults

And it’s done! :) But if after this you want to manually start, stop or restart…

Manually start Dropbox

To start the service manually, run:

/etc/init.d/dropbox start

To stop it, run:

/etc/init.d/dropbox stop

To restart it, run:

/etc/init.d/dropbox restart

You can also check running status with:

/etc/init.d/dropbox status

Any doubt or suggestion feel free to ask!

Share this:
  • email
  • Twitter
  • Facebook
  • LinkedIn
  • RSS
  • StumbleUpon
  • Digg
  • del.icio.us
  • Netvibes
  • Google Bookmarks
  • PDF

Beo3DEx – The portable living room experience

September 22nd, 2009 No comments

As I mention before I had the privilege to work at the Innovation Camp at Bang & Olufsen.

Now I can share a bit of the work that has been developed in the 3 weeks I was there. This is the masterpiece of five crazy engineers work.

We design a unique device that offers an unforgettable experience!

beo3dex

Beo3DEx is a discreet, small, moving media center that can move around the house and can also be picked up and placed anywhere. It has a 3D projector so it takes the experience of watching TV, listening to music and watching photos to a whole new level.
Here is an animation that shows our concept:

Many people call it science fiction but we say that this is the way to go and studies shows that it’s expensive but it’s possible!

Last but not least I would like to thank my team for their hard work, Leni Lausdahl, Jakub Macek, Jan Hula and Tomasz Likus it was a pleasure to work with. And a special thanks to B&O and all the teachers that guides us in the best direction and made this work possible!

Share this:
  • email
  • Twitter
  • Facebook
  • LinkedIn
  • RSS
  • StumbleUpon
  • Digg
  • del.icio.us
  • Netvibes
  • Google Bookmarks
  • PDF

Macbook: Mini DisplayPort to S-Video ?!

April 2nd, 2009 No comments

I got an Aluminum Macbook and I want to connect it to my Television (Mini DisplayPort -> S-Video), how can I do it?

This is not the solution, it's a miniDVI to Video

Is it amazing how Apple haven’t made a simple connector Mini DisplayPort -> S-Video, haven’t they forgot the fulks who doesn’t have money to buy DVI televisions???

I have found some “solutions” (this and this) throw Amazon but I still not sure if they work at 100%. :| Can anyone help?
Share this:
  • email
  • Twitter
  • Facebook
  • LinkedIn
  • RSS
  • StumbleUpon
  • Digg
  • del.icio.us
  • Netvibes
  • Google Bookmarks
  • PDF

Começar com DB2 Express-C 9.5

March 18th, 2009 No comments

É com muito prazer que anuncio e congratulo os meus colegas DB2 Ambassadors Marcelo, Ulisses, Joana, Tiago e Sergio pela tradução do livro Getting Started with DB2 Express-C 9.5.

Este já se encontra online e disponível aqui:

Começar com DB2 Express-C 9.5

Agora já não tens razões para não começar a explorar o DB2, qualquer duvida contacta o nosso grupo e teremos todo o gosto em ajudar ;)

Share this:
  • email
  • Twitter
  • Facebook
  • LinkedIn
  • RSS
  • StumbleUpon
  • Digg
  • del.icio.us
  • Netvibes
  • Google Bookmarks
  • PDF

The Beginning…

January 1st, 2009 2 comments

Welcome to lebreiro.com and have a happy new year! ;)

Creating a blog was a challenge that a good friend made me a long time ago, but I never had the time to actually done it. But new year, new resolutions, new blog!

On this blog I’ll post about my achievements, technology and everything I love. Mainly the posts will be written in English so all my friends can read it, but from time to time I’ll post in my native language (Portuguese).

I little bit about me, I’m currently attending a Masters degree in Systems Engineering at Department of Production and Systems Engineering in University of Minho (UM), so every week I learn some cool stuff!

In the last three month I had Database Advanced Exploration and Management, currently I’m attending at Production Management, Systems Decision Support and Simulation, this are the first term curricular units of my MSc.

For now I’m working in Rockwell Arena 10 (Simulation), if you got any experience or just need a help with this software let me know.

Last year I started to work as a Junior Researcher, I work in two different projects but both equally interesting, I loved the experience of having to learn all by myself, it was great!

I love informatics, last year I got a new MacBook, so now and then I discover new and exiting things about Mac OS X and I will share them with you.

Stay tuned and you may find some interesting stuff!

Share this:
  • email
  • Twitter
  • Facebook
  • LinkedIn
  • RSS
  • StumbleUpon
  • Digg
  • del.icio.us
  • Netvibes
  • Google Bookmarks
  • PDF