My new Arch - Dropbox problem

Hello Arch community,
I just spent the last 2-3 days installing, downloading, reading this forum and the wiki and configuring my new Arch installation on my Dell Studio 1557 and I now have a nice fast little gnome environment that fits my needs
First of all: Arch Linux is really great. I've been a pure Windows user for the last few years and I tried out some linux stuff on my notebook lately. Arch Linux was the only one that really gave me the chance to build my own system without hours of compiling and without having tons of crap installed that I don't use. I'm not totally finished yet, but that is another thing...
Now I have one problem that bugs me atm:
I installed Dropbox from the AUR (not the nautilus version) and it basically works... but only if i start it after networkmanager has established my wireless connection
Right now it's like: Dropbox starts, tries to connect... wireless connection ist not established yet -> no connection possible; Then networkmanager is doing his work and connects to my wireless network -> connection ist there, but Dropbox resides in the "Connecting" state and it doesn't change -> no sync. I have to stop and restart it, then it instantly connects and syncs my folder.
Is there any (easy) way to make Dropbox start after connecting to the wireless network?
PS: Please excuse any grammatical mistakes, my native language is german
Last edited by zwoggel (2010-05-10 10:30:46)

manzdagratiano wrote:
onemyndseye wrote:
I was affected by this problem and wrote the follow bit of code as a workaround:
/usr/bin/dropboxd
#!/bin/sh
# Copyright 2008 Evenflow, Inc., 2010 Dropbox
# Environment script for the dropbox executable.
start_dropbox() {
PAR=$(dirname $(readlink -f $0))
OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
LD_LIBRARY_PATH=$PAR:$LD_LIBRARY_PATH
kill -9 $(pidof dropbox) >/dev/null 2>&1
exec $PAR/dropbox $@ &
do_dropbox() {
start_dropbox >/dev/null 2>&1
while [ 1 ]; do
sleep 5
ERROR="$(net_test)"
if [ -n "$ERROR" ]; then
LAST_ERROR=1
else
if [ -n "$LAST_ERROR" ]; then
# Connection seems to be up but
# last cycle was down
LAST_ERROR=""
start_dropbox >/dev/null 2>&1
fi
fi
done
net_test() {
TMP1="$(ifconfig |grep "inet addr:" |grep -v "127.0.0.1")"
[ -z "$TMP1" ] && echo "error"
do_dropbox
Hope this helps someone
Woohoo!!! Many many thanks! I was plagued by this issue, and this worked superbly for me.... I just modified the script a little for error checking like you mentioned - with a `ps ax' to check for whether dropbox is running before trying to kill it. I love the fact that the script would restart dropbox in the event of a connection loss/reconnection. The modified script is as follows:
#!/bin/sh
# Copyright 2008 Evenflow, Inc., 2010 Dropbox
# Environment script for the dropbox executable.
start_dropbox() {
PAR=$(dirname $(readlink -f $0))
OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
LD_LIBRARY_PATH=$PAR:$LD_LIBRARY_PATH
TMP1=`ps ax|grep dropbox|grep -v grep`
if [ -n "$TMP1" ]; then
kill -9 $(pidof dropbox) >/dev/null 2>&1
fi
exec $PAR/dropbox $@ &
do_dropbox() {
start_dropbox >/dev/null 2>&1
while [ 1 ]; do
sleep 5
ERROR="$(net_test)"
if [ -n "$ERROR" ]; then
LAST_ERROR=1
else
if [ -n "$LAST_ERROR" ]; then
# Connection seems to be up but last cycle was down
LAST_ERROR=""
start_dropbox >/dev/null 2>&1
fi
fi
done
net_test() {
TMP1="$(ifconfig |grep "inet addr:" |grep -v "127.0.0.1")"
[ -z "$TMP1" ] && echo "error"
do_dropbox
Many thanks also to varg04444 for suggesting his very simple script - I did not go with that only because it would not restart dropbox in the event of a reconnection.
Since ifconfig is deprecated now, I made a small change in the script to use ip command instead:
#copyright 2008 Evenflow, Inc., 2010 Dropbox
# Environment script for the dropbox executable.
start_dropbox() {
PAR=$(dirname $(readlink -f $0))
OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
LD_LIBRARY_PATH=$PAR:$LD_LIBRARY_PATH
TMP1=`ps ax|grep dropbox|grep -v grep`
if [ -n "$TMP1" ]; then
kill -9 $(pidof dropbox) >/dev/null 2>&1
fi
exec $PAR/dropbox $@ &
do_dropbox() {
start_dropbox >/dev/null 2>&1
while [ 1 ]; do
sleep 5
ERROR="$(net_test)"
if [ -n "$ERROR" ]; then
LAST_ERROR=1
else
if [ -n "$LAST_ERROR" ]; then
# Connection seems to be up but last cycle was down
LAST_ERROR=""
start_dropbox >/dev/null 2>&1
fi
fi
done
net_test() {
TMP1="$(ip addr |grep "inet " |grep -v "127.0.0.1")"
[ -z "$TMP1" ] && echo "error"
do_dropbox

Similar Messages

  • New arch installation, problems with dual monitors

    tldr: nvidia setting are not saving when when I leave a session.
    yesterday I wiped my computer and went from ubuntu to arch on my desktop (been using arch on laptop for a while). I'm having problems getting my dual monitor settings to save. I configure the settings via nvidia server settings and it works fine but when I go to reboot or log out it goes back down to just one screen and I have reset up nvidia.
    gdm has never seen both monitors its always just the single screen.
    software
    nvidia drivers 280.13
    xfce4 v4.8.0
    gdm 3.0.4-2
    kernal 3.0-arch
    my system is up to date with a yaourt -Syu
    Sorry if this has been answered but my googlefoo was not strong today.

    GDM *should* use a xorg.conf if it exists.... I also noticed that Arch keeps a xorg.conf.d folder, which I'm not sure the nvidia-settings app knows how to handle.
    Also, make sure you are running the nvidia-settings app with root privileges, as you'll need those to write a xorg.conf in /etc/X11.

  • Bug in new Arch 2008.04-RC?

    I just burned the new Arch AMD64 2008.04-RC to a CD and gave it a go on my Mac Pro.
    It runs and boots!!  Quite an accomplishment since most Linux LiveCD's (including old versions of Arch) do NOT boot properly on my Mac Pro Tower.  It usually hangs with a black screen of death.
    But very time I boot off the new AMD 64 2008.04-RC CD, the tray on my second DVD Burner Drive ejects during the udev probing stage.
    Are others have this problem?  Is this a bug?
    Rob
    P.S.  The only other distro that seems to boot off this mac pro is Ubuntu Gusty and my drives do NOT open on this distro during bootup.

    Yes, Pierre Schmitz noted this on mailinglist. File a bug.

  • I have copied my iTunes library onto a new computer, but when I play back the songs there seems to be random "miss" or "drop out".  No probs with old computer, just the new one.  I'm onto my third new computer - same problem.  Any suggestions please?

    I have copied my iTunes library onto a new computer, but when I play back the songs using the new computer, there seems to be random "miss" or "drop out" during play back, similar to a small scratch on a vinyl record.  Although when I play the same song over again, the "miss" occurs in a different location during the song.  No probs with old computer, just the new one.  I'm onto my third new computer - same problem.  Any suggestions please?

    You don't say which version of iTunes you are using, but the symptoms you describe have been encountered by some users with the 64-bit version of iTunes 12.1.
    There is an alternative version for 64-bit editions of Windows here:
    iTunes 12.1 for Windows (64-bit — for older video cards)
    that seems to address the most of the playback issues that some users have been reporting with the full 64-bit version of 12.1.0.77 - including problems with Bluetooth speakers where either sound is degraded or completely absent.  The alternative installer here is the same architecture as most previous "64-bit" versions of iTunes, i.e., a 32-bit application with a 64-bit installer.  The "for older video cards" label appears to be something of a misnomer as some people have reported that this corrects problems found on current / high-spec systems.
    Some users have reported that after installing this alternative version it is necessary to adjust the "Play audio using" selection (normally to "Direct Sound" rather than "Windows Audio Session", though this may vary based on your audio hardware/drivers) in Edit > Preferences > Playback to restore glitch-free audio (one part of the reported symptoms is that the "Direct Sound" choice isn't available, usually in Windows 8).  It may also be necessary to ensure that your Bluetooth speakers are active and selected as the default audio device before you run iTunes.
    If this doesn't address the issue, you may want to think about reverting to iTunes 12.0 - see Turingtest2's notes on Troubleshooting issues with iTunes for Windows updates for steps needed to completely remove all installed iTunes components, and for links to the 12.0 installers.

  • Can't create a new illustration. Problems occurred while saving the print file.

    I can't open a new Illustrator file. It sends me this error: Can't create a new illustration. Problems occurred while saving the print file. ID:-1
    I opened a previous document created in CC, but it will not allow me to copy and paste items from one doc to another.
    I have rebooted with no avail.
    System:
    Adobe Creative Cloud CC
    Mac Book Pro 2012
    2.6 GHz Intel Core i7
    8 GB 1600 MHz DDR3

    Is a printer connected? Is it turned ON? Is the driver up to date?
    Illustrator checks this every time and also writes information on the printer into the file.

  • Gmail on iphone was working fine until yesterday when it prompted me with the message cannot get mail user name or password for gmail is incorrect, i have tried deleting the account and re-created a new account, same problem, can anyone help?

    gmail on iphone was working fine until yesterday when it prompted me with the message "cannot get mail user name or password for gmail is incorrect", i have tried deleting the account and re-created a new account, same problem, can anyone help?

    paulcb, you're a genius, it worked, thank you so much, you don't know how much stress you have taken off my shoulders, I am constantly on my email in my iphone everyday.  Thanks a million, take care. Robert.

  • I just downloaded the new Firefox 4, rebooted, and viewed you videos re the new look and new features. Problem is, my toolbars look no different than before. The new icons you talk about do not appear on my screen. Please advise. Thank you.

    I just downloaded the new Firefox 4, rebooted, and viewed your videos re the new look and new features. Problem is, my toolbars look no different than before. The new icons you talk about do not appear on my screen. Please advise. Thank you.

    The Firefox icon is the default feature for Windows Vista and 7 only, it does not apply to Windows XP users.
    To have the Firefox icon instead of the Menu Bar:
    View > Toolbars and UNCHECK the Menu Bar.
    After that, click on the Firefox icon and you'll have the Menu Bar appear again.
    http://support.mozilla.com/en-US/kb/Menu%20bar%20is%20missing

  • Announcing some new Arch Linux Schwag offerings

    Hey All,
    I wanted to introduce you to some new Arch Linux Schwag offerings I've been cooking up over the past little while.
    I'm currently sold out of case badges, and Simo has faithfully shipped his last order.  I'm trying to think of a way to compensate him, he's done so much work for me on the shipping front and all I ever offered him was dinner, (granted, he's a starving student, and dinner was hopefully much appreciated).  When I reorder stickers, probably in the new year, I will be shipping them myself, from Canada, so domestic prices will be a touch higher.
    Now, onwards to Schwag:
    It's no secret that I'm the odd man out on the tacos vs poutine debate.  I know you all will come around to my way of thinking eventually, but in the meantime, check out the new schwag where you can proudly pick your piece.  I've also added a few other new t-shirt design, mostly as your suggestions.  Check out the new products line at zazzle to place your order:
    http://www.zazzle.com/archlinux/gifts?c … 1284817680
    I think most of you know about the laptop bags, jewellery, and case badges (currently out of stock) selling at: http://schwag.archlinux.ca/
    I've added a few handmade items of my own invention to the mix, including wooden and soapstone sculptures, keychains, and coasters, all featuring our favourite distro's logo:
    http://schwag.archlinux.ca/product/coaster/
    http://schwag.archlinux.ca/product/soapstone_sculpture/
    http://schwag.archlinux.ca/product/sculpture/
    http://schwag.archlinux.ca/product/keychain/
    I'm particularly proud of the soapstone sculptures, they look incredible.  I'm not sure I can give them up.  The keychains will also make great stocking stuffers this Christmas season, so remind your friends to shop Arch Schwag!
    In addition, I would like to announce a preview of the Arch Linux Handbook.  This should be retailing in a couple weeks, and will be available from both CreateSpace and Amazon.com.  The handbook is basically a quick restyling of the epic beginner's guide in the wiki.  You can preview it here:
    https://www.createspace.com/3398103
    That's all for now!
    Dusty

    Runiq wrote:Cool stuff. Like the coasters, and the allanbrokeit shirt is stylish.
    That's Acecero's contribution, as he implies. :-)
    Also, there's a typo in the handbook's headline: "A simple lightweight Linuk handbook."
    Yeah, I know... sadly, I didn't notice it until it was too late to change (the book was set up for publication).  Now I have to wait for a new edition, or pay $40 to put one out now.
    Acecero wrote:Just curious, are you going to release different editions of the Arch Linux Handbook from time to time? I'm assuming the information would need to be updated and the more marketability you will gain anyway.
    I'm hoping to sell between 10 and 50 copies of this edition to pay for the upfront costs before making a new edition.  The more popular it is, the more likely I will be to keep it up to date.
    BTW, if anyone is interested in doing cover art for the second edition, get in touch with me.  I've been told that this cover looks like ass (it was gently, with links to tutorials on design :-D)
    Dusty

  • New Outlook sync problem after update!!!

    I had the 'original' Outlook sync problem, which went away after the iTunes update to 7.3.1, but now, after the iPhone update last night, I have an entirely NEW Outlook sync problem!!
    When I sync the iPhone, right when it gets to the 'syncing contacts' part (that you see in the top box/window in iTunes) I get an error message that I haven't seen before. It says "AppleMobileDeviceHelper has encountered a problem and needs to close..." and it gives me the option to send an error report. I dismiss the error box, and the sync process hangs, and iTunes becomes unresponsive.
    If I open Outlook, the two Apple sync oblects are still enabled, and get no error message. If I re-open iTunes and try to sync again, it only syncs iTunes content, and never even tries to sync my contacts or calendar.
    Anyone having anything similar since last night? The only thing different is the iPhone firmware update.

    I just cancelled the sync by using the slider. I didn't realize I could do that. The phone seems fine. I may try it again and see what happens.

  • My iMac keeps showing an install bar every time I reboot or restart since upgrading to OS X Yosemite. This never occurred in any of the previous OS. Is this new or a problem?

    My iMac keeps showing an install bar every time I reboot or restart since upgrading to OS X Yosemite. This never occurred in any of the previous OS. Is this new or a problem? I have an iMac (27-inch Mid 2010), Mac OS X (10.6.7).

    they moved to a progress bag instead of the spinning gear or beach ball

  • Three new bioinformatic coding problems now in WIKI (all require regex)

    At the bottom of this page:
    https://wiki.sdn.sap.com/wiki/display/EmTech/Bio-InformaticBasicsInRelationtoScriptingLanguages
    I've defined three new bioinformatic coding problems (Problems 3a-c).
    These all involve regex parsing in one way or another and are therefore a lot more interesting than the first two problems I've presented.
    I'm hoping that Anton will continue to knock out solutions, and that others will feel challenged enough to join him.
    djh

    Anton -
    I am way impressed - not just by your code and how fast you produced it, but also by the speed with which you grasped the STRIDE documentation and put it to very good use.
    Regarding the question you ask at the very end - this question goes to the heart of why protein tertiary structure (the actual 3-dimensional shape of one chain of a protein) is so hard to predict, and why governments, universities, and pharma are throwing so much money at it.
    If protein primary and secondary structure were many-to-one, prediction of protein tertiary strructure would be a lot lot simpler.  (For example, if "VVAY" and all "similar" primary structure subsequences mapped to the same secondary structure.)
    But the mapping is, unfortunately, many-to-many because the amino acids (AAs) in a primary structure chain always bond the same way - the COOH (carboxy) of one  AA bonds to the HN (amino) of the next one to produce C-N with the OH and H going away to make a water moleculre ... COOH - HN ---> C-N + H20.
    And as pointed out by Linus Pauling (the discoverer of protein secondary structure), the C-N bond can take two forms:
    a) one that is llkely to force the two amino acids to become HH (part of a helix)
    b) one that is likely to force the two amino acids to become EE (part of a "stand")
    You may be surprised to find out that even primary structure subsequences of six amino acids can wind up as different secondary structures - not always "H" vs "E", the variants might be
    E TT H
    H TT E
    EEE HH
    HH EEE
    etc.
    Anyway, thanks a lot for what you've done here.
    If you decide to stay involved a little longer, you will very soon be able to understand why there may be real promise in the approach to protein structure that is being taken here:
    http://strucclue.ornl.gov
    (This is why I want to get SAP interested in the vertical bioinformatic sector - you can see why an integrated IDE with a robust DB is so important.)
    BTW, the site mentions Dr. Arthur Lesk as a team member.  Arthur is considered one of the fathers of what is called "structural alignment" (as opposed to pure sequence alignment.)
    If you Google him, you'll see that he has written many many books on bioinformatics - all worth purchasing if you're going to become involved in this area.  Arthur was at Cambridge (MRC) until recently, when he reached mandatory EU retirement age and took a position at Penn State here in the US.
    Best
    djh

  • [SOLVED] Steam crash after start on fresh new arch setup

    Hello, i just installed steam on my new arch setup, using opensource ati driver with lib32 on cinnamon.
    This is the log if i run steam > log
    http://pastebin.com/MKEqfH4B
    Last edited by blackdev1l (2014-07-14 14:37:35)

    Pse wrote:
    Hmm, might the Steam runtime be messing with the video drivers? Try running Steam without it:
    STEAM_RUNTIME=0 steam
    It works. What's the steam runtime ?
    edit: It tells me that some 32libs are missing. I'll try the Rm fix.
    edit2: works after did https://bbs.archlinux.org/viewtopic.php … 5#p1432315
    Last edited by blackdev1l (2014-07-14 14:37:16)

  • I originally bought an iMac 17 which crashed. Have now bought a second-hand iMac20. This has less preinstalled software, no iDVD, no iPhoto, Garageband, no iWeb.  Can I use my original discs to restore these options to my new computer? Problems with this?

    I originally bought an iMac 17 which crashed. Have now bought a second-hand iMac20. This has less preinstalled software, no iDVD, no iPhoto, Garageband, no iWeb.  Can I use my original discs to restore these options to my new computer? Problems with this?

    You might be able to depending on the age of the disc and the model of your newer used iMac. Only way to tell is to pop in the DVD and see if you can install the iLife programs.

  • New Arch Logo

    Does anyone know where I could find the SVG of the new Arch logo?

    http://www.archlinux.org/art/

  • E6 new Firmware critical problem

    Hi,
    After 3-4 days of upgrading to latest firmware(for E6)..the screen goes blank/locked while dialling or attending calls,  even during the alarm too, screen goes dead.
    honestly, i sensed the problem while switching off my alarm but touch-screen didn't respond well & later experienced the screen went blank/locked/unresponsive(till u cancel/end ur call) for dialling & attending calls too.
    my phone is @ Nokia care since monday, they promised me to return in 1 hour & now its more than 4days, & now they escalated the issue to L3 support vch may take another 10days.
    Anybody having idea. I request NOKIA moderator to plz look into d issue@ d earliest.
    My Location:Bangalore/India
    P.S. There are some more ppl who hv experienced d same prblm & they are ended up everytime by replacment with new phone, coz they again did the upgrade on new phone & same problem started after 5-6days. Its a critical problem. smbdy help!
    ~Suren

    Dear posters
    I too was confronted with this problem on my E6. I upgraded to Belle refresh and from that moment, whenever I receive a call, make a call, or when the alarm(clock) signals, the display goes black
    When receiving a call, Very, very briefly (maybe as short as two-tenth of a second) I see the caller info in a flash before the screen goes to black (so I can not really read it)
    After the call (or - in case of an alarm sounding - after stopping the alarm, the display is illuminated again
    Also, in my situation, no protective foil is covering the proximity sensor nor something else is obstructing it
    It happened directly after the update, before it everything was fine which makes me convinced that it can not be a hardware failure
    This assumption is backup up by what I have read on the web:
     the module in the E6 that is detecting the proximity (as well as performing the ambient light detection) is called "DiPro" and uses an external Infrared-LED. The current flowing through this LED (which off course determines the amount of IR-light and therefore the sensitivity of the proximity measurement as a whole)  is software controlled
    This (to me)  is a very plausible explanation that there is something wrong with the software indeed
    Why this fault does not appear on all E6-phones I don't know, but I assume that the combination of the Belle[refresh]  software (incorporating the assumable altered steering of the DiPro-module)  in combination with certain hardware versions of the E6 is a conflictuous one
    It's pretty bizar that Nokia has not supported up til now although a software update is clearly the basis of the problems
    If anyone here has found a solution on the mean time, I really hope to hear from him/her
    Thanks !!!

Maybe you are looking for

  • Please help with an Indesign Post Card Problem!

    Greetings!   I am in need of some help!  I am trying to create a post card in InDesign and then send it to a printing company.  I sent my finished product to the company and they stated that it would not work out well.  The font is too small, picture

  • Hyperlinks in Excel output

    I've seen many conversations on this topic but never a satisfactory solution.  So, I have excel hyperlinks that are built from an equation something like = Hyperlink(A3,"View"), where "A3" is the URL address (e.g., www.example.com) in a hidden column

  • Image URL

    hi, I tried to use the 'Link File' in the layout model to create a dynamic URL link to image object, then Under the Link File Boilerplate node i did: 1 Set the Source File Format property to Image URL. 2 Set the Source Filename property to the URL (h

  • Will ipod car adapter work with the iphone??

    ???

  • 0x800ccc90 error in Mail

    The number of times my Windows Mail fails on random accounts is increasing with error 0x800ccc90. PC  is Windows 7 64 bit, fully up to date. I know the password and ID are correct. The authorisation process seems to take a long time before it fails w