• 05.06.2024, 22:58
  • Registrieren
  • Anmelden
  • Sie sind nicht angemeldet.

 

Lieber Besucher, herzlich willkommen bei: Aqua Computer Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

.bin datei unter linux

Donnerstag, 19. Dezember 2002, 12:17

wollt mir unter linux javacompiler und so installieren, is inner bin datei, aber wie kann ich die richtig öffnen?

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 12:19

bin datei mit cdrwin auf cd brennen und dann einfach installieren von cd !
Fas - Ite, Maledicti, in Ignem Aeternum

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 12:22

linux isses du knallo, da gibs kein cdrwin

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 12:25

achfuck lol :) sory eik verplant. wenn es n brenn prog für linux gibt das .nis kann dann damit brennen. geht nero unner linux ? Ansonsten gibts noch image-explorer
Fas - Ite, Maledicti, in Ignem Aeternum

hus

Senior Member

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 12:47

Java? .bin? Klingt nach dem SDK von Sun. Dann ist das ein Shell-Archiv, das durch Ausführen in der Shell entpackt wird, also "sh <datei>" oder ". <datei>".

Ansonsten kann Dir das "file"-Kommando sagen, worum es sich handelt.
Real stupidity beats artificial intelligence every time. T. Pratchett, "Hogfather"

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 13:17

bin ist ne ausführbare Datei! Das Komplement zur exe-Datei unter Windoof.
Also root kannst Du die Datei starten dur Eingabe von "./blabla.bin" in dem Verzeichnis, in der die Datei liegt.

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 13:19

ne, da muss sh vor, dann gehts auch *g*
danke hus

edit: was muss ich nun machen um javac auch ausführen zu können? neustart?

MrMagic

Junior Member

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 14:08

Um java zu intallieren das erst das .bin file ausfuehren (mit sh oder erst mit chmod +x <file> ausfuehrbar machen und dann mit ./<file> aufrufen) Es wird in dem Verzeinis in dem du das file gestartet hast ein Verzeichnis entpackt, ich glaube sun-jdk-<version> oder so.
Das ganze Verzeichnis irgendwohin moven (mit mv <dir>) wos sinn macht, z.B. /opt/java oder /usr/local/java oder wohin auch immer. Angenommen du hast es nach /opt/java geschoben, dann musst du in deinen Pfad noch /opt/java/bin zu deiner PATH Variable hinzufügen. Das ist von distro zu distro immer ein biserl unterschiedlich, aber am einfachsten ist es /etc/profile zu editieren und da den eintrag für PATH anzupassen.
Fertig, du kannst jetzt von ueberall aus den java compiler und auch die vm starten ;)

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 14:15

hmmmmmmmmm, ich hab red hat und hatte diese rpm version runtergeladen, was muss ich genau tun?

MrMagic

Junior Member

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 14:22

rpm -i <file>
glaub ich, deine PATH musst du dann aber immer noch anpassen wenn ich mich nicht irre.

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 14:25

ja, wie genau pass ich den path an? das rpm hab ich schon installiert! da reichte ein doppelklick

MrMagic

Junior Member

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 14:30

Du editirst /etc/profile für die global PATH variable, angenommen in /etc/profile steht

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

dann machst du daraus

PATH=/bin:/sbin:/usr/bin:/usr/local/bin:/opt/java/bin

natuerlich nur wenn deine java files in /opt/java/bin liegen ich weiss nicht wo das rpm es hininstalliert, wahrscheinlich irgendwo /usr/local oder /usr

Alternativ kannst du auch nor die Userspezifische PATH ändern in der ~/.bashrc, gleiche prozedur wie oben.

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 14:44

naja, wo muss das hin?

profiles:
# /etc/bashrc

# System wide functions and aliases
# Environment stuff goes in /etc/profile

# by default, we want this to get set.
# Even for non-interactive, non-login shells.
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
umask 002
else
umask 022
fi

