#unix

1 messages · Page 19 of 1

oak shell
#

You should be able to inotifywait -e open -m /usr/bin/whatever to monitor the executable file for access (which includes executing, but also opening for read or write, and could fire multiple times per execution)

#

Then once you know the file has been accessed, assuming the process doesn't terminate "instantly", you can check the associated process id with pgrep /usr/bin/whatever, though that might report multiple PIDs if you have multiple instances of whatever running

#

You could then poll for the end of the process

#

Or attach an strace to it, but that needs sudo.

#

However, the ideal way would probably be to write a wrapper script that runs the pre- and post-tasks and calls the real executable in between, if you have that control over the system

main olive
#

hello friends! anyone using python on osx have time for a few questions?

oak shell
#

!t ask

shy yokeBOT
#
ask

Asking good questions will yield a much higher chance of a quick response:

• Don't ask to ask your question, just go ahead and tell us your problem.
• Try to solve the problem on your own first, we're not going to write code for you.
• Show us the code you've tried and any errors or unexpected results it's giving
• Keep your patience while we're helping you.

You can find a much more detailed explanation on our website.

main olive
#

lol thank, wasn't aware of that

#

if i install python through homebrew and then decide to install anaconda, would they be using both the same version of python ?

zinc bobcat
#

I don’t think they play particularly well with each other

#

I think Conda ends up taking priority since it modifies your path

main olive
#

👍 @zinc bobcat

#

Sorry i'm fairly new to this, when you guys work or tinker with python, do you actually create a self contained environment with virtualenv or anaconda everytime ? Would there be a downside to use say an idle like sublimetext or pycharm and install libraries to the new python3.7 as you go?

zinc bobcat
#

There is no downside, no

#

The advantage of virtual environments is it allows you to control things when you’re working on something more formally

#

If I’m just messing around I don’t bother with an environment, not really much point

main olive
#

hey ELA, thanks for the replies, you mind me asking what kind of setup you're using?

zinc bobcat
#

Many

#

mostly a windows 10 PC and a MBP

main olive
#

when it comes to running scripts on either computers, do you make sure you have a 1-1 copy of every dependencies on your machines or is there a magic switch to import them all with the script? 😃

zinc bobcat
#

I do it the lazy way and install them when I'm running something and it errors out when they're not found

#

I don't really use very many so it's generally consistent regardless

main olive
#

lol

gilded basalt
#

@oak shell I'm basically developing a tool to update Discord rich presence status, as a framework to plug in various things. For instance, if I open VMware, it'll update my status with the VM I'm using. So, no control over system, but inotifywait and pgrep seem useful.

#

👌

oak shell
#

well, for a Discord Rich Presence tool, I'd just resort to polling the names you're interested in with pgrep once every second (or every 5s)

#

One pgrep call is really not expensive.

#

And it's not like you have to make sure you catch a process that runs for just a millisecond

#

don't overengineer

nocturne herald
#

hi, we adviced me to try this channel so, i try.

i am writing a program to test my library writen in asm/c to compare them with the real libc functions.
so i create my libasm_builder.py:

from cffi import FFI

ffiBuilder = FFI()

ffiBuilder.cdef("""
    void    ft_bzero(void *s, size_t n);
    char    *ft_strcat(char *dest, const char *src);
    int        ft_isalpha(int c);
    int        ft_isdigit(int c);
    int        ft_isalnum(int c);
    int        ft_isascii(int c);
    int        ft_isprint(int c);
    int        ft_toupper(int c);
    int        ft_tolower(int c);
    int        ft_puts(const char *s);
    size_t    ft_strlen(const char *s);
    void    *ft_memset(void *s, int c, size_t n);
    void    *ft_memcpy(void *dest, const void *src, size_t n);
    char    *ft_strdup(const char *s);
    void    ft_cat(int fd);
    int        ft_islower(int c);
    int        ft_isupper(int c);
""")

ffiBuilder.set_source("_libasm_cffi",
    """
        #include "libftasm.h"
    """,
    libraries=['ftasm'],
    runtime_library_dirs=['/Users/avalanche/libasm/libftasm/'],
    include_dirs=['/Users/avalanche/libasm/libftasm/header/']
)

if __name__ == "__main__":
    ffiBuilder.compile(verbose=True)

so that create me my _cffi_libasm.so, and in my program i try to import it:

from _libasm_cffi import ffi, lib
from _libc_cffi import lib as libC
#

but gives me this error:

Traceback (most recent call last):
  File "libasm_tester.py", line 4, in <module>
    from _libasm_cffi import ffi, lib
ImportError: dlopen(/Users/avalanche/libasm/libftasm/lib_tester/_libasm_cffi.cpython-37m-darwin.so, 2): Library not loaded: libftasm.dylib
  Referenced from: /Users/avalanche/libasm/libftasm/lib_tester/_libasm_cffi.cpython-37m-darwin.so
  Reason: image not found
#

how come the lines

libraries=['ftasm'],
runtime_library_dirs=['/Users/avalanche/libasm/libftasm/'],
include_dirs=['/Users/avalanche/libasm/libftasm/header/']
#

in my libasm_builder.py doesn't seem to work ?

#

so my libftasm.dylib is not in the same repo as the libtester stuff

nocturne herald
#

export DYLD_LIBRARY_PATH=/path/to/lib is the solution

main olive
#

hey i'm getting started with python on linux

#

what is your setup?

main olive
#

i'm on a mac and pc, just started too

gilded basalt
#

@oak shell Yeah, that's my current approach (though using psutil in Python). I just don't like the lag to update, but 1 second really isn't that bad.

neat schooner
#

Hey! I was wondering why i was getting a permission error when trying to upload a file to my server? I'm using SFTP and the user im logging in with has 777 permissions on the folder and all of the subfolders / files on it but i still can't upload anything.

neat schooner
#

Got it working by using the root user.

neat schooner
#

I got another issue now, image files are uploading as text

#

Nvm found the issue.

green fog
#

Fairly sure you need to chown the directories to the nobody:noone

#

Or something like that

worn apex
#

check for ACLs

#

how depends on what OS exactly

vapid depot
#

only one i can find is like 10 years old and just has tons of "adbock detected" popups when i dont even have an adblock

#

it says ```1. No operating system is as user-friendly as Microsoft Windows. No one wants to write numerous lines of code if he/she can get the same work done by a few clicks. The user interface of Microsoft Windows is much better and easy to adjust as compared to the Open Source Operating Systems. This is due to the fact that Microsoft Windows is designed in such a way that even the most basic users can adjust to its interface.

  1. Windows commands a market share of around 90% while Linux is still languishing at around 1%, even today. Due to its large user base, Microsoft Windows has a wide ecosystem and supports a large number of software which provides its users an opportunity to select software programs as per their need – many of it being free software too. Open Source operating systems also have a huge collection of supported software but in comparison to Microsoft Windows, they lag behind; seeing that most of the software programs are built while taking Microsoft Windows into consideration.```
#

they dont know what a server and it is 10 years out of date

#

Open Source operating systems like the server editions based on Linux Kernel are often called the most secure operating systems. If not better in this regard, Microsoft Windows Server Editions are equally secure and they are constantly being made better day by day. The fact is because Windows is used by most people around the world, malware writers find it more profitable to attack Windows, hence it is hammered at more often. After all, why would anyone want to target 2-3% of the operating system market? oh and this gem ^

sage solar
#

hmmmmmmmmmmmmmmmmmmmmmmmmm

vapid depot
#

hmmmm my brian dont function, sary

gilded basalt
vestal jackal
#

