r i in foo bar baz; do eval echo \${$foo:?} one bash: bar: parameter null or not set bash: baz: parameter null or not set
== NOTE ==
Th... e shortest instance of "anything followed by a slash" at the beginning of the string is just a slash (/).
The construct ${variable##*/} is actually eq... ent like: "Most of the bang! tricks that work in csh work the same way in bash").
However, buried in there is a section on Para... ually left on the command like literally. Under bash this is a user-settable option. In fact, under bash you can disable shell "globbing" if you like -- t
[[SSH without password|SSH ohne Passworteingabe]]
[[ssh:xnest|Fernzugriff auf X11 via Xnest über ssh-Tunnel]]
[[ssh:tunnel|Tunneling, auch reverse]]
So habe ich Java-Soft... tall is a wonderful thing)
Needed programs: ''ssh, autossh'', and all of their dependencies.
Object wil... me 'authorized_key'
- 'cp /<user's home dir>/.ssh/id_rsa.pub /<user's home dir>/.ssh/authorized_key'
- copy authorized_key to the .
siehe auch: [[shell]]
{{tag>shell bash bourne .sh shellscript BourneAgainShell}}
====== Bash ======
Kurz-Anlei... die Standard-Shell [2] unter Linux. Dabei steht Bash für '''B'''ourne '''a'''gain '''Sh'''ell.
= Basics =
Im weiteren werden einige Funktionen beschrieben, die Bash-spezifish sind, sich aber durchaus auch in anderen Shell-Um... immten Umständen sinnvoll sein, die History der Bash zumindest für root zu deaktivieren. Dazu muss man die Datei '''~/.bash_history''' löschen und in der Datei '''~/.bashrc'
weglassen, heisst jetzt id_rsa(.pub)!) && cat ~/.ssh/identity.pub | ssh SERVERB 'sh -c "cat - >>~/.ssh/authorized_keys2 && chmod 600 ~/.ssh/authorized_k... A to Server B. Run the command:
<code>
cat ~/.ssh/mykey.pub | ssh SERVERB 'sh -c "cat - >>~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"'
</code>
It will ask you for ... cret by running this on client A:
<code>
mv ~/.ssh/mykey ~/.ssh/identity && chmod 600 ~/.ssh/identity
</code>
Since this file is like your... by you only.
You are all set. Now run:
<code>ssh SERVERB</code>
And server B should let you l
etc/acpi/suspend2ram.sh
fi
exit 0
</code>
Add a hash mark before "/etc/acpi/suspend2ram.sh" (this line is now ignored but is still there in ... se this hack)
Add a new line "/sbin/fastshutdown.sh" as below
<code>
#!/bin/sh
LID_STATE=`cat /proc/acpi/button/lid/LID/state | awk '{print $2 }'`
if [... "closed" ] ; then
# /etc/acpi/suspend2ram.sh
/sbin/fastshutdown.sh
fi
exit 0
</code>
to remotely login to their hosting account using ssh. Transferring files to an from an ssh account can be done using the scp command. Howeve... mount a remote folder that you can access using ssh on your local computer, so that you can access files on an ssh
account just like they were local files on your ... c, right? Well now you can! Mount a folder in an ssh account, edit the files locally and save the files, and the file on the ssh server changes too! Isn’t it awesome!!!
We will ... through the process of mouting file systems over ssh on Ubuntu 5.10 Breezy systems.
<code>sshfs:
ort_for_ESP8266_with_simple_test_code]]
===== Flash new Firmware =====
TX(D)/RX(D) müssen bei den St... tasmota/|Arduino support for ESP8266]]
==== Flash mit Web-Flasher ====
Chrome/Chromium ist über Sn... o python esptool.py --port /dev/ttyUSB0 write_flash 0x00000 ../Downloads/tasmota-wifiman.bin </code>
Sollte man den Flash mal ganz löschen müssen (z.B. weil der Config ver
.eggdrop.ch/texts/unixtools/))
Fast jeder kennt ssh. Mit ssh kann man zu entfernten Rechnern Verbindungen aufbauen:
<code>ssh user@host</code>
Weniger bekannt ist, dass man mit ssh auch verschlüsselte Tunnels erstellen kann. Als e... das ist ein test.
</code>
Nun machen wir einen SSH-Tunnel draus! Disconnecten wir uns mit dem Client
* //Strg+Alt+T// für Terminal
*
sudo bash
cd /boot
mkdirt tmp
cd tmp
gunzip... ommentieren. Sollte dann so aussehen:
#!/bin/sh
mount -t proc proc /proc
if [ -n "$XANDROSBOOTDEBUG" ]; then
/bin/busybox sh
set -x
fi
ROOT=`cat /proc/cm... Starting debugging shell....
/bin/busybox sh
fi
#if [ -n "$XANDROSSCAN" ]; then
ialog shutdown_dialog.backup
echo -e '#!/bin/bash\nsudo /sbin/fastshutdown.sh' > shutdown_dialog
chmod +x shutdown_dialog
... er button runs a script called /etc/acpi/powerbtn.sh//
This script then calls the shutdown_dialog fil... nged it to run a script called /sbin/fastshutdown.sh//
This script kills the processes and shuts down ... Edit the 2nd line to:
sudo /sbin/fastshutdown.sh --ask
* Save (Ctrl+s) and Exit (Ctrl+q)
The g