# are we an interactive shell?
if [ "$PS1" ]; then
if [ -x /usr/bin/tput ]; then
if [ "x`tput kbs`" != "x" ]; then # We can't do this with "dumb" terminal
stty erase `tput kbs`
elif [ -x /usr/bin/wc ]; then
if [ "`tput kbs&#124;wc -c `" -gt 0 ]; then # We can't do this with "dumb" terminal
stty erase `tput kbs`
fi
fi
fi
case $TERM in
xterm*)
if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm
else
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"'
fi
;;
screen)
if [ -e /etc/sysconfig/bash-prompt-screen ]; then
PROMPT_COMMAND=/etc/sysconfig/bash-prompt-screen
else
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\033\\"'
fi
;;
*)
[ -e /etc/sysconfig/bash-prompt-default ] && PROMPT_COMMAND=/etc/sysconfig/bash-prompt-default
;;
esac
# Turn on checkwinsize
shopt -s checkwinsize
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "

if [ "x$SHLVL" != "x1" ]; then # We're not a login shell
for i in /etc/profile.d/*.sh; do
if [ -r "$i" ]; then
. $i
fi
done
fi
fi
# vim:ts=4:sw=4





bashrc:
# /etc/bashrc

# System wide functions and aliases
# Environment stuff goes in /etc/profile

# by default, we want this to get set.
# Even for non-interactive, non-login shells.
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
umask 002
else
umask 022
fi

# are we an interactive shell?
if [ "$PS1" ]; then
if [ -x /usr/bin/tput ]; then
if [ "x`tput kbs`" != "x" ]; then # We can't do this with "dumb" terminal
stty erase `tput kbs`
elif [ -x /usr/bin/wc ]; then
if [ "`tput kbs&#124;wc -c `" -gt 0 ]; then # We can't do this with "dumb" terminal
stty erase `tput kbs`
fi
fi
fi
case $TERM in
xterm*)
if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm
else
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"'
fi
;;
screen)
if [ -e /etc/sysconfig/bash-prompt-screen ]; then
PROMPT_COMMAND=/etc/sysconfig/bash-prompt-screen
else
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\033\\"'
fi
;;
*)
[ -e /etc/sysconfig/bash-prompt-default ] && PROMPT_COMMAND=/etc/sysconfig/bash-prompt-default
;;
esac
# Turn on checkwinsize
shopt -s checkwinsize
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "

if [ "x$SHLVL" != "x1" ]; then # We're not a login shell
for i in /etc/profile.d/*.sh; do
if [ -r "$i" ]; then
. $i
fi
done
fi
fi
# vim:ts=4:sw=4

MrMagic

Junior Member

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 14:53


Zitat

# Environment stuff goes in /etc/profile


in der Datei die Änderungen vornehmen !!!!!
kann mir nicht vorstellen das bei Red Hat (ich kenns leider nicht) die datei nicht existiert und darin wernen globale environment Variablen wie path gesetzt, muss als in /etc/profile ne zeile geben in der

export PATH=der Pfad

so oder so ähnlich drinsteht.

hus

Senior Member

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 15:04

RedHat verwendet das Konzept von "Drop in"-Verzeichnissen. Beim Start einer sh-kompatiblen Shell werden alle ausführbaren Dateien namens *.sh aus dem Verzeichnis /etc/profile.d ausgeführt; entsprechend *.csh für die C-Shell.

Schreib' also z.B. eine Datei "/etc/profile.d/java.sh" des Inhalts:
---
export JDK=/usr/java/j2sdk1.4.0
export PATH=$PATH:$JDK/bin/
# export CLASSPATH=$JDK/jre/lib
---
oder so ähnlich.
Mit "chmod +x ..." ausführbar machen.
CLASSPATH ist für den Installationspfad nicht erforderlich.

Edit:
Bei genauerer Betrachtung Deiner /etc/profile ist das x-Flag nicht nötig.
Real stupidity beats artificial intelligence every time. T. Pratchett, "Hogfather"

Marine

unregistriert

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 19:03

es gibt 2 arten von shell logins
1.) Interactive shell (login in xterm,console,gnome-terminal,eterm, ... ohne --login opiton)
2.) login shell (login in linuxconsole, oder xterm,console,gnome-terminal mit --login option)

der unterschied dabei ist welche datein ausgewertet werden beim login.
nur die interactive shell wertet ~/.bashrc aus. So genau weiss ich das auch nicht einfach bei "man bash" nachschaun welche datein bei interaktive oder login shell ausgewertet werden.

INVOCATION
A login shell is one whose first character of argument zero is a -, or one started with the --login
option.

An interactive shell is one started without non-option arguments and without the -c option whose
standard input and output are both connected to terminals (as determined by isatty(3)), or one
started with the -i option. PS1 is set and $- includes i if bash is interactive, allowing a shell
script or a startup file to test this state.

The following paragraphs describe how bash executes its startup files. If any of the files exist but
cannot be read, bash reports an error. Tildes are expanded in file names as described below under
Tilde Expansion in the EXPANSION section.

When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login
option, it first reads and executes commands from the file /etc/profile, if that file exists. After
reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and
reads and executes commands from the first one that exists and is readable. The --noprofile option
may be used when the shell is started to inhibit this behavior.

When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if it
exists.

When an interactive shell that is not a login shell is started, bash reads and executes commands from
~/.bashrc, if that file exists. This may be inhibited by using the --norc option. The --rcfile file
option will force bash to read and execute commands from file instead of ~/.bashrc.

When bash is started non-interactively, to run a shell script, for example, it looks for the variable
BASH_ENV in the environment, expands its value if it appears there, and uses the expanded value as
the name of a file to read and execute. Bash behaves as if the following command were executed:
if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi
but the value of the PATH variable is not used to search for the file name.

If bash is invoked with the name sh, it tries to mimic the startup behavior of historical versions of
sh as closely as possible, while conforming to the POSIX standard as well. When invoked as an inter-
active login shell, or a non-interactive shell with the --login option, it first attempts to read and
execute commands from /etc/profile and ~/.profile, in that order. The --noprofile option may be used
to inhibit this behavior. When invoked as an interactive shell with the name sh, bash looks for the
variable ENV, expands its value if it is defined, and uses the expanded value as the name of a file
to read and execute. Since a shell invoked as sh does not attempt to read and execute commands from
any other startup files, the --rcfile option has no effect. A non-interactive shell invoked with the
name sh does not attempt to read any other startup files. When invoked as sh, bash enters posix mode
after the startup files are read.

Marine

unregistriert

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 19:06

ich kenne nur 3 möglichkeiten programme zu starten.
1.)./ausführbaredatei
2.)sh ausführbaredatei
3.)java -jar ausführbarejavadatei.jar
4.)man kann die PATH variable erweitern das man das ./ weglassen kann wenn man in verzeichnis ist (export PATH=$PATH:.)

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 19:33

hups, hatte zweimal die bashrc gepostet *g*
also meine profile:


# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
if ! echo $PATH &#124; /bin/egrep -q "(^&#124;:)$1($&#124;:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}

# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after

unset pathmunge

# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done

unset i






was muss ich tun? *g*

Marine

unregistriert

Re: .bin datei unter linux

Donnerstag, 19. Dezember 2002, 22:45

man, sind die von redhat unfähig. So ein schweinestall, das unübersichtlichste shell script was ich jeh gesehen habe. Sorry, bin nicht ganz mitgekommen was du eigendlich willst . Also normalerweise wird in der /etc/profile die PATH , die PS1 , die inputrc variable und die umask gesetzt und eventuel noch ein skript gestartet was die restlichen env-variablen beinhaltet. So ungefähr weiss ich was da vor sich geht in deiner profile, aber so umnötig kompliziert geschrieben hab ichs noch nie gesehen.

Re: .bin datei unter linux

Freitag, 20. Dezember 2002, 01:57

helft mir