Hi, hope you can help me out with this. I've developed and API and deployed it to a Linode server. So far so good. Then I have another app that makes GET requests to that API endpoints successfully when running it from my local computer. However, when I deploy this app to the same Linode server the API is hosted at, GET requests return 404 :S Do you know what could be the issue here?

green fog
#

Log what packets are received on the server, if they're not actually being received then check that the address you're specifying is correct

rotund fog
#

is it worth upgrading to 18.04/10

#

im still on 16.04

oak shell
#

me too

#

not sure yet

#

but I'll try it soon on my work laptop, which seems to be breaking apart with lots of issues, especially related to standby, wifi and performance recently

rotund fog
#

do you happen to have one of those nvidia optimus gpus

#

i remember having some standby issues due to the nvidia drivers

#

nouveau worked fine iirc

cold pagoda
#

I'm on 18.10

oak shell
#

I have a dedicated nvidia at home, but no issues there

cold pagoda
#

Support seems better than ever, except for one thing: I can't get my login screen on my second monitor without my system hanging on logout

oak shell
#

(except that nvidia doesn't work at all a few days after I fix it all the time)

cold pagoda
#

I have the dual thing in my laptop with 18.10

oak shell
#

but the machine with the standby issues has intel only

cold pagoda
#

Works flawlessly now, except that logout thing

#

Wait, there are a few bugs in 18.10 that were not in 18.04

#

I've customized my dock panel in Gnome (at the bottom, no extent, auto-hide), but it sometimes autohides while mouse is over it, combined with a css glitch. Happens rarely, but a alt+F2 r is required to fix it.

robust cave
#

18.04 working pretty good for me, don't want to risk going 18.10

gilded basalt
#

I had no issues going to 18.10

#

In fact, the Desktop was noticeably snappier and more responsive in my VMs

cold pagoda
#

Except for those two things above, 18.10 runs better for me, too

manic glacier
#

Is there a way to rebind key like AHK? I've been looking and the closest I've got is AutoKey

#

Should I plunge?

grave jolt
#

xbindkeys if you are still in xorg

#

but its SUPER basic

#

there are some other x specific tools as well that i dont recall off the top of my head

stark vapor
#

xdotool, although I'm not sure if it does bindings, just executes input.

grave jolt
#

otherwise your desktop environment likely has something built in

#

you can also switch to a more powerful/complex setup with like i3 or something, that type of de tend to be super customizable

manic glacier
#

KDE Neon

grave jolt
#

i imagine kde has some decent binding tools built in, but I dont use it on any of my systems atm so couldnt say what they were

manic glacier
#

¯_(ツ)_/¯

#

My script is kinda simple tbf: E to D, I to F, R to J, U to K

#

and Ctrl F6 to suspend

upper raptor
#

in fact do they? I think there are commands which don't run on mac but do in ubuntu

main olive
#

htop runs

upper raptor
#

fuser runs for you?

main olive
#

whats fuser

upper raptor
#

fuser -k 8080/tcp

main olive
upper raptor
#

I think what I am referring to are package specific commands

#

I stand corrected

#

atm, I can't think of any that won't run

main olive
#

could probaly install any unix shit

velvet trellis
#

has anyone got any experience with crontab and could help me out?

velvet trellis
#

anyone? please?

main olive
#

Why internal microphone does not work in Ubuntu 18.04? It works when I use pavucontrol and move right slider to 0, but it automaticly changing to default value in few seconds and again doesn't work

gritty stirrup
#

@velvet trellis what do you wanna do.

#

??

velvet trellis
#

so I have a cron job: */30 * * * * cd /root/organicGrowthBot && chmod u+x run.py && sudo python run.py

#

I've literally mucked around with this for 2 days now. this is the only way it's actually executing

#

i was having permissions problems I think, because it was in /root/ directory, im not too sure as im not that experienced with cron. how could I simplify this anyway? @gritty stirrup

bitter salmon
#

Freebsd, getting this message in my jail.. anyone know how to fix it.

#

Shared object "libdl.so.1" not found, required by "python3.6"

oak shell
#

on Ubuntu, I'd check what package usually provides this file and whether I have it installed and the file is where it is supposed to be

#

if not, install it

#

otherwise I'd start cursing and try to remember how to reconfigure the ld linker

bitter salmon
#

im doing a bsd upgrade on the jail

#

only thing it could be at this point I think

bitter salmon
#

yay.. it works

#

iocage upgrade libiocage -r 11.2-RELEASE

cursive dune
#

I need help

#

I keep getting Unknown option: -m
usage: python [option] ... [-c cmd | file | -] [arg] ...
Try `python -h' for more information.
Press any key to continue . . .

#

code for batch is @echo off

rem Choose correct python command to execute the OTP
ppythona -h >nul 2>&1 && (
set PYTHON_CMD=ppythona
) || (
set PYTHON_CMD=ppython
)

cd ../

rem Start the OTP using the PYTHON_CMD variable
:main
%PYTHON_CMD% -m game.AIStart
pause
goto :main

warped nimbus
bleak forge
#

I'm having a major issue with uwsgi sock file and nginx

#

there seems to be a permission issue with nginx serving the sock file

jagged orbit
#

chmod 777 file_i_want_to_run

#

gives everyone permission to read, write, append and execute that file

oak shell
#

yes

#

which is usually bad

#

you don't want world-writable files normally

main olive
#

I would indeed use u+x, or g+x, etc, depends on what's needed

#

777 can be a security hole

robust storm
#

I'm looking to start using virtualenv/virtualenvwrapper on my ubuntu subsystem, but I'm wondering- If I have my envs in ~/.virtualenvs and my project in ~/gitsrc/projectname .. can I cd into my project's git folder and activate the env in there, or does my project have to be in the virtualenv directory?

warped nimbus
#

You should be able to do workon from anywhere I think

robust storm
#

that's what im hoping, so if i do workon projectname from within my gitsrc/projectname folder, where are any pip installed modules installed to? the git folder or the main venv folder?

tulip vapor
#

actually why don't u use pipenv?

warped nimbus
#

It cd into your project directory for you

tulip vapor
#

it's a lot easier

warped nimbus
#

and then it will activate the virtualenv associated with that project

#

so all modules installed with pip will be done inside the venv

#

since, again, it activates the venv for you

tulip vapor
#

wait r u talking about pipenv?

warped nimbus
#

no

tulip vapor
#

ok

robust storm
#

to be honestly im starting fresh w/ virtualenvs.. i want to start keeping things clean rather than installing to the system python and risk messing something up

tulip vapor
#

i will actually highly recommend pipenv tho

#

u can sync requirements between different devices

zinc bobcat
#

You can do that with a regular venv too

warped nimbus
#

Anyway, did I answer your question @robust storm

tulip vapor
#

yes but the problem is he's venv is in different dir as the project does

zinc bobcat
#

That’s not a problem

tulip vapor
#

i think that's what he asked

#

or i misunderstand it

robust storm
#

@warped nimbus Yea I'm reading through it all lol.. if I'm understanding correctly, I can link a venv to a specific project folder outside of the main venv directory?

warped nimbus
#

yes

#

with -a

robust storm
#

are virtualenv and venv two separate modules?

warped nimbus
#

venv isn't a module afaik

#

it's just shorthand for virtualenv

#

and you probably meant package not module

#

but same answer applies

robust storm
#

yea that lol.. sorry been face deep in python coding lately that everything's a module to me at this point 😛

tulip vapor
#

it actually is tbh

#

every script is a module

#

but let's keep on topic

warped nimbus
#

but packages aren't modules 🤔

tulip vapor
zinc bobcat
#

venv is different from virtualenv

#

venv is in the standard library, virtualenv is external

warped nimbus
#

oh I forgot that module exists

#

I've never used it directly

tulip vapor
#

oh wait there is a difference?

warped nimbus
tulip vapor
#

cool

#

i also forget that since i use pipenv heavily

robust storm
tulip vapor
#

hmm

#

dont get it

robust storm
#

guess i have to map my python version to VIRTUALENVWRAPPER_PYTHON, install guide im using said nothing of it

tulip vapor
#

@robust storm is it ok if u use pipenv??

robust storm
#

this is all for personal use, i can use whatever lol

tulip vapor
#

try it then

#

much easier then this

robust storm
#

is it because i wasnt sudo installing? i was just doing python3 -m pip install

tulip vapor
#

sudo wont do anything tho

robust storm
#

kk

#

pipenv still requires virtualenv right? i can hose virtualenvwrapper though?

tulip vapor
#

it do need virtualenv

#

but it handles locations and paths for u

#

all u need is to pipenv shell

#

and it activates for u

robust storm
#

kk thx

warped nimbus
#

Error was probably related to not setting VIRTUALENVWRAPPER_PYTHON by the way

#

you should just do this all in .bashrc anyway

#

were you doing source yourself for testing ?

robust storm
#

so i can map, mark work_home and source all in bashrc?

warped nimbus
#

This is what I have in mine for virtualenvwrapper py export WORKON_HOME=$HOME/.virtualenvs export PROJECT_HOME=$HOME/repos/python/ source /usr/bin/virtualenvwrapper_lazy.sh

#

the project home is optional I think

#

and I didn't need to set VIRTUALENVWRAPPER_PYTHON but looks like you do

robust storm
#

would /usr/local/bin/python3 be the right path?

warped nimbus
#

maybe. just do which python3 and use that?

robust storm
#

oh its /usr/bin, alrighty then lol

tulip vapor
#

cool

robust storm
warped nimbus
#

I don't those (log?) messages but maybe it's fine yeah

robust storm
#

i only got it on first relaunch, it's not doing it again, guessing since theyre already created

warped nimbus
#

fair enough

main olive
#

I think You can only make an OS with C++ or assembly, not python which is sad 😦

tulip vapor
#

what is C then?

sage solar
#

you can make an Operating System with any language that can compile into a freestanding binary

#

which includes C/C++ assembly Rust etc

worn apex
#

well

#

has to be able to compile into a freestanding binary and give you adequate access to low-level cpu services (generally by being combined with assembly, either inline or in linked files, though there were some C compilers that would directly let you compile a function as an interrupt service routine instead of a normal subroutine etc)

oak shell
#

stuff like the initial boot loader stage would still be done by hand in assembler, because there it matters what byte ends up where exactly

robust storm
#

@main olive Thanks for the tip. Luckily I'm doing this on a windows subsystem install, so if need be I can just reset it and start over.

#

Yea, I wasn't sure where to put the question, because it is linux, but its through windows? I do have ubuntu full loaded on a laptop though, so that tip won't go to waste. Just for reference though, what kind of stuff does get sudo installed? Just apt-get things?

main olive
#

Never sudo yaourt -Sy things either

zinc bobcat
#

!warn 136174338633105408 Giving out commands to wipe people's drives

shy yokeBOT
#

:ok_hand: warned @jagged orbit (Giving out commands to wipe people's drives).

jagged orbit
#

oh

#

how many of those can i get @zinc bobcat

#

sry bout that

zinc bobcat
#

There's no set number

jagged orbit
#

oh ok

zinc bobcat
#

While people should know better, there are plenty of cases in the history of the internet where people have blindly run things like that

#

So let's not

jagged orbit
#

yeah forgot that theres ppl like that

#

sry

long vault
#

Does anyone here know how to instill IRAF on ubuntu?

chrome stag
#

sorry

#

Posted on August 3, 2018

main olive
#

when i run

gcc -I/usr/include/python3.6 -o test test.c -lpython3.6

it doesnt work, but when i replace both of the python3.6 s with 2.7s it works how do i get it to work with py3.6 as well

vagrant fern
#

we can't help you from "it doesn't work"

#

need more information

main olive
#
/usr/bin/ld: can not find '-lpython3.6'
#

there you og

#

go*

tulip vapor
#

not sure if it your problem but i found this on stackoverflow

main olive
#

read it, cant understand it

tulip vapor
#

sorry but i can't either...

main olive
#

hey guys im in an emergency need help quick

#

anyone?

sage solar
#

Just ask

oak shell
#

(2h later)

#

he might be dead already

sage solar
#

At least I tried

oak shell
#

have a 🍪

sage solar
#

takes cookie

long vault
#

@chrome stag Sorry to ping you for this, but do you know why this happens and how to fix it?

#

I followed the steps in the instructions but it doesnt know the command

gritty stirrup
#

@long vault mkdir iraf

#

???

grave jolt
#

did you activate iraf27

#

looks like an issue with your PATH not getting updated

long vault
#

I already did mkdir iraf

#

I also did $ source activate iraf27

chrome stag
#

@long vault Np man

#

Let me take a look

#

oh god

#

They're using python 2.7

#

Do you have python 2.7 installed, @long vault ?

long vault
#

don't think so, only installed the dual boot 2day

chrome stag
#

try to type in a new console python2

#

and tell me if it shows python 2.7

#

If you check the first comment it seems there's a guy with your problem too

long vault
#

Command 'python2' not found, but can be installed with:

sudo apt install python-minimal

casper@casper-GL553VD:~$ 
chrome stag
#

sudo apt install python-minimal

#

try to install it and reenter with source activate

#

if it's still not working, try

#

sudo apt install iraf pyraf

#

btw, reading the comments they say:

#

Since Ubuntu 18.04 (and in the upcoming Debian Buster), iraf and pyraf are contained in the distribution, and can be installed directly with "apt install iraf pyraf". Compared to the original version, it has a lot of bugs fixed. That should make installation much easier. If you find any problems, please report back.

#

So it's seems that you don't need to do any of this

long vault
#

I used that, but that doesnt fix the mkiraf command

chrome stag
#

ok, give me a sec

long vault
#

or do I not even need to do it?

#

with that command?

chrome stag
#

No, you don't

#

All this fugazzi was because it wasn't supposed to be in the repos

#

if it is in the repos, you install it with apt-get install iraf pyraf

#

wait for it to install, and you browse iraf in your app menus

#

or type iraf in a console

#

I'm certain that in debian testing it works out of the box

#

pyraf too, in case you need it

#

but it seems you need to install saods9 with sudo apt install saods9 or apt-get install saods9

#

The DS9 software can be used together with iraf. For this, before starting iraf type:

& ds9 &

The fits images can be visualized in DS9 via the display command on iraf.

#

I don't know what ds9 is, but you can launch it with ds9. Don't follow his example because the & thing, not completly detaches the program. So your best bet it's two terminals or two tabs opened with both commands

long vault
#

I type apt-get install soads9 in a new terminal I suppose

chrome stag
#

with the sudo, there's no need for a new terminal

#

If you want I can make you a list of the things you need to do

#

sudo apt-get install saods9 iraf pyraf -y #Installs the packages

#

ds9 #type this before launching any of the two programs, it has some image funcionality that I don't know of

#

and then you either:

#

iraf

#

or

#

pyraf

#

in a new terminal

#

1 term with ds9, other term with iraf or pyraf

#

makes sense?

long vault
#

It says source activate iraf27

#

woops

chrome stag
#

you don't need to do that anymore

long vault
#

thats what it says

chrome stag
#

what or where does it says that?

long vault
#
[sudo] password for casper: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package soads9
E: Unable to locate package pyraf
casper@casper-GL553VD:~$ ^C
casper@casper-GL553VD:~$ 
chrome stag
#

type:

#

lsb_release -a

#

and copy the output

long vault
#
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:    18.04
Codename:    bionic
casper@casper-GL553VD:~$ 

chrome stag
#

sudo apt-get update && sudo apt-cache search iraf

#

and copy the output

long vault
#
Hit:1 http://nl.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://nl.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://nl.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Fetched 83,2 kB in 2s (47,0 kB/s) 
Reading package lists... Done
cpl-plugin-giraf - ESO data reduction pipeline for the GIRAFFE instrument
cpl-plugin-giraf-calib - ESO data reduction pipeline calibration data downloader for GIRAFFE
cpl-plugin-giraf-doc - ESO data reduction pipeline documentation for GIRAFFE
iraf - Image Reduction and Analysis Facility
iraf-dev - Image Reduction and Analysis Facility (development files)
iraf-noao - IRAF NOAO data reduction package
iraf-noao-dev - IRAF NOAO data reduction package (development files)
iraf-rvsao - IRAF package to obtain radial velocities from spectra
iraf-wcstools - Handle the WCS of a FITS image (IRAF package)
libwcstools-dev - Handle the WCS of a FITS image (development files)
libwcstools1 - Handle the WCS of a FITS image (shared library)
python-pyraf - Python 2 interface for IRAF
python3-pyraf - Python 3 interface for IRAF
swarp - Resample and co-add together FITS images
wcstools - Handle the WCS of a FITS image
casper@casper-GL553VD:~$ 
chrome stag
#

sudo apt-cache search soads9

#

and the output

long vault
#

no output

chrome stag
#

ok

#

so

#

sudo apt-get install iraf iraf-naoao iraf-rvsao python3-pyraf && iraf

long vault
#
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package iraf-naoao
casper@casper-GL553VD:~$ 
chrome stag
#

wth it shows in the cache

#

my bad

#

sudo apt-get install iraf iraf-noao iraf-rvsao python3-pyraf && iraf

#

now it should work

#

I think you want to replace it with pyraf instead of iraf, but for me both are speaking in alien

long vault
#

well I need iraf to work

chrome stag
#

haha

#

That program is really weird

long vault
#
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree       
Reading state information... Done
iraf is already the newest version (2.16.1+2018.03.10-2).
iraf-noao is already the newest version (2.16.1+2018.03.10-2).
iraf-noao set to manually installed.
python3-pyraf is already the newest version (2.1.14+dfsg-6).
python3-pyraf set to manually installed.
The following NEW packages will be installed:
  iraf-rvsao
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 4284 kB of archives.
After this operation, 15,8 MB of additional disk space will be used.
Get:1 http://nl.archive.ubuntu.com/ubuntu bionic/universe amd64 iraf-rvsao amd64 2.8.3-1 [4284 kB]
Fetched 4284 kB in 2s (2446 kB/s)     
Selecting previously unselected package iraf-rvsao.
(Reading database ... 174584 files and directories currently installed.)
Preparing to unpack .../iraf-rvsao_2.8.3-1_amd64.deb ...
Unpacking iraf-rvsao (2.8.3-1) ...
Setting up iraf-rvsao (2.8.3-1) ...
iraf: command not found
casper@casper-GL553VD:~$ 
chrome stag
#

iraf command not found

#

well, at least it's all installed

#

hmmm

#

type: whereis iraf

#

I think that was the command

#

if it doesn't give it an output, which iraf

long vault
#
iraf: /usr/lib/iraf /etc/iraf
casper@casper-GL553VD:~$ 
chrome stag
#

so it is there

#

ok, try

#

/usr/lib/iraf

long vault
#

try where? (sorry i dont know anything about linux)

chrome stag
#

don't worry

long vault
#

is type it in the terminal??

chrome stag
#

like that, type it in the terminal

#

yes, seems weird

#

but it's supposed to work

#

if it works we will make it easier, don't worry

long vault
#
bash: /usr/lib/iraf: Is a directory
chrome stag
#

ok

#

so ls /usr/lib/iraf

#

and let's see what's inside

long vault
#
bin  dev  extern  lib  local  math  noao  pkg  sys  unix
casper@casper-GL553VD:~$ 
chrome stag
#

ls -lsha /usr/lib/iraf/*

long vault
#
total 48K
4,0K drwxr-xr-x  12 root root 4,0K nov 24 20:56 .
4,0K drwxr-xr-x 133 root root 4,0K nov 24 20:58 ..
4,0K drwxr-xr-x   2 root root 4,0K nov 24 20:56 bin
4,0K drwxr-xr-x   2 root root 4,0K nov 24 20:56 dev
4,0K drwxr-xr-x   3 root root 4,0K nov 24 22:05 extern
4,0K drwxr-xr-x   3 root root 4,0K nov 24 20:56 lib
4,0K drwxr-xr-x   4 root root 4,0K nov 24 20:56 local
4,0K drwxr-xr-x   9 root root 4,0K nov 24 20:56 math
4,0K drwxr-xr-x  20 root root 4,0K nov 24 20:56 noao
4,0K drwxr-xr-x  16 root root 4,0K nov 24 20:56 pkg
4,0K drwxr-xr-x  19 root root 4,0K nov 24 20:56 sys
4,0K drwxr-xr-x   4 root root 4,0K nov 24 20:56 unix
casper@casper-GL553VD:~$ 
chrome stag
#

with the *

#

the * means any directory

long vault
#
-lsha: command not found
casper@casper-GL553VD:~$ 
chrome stag
#

so I can see what's inside of each, in case it isn't in bin

long vault
#

hm

chrome stag
#

with the ls

#

you're an astrophysicist, I'm pretty sure you're not

long vault
#

thing its too long for disc

chrome stag
#

ok

#

so

#

cd /usr/lib/iraf

#

and

#

ls bin/*

long vault
#
casper@casper-GL553VD:/usr/lib/iraf$ ls bin/*
bin/cl.e        bin/x_imdkern.e    bin/x_plot.e      bin/x_tv.e
bin/ecl.e       bin/x_lists.e      bin/x_proto.e     bin/x_utilities.e
bin/irafks.e    bin/x_mkttydata.e  bin/x_sgikern.e   bin/x_vol.e
bin/x_color.e   bin/x_ncar.e       bin/x_softools.e
bin/x_dataio.e  bin/x_nttools.e    bin/x_stdgraph.e
bin/x_images.e  bin/x_obsolete.e   bin/x_system.e
casper@casper-GL553VD:/usr/lib/iraf$ 
chrome stag
#

ls unix/*

long vault
#
unix/bin:
alloc.e    sgi2svg.e   sgi2ueps.e   sgi2uhplj.e  sgi2uptx.e  sgi2xbm.e
sgi2gif.e  sgi2uapl.e  sgi2uhpgl.e  sgi2uimp.e   sgi2uqms.e  sgidispatch.e

unix/hlib:
allocate.cl   clpackage.men  extern.pkg   mkiraf.sh   util.sh
cllogout.cl   deallocate.cl  extpkg.cl    mkmlist.sh  zzsetenv.def
clpackage.cl  devstatus.cl   gripes.cl    motd
clpackage.hd  diskspace.cl   irafarch.sh  spy.cl
casper@casper-GL553VD:/usr/lib/iraf$ 
chrome stag
#

find . | grep iraf

long vault
#
./dev/irafhosts
./unix/hlib/irafarch.sh
./unix/hlib/mkiraf.sh
./bin/irafks.e
./pkg/proto/irafil.par
./pkg/proto/suntoiraf.par
./pkg/proto/doc/suntoiraf.hlp
./pkg/proto/doc/irafil.hlp
casper@casper-GL553VD:/usr/lib/iraf$ 
chrome stag
#

really makes you think

#

pyraf

#

type cl

#

there you have your iraf

long vault
#

Command 'cl' not found, but can be installed with:

sudo apt install cl-launch

casper@casper-GL553VD:/usr/lib/iraf$ 
#

just instal it?

chrome stag
#

type pyraf

#

first

#

I'm gonna check what's cl-launch

#

ok

#

pyraf shouldn't work, right?

long vault
#

well it did something

chrome stag
#

can you screenshot it?

long vault
#
  
This package contains tasks for viewing and manipulating 3d images. 
It is a pre-release version, and does not reflect the ultimate 
partitioning of n-dimensional image tasks within IRAF 
  


  NOAO/IRAF Debian 2.16.1+2018.03.10-2 Wed, 14 Mar 2018 09:02:35 +0000

  This product includes results achieved by the IRAF64 project in 2006-
  2009 directed by Chisato Yamauchi (C-SODA/ISAS/JAXA).

  Welcome to IRAF.  To list the available commands, type ? or ??.  To get
  detailed information about a command, type `help <command>'.  To run  a
  command  or  load  a  package,  type  its name.   Type  `bye' to exit a
  package, or `logout' to get out  of the CL.

  Visit http://iraf.net if you have questions.

  The following commands or packages are currently defined:
 
clpackage/:
 clpackage/     images/         noao/           proto/          user/
 dataio/        language/       obsolete/       rvsao/          utilities/
 dbms/          lists/          plot/           system/
PyRAF 2.1.14 Copyright (c) 2002 AURA
Python 3.6.7 Copyright (c) 2001-2018 Python Software Foundation.
Python/CL command line wrapper
  .help describes executive commands
--> 
chrome stag
#

ok, i understand it now

#

python/cl command line wrapper, see?

long vault
#

yes

chrome stag
#

So you need to go to iraf's working directory (which I don't think it is where it's installed because you would need sudo/root for that and basically glue it with a terminal

#

Do you need iraf specificly or could you use the python wrapper?

long vault
#

I need iraf

chrome stag
#

ok, don't do this at home

#

type sudo su

#

and put your password

long vault
#

clear the window first because im in pyraf now arent I?

chrome stag
#

ah, yeah, you're stuck there

#

open a separate terminal, type:

#

killall pyraf

#

close it

#

it should say killed in your previous one

#

type reset

#

and then type sudo su

#

once you have your password (because I don't know if it's still inside that) we're gonna to switch again to iraf's director

#

so cd /usr/lib/iraf

#

once there you should be able to type

#

mkiraf

long vault
#
root@casper-GL553VD:/usr/lib/iraf# 
``` it doesnt ask me for my pw
chrome stag
#

maybe it's because it's cached

#

you don't need to do the cd part

#

type mkiraf directly

long vault
#

still not found pepe

chrome stag
#

pepe 🔫

#

ok

#

do this

#

cd /

#

find . | grep mkiraf

#

It's gonna take a while

#

copy the output

long vault
#
bash: cd/: No such file or directory
root@casper-GL553VD:/usr/lib/iraf# 
chrome stag
#

look at what I wrote

long vault
#

oh did i miss a space?

chrome stag
#

yeah

#

click on expires in 7 days

#

and switch to 1 day

#

paste it there and send it to me by a pm, in case there's something the channel doesn't need to read

long vault
#
./home/casper/miniconda3/pkgs/iraf-2.16.UR.1-0/iraf/unix/hlib/mkiraf.sh
./home/casper/miniconda3/pkgs/iraf-2.16.UR.1-0/iraf/unix/hlib/mkiraf.csh.in
./home/casper/miniconda3/pkgs/iraf-2.16.UR.1-0/bin/mkiraf
find: ‘./run/user/1000/gvfs’: Permission denied
chrome stag
#

that's normal

#

it's that it?

#

that was fast

long vault
#

oh and ```./usr/lib/iraf/unix/hlib/mkiraf.sh

chrome stag
#

there's your command

#

type exit

#

sudo -K

#

and then

#

/usr/lib/iraf/unix/hlib/mkiraf.sh

#

no

#

wait

#

cd /usr/lib/iraf

#

and then /usr/lib/iraf/unix/hlib/mkiraf.sh

#

if it doesn't work

#

./usr/lib/iraf/unix/hlib/mkiraf.sh

long vault
#
casper@casper-GL553VD:/usr/lib/iraf$ cd /usr/lib/iraf
casper@casper-GL553VD:/usr/lib/iraf$ /usr/lib/iraf/unix/hlib/mkiraf.sh
/usr/lib/iraf/unix/hlib/mkiraf.sh: line 72: cd: /build/iraf-wlsLkZ/iraf-2.16.1+2018.03.10/: No such file or directory
Error: current directory is not an iraf user login directory
casper@casper-GL553VD:/usr/lib/iraf$ ./usr/lib/iraf/unix/hlib/mkiraf.sh
bash: ./usr/lib/iraf/unix/hlib/mkiraf.sh: No such file or directory
casper@casper-GL553VD:/usr/lib/iraf$ 

``` linux is a struggle
chrome stag
#

"cd: /build/iraf-wlsLkZ/iraf-2.16.1+2018.03.10/: No such file or directory"

#

u wut m8

#

who the hell packaged this trash

long vault
#

idk nuu

chrome stag
#

ok, I'm going to translate you what's the problem

long vault
#

english please

chrome stag
#

Yes, in plain english

#

In Linux we have some guys called maintainers. Because they're few and between, a lot of packages just break

#

Then we have some random people that make programs, others that take this programs and make it in a way that you can install it

#

most of the times the maintainers don't look at those "programs that they made a way for you to install"

#

so this guy packages the program at /build...bla and it left that line there

#

So you cannot install it

#

So, the thing is. Yeah, I can fix this basically teaching you to compile the program from scratch and knowing what the program actually does, because I don't have a single idea

#

Or you can ask the maintaners, in this case, it seems to be NASA, to fix it

#

but this seems to be very old and outdated

long vault
#

it is

#

be astrophycisist are stuborn and dont wanna use anything else

#

so we also have to learn to use it

chrome stag
#

But do they have it installed in their computers?

long vault
#

but i can't learn to use it if i can't get it to work

chrome stag
#

Ask them how they did it

long vault
#

its installed on all computers in our building

chrome stag
long vault
#

but I want it on my laptop so I'm not dependend on those computers

chrome stag
#

even gentoo doesn't have it

#

let me search for a second

long vault
#

we need it to proces imagines from our telescope

chrome stag
#

yeah, but you couldn't even process it if you got installed

#

because you need the ds9 thing for the images itself

#

do they use ubuntu in your building?

long vault
#

yes

#

they recommended ubuntu for our python course and we need it for iraf

chrome stag
#

that's pyraf

#

which you have already working

#

you actually have iraf too, it's just not workable with the shell

#

try this

#

type iraf in a console

#

and click tab

long vault
#

I got a document that explains how to use it, and I used it on the campus computers

chrome stag
#

and let's see if the problem it's that it's callable with another command

long vault
#
iraf: command not found
casper@casper-GL553VD:/usr/lib/iraf$ 

chrome stag
#

no, no

#

not enter

#

the tab

long vault
#

when i press tab i get a cl behind it and when i pressed enter it have me this

chrome stag
#

congrats

#

that's your iraf LOL

#

Wth that was difficult

#

if you write something like implot dev$pix

#

it does some iraf thing

long vault
#

but I need it in an xterm

chrome stag
#

that's xterm

#

that's a terminal, yes, it is not "xterm"

#

but they're all the same

long vault
#

the prof was very strict about it

#

we need to open an xterm

#

and in that we open iraf

#

or however that works

chrome stag
#

He seems german

#

ok

#

easy

#

open another terminal

#

type

long vault
#

swedish

chrome stag
#

sudo apt-get install -y xterm

#

once it finishes

#

xterm

#

and then you do the thing with the tab

long vault
#

is it any different?

sage solar
#

no its just with more parameters

chrome stag
#

I mean, it's whatever

#

Type it instead

#

But be careful to not close the previous window because the & thing is not going to detach it correctly

#

I think they're forcing you to use xterm because some distros don't have other terminals

long vault
#

but i just need to type irafcl in the xterm

chrome stag
#

yes

#

sb and sl it's a stuff related to scrolling

#

well, more likely because that's what they teached him 20 years ago

long vault
#

already found a problem 😩

sage solar
#

🥁

chrome stag
#

let me guess, it works like shit inside xterm

long vault
#

this is what he tells me to do

#

but there is that stupid mkiraf command again

#

which still doesnt work

chrome stag
#

Tell your professor that you tried to do that in the first place, and you couldn't get it to work. So you actually followed the instructions that the debian maintainers provide to the ubuntu one's and you got it to work

#

tell him that those bugs are already fixed

tawny sky
#

You really could do with a more eloquent dictionary

chrome stag
#

yeah, try to be polite

#

Not be like me, I'm rude

long vault
#

but the problem is that I now can't get to the login.cl file

chrome stag
#

he's trying to fix a bug in that program

long vault
#

and I need to change something inside so the program doesnt crash with large files

chrome stag
#

you can actually do it if you want, but you're gonna probably... Fuck it up, to be short

long vault
#

I did it on the campus computers

chrome stag
#

I don't think anybody in your class could install that the way your professor wants

long vault
#

but there the mkiraf worked fine

chrome stag
#

because they installed it like this guy:

#

but without an enviorement

#

and they glued all together

#

That's a very very bad practice

long vault
#

I should tell em

chrome stag
#

If I were you, I would install a separate ubuntu just for class

long vault
#

I only need ubuntu for this

chrome stag
#

And then you can do whatever inside there, because it's just for class, and if you suddenly need to replace a system library you don't care

#

ah ok

sage solar
#

(or make a vm) (or a chroot env)

chrome stag
#

I don't think his professor wants him to do that

long vault
#

I used a vm but it failed to install iraf itself in the first place

sage solar
#

are you actually supposed to do this on ubuntu

chrome stag
#

Yes lol

#

Nix, help him uninstall everything, I'm going to go to eat dinner (10 minutes).

#

Casper, if you can, make a photo of the whole instruction manual and I will help you follow it step by step

sage solar
#

(ill take a photo too)

chrome stag
#

@sage solar quite probably he has to install it from sources

sage solar
#

sounds fun

chrome stag
#

and this thing is from 2012

long vault
#

oh its much oklder

#

older*

#

its 25 years old

sage solar
#

at least its not old RAID chip drivers from 2002 you can only get as outdated rpms....

long vault
#

but they made some minor changes in 2012

chrome stag
#

tell him to install build-essential because that's gonna take a while

sage solar
#

usually not

#

anyway could you show us the whole manual of what you are supposed to do?

long vault
#

I can send a ss of it but I can't send the file itself

sage solar
#

as long as it contains everything ¯_(ツ)_/¯

long vault
sage solar
#

(and is readable)

long vault
chrome stag
#

That implies that iraf is already installed

#

Is your professor going to inspect your laptop?

long vault
#

no

sage solar
#

yes

chrome stag
#

See?

sage solar
#

whatever a huygensgebouw is

long vault
#

is our uni building

chrome stag
#

You already have it installed and configured, but we can revert the image thing to the old setting

#

It's probably going to fail, but we can try

sage solar
#

i am surprised i typed that correctly enought to give me google results.......

long vault
#

but I also need ds9

chrome stag
#

Yeah, I know

oak shell
#

I'd guess "gebouw" is Dutch for "building"

long vault
#

it is

oak shell
#

yay

long vault
#

smart man

sage solar
#

german dutch mutation skills there

oak shell
#

nah, just German 😛

long vault
#

nvm then

chrome stag
#

So

oak shell
#

Gebäude

chrome stag
#

Should we move on?

sage solar
#

after i said that Gebäude sounds better in my head yes

long vault
#

but do I need to be able to change stuff in the login.cl? since iraf works

chrome stag
#

Stop distracting him, he needs to wörk

#

@long vault Its your choice

#

I can help you with that, my autistic screeching (sorry, I learn English through memes, I cannot say it in another way, don't be offended I love you all) was because you're gonna edit that with super user permissions

#

And that's in short no good

#

No wonder how the chinese steals all the info from researchers

#

If you're forcing the people you're teaching to use root like it's nothing

#

anyway

long vault
#

like if i get ds9 to work i think ill be set

chrome stag
#

go to the terminal and type

#

pwd

long vault
#

the xterm or the other?

chrome stag
#

Close the xterm first, directly

sage solar
#

(what is the full name of ds9 so i dont get deep space 9 as google results)

chrome stag
#

saods9

#

The funny thing is that the problem is that it's not on path

#

it's already installed

long vault
#

its the program that actually displays the image

#

its weird

chrome stag
#

paste the output of pwd

sage solar
#

when did we find out its installed

#

and how

long vault
#
/home/casper
casper@casper-GL553VD:~$ 
chrome stag
#

Ok, you seem to have closed the wrong terminal

#

sudo su

long vault
#

oh sheit

chrome stag
#

password

long vault
#

got it

chrome stag
#

cd /usr/lib/iraf

sage solar
#

how did you install ds9?

chrome stag
long vault
#
[sudo] password for casper: 
root@casper-GL553VD:/home/casper# cd /usr/lib/iraf
root@casper-GL553VD:/usr/lib/iraf# 
#

right so fat

#

far*?

chrome stag
#

yes

sage solar
#

strachi how did you make him install ds9

chrome stag
#

nix, please let's follow an order, browse -y

long vault
#
./pkg/ecl/login.cl
./pkg/cl/login.cl
root@casper-GL553VD:/usr/lib/iraf# 
chrome stag
#

ok, you want to edit the cl one

#

but

#

if you edit the cl one, like the pdf says, python is gonna to be unaffected

#

but that's really not your problem

#

we can edit both, but that's not what your pdf says

long vault
#

the pdf says to do it with a text editor

sage solar
#

yknow

chrome stag
#

don't do that

#

the nix thing

long vault
#

well he does have unix in his name so its very tempting

chrome stag
#

did you ever used nano, @long vault ?

long vault
#

i dont even know what it is

chrome stag
#

ok, promise me this is only for university

oak shell
#

That should become an ot-name

chrome stag
#

write gedit pkg/cl/login.cl

oak shell
#

#ot0-don't-do-the-nix-thing 😛

long vault
#

and just hit enter?

chrome stag
#

yes

long vault
#

alright it opened

chrome stag
#

That will expose the whole x11 stack to root, like professionals

sage solar
#

its Nix Is uniX please, its a recursive acronym @oak shell

long vault
#

I can now just change it like the pdf says?

chrome stag
#

yes

#

I was searching it

long vault
#

alright lemme do that

oak shell
#

I don't have to expand the acronym

sage solar
#

that is very mean

long vault
#

alright im done with the file

chrome stag
#

Ok, do you know how to save it?

long vault
#

i pressed save

chrome stag
#

ok, close it

long vault
#

just like i did on the campus computers

chrome stag
#

press enter on the terminal

#

type reset

#

exit

#

sudo -K

#

and reset again, that would kill the garbage gnome would have leaved

long vault
#

oke its basicly a new window now

chrome stag
#

type whereis saods9

long vault
#
saods9: /usr/share/saods9
casper@casper-GL553VD:~$ 

chrome stag
#

give me a sec

#

type

#

whereis pikachu

#

and

#

whereis apertium-ita

long vault
#

for real?

chrome stag
#

yes

#

I want to verify what is ubuntu doing

long vault
#

better not be trolling xd

chrome stag
#

I can explain what I am doing

long vault
#
saods9: /usr/share/saods9
casper@casper-GL553VD:~$ whereis pikachu
pikachu:
casper@casper-GL553VD:~$ whereis apertium-ita
apertium-ita:
casper@casper-GL553VD:~$ 
chrome stag
#

usr/share is not a place where you put a binary, it's usually information related, probably apt is refering to that directory to uninstalled packages

#

pikachu is a package that shouldn't exist on the repos

#

and apertium-ita exists on the repos

#

so it's really in share lol

#

ok

#

cd /usr/share/saods9

#

ls -lsha *

#

and

#
ls -lsha */*
long vault
#

for the first one i get a lot of stuff back

chrome stag
#

ok, let's do one thing

#

sudo apt-get install -y wgetpaste

long vault
#
[sudo] password for casper: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package wgetpaste
casper@casper-GL553VD:/usr/share/saods9$ 
chrome stag
#

one sec

#
ls -lsha * | curl -F "sprunge=<-" http://sprunge.us
#

that will return a link with the output

long vault
#

i need to install curl first

#

1 sec

chrome stag
#

sudo apt-get install -y curl

long vault
#

whats the -y?

chrome stag
#

forces to say yes

long vault
#

ah

#

sounds usefull

#
curl: (6) Could not resolve host: sprunge.us+
casper@casper-GL553VD:/usr/share/saods9$ ```
#

after I installed curl

chrome stag
#

without the +

long vault
#

oh

chrome stag
#

god, why do people do this

long vault
chrome stag
#

you're ok casper-san

#

"All versions and platforms support a consistent set of GUI and functional capabilities. "

sage solar
#

(ill have an ubuntu 18.04.1 ISO downloaded in under a minute an will try to set things up myself)

chrome stag
#

🤔 🔫

long vault
#

I swear this is way more difficult than the actual physics

chrome stag
#

it's only because it's your first time

#

I've doing this since I was 8

long vault
#

I was still eating sand back then

chrome stag
#

Don't get me wrong, I spent half my infancy, maybe more making fortress at the beach

#

Let me reboot to Mac, I don't have a terminal here

long vault
#

aight

sage solar
#

woah

#

drum roll on installation start of ubuntu

chrome stag
#

what's that?

#

-bash: unzip: command not found. Come on lol

sage solar
#

its ofc not installed per default

#

you wont find many zips in hte unix world

chrome stag
#

wth, how are they compressing .debs in the $currentyear?

sage solar
#

i know that rpms are using lots of fancy cpio and gzip stuff

#

although there is currently a proposal for changing that so who knows.....

chrome stag
#
n:~/borrar# ls *
bin  share
#

@long vault whereis ds9

#
~/borrar/usr/bin# cat ds9
#!/bin/sh
exec wish -f ${DS9_HOME-/usr/share/saods9}/library/ds9.tcl $*
#

Can you believe this @sage solar ? And they don't even bother to link it with the package's name

sage solar
#

¯_(ツ)_/¯

chrome stag
#

remember that he's supposed to execute this on xterm

sage solar
#

people are weird

long vault
#

you want me to type whereis ds9?

chrome stag
#

yes

sage solar
#

ubuntu ins(ane)tallation is runnning

long vault
#

in a normal ter?

chrome stag
#

yes

sage solar
#

it doesnt matter does it?

long vault
#

idk

#
ds9: /usr/bin/ds9 /usr/share/man/man1/ds9.1.gz
casper@casper-GL553VD:~$ 
chrome stag
#

ok

#

let's simplify this for our sanity

long vault
#

I don't have any sanity left

#

I started the weekend with the idea that this would go easy

sage solar
#

i am quite sure that this is in fact easy

chrome stag
#

everytime your manual says saods9 you're gonna type ds9. I know, I know, you can make aliases, and links, but let's see first how many students actually install that before we do this two days from now

#

So, this is what you need to do

#

close everything that has a terminal name on it

#

open a new terminal

#

write xterm and the other stuff your prof wants

#

type ds9

#

go to the previous terminal

#

click a new tab

#

write xterm and the other fancy stuff

#

and then open iraf

long vault
#

ds9 is the xterm right?

chrome stag
#

and that should be like your professor wants it

#

yes

gritty stirrup
#

Why use zip

long vault
#
ds9: /usr/bin/ds9 /usr/share/man/man1/ds9.1.gz
casper@casper-GL553VD:~$ 
gritty stirrup
#

just use tar

long vault
#

sshit

#

it didbnt copy

#

lemme s

#

s

#

ss

chrome stag
#

@gritty stirrup deb files are not tar

sage solar
#

ok ubuntu installation is done

#

ill try this now

chrome stag
#

we've already finished

#

in theory

long vault
#

this is what the xterm window does

chrome stag
#

can't find package xml

long vault
#

I can't find it either

#

its not on my desk

chrome stag
#

no, i'm just repeating it to myself

#

ok, type this in a new one

long vault
#

new xterm or normal?

chrome stag
#

normal

long vault
chrome stag
#

switch $ds9(wm) {
    x11 {
    # set to absolute path so that if -cd command is used,
    # so we can still find our files
    set ds9(root) [file normalize [file join [file dirname [info script]] ..]]
    set ds9(doc) "/usr/share/doc/saods9-doc"

    package require msgcat
    package require http
    source $ds9(root)/library/htp.tcl
    package require xml

    package require base64
    package require log
    package require ftp
    package require textutil::repeat
    package require textutil::tabify
    package require math::fuzzy

    package require tkcon
    package require tkblt
    package require tksao
    package require tkhtml1
    package require tcliis
    package require tclcheckdns
    package require tkmpeg
    package require Tktable
    package require tclxpa
    package require Signal

    package require img::base
    package require img::jpeg
    package require img::tiff
    package require img::png
    package require img::gif
    package require img::ppm
    package require img::bmp
    package require img::xbm
    package require img::window
#

TCL is a file extension for a script written in TCL. TCL (also pronounced tickle) stands for Tool Command Language. TCL files are text files containing TCL scripts. TCL is a dynamic open source language used for building web and desktop applications. Whether on Windows, Mac OS X, or Linux operating systems, TCL files can be opened and edited by WISH and TCLSH.

#

Welcome to 1980

#

Copyright © 1993 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.
Copyright © 1995-1997 Roger E. Critchlow Jr.

#

sorry, welcome to 1997

#

this is why your professor wants to be sure to use xterm

sage solar
#

god ubuntu performs so shitty......

chrome stag
#

install gont00

sage solar
#

yes but he is on ubuntu

long vault
#

type install gont00 in the terminqal?

chrome stag
#

@long vault apt-cache search tcl | grep xml

#

@long vault I wish, no, no. that was for nix

long vault
#

oh

#

apt-cache search tcl | grep xml in the terminal i suppose

chrome stag
#

    Gnome libxml2 library. This package is known as TclXML/libxml2.

    A generic Tcl implementation (which does not require compilation). This package is known as TclXML/tcl.
#

@sage solar

#

@long vault yes

long vault
#
tcl-xmlrpc - XML-RPC implementation for Tcl
tclxml - Tcl library for XML parsing
tclxml-dev - Tcl library for XML parsing - development files
casper@casper-GL553VD:~$ 

sage solar
#

libxml is pretty common

#

isnt it?

chrome stag
#

sudo apt-get install tclxml tcl-xmlrpc tclxml-dev

#

apt-cache search libxml

#

@sage solar No, no, they took the library and they ship it separatly

long vault
#

k both done

chrome stag
#

that's why I'm also installing the dev package and then the xml library separetly

#

@long vault apt-cache doesn't give an output?

long vault
#

a really long one

#

too long for discord

chrome stag
#

sudo apt-get install libxml libxml2

sage solar
#

this ui is so fucking unresponsive

#

this was a huge mistake

chrome stag
#

And with that, I'm going to take my dinner

#

give me a few minutes

#

In theory once you do that

#

you go to the xterm

#

type ds9

#

and it should work or cry again

long vault
#

"in theory"

chrome stag
#

depending on the things I posted before

#

the long paste

#

@long vault I hope you discover what oumuamua is with this

long vault
#

is it me or can things never go right the first time with computers

chrome stag
#

Whereis tclxml

#

Without the capital letter

long vault
#
tclxml: /usr/include/tclxml /usr/share/man/man3/tclxml.3tcl.gz
casper@casper-GL553VD:~$ 
chrome stag
#

Oh, OK, it actually worked

long vault
#

idk if it did

chrome stag
#

Its just complaining that it isn't 1993 anymore

long vault
#

a lot of people wanna go back to the 90's

sage solar
#

this

#

no

#

no

#

the makefile is made for slackware

#

smh

long vault
#

can't say i know what that means

sage solar
#

very old linux

#

i dont think this is supposed to work on ubuntu at all

long vault
#

well it works on ubunty

#

ubuntu

#

just not on mine

chrome stag
#

@long vault I'm back

#

Can I ask you what languages do you know? So I can make this more quicker

sage solar
#

ok so i got iraf running ish

#

and the server rules say english only

chrome stag
#

@sage solar The problem is the other thing

#

@sage solar Also in the voice channels?

long vault
#

you mean programming languages?

chrome stag
#

no, like old-fashioned languages

long vault
#

dutch and english

chrome stag
#

ouh ;_;

long vault
#

sorry to dissapoint you

chrome stag
#

You're ok Casper

#

hmmm

long vault
#

I got other qualities

chrome stag
#

so we need wm

#

but what the hell is wm in this context

long vault
#

what is a wm in general?

chrome stag
#

windows manager

#

gnome, kde, etc

sage solar
#

ds9 is the problem?

chrome stag
#

yeah

sage solar
#

ds9 works 👌 for me

chrome stag
#

ds9 is actually a 1993 script

sage solar
#

like

chrome stag
#

nani

sage solar
#

out of the box

#

perfectly

chrome stag
#

with apt-get blah and ds9?

long vault
#

can we trade computers?

#

you get mine

#

i get yours

sage solar
#

its a vm

chrome stag
#

yes, you can

sage solar
#

its not a real computer

chrome stag
#

It's a solution

#

@sage solar I mean

#

Pack the whole system and I will extract it and correct the routes

#

LOL

long vault
#

I couldnt even get iraf to install on my vm

chrome stag
#

Nah, don't do that

long vault
#

I got ubuntu now, i cant go back

chrome stag
#

@tawny sky I know the answer is no

sage solar
#
wget http://ds9.si.edu/archive/linux64/ds9.linux64.7.2.tar.gz
sudo mv ds9 /usr/local/bin/.
chrome stag
#

But can I ssh in to his machine?

sage solar
#

ezpez

chrome stag
#

We have been here for ages

#

@sage solar You're not supposed to break the system like that

#

But let's do it

long vault
#

we breaking stuff?

sage solar
#

the system is only for the project anyway

#

fuck not breaking it

chrome stag
#

@long vault apt-get --purge remove saods9 -y

sage solar
#

we are doing stuff which linux might not like

#

when doing further stuff

long vault
#
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
casper@casper-GL553VD:~$ 
``` this was on the first one
chrome stag
#

yes, sorry

sage solar
#

straaachiiii

chrome stag
#

put a sudo before all that

sage solar
#

fun fact for me iraf is not working

chrome stag
#

because I hacked the hell out of that thing

long vault
#

oke that first one worked

sage solar
#

well i just have to add myself to the iraf group

#

and then ittl work

long vault
#

now just enter the 2nd part?

sage solar
#

so have fun hacking

chrome stag
#

@long vault yes

sage solar
#

telling me not to break the system

long vault
#

wget http://ds9.si.edu/archive/linux64/ds9.linux64.7.2.tar.gz sudo mv ds9 /usr/local/bin/. like this?

chrome stag
#

no

#

line by line

#

wget blah

#

sudo blah

sage solar
#

(or put && between the two)

chrome stag
#

don't put && between a sudo or I will go to germany and find nix

sage solar
#

unlikely

chrome stag
#

I will activate the Xcom project

long vault
#
mv: cannot stat 'ds9': No such file or directory
casper@casper-GL553VD:~$ ``` got this on the 2nd one
chrome stag
#

yeah, nix forgot to decompress it

#

don't worry, I have you cover it

#

rm ds9*

long vault
#

k and then try it again?

chrome stag
#

no

#

wait

long vault
#

i did rm ds9*

chrome stag
#

yeah, that's good

#

tar xvfp ds9*

long vault
#
ds9
casper@casper-GL553VD:~$ 
chrome stag
#
rm ds9*gz
#

sudo mv ds9 /usr/bin/

long vault
#

k did all that

chrome stag
#

ds9

long vault
#

in a xterm?

chrome stag
#

for example

long vault
#

or just the normal?

chrome stag
#

doesn't really matter

#

your prof asks you to do it on xterm

long vault
#

oh boi

chrome stag
#

but we're testing

#

yeah, casper, here's the thing

#

you don't have any idea what that program is doing

#

it's a blob

long vault
chrome stag
#

So don't use that in a profesional enviorement

#

now in the other xterm execute iraf

#

[ ] ds9.linux64.7.2.tar.gz 16-Apr-2013 11:33 12M
[ ] ds9.linux64.7.3.1.tar.gz 06-Oct-2014 17:22 11M
[ ] ds9.linux64.7.3.2.tar.gz 07-Oct-2014 15:06 11M
[ ] ds9.linux64.7.3.tar.gz 30-Sep-2014 17:44 11M
[ ] ds9.linux64.7.4.tar.gz 17-Dec-2015 13:59 12M

#

@sage solar Why are we executing an old version?

sage solar
#

because i found soembody saying it works and dont want to mess with it if it works rn

chrome stag
#

wait, and why is this archived

#

. Note: version 8.0rc6 is now available here

#

you should be using the rc

#

but whatever

#

@long vault are you still alive?

long vault
#

woah

chrome stag
#

I hope you didn't got eated by that blackhole

long vault
#

cmon man thats not a blackhole

sage solar
#

so does it work now

#

can i end my struggle

long vault
#

iraf and ds9 both worked

chrome stag
#

Great, I would send you my nigerian bank account in private

sage solar
#

so i dont have to mess with mkiraf user not in iraf group anymore

long vault
#

I wouldnt be suprised if i run into new errors later

chrome stag
#

I accept payments in a whole variety of crypto coins