#unix
1 messages · Page 19 of 1
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
hello friends! anyone using python on osx have time for a few questions?
!t 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.
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 ?
I don’t think they play particularly well with each other
I think Conda ends up taking priority since it modifies your path
👍 @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?
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
hey ELA, thanks for the replies, you mind me asking what kind of setup you're using?
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? 😃
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
lol
@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.
👌
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
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
export DYLD_LIBRARY_PATH=/path/to/lib is the solution
i'm on a mac and pc, just started too
@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.
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.
Got it working by using the root user.
Fairly sure you need to chown the directories to the nobody:noone
Or something like that
i searched for enemy propaganda but found 90% going for linux
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.
- 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 ^
hmmmm my brian dont function, sary

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?
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
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
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
I'm on 18.10
I have a dedicated nvidia at home, but no issues there
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
(except that nvidia doesn't work at all a few days after I fix it all the time)
I have the dual thing in my laptop with 18.10
but the machine with the standby issues has intel only
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.
18.04 working pretty good for me, don't want to risk going 18.10
I had no issues going to 18.10
In fact, the Desktop was noticeably snappier and more responsive in my VMs
Except for those two things above, 18.10 runs better for me, too
Is there a way to rebind key like AHK? I've been looking and the closest I've got is AutoKey
Should I plunge?
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
xdotool, although I'm not sure if it does bindings, just executes input.
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
KDE Neon
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
¯_(ツ)_/¯
My script is kinda simple tbf: E to D, I to F, R to J, U to K
and Ctrl F6 to suspend
in fact do they? I think there are commands which don't run on mac but do in ubuntu
fuser runs for you?
whats fuser
fuser -k 8080/tcp
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
has anyone got any experience with crontab and could help me out?
anyone? please?
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
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
Freebsd, getting this message in my jail.. anyone know how to fix it.
Shared object "libdl.so.1" not found, required by "python3.6"
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
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
batch script? isn't this for #491524019825278977 ?
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
chmod 777 file_i_want_to_run
gives everyone permission to read, write, append and execute that file
I would indeed use u+x, or g+x, etc, depends on what's needed
777 can be a security hole
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?
You should be able to do workon from anywhere I think
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?
actually why don't u use pipenv?
It cd into your project directory for you
it's a lot easier
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
wait r u talking about pipenv?
no
ok
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
i will actually highly recommend pipenv tho
u can sync requirements between different devices
You can do that with a regular venv too
Anyway, did I answer your question @robust storm
yes but the problem is he's venv is in different dir as the project does
That’s not a problem
@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?
are virtualenv and venv two separate modules?
venv isn't a module afaik
it's just shorthand for virtualenv
and you probably meant package not module
but same answer applies
yea that lol.. sorry been face deep in python coding lately that everything's a module to me at this point 😛
but packages aren't modules 🤔

venv is different from virtualenv
venv is in the standard library, virtualenv is external
oh wait there is a difference?
hmm 🤔
guess i have to map my python version to VIRTUALENVWRAPPER_PYTHON, install guide im using said nothing of it
@robust storm is it ok if u use pipenv??
this is all for personal use, i can use whatever lol
is it because i wasnt sudo installing? i was just doing python3 -m pip install
sudo wont do anything tho
it do need virtualenv
but it handles locations and paths for u
all u need is to pipenv shell
and it activates for u
kk thx
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 ?
so i can map, mark work_home and source all in bashrc?
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
would /usr/local/bin/python3 be the right path?
maybe. just do which python3 and use that?
oh its /usr/bin, alrighty then lol
cool
im guessing that worked, restarted bash and got this
I don't those (log?) messages but maybe it's fine yeah
i only got it on first relaunch, it's not doing it again, guessing since theyre already created
fair enough
I think You can only make an OS with C++ or assembly, not python which is sad 😦
what is C then?
you can make an Operating System with any language that can compile into a freestanding binary
which includes C/C++ assembly Rust etc
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)
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
@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?
!warn 136174338633105408 Giving out commands to wipe people's drives
:ok_hand: warned @jagged orbit (Giving out commands to wipe people's drives).
There's no set number
oh ok
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
Does anyone here know how to instill IRAF on ubuntu?
sorry
Posted on August 3, 2018
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
not sure if it your problem but i found this on stackoverflow
read it, cant understand it
sorry but i can't either...
Just ask
At least I tried
have a 🍪
takes cookie
@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
@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 ?
don't think so, only installed the dual boot 2day
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
Command 'python2' not found, but can be installed with:
sudo apt install python-minimal
casper@casper-GL553VD:~$
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
I used that, but that doesnt fix the mkiraf command
ok, give me a sec
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
I type apt-get install soads9 in a new terminal I suppose
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?
you don't need to do that anymore
what or where does it says that?
[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:~$
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
casper@casper-GL553VD:~$
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:~$
no output
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package iraf-naoao
casper@casper-GL553VD:~$
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
well I need iraf to work
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:~$
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
iraf: /usr/lib/iraf /etc/iraf
casper@casper-GL553VD:~$
try where? (sorry i dont know anything about linux)
don't worry
is type it in the terminal??
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
bash: /usr/lib/iraf: Is a directory
bin dev extern lib local math noao pkg sys unix
casper@casper-GL553VD:~$
ls -lsha /usr/lib/iraf/*
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:~$
-lsha: command not found
casper@casper-GL553VD:~$
so I can see what's inside of each, in case it isn't in bin
hm
thing its too long for disc
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$
ls unix/*
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$
./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$
Command 'cl' not found, but can be installed with:
sudo apt install cl-launch
casper@casper-GL553VD:/usr/lib/iraf$
just instal it?
type pyraf
first
I'm gonna check what's cl-launch
ok
pyraf shouldn't work, right?
well it did something
can you screenshot it?
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
-->
yes
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?
I need iraf
clear the window first because im in pyraf now arent I?
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
root@casper-GL553VD:/usr/lib/iraf#
``` it doesnt ask me for my pw
maybe it's because it's cached
you don't need to do the cd part
type mkiraf directly
still not found 
🔫
ok
do this
cd /
find . | grep mkiraf
It's gonna take a while
copy the output
go to dpaste.de
bash: cd/: No such file or directory
root@casper-GL553VD:/usr/lib/iraf#
look at what I wrote
oh did i miss a space?
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
./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
oh and ```./usr/lib/iraf/unix/hlib/mkiraf.sh
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
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
"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
idk 
ok, I'm going to translate you what's the problem
english please
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
it is
be astrophycisist are stuborn and dont wanna use anything else
so we also have to learn to use it
But do they have it installed in their computers?
but i can't learn to use it if i can't get it to work
Ask them how they did it
its installed on all computers in our building
Gentoo package category sci-astronomy: The sci-astronomy category contains software that can be used in astronomical and related scientific environments. in the Gentoo Packages Database
but I want it on my laptop so I'm not dependend on those computers
we need it to proces imagines from our telescope
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?
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
I got a document that explains how to use it, and I used it on the campus computers
and let's see if the problem it's that it's callable with another command
iraf: command not found
casper@casper-GL553VD:/usr/lib/iraf$
when i press tab i get a cl behind it and when i pressed enter it have me this
congrats
that's your iraf LOL
Wth that was difficult
if you write something like implot dev$pix
it does some iraf thing
but I need it in an xterm
the prof was very strict about it
we need to open an xterm
and in that we open iraf
or however that works
swedish
sudo apt-get install -y xterm
once it finishes
xterm
and then you do the thing with the tab
no its just with more parameters
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
but i just need to type irafcl in the xterm
yes
sb and sl it's a stuff related to scrolling
well, more likely because that's what they teached him 20 years ago
already found a problem 😩
🥁
let me guess, it works like shit inside xterm
this is what he tells me to do
but there is that stupid mkiraf command again
which still doesnt work
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
You really could do with a more eloquent dictionary
he's trying to fix a bug in that program
and I need to change something inside so the program doesnt crash with large files
you can actually do it if you want, but you're gonna probably... Fuck it up, to be short
I did it on the campus computers
I don't think anybody in your class could install that the way your professor wants
but there the mkiraf worked fine
because they installed it like this guy:
but without an enviorement
and they glued all together
That's a very very bad practice
I should tell em
If I were you, I would install a separate ubuntu just for class
I only need ubuntu for this
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
(or make a vm) (or a chroot env)
I don't think his professor wants him to do that
I used a vm but it failed to install iraf itself in the first place
are you actually supposed to do this on ubuntu
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
(ill take a photo too)
@sage solar quite probably he has to install it from sources
sounds fun
and this thing is from 2012
at least its not old RAID chip drivers from 2002 you can only get as outdated rpms....
but they made some minor changes in 2012
tell him to install build-essential because that's gonna take a while
usually not
anyway could you show us the whole manual of what you are supposed to do?
I can send a ss of it but I can't send the file itself
as long as it contains everything ¯_(ツ)_/¯
(and is readable)
That implies that iraf is already installed
Is your professor going to inspect your laptop?
no
See?
whatever a huygensgebouw is
is our uni building
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
i am surprised i typed that correctly enought to give me google results.......
but I also need ds9
Yeah, I know
I'd guess "gebouw" is Dutch for "building"
it is
yay
smart man
german dutch mutation skills there
nah, just German 😛
nvm then
So
Gebäude
Should we move on?
after i said that Gebäude sounds better in my head yes
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
like if i get ds9 to work i think ill be set
the xterm or the other?
Close the xterm first, directly
(what is the full name of ds9 so i dont get deep space 9 as google results)
saods9
The funny thing is that the problem is that it's not on path
it's already installed
paste the output of pwd
/home/casper
casper@casper-GL553VD:~$
oh sheit
password
got it
cd /usr/lib/iraf
how did you install ds9?
[sudo] password for casper:
root@casper-GL553VD:/home/casper# cd /usr/lib/iraf
root@casper-GL553VD:/usr/lib/iraf#
right so fat
far*?
yes
strachi how did you make him install ds9
nix, please let's follow an order, browse -y
./pkg/ecl/login.cl
./pkg/cl/login.cl
root@casper-GL553VD:/usr/lib/iraf#
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
the pdf says to do it with a text editor
you could just download the debian deb from here http://ftp.nl.debian.org/debian/pool/main/s/saods9/saods9_7.6+repack-3_all.deb install it with dpkg -i soads*.deb
and hope that debian is enough compatible to ubuntu for that to work
yknow
well he does have unix in his name so its very tempting
did you ever used nano, @long vault ?
i dont even know what it is
ok, promise me this is only for university
That should become an ot-name
write gedit pkg/cl/login.cl
#ot0-don't-do-the-nix-thing 😛
and just hit enter?
yes
alright it opened
That will expose the whole x11 stack to root, like professionals
its Nix Is uniX please, its a recursive acronym @oak shell
I can now just change it like the pdf says?
alright lemme do that
I don't have to expand the acronym
that is very mean
alright im done with the file
Ok, do you know how to save it?
i pressed save
ok, close it
just like i did on the campus computers
press enter on the terminal
type reset
exit
sudo -K
and reset again, that would kill the garbage gnome would have leaved
oke its basicly a new window now
type whereis saods9
saods9: /usr/share/saods9
casper@casper-GL553VD:~$
for real?
better not be trolling xd
I can explain what I am doing
saods9: /usr/share/saods9
casper@casper-GL553VD:~$ whereis pikachu
pikachu:
casper@casper-GL553VD:~$ whereis apertium-ita
apertium-ita:
casper@casper-GL553VD:~$
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 */*
for the first one i get a lot of stuff back
[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$
one sec
ls -lsha * | curl -F "sprunge=<-" http://sprunge.us
that will return a link with the output
sudo apt-get install -y curl
whats the -y?
forces to say yes
ah
sounds usefull
curl: (6) Could not resolve host: sprunge.us+
casper@casper-GL553VD:/usr/share/saods9$ ```
after I installed curl
without the +
god, why do people do this

you're ok casper-san
"All versions and platforms support a consistent set of GUI and functional capabilities. "
(ill have an ubuntu 18.04.1 ISO downloaded in under a minute an will try to set things up myself)
🤔 🔫
I swear this is way more difficult than the actual physics
I was still eating sand back then
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
aight
wth, how are they compressing .debs in the $currentyear?
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.....
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
¯_(ツ)_/¯
remember that he's supposed to execute this on xterm
people are weird
you want me to type whereis ds9?
yes
ubuntu ins(ane)tallation is runnning
in a normal ter?
yes
it doesnt matter does it?
I don't have any sanity left
I started the weekend with the idea that this would go easy
i am quite sure that this is in fact easy
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
ds9 is the xterm right?
Why use zip
ds9: /usr/bin/ds9 /usr/share/man/man1/ds9.1.gz
casper@casper-GL553VD:~$
just use tar
@gritty stirrup deb files are not tar
can't find package xml
new xterm or normal?
cat /usr/share/saods9/library/ds9.tcl | curl -F "sprunge=<-" http://sprunge.us
normal
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
god ubuntu performs so shitty......
install gont00
yes but he is on ubuntu
type install gont00 in the terminqal?
@long vault apt-cache search tcl | grep xml
@long vault I wish, no, no. that was for nix
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
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:~$
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
k both done
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?
sudo apt-get install libxml libxml2
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
"in theory"
depending on the things I posted before
the long paste
@long vault I hope you discover what oumuamua is with this
tclxml: /usr/include/tclxml /usr/share/man/man3/tclxml.3tcl.gz
casper@casper-GL553VD:~$
Oh, OK, it actually worked
idk if it did
Its just complaining that it isn't 1993 anymore
a lot of people wanna go back to the 90's
can't say i know what that means
@long vault I'm back
Can I ask you what languages do you know? So I can make this more quicker
you mean programming languages?
no, like old-fashioned languages
dutch and english
ouh ;_;
sorry to dissapoint you
I got other qualities
what is a wm in general?
ds9 is the problem?
yeah
ds9 works 👌 for me
ds9 is actually a 1993 script
like
nani
with apt-get blah and ds9?
its a vm
yes, you can
its not a real computer
It's a solution
@sage solar I mean
Pack the whole system and I will extract it and correct the routes
LOL
I couldnt even get iraf to install on my vm
Nah, don't do that
I got ubuntu now, i cant go back
@tawny sky I know the answer is no
wget http://ds9.si.edu/archive/linux64/ds9.linux64.7.2.tar.gz
sudo mv ds9 /usr/local/bin/.
But can I ssh in to his machine?
ezpez
We have been here for ages
@sage solar You're not supposed to break the system like that
But let's do it
we breaking stuff?
@long vault apt-get --purge remove saods9 -y
@long vault wget http://ds9.si.edu/archive/linux64/ds9.linux64.7.2.tar.gz
sudo mv ds9 /usr/local/bin/.
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
yes, sorry
straaachiiii
put a sudo before all that
fun fact for me iraf is not working
because I hacked the hell out of that thing
oke that first one worked
now just enter the 2nd part?
so have fun hacking
@long vault yes
telling me not to break the system
wget http://ds9.si.edu/archive/linux64/ds9.linux64.7.2.tar.gz sudo mv ds9 /usr/local/bin/. like this?
(or put && between the two)
don't put && between a sudo or I will go to germany and find nix
unlikely
I will activate the Xcom project
mv: cannot stat 'ds9': No such file or directory
casper@casper-GL553VD:~$ ``` got this on the 2nd one
k and then try it again?
i did rm ds9*
ds9
casper@casper-GL553VD:~$
k did all that
ds9
in a xterm?
for example
or just the normal?
oh boi
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
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?

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

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?
I hope you didn't got eated by that blackhole
cmon man thats not a blackhole
iraf and ds9 both worked
Great, I would send you my nigerian bank account in private
so i dont have to mess with mkiraf user not in iraf group anymore
I wouldnt be suprised if i run into new errors later
I accept payments in a whole variety of crypto coins

