SFTP - Connection Closed

Vent out liberIOS stuff here.
Requests for ETAs or 11.2+ support will be removed without warning!

Re: New user. Can't do ls ?

Postby luckycat889 » Thu Jan 04, 2018 7:04 pm

More or less same question asked and answered here: viewtopic.php?f=7&t=17589
luckycat889
 
Posts: 11
Joined: Thu Dec 28, 2017 3:15 am

Re: New user. Can't do ls ?

Postby onky » Thu Jan 04, 2018 7:39 pm

The easiest way is to create symbolic links as follows, so the commands can be found where they are expected. You only need to do that once.

Code: Select all
ln -s /jb/bin/ls /bin/ls
ln -s /jb/usr/bin/scp /usr/bin/scp

By the way, after doing the above, you will be able to use WinSCP to transfer files between your device and your computer. If you also need to create/delete folders via WinSCP, some other commands will have to be linked, too, such as mkdir and rmdir.
Last edited by onky on Fri Jan 05, 2018 7:04 pm, edited 1 time in total.
User avatar
onky
 
Posts: 5
Joined: Wed Dec 27, 2017 9:37 pm

Re: New user. Can't do ls ?

Postby Wanny » Fri Jan 05, 2018 12:01 am

Hmm, interesting. In /jb there's the makeMeAtHome.sh file:

Code: Select all
#
# Sets up J's favorite environment
#
# These are perfectly safe and reversible
#

export PATH=/jb/usr/bin:/jb/bin:/jb/sbin:/jb/usr/sbin:/jb/usr/local/bin:

mkdir -p /usr/local/lib/zsh/5.0.8/zsh
mv /jb/usr/local/lib/zsh/5.0.8/zsh/* /usr/local/lib/zsh/5.0.8/zsh

mkdir -p /usr/share/terminfo
mv /jb/usr/share/terminfo/* /usr/share/terminfo/

mkdir -p /usr/local/bin
mv /jb/usr/local/bin/* /usr/local/bin

mv /jb/bin/zsh /bin
mv /jb/etc/zshrc /etc

echo It\'s fine if you saw errors that some directories were not empty.
echo now feel free to run \'zsh\' instead of bash
Wanny
 
Posts: 4
Joined: Wed Jan 03, 2018 11:31 pm

Is there no ls()

Postby lettucehead » Sat Jan 06, 2018 9:25 am

Hello,

Thank you to all community and to morpheus, very fucking sick.

Is there no
Code: Select all
ls
in the -bash3.2# ??

Here is my
Code: Select all
help
output:
Code: Select all
GNU bash, version 3.2.57(1)-release (i386-apple-darwin14.3.0)
These shell commands are defined internally.  Type `help' to see this list.
Type `help name' to find out more about the function `name'.
Use `info bash' to find out more about the shell in general.
Use `man -k' or `info' to find out more about commands not in this list.

A star (*) next to a name means that the command is disabled.

 JOB_SPEC [&]                       (( expression ))
 . filename [arguments]             :
 [ arg... ]                         [[ expression ]]
 alias [-p] [name[=value] ... ]     bg [job_spec ...]
 bind [-lpvsPVS] [-m keymap] [-f fi break [n]
 builtin [shell-builtin [arg ...]]  caller [EXPR]
 case WORD in [PATTERN [| PATTERN]. cd [-L|-P] [dir]
 command [-pVv] command [arg ...]   compgen [-abcdefgjksuv] [-o option
 complete [-abcdefgjksuv] [-pr] [-o continue [n]
 declare [-afFirtx] [-p] [name[=val dirs [-clpv] [+N] [-N]
 disown [-h] [-ar] [jobspec ...]    echo [-neE] [arg ...]
 enable [-pnds] [-a] [-f filename]  eval [arg ...]
 exec [-cl] [-a name] file [redirec exit [n]
 export [-nf] [name[=value] ...] or false
 fc [-e ename] [-nlr] [first] [last fg [job_spec]
 for NAME [in WORDS ... ;] do COMMA for (( exp1; exp2; exp3 )); do COM
 function NAME { COMMANDS ; } or NA getopts optstring name [arg]
 hash [-lr] [-p pathname] [-dt] [na help [-s] [pattern ...]
 history [-c] [-d offset] [n] or hi if COMMANDS; then COMMANDS; [ elif
 jobs [-lnprs] [jobspec ...] or job kill [-s sigspec | -n signum | -si
 let arg [arg ...]                  local name[=value] ...
 logout                             popd [+N | -N] [-n]
 printf [-v var] format [arguments] pushd [dir | +N | -N] [-n]
 pwd [-LP]                          read [-ers] [-u fd] [-t timeout] [
 readonly [-af] [name[=value] ...]  return [n]
 select NAME [in WORDS ... ;] do CO set [--abefhkmnptuvxBCHP] [-o opti
 shift [n]                          shopt [-pqsu] [-o long-option] opt
 source filename [arguments]        suspend [-f]
 test [expr]                        time [-p] PIPELINE
 times                              trap [-lp] [arg signal_spec ...]
 true                               type [-afptP] name [name ...]
 typeset [-afFirtx] [-p] name[=valu ulimit [-SHacdfilmnpqstuvx] [limit
 umask [-p] [-S] [mode]             unalias [-a] name [name ...]
 unset [-f] [-v] [name ...]         until COMMANDS; do COMMANDS; done
 variables - Some variable names an wait [n]
 while COMMANDS; do COMMANDS; done  { COMMANDS ; }
lettucehead
 
Posts: 21
Joined: Sat Jan 06, 2018 9:07 am

Re: Is there no ls()

Postby lettucehead » Sat Jan 06, 2018 9:34 am

I may bump this with very dumb tips and tricks, considering that I have to ask dumb questions.

If you're sick of seeing -bash-3.2# and want a shell that looks normal:
echo "${PS1}" -- does this give you \s-\v\$ ?? If so, go ahead and type:
PS1='\h:\W \u\$ ' export PS1
... and feel like you're back in a terminal with a UI, so to speak
lettucehead
 
Posts: 21
Joined: Sat Jan 06, 2018 9:07 am

Re: Is there no ls()

Postby lettucehead » Sat Jan 06, 2018 9:49 am

For users who are starting:
When putting the liberiOS .ipa on device, if you get:
lockdown.cpp:57 LOCKDOWN_E_MUX_ERROR
... try this:
1) Un/+re-plug Lightning connector cable
2) In Impactor toolbar menu, go Xcode -> Revoke Certificates.
(Note, this will revoke your certificates for provisioning apps.)

To SSH into your device on Windows, use PuTTY. You need your IP. Connect your device to WiFi. Go Settings -> Wifi -> Click the (i) symbol on right. You should see your device IP. Use that. Ensure PuTTY is set to port 22, and set to SSH. Hit OK. Prompt for username: root. Prompt for password: alpine.
https://www.chiark.greenend.org.uk/~sgt ... atest.html
^ For Windows users.
lettucehead
 
Posts: 21
Joined: Sat Jan 06, 2018 9:07 am

Re: Is there no ls()

Postby lettucehead » Sat Jan 06, 2018 9:59 am

Ahhhhhhh better than coitus I found the answer
viewtopic.php?f=14&t=17480#p19997
To get ls, follow the instructions loudly trumpeted when you enter device. This is known as "getting the full binpack."
Hey can anyone smart tell me what in the hell is a binpack? like, conceptually. Does it mean the path draws magic from all of these different folders separated by colons?
lettucehead
 
Posts: 21
Joined: Sat Jan 06, 2018 9:07 am

Re: Is there no ls()

Postby lettucehead » Sat Jan 06, 2018 9:59 am

Does anyone notice the cursor randomly getting horrifically slow?
lettucehead
 
Posts: 21
Joined: Sat Jan 06, 2018 9:07 am

Re: Is there no ls()

Postby lettucehead » Sat Jan 06, 2018 10:06 am

OK. This is so weird.
I was in /jb/bin when I got ls. Then I used it and saw zsh was there. So I typed zsh and pressed \n.
Look at this weird output:
(note: device name: ai, directory location: bin, user: root)
Code: Select all
ai:bin root# zsh
zsh: failed to load module `zsh/zle': dlopen(/usr/local/lib/zsh/5.0.8/zsh/zle.so, 9): image not found
\h:\W \u\$

^ this is what became of my beautiful command prompt thingy.
Now I get this:
Code: Select all
\h:\W \u\$ echo "${PS1}"
\h:\W \$
\h:\W \u\$ PS1='\h:\W \u\$ ' export PS1
\h:\W \u\$

So weird
lettucehead
 
Posts: 21
Joined: Sat Jan 06, 2018 9:07 am

Re: Is there no ls()

Postby lettucehead » Sat Jan 06, 2018 10:17 am

OK, figured out it's basically all abt running ./makeMyselfAtHome.sh as soon as logging in.
But uh I'm getting network connection errors that bump me out of my ssh and cause PuTTy to go inactive. They also undo my shell setup. Is it normal to run ./makeMyselfAtHome every ssh instance? Is it normal to have a hella laggy cursor hella much?
lettucehead
 
Posts: 21
Joined: Sat Jan 06, 2018 9:07 am

PreviousNext

Return to liber iOS

Who is online

Users browsing this forum: No registered users and 6 guests

cron