#[solved] how to install a program onto an external harddrive?

56 messages · Page 1 of 1 (latest)

lyric coyote
#

I have an external hard drive plugged into the laptop with ample space on it. I want to install android studio on it. I opened my file explorer, and went into the drive, right-clicked and opened in terminal. Now i'm in the drive in the terminal, or so I thought. I ran the command sudo pacman -S android-studio while being in this directory, and it installed it on my laptop instead so how do I install android studio to my external? I'm on Garuda Gnome Arch Linux. Thanks

lyric coyote
#

I figured I would try and just clone the repo and use the makepkg -si command, but then I ran into this issue

mekasu@FireDragonMek /r/m/m/M/Programs> cd android-studio/
mekasu@FireDragonMek /r/m/m/M/P/android-studio (master)> makepkg -si
==> Making package: android-studio 2021.3.1.17-1 (Sat 07 Jan 2023 02:38:40 AM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading android-studio-2021.3.1.17-linux.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  937M  100  937M    0     0  7465k      0  0:02:08  0:02:08 --:--:-- 7914k
  -> Found android-studio.desktop
  -> Found license.html
==> Validating source files with sha256sums...
    android-studio-2021.3.1.17-linux.tar.gz ... Passed
    android-studio.desktop ... Passed
    license.html ... Passed
==> Extracting sources...
ln: failed to create symbolic link '/run/media/mekasu/MEKS EXTERN/Programs/android-studio/src/android-studio-2021.3.1.17-linux.tar.gz': Operation not permitted
ln: failed to create symbolic link '/run/media/mekasu/MEKS EXTERN/Programs/android-studio/src/android-studio.desktop': Operation not permitted
ln: failed to create symbolic link '/run/media/mekasu/MEKS EXTERN/Programs/android-studio/src/license.html': Operation not permitted
==> Entering fakeroot environment...
==> Starting package()...
/run/media/mekasu/MEKS EXTERN/Programs/android-studio/PKGBUILD: line 37: cd: too many arguments
==> ERROR: A failure occurred in package().
    Aborting...
mekasu@FireDragonMek /r/m/m/M/P/android-studio (master) [4]> 
uneven tulip
lyric coyote
#

ok then I'll use my windows os to do it. thanks

uneven tulip
#

appimage would be best.

lyric coyote
#

the only reason I'm wanting to do it is because my computer houses 2 os's and I'm low on space with my programmin projects on one and games on the other. I would just download android studio and use the android emulator from there, but I don't have enough space and it won't let the emulated device launch. I just tried to install android-emulator using sudo pacman -S android-emulator but it's not showing up in my app window, nor in terminal when I type android-emulator

gusty kayak
#

@lyric coyote google 'filesystem on two drives'

#

i think btrfs and lvm can do it

lyric coyote
# gusty kayak i think btrfs and lvm can do it

I decided to remove the other os, and just go with linux as my main. I've got it running now. My next question is how do I add android to path in my .back_profile? I forgot and I can't find the help thread I had a couple of months ago on it

lyric coyote
#

😂 im high let me be

#

.bash_profile

gusty kayak
#

you can probably just PATH+=:/what/ev/er

lyric coyote
#

Failed to resolve the Android SDK path. Default install location not found: /home/mekasu/Android/sdk. Use ANDROID_HOME to set the Android SDK location.

gusty kayak
#

?

#

when does this happen

lyric coyote
#

that's the error I get when trying to launch android from terminal using expo. I have to add android home and the path or whatever to my .bash_profile but I don't remember how to do it

#
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools```found it
gusty kayak
gusty kayak
lyric coyote
#

brb

#

well that didn't work

cunning ibex
#

Why are you installing it to your home directory?

lyric coyote
#

idk. that's just where it downloads

#

🤷

#

where am I supposed to download it?

#

I did use pacman.

#

....

#

so how do I set the path in the bash profile

#

I've gotten the answer before, but it's been a minute since that thread and I can't find it

cunning ibex
#

add it to your .bashrc

lyric coyote
#

how

gusty kayak
#

christ the archwiki has everything

#

i doubt {} does anything there though

#

well, it might

lyric coyote
gusty kayak
#

?

#

just check the wiki first is all

#

also i sent you that so you can check it

lyric coyote
#
#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
```I did this, logged out and back in and it still won't work.
cunning ibex
lyric coyote
#

what do you mean? I didn't build anything since I used pacman?

cunning ibex
#

what?

lyric coyote
#

are you talking about cd'ing into android studio and running makepkg -si?

cunning ibex
#

you cloned the repo onto your external drive last time when it failed, but does building it on your main drive work?

lyric coyote
# lyric coyote `Failed to resolve the Android SDK path. Default install location not found: /ho...

nope. never did that. Ended up fucking up my os, so I reinstalled and am only running linux now which gave me plenty of space for android studio so I didn't need the external anymore. Now my only problem is that when I run npm start inside of my react-native project, it gives the option of opening on android a and when I press that, it gives me the error which I replied to. Honestly, it doesn't really matter because I can run a virtual device on my computer next to my ide. I just don't like errors when I want to try something

lyric coyote
cunning ibex
#

try doing it like this

A=abc
D=123

export A D
lyric coyote
#

what?

#

I'm telling you it's what I've already written, just might have a thing or two wrong.

cunning ibex
#

ok

lyric coyote
# cunning ibex ok

this is the thread I was talking about, This deals with uvicorn, but it's the same thing, just doing it for android home instead of uvicorn. I just don't remember how write it correctly

#

#1044425038574669915

#

it doesn't really matter. I can use the virtual device inside of android studio and I can use an external device as well. I can be happy with those. thank you for your help