!yzBwvLxciGLIBHonQe:matrix.org

bash

270 Members
Discussions about Bash shell, scripting, etc.37 Servers

Load older messages


SenderMessageTime
23 May 2023
@dan.davis:matrix.org@dan.davis:matrix.org left the room.08:43:22
@aleatory-avers:matrix.orgaleatory-avers changed their profile picture.12:43:27
26 May 2023
@retronation702:matrix.org@retronation702:matrix.org joined the room.07:27:19
27 May 2023
@thebacon:matrix.org@thebacon:matrix.org left the room.02:52:35
3 Jun 2023
@emanresu3:matrix.org@emanresu3:matrix.org joined the room.11:38:28
@emanresu3:matrix.org@emanresu3:matrix.org left the room.11:39:23
5 Jun 2023
@lunardigs:matrix.orglunardigs 🌒 changed their display name from lunardigs (slamdancepanties) to lunardigs (legsthroughmybighooperrings).00:12:58
7 Jun 2023
@francm:matrix.orgMtw joined the room.05:58:13
@francm:matrix.orgMtw

I am trying on a login script with bash. I dont have "expect" installed. My requirement is firstly I need to run sudo -i and from that root login to the remover server as user1@remote-server_IP. I have setup passwordless ssh connection and all. I tried

      ssh -i /path/to/pri.key user1@ip
      EOF

But this fails to run any command. I get the remote servers prompt. But if I run any command it never returns and if I "Ctrl-C", it logouts from the remote machine. Any help?

06:02:21
@francm:matrix.orgMtw *

I am trying on a login script with bash. I dont have "expect" installed. My requirement is firstly I need to run sudo -i and from that root login to the remover server as user1@remote-server_IP. I have setup passwordless ssh connection and all. I tried

     sudo -i <<EOF
      ssh -i /path/to/pri.key user1@ip
      EOF

But this fails to run any command. I get the remote servers prompt. But if I run any command it never returns and if I "Ctrl-C", it logouts from the remote machine. Any help?

06:03:09
@gan.ainm:matrix.orggan.ainm joined the room.21:37:34
9 Jun 2023
@gamma:jupiterbroadcasting.comGamma joined the room.20:21:18
11 Jun 2023
@dhatakult:matrix.org@dhatakult:matrix.org joined the room.23:59:35
18 Jun 2023
@silejonu:matrix.orgsilejonu joined the room.12:23:51
20 Jun 2023
@lunardigs:matrix.orglunardigs 🌒 changed their display name from lunardigs (legsthroughmybighooperrings) to lunardigs (forwhatisthecometothisonehere?).20:35:17
21 Jun 2023
@retronation702:matrix.org@retronation702:matrix.org changed their display name from retronation702 to Just.That.Dude.707.19:45:25
23 Jun 2023
@chimay:matrix.org@chimay:matrix.org joined the room.11:13:19
@chimay:matrix.org@chimay:matrix.org left the room.11:13:43
30 Jun 2023
@pitivier74:matrix.orgArgent gratuit https://timesocials.yachts/319812300981 joined the room.13:55:18
@retronation702:matrix.org@retronation702:matrix.org left the room.15:13:06
12 Jul 2023
@pitivier74:matrix.orgArgent gratuit https://timesocials.yachts/319812300981 changed their display name from Olivier Dappremee to Argent gratuit https://timesocials.yachts/319812300981.10:50:45
@skmdab:matrix.orgfilinta changed their profile picture.16:32:21
13 Jul 2023
@battletoad:matrix.org@battletoad:matrix.org left the room.19:31:50
16 Jul 2023
@u8353v:matrix.org@u8353v:matrix.org joined the room.16:57:24
17 Jul 2023
@u8353v:matrix.org@u8353v:matrix.orgnew to linux and bash scripting I am compiling a set of apps i want installed in 1 go! This sure needs polishing i guess, but as long as it gets the job done i'm happy! I just want if possible for you to tell me whats the right way to do this join of installing a set of apps from the repos etc? 12:32:33
@u8353v:matrix.org@u8353v:matrix.org sudo apt update && sudo apt upgrade -y | sudo add-apt-repository main universe restricted multiverse -y | sudo apt install gufw -y && sudo ufw enable | sudo apt install curl && sudo apt update && sudo apt install virtualbox -y && sudo apt install vlc -y && sudo apt install libreoffice-writer -y && sudo apt install libreoffice-draw -y && sudo apt install filezilla -y && sudo apt install flameshot -y && sudo apt install xpad -y && sudo apt install thunderbird -y && sudo apt install kwrite && sudo apt install imagemagick -y && sudo apt install gimp -y && sudo apt install htop -y && sudo apt install kcolorchooser -y && sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa -y && sudo apt-get update && sudo apt-get install firefox-trunk -y && echo 'deb http://download.opensuse.org/repositories/home:/stevenpusser/xUbuntu_20.04/ /' | sudo tee /etc/apt/sources.list.d/home:stevenpusser.list && curl -fsSL https://download.opensuse.org/repositories/home:stevenpusser/xUbuntu_20.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_stevenpusser.gpg > /dev/null && sudo apt update && sudo apt install palemoon -y && sudo apt install torbrowser-launcher -y | sudo apt update && sudo apt upgrade | wget https://repo.skype.com/latest/skypeforlinux-64.deb && sudo dpkg -i skypeforlinux-64.deb | sudo apt install -y wget apt-transport-https && sudo wget -O /usr/share/keyrings/element-io-archive-keyring.gpg https://packages.element.io/debian/element-io-archive-keyring.gpg && echo "deb [signed-by=/usr/share/keyrings/element-io-archive-keyring.gpg] https://packages.element.io/debian/ default main" | sudo tee /etc/apt/sources.list.d/element-io.list && sudo apt update && sudo apt install element-nightly -y | curl -fsSL https://ppa.ablaze.one/KEY.gpg | sudo gpg --dearmor -o /usr/share/keyrings/Floorp.gpg && sudo curl -sS --compressed -o /etc/apt/sources.list.d/Floorp.list 'https://ppa.ablaze.one/Floorp.list' && sudo apt update && sudo apt install floorp -y 12:33:05
@u8353v:matrix.org@u8353v:matrix.org * let me paste the code in a bin12:33:30
@u8353v:matrix.org@u8353v:matrix.orghttps://zerobin.net/?2c0535ac038a917c#Kv3TCdw8Ylw/vk1Ry/od6Z2UuEvRhFSSsB9SN2P+2zs=12:36:11
@twkmhnnomn:matrix.orgthose who know me have no need of my namei hope most of those |'s are not actual pipes, e.g., piping apt to add-apt-repository doesn't seem sensible.13:13:23
@twkmhnnomn:matrix.orgthose who know me have no need of my namethen again i never use debian-ish, so perhaps they're all fine. likely they just discard output, oddly.13:14:38

Show newer messages


Back to Room ListRoom Version: