Das erste mal das ich so ratlos bin und selbst bei Googel nix gefunden habe, das ich ein Linux System neu installieren musste. Hier mal ein Ausschnitt was alles nicht mehr lief.
Linux vm04 2.6.20-16-server #2 SMP Sun Sep 23 18:36:55 UTC 2007 x86_64
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Last login: Tue Oct 23 17:24:14 2007 from 192.168.1.43
/usr/bin/lesspipe: 28: basename: Input/output error
/usr/bin/lesspipe: 253: dirname: Input/output error
[: 253: lessfile: unexpected operator
-bash: [: !=: unary operator expected
-bash: [: too many arguments
-bash: [: too many arguments
-bash: [: =: unary operator expected
-bash: [: too many arguments
-bash: [: too many arguments
-bash: [: too many arguments
-bash: [: too many arguments
-bash: [: too many arguments
-bash: [: too many arguments
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: too many arguments
-bash: [: =: unary operator expected
-bash: /bin/sed: Input/output error
benutzer@host:~$ apt-get upgade
-bash: /usr/bin/apt-get: Input/output error
benutzer@host:~$ sudo shutdown -r now
-bash: /usr/bin/command-not-found: Input/output error
benutzer@host:~$ who
-bash: /usr/bin/who: Input/output error
benutzer@host:~$ ls
-bash: /bin/ls: Input/output error
benutzer@host:~$ cd /etc/apt/
-bash: cd: /etc/apt/: No such file or directory
benutzer@host:~$ cd /etc/
benutzer@host:/etc$ cd apt
-bash: cd: apt: No such file or directory
benutzer@host:/etc$ uname -a
Segmentation fault
benutzer@host:/etc$
Veröffentlicht am: 24.10.2007 von: CHR | publiziert in: Linux
#include
using namespace std;
int main (void)
{
int lz=0;
double ak=0, zs=0, sume=0;
cout << "Anfangskapital = ? ";
cin >> ak;
cout << "Zinssatz (%) = ? ";
cin >> zs;
cout << "Laufzeit (Jahre) = ? ";
cin >> lz;
sume = ak;
for(int i=1; i <= lz; i++)
{
sume = sume * (zs / 100) + sume;
cout << "Kapital am Ende von Jahr " << i << ": " << sume << " EURO" << endl;
}
cout << endl << "Das Kapital erhoehte sich waehrend der Laufzeit um "<< sume - ak << " EURO" << endl;
return 0;
}
Veröffentlicht am: 22.10.2007 von: CHR | publiziert in: C, FH-Aachen
Schreiben Sie ein Programm zur Lösung der quadratischen Gleichung ax2 + bx + c = 0
Die Koeffizienten a, b und c sollen von der Tastatur eingelesen werden. Ist die Diskriminante (b2 -4ac) negativ, gebe man den Text „Keine reellen Loesungen“ auf dem Bildschirm aus. Ist die Diskriminante nicht negativ, berechne man die Lösungswerte x1 sowie x2 und gebe sie auf dem Bildschirm aus.
Für a ≠0 gilt:
…
Hinweise:
- Überlegen Sie, welchen Datentyp die Variablen haben sollten.
- Denken Sie daran, dass auch Zahlenkonstanten (wie 1, 2 oder 4) einen passenden
Datentyp haben müssen.
- Berechnen Sie zuerst die Diskriminante und speichern Sie das Ergebnis in einer Variablen. Prüfen Sie danach, ob die Diskriminante nicht negativ ist und berechnen Sie nur in diesem Fall die Wurzel. Sonst geben Sie die Meldung laut Aufgabenstellung aus.
- Die Funktion
double sqrt(double x)
liefert die Quadratwurzel von x. Sie ist in der Datei <math.h> deklariert. Diese muss also mit include eingebunden werden. Für den Eingabewert a=0 muss die Division durch Null abgefangen werden, vgl. Testlauf 4!
Testdaten:
- a=1, b=2, c=-3
- a=4, b=8, c=0
- a=1, b=2, c=3
- a=0, b=8, c=4
#include
#include
using namespace std;
int main (void)
{
int a=0, b=0, c=0, term1=0;
double x1=0, x2=0;
cout << "Loesung der quadratischen Gleichung" << endl;
cout << "a = ? ";
cin >> a;
if(a == 0)
{
cout << "Keine Loesung (Division durch Null)" << endl;
return 0;
}
cout << "b = ? ";
cin >> b;
cout << "c = ? ";
cin >> c;
term1 = ( b * b ) - ( 4 * a * c);
if(term1 < 0)
{
cout << "Keine reellen Loesungen" << endl;
return 0;
}
x1 = (1.0 / (2.0 * (double)a ) ) * ( (double)(b * -1) + sqrt( term1 ) );
x2 = (1.0 / (2.0 * (double)a ) ) * ( (double)(b * -1) - sqrt( term1 ) );
cout << "Loesung: " << endl << "x1 = " << x1 << endl << "x2 = " << x2 << endl << endl;
return 0;
}
Veröffentlicht am: 19.10.2007 von: CHR | publiziert in: C, FH-Aachen
Neuerlich hatte ich das Problem, dass Ubuntu keine CDs mehr von alleine booten wollte. Nach einer Weile Googlen bin ich dann auch fündig geworden und habe an der /etc/fstab
die folgende Zeile ändern müssen:
#/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hda /media/cdrom0 auto user,atime,noauto,rw,dev,exec,suid 0 0
Dabei ist zubrachten das: /dev/hda ist mein DVD-RW Laufwerg. Nach einem Neustart war wieder alles wie es sein soll.
Quelle: forum.ubuntuusers.de
Veröffentlicht am: 12.10.2007 von: CHR | publiziert in: Ubuntu
Nach dem man das Howto:
http://www.howtoforge.com/ubuntu_vmware_server_p2
durchgerasselt hat, trat bei der Installation folgender Fehler auf:
ubuntu:~/vmware-mui-distrib# ./vmware-install.pl
Creating a new installer database using the tar3 format.
You must read and accept the End User License Agreement to continue.
Press enter to display it.
Do you accept? (yes/no) yes
Thank you.
Installing the content of the package.
VMware Server must be installed on this machine for the VMware Management
Interface to work
Execution aborted.
Dies hat sich duch folgenden Schritte beheben lassen:
# apt-get install libxi6
Danach wollte der httpd.vmware nicht starten. Dies konnte kann man sofort durch folgenden Befehl beheben:
# ln -s -f /bin/bash /bin/sh
Danach habe ich die Installation erneut durchgeführt, und alles läuft.
Veröffentlicht am: 13.09.2007 von: CHR | Tags: VMware | publiziert in: Ubuntu, VMware