THNX.
θα το κανω... αν και προς το παρον ειμαι οκ με τον kopete.
:)
Αναζήτηση:
Type: Posts; Χρήστης: Zaxariadis; Λέξη(εις) Κλειδιά:
Αναζήτηση: Η αναζήτηση ολοκληρώθηκε σε 0,44 δευτερόλεπτα
-
17-02-11, 03:15
Θέμα: Περί Arch Linux... (v4)
Από Zaxariadis- Μηνύματα
- 5.800
- Εμφανίσεις
- 317.066
Απάντηση: Περί Arch Linux... (v4)
-
17-02-11, 02:00
Θέμα: Περί Arch Linux... (v4)
Από Zaxariadis- Μηνύματα
- 5.800
- Εμφανίσεις
- 317.066
Απάντηση: Περί Arch Linux... (v4)
Αντιμετωπιζει κανεις αλλος αυτο... ;
εμενα σημερα δεν καταφερε να συνδεθει.
Kopete δουλευει ρολοι... -
08-02-11, 04:08
Θέμα: Περί Arch Linux... (v4)
Από Zaxariadis- Μηνύματα
- 5.800
- Εμφανίσεις
- 317.066
Απάντηση: Περί Arch Linux... (v4)
Δοκιμαζω και επανερχομαι...
flame-sensei... Arigato!
........Auto merged post: Zaxariadis προσθεσε 5 λεπτα και 55 δευτερολεπτα αργοτερα ........
δεν υπαρχει /config μεσα στο ../apps
υπαρχει ομως plasma/
εννοεις αυτο?
---
OK... το βρηκα... (~/.kde4/share/config/plasma*) φαινεται ποιο σταθερο αλα κανει κατι βλακειες ακομα που και που...
θα το παρακολουθησω -
08-02-11, 03:56
Θέμα: Περί Arch Linux... (v4)
Από Zaxariadis- Μηνύματα
- 5.800
- Εμφανίσεις
- 317.066
Απάντηση: Περί Arch Linux... (v4)
ρε παιδια,
επειτα απο το upgrade στο 4.6 δεν εχω καταφερει να κανω login με το plasma να κραταει πανω απο ενα λεπτο.
Crash-αρει αμεσως.
Δοκιμασα να πεταξω οτι widgets ειχα πανω στο Desktop μηπως ειναι καποιο απο αυτα αλα τπτ.
Το ειχα ξαναδει οταν μπηκε το 4.5 αλλα τοτε το εσπαγε αν θυμαμαι καλα η Daisy
Τωρα??
Ειχε αντιμετωπισει κανεις αλλος κατι παρομοιο? -
07-10-10, 18:01
- Μηνύματα
- 7.343
- Εμφανίσεις
- 447.113
Απάντηση: Archlinux On-Line repository: Ερωτήσεις και απαντήσεις
Σημερα για καποιο λογο δεν ανοιγε ο Amarok. Τον ετρεξα απο κονσολα και δεν εβρισκε τη libofa.
Την εγκατεστησα απο τον pacman και ολα οκ.
Ερωτηση... :
Δεν θα επρεπε να ειναι στα Dependencies το συγκεκριμενο πακετο?
nano /var/abs/local/arch-linux-greece/list-of-sources/adslgr64/amarok-git/PKGBUILD
.
.
depends=('qt>=4.5.0-4' 'mysql>=${mysqlver}' 'libmysqlclient>=${mysqlver}' 'kdebase-runtime>=4.2.4' 'taglib-extras>=1.0' 'taglib>=1.6' 'phonon' 'strigi' 'qtscriptgenerator' 'libmtp>=0.3.0' 'libgpod>=0.7.0' 'libm$
makedepends=('pkgconfig' 'qca' 'qtscriptgenerator' 'git' 'automoc4' 'cmake' 'loudmouth' 'liblastfm')
.
. -
13-09-10, 02:22
Θέμα: Amarok 2.0 released
Από Zaxariadis- Μηνύματα
- 1.137
- Εμφανίσεις
- 98.121
Απάντηση: Amarok 2.0 released
Ανεξαρτητα με το αν εχω το watch folders for changes τικαρισμενο η οχι δεν κανει κατι. Αυτο που με προβληματιζει οπως εγραψα και παραπανω ειναι οτι δεν κανει τιποτα ακομα και οταν παταω το "update collection".
Το ιδιο συμβαινει και σε εμενα.
Οταν προσπαθω να κανω Fully Rescan Entire Collection βλεπω την μπαρα κατω για 1sec και μετα εξαφανιζεται, οταν παλιοτερα χρειαζοτανε πανω απο 1hr για full scan.
amarokcollectionscanner -i ~/.kde4/share/apps/amarok/amarokcollectionscanner_batchincrementalinput.data
-
12-09-10, 20:44
- Μηνύματα
- 7.343
- Εμφανίσεις
- 447.113
Απάντηση: Archlinux On-Line repository: Ερωτήσεις και απαντήσεις
:: Synchronizing package databases...
error: failed retrieving file 'adslgr64.db.tar.gz' from archlinuxgr.tiven.org : Connection refused
error: failed to update adslgr64 (Connection refused)
error: failed retrieving file 'kde4-eyecandy-64.db.tar.gz' from archlinuxgr.tiven.org : Connection refused
error: failed to update kde4-eyecandy-64 (Connection refused)
here as well :sorry: -
30-05-10, 00:39
Θέμα: Amarok 2.0 released
Από Zaxariadis- Μηνύματα
- 1.137
- Εμφανίσεις
- 98.121
Απάντηση: Amarok 2.0 released
Ρε 'σεις,
Εδω και παααααααααααααααααααααααααρα πολυ καιρο οταν κανω δεξι κλικ στο icon του Amarok στην task bar, σπαει το plasma.
Αυτο γινετε παντα.
Υπεθετα οτι θα εφτιαχνε με καποιο απο τα updates αλλα δεν εχω δει προκοπη μεχρι σημερα.
Προφανως θα ειναι κατι αλλο.
μπορει να ριξει καποιος μια ματια στο debug log
Το κοκκινο μερος καταγραφεται τη στιγμη που σπαει το plasma, το οποιο μετα απο 5sec επανερχεται κανονικοτατα, και ξανασπαει στο επομενο δεξι κλικ... κτλ...
USER $ amarok --debug
Amarok is already running!
amarok: BEGIN: virtual int App::newInstance()
amarok: BEGIN: static void App::handleCliArgs()
amarok: END__: static void App::handleCliArgs() - Took 0.00028s
amarok: END__: virtual int App::newInstance() - Took 0.00063s
USER ~ $ X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20 (X_GetProperty)
Resource id: 0x2c067e1
amarok: BEGIN: virtual void MainWindow::resizeEvent(QResizeEvent*)
amarok: END__: virtual void MainWindow::resizeEvent(QResizeEvent*) - Took 0.00029s
amarok: setting applets geom to QRectF(0,0 386x667)
amarok: BEGIN: virtual void MainWindow::resizeEvent(QResizeEvent*)
amarok: END__: virtual void MainWindow::resizeEvent(QResizeEvent*) - Took 0.00025s
amarok: setting applets geom to QRectF(0,0 386x628)
:hmm::hmm::hmm: -
23-03-10, 01:09
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
ορισμενους τροπους που μπορω να σκεφτω...
1) με gparted live οπος εκανα εγω τις προαλλες
2) με fdisk απο την κονσολιτσα σου
3) με τα tools των Windows7
4) με partition Magic η παρεμφερη tools
υ.γ.
Το να κοψεις χωρο απο τα 7 ειναι ευκολο. Γινετε και με το gparted μεσα απο το DE σου.
Το να τον κολλησεις στο home σου ειναι λιγο tricky γιατι πρεπει να το κανεις umount. -
21-03-10, 20:44
Θέμα: Amarok 2.0 released
Από Zaxariadis- Μηνύματα
- 1.137
- Εμφανίσεις
- 98.121
Απάντηση: Amarok 2.0 released
* Fixed "files" bookmarks not storing the actual path shown in the file browser (BR 231437)
* The new file browser now supports "places".
* Added "up" and "home" buttons to the new filebrowser.
Ειναι ηδη στον git του repo μας.
Απλα RESPECT!!! :worthy: :worthy: :respekt:
Εστειλα μηνυμα στους Dev. την προηγουμενη, οπως ειχα πει για το bookmark και το upBotton (ισως και αλλοι οπως εγω) και περασαν στην -git 5 μερες μετα!
Νομιζω οτι αξιζει να αναφερθει! -
15-03-10, 04:29
Θέμα: Amarok 2.0 released
Από Zaxariadis- Μηνύματα
- 1.137
- Εμφανίσεις
- 98.121
Απάντηση: Amarok 2.0 released
Δεν το αφαιρεσαν. Δε το εχουν ενσωματωσει στον νεο file browser. Οταν συνηπηρχαν οι δυο browsers μπορουσες να το κανεις μονο στον εναν.
Δεν ειμαι σιγουρος οτι σε καταλαβα καλα...
Συνυπηρχαν 2 browsers ;;;
Ποτε η μαλλον μεχρι ποτε; και ποιοι ηταν αυτοι;
konqueror και dolphin;
Το οτι "Δε το εχουν ενσωματωσει στον νεο file browser" σημαινει οτι ενδεχομενως ειναι "στο δρομο" μια τετοια διαδικασια;
Μια η αλλη,
δυνατοτητα bookmark δεν εχουμε ακομα, αν και ο νεος τροπος browsing σου επιτρεπει να δεις ολο το δεντρο καποιου καταλογου καποια επιπεδα κατω απο τον τρεχοντα, αυτο δεν ειναι καθολου αποτελεσματικο για καταλογους με πολλους υποκαταλογους.
π.χ.
το ../media/3ena/Rock μου εχει 332 υποκαταλογους.
οταν ειμαι μεσα στο :
..>media>3ena>Rock>Pink Floyd καταλαβαινεις τι γινετε αν τολμησω να πατησω το "κοκκινο" >...
Γεμιζει ολη η οθονη με καταλογους απο ACDC μεχρι Lonnon (και δεν εχει και scroll να παει παρακατω :rofl: ) -
14-03-10, 18:08
Θέμα: Amarok 2.0 released
Από Zaxariadis- Μηνύματα
- 1.137
- Εμφανίσεις
- 98.121
Απάντηση: Amarok 2.0 released
Ακομα δεν μπορουμε να να κανουμε bookmark καποιο φακελο, οπως παλιοτερα Εε?
π.χ.
/media/disk/music/GR/
η
/media/disk2/music/Reege
κριμα. Με βολευε πολυ το συγκεκριμενο feature.
θα στειλω "dislike".
Δεν καταλαβαινω γιατι το αφαιρεσαν. :hmm: εκτος αν απλα δεν δουλευει. -
28-02-10, 21:31
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
OK...
το βρηκα!
Οταν τελειωσε η διαδικασια μου "πεταξε" το CD εξω και εγω το εβγαλα θεωρωντας οτι ξερει τι κανει.
Αυτο ομως προσπαθουσε να κανει unmount το CD για να κανει reboot.
Το ξαναχωσα μεσα (με συνδετηρα) --> ENTER και τελος.
Το συστημα τωρα ειναι καπως ετσι...
http://img696.imageshack.us/img696/1438/gpartedx.th.png
THNX Flame... -
28-02-10, 15:45
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
ναι το φανταστηκα,
θα δοκιμασω το Live...
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
λοιπον,
το εκανα με Gparted Live και ενω ολα φαινονται να πηγαν κατ΄ ευχην, τωρα εχει "κολλισει ;;;" στη διαδικασια του reboot.
τρεχει το παρακατω μηνυμα
VFS: busy inodes on changed media or resized disk sr0
VFS: busy inodes on changed media or resized disk sr0
.
.
VFS: busy inodes on changed media or resized disk sr0
*τα νουμερα που εβαλα στις αγκυλες ειναι τυχαια
και δεν ξερω αν ειναι μερος της διαδικασιας - αρα αναμενω να τελειωσει -
η
ειναι ενα φυσιολογικο error μιας και partition που βλεπει τωρα ειναι διαφορετικο απο αυτο που "ειδε" στην αρχη -οποτε παω για force reboot-
η
κατι αλλο -τι κανω τοτε;-
καμια προταση; -
28-02-10, 15:42
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
A bit of HELP Plzzzz.
Εχω στο δισκο μου την κατασταση που φαινεται στην εικονα.
http://img37.imageshack.us/img37/327/gparteda.th.png
και οπως καταλαβαινετε ειμαι λιγο "στριμωκωλα".
Θελω λοιπον να κανω "μεταφορα" 2-3 Gb απο το /home στο / αλλα δεν θελω να το κανω απο Win και PartitionMagic.
Μπορει καποιος να μου δωσει/δειξει τα βηματα για να γινει αυτο?
(Wan ισως :redface: :innocent: ;;; )
Με το Gparted δεν γινετε (μαλλον) γιατι πρεπει να γινουν unmount το / και /home σωστα? -
19-02-10, 00:57
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
ρε σεις,
το KDE αρνειται πεισματικα να "αφησει" τα αρχεια και τα εικονιδια που εχω στο Desktop ησυχα. Με την παραμικρη αλλαγη (π.χ. δημιουργια νεου η μετονομασια καποιου υπαρχοντος) επιμενει να τα ταξινομει -ολα αριστερα-. :mad: :( :cry:
Τι και αν του λεω απο το menu icons (δεξι κλικ στο Desktop) παρατα τα οπως ειναι, τι κι αν τα κλειδωνω τπτ...
Παρατηρησε κανενας το τπτ παρομοιο? -
07-02-10, 16:59
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
μια μαυρη περιοχη εδω με τον konqi, παντως ο σταθμος παιζει κανονικα
Ναι ναι... και εδω παιζει κανονικα. Τα controls δεν βλεπω.
Thnx για το link -
07-02-10, 16:21
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Οταν πατε στο e-radio.gr με FF, εστω εδω μπορειτε να δειτε τα control buttons του παραθυρου; (κατω αριστερα)
Εμενα μου βγαζει μια γκρι περιοχη
http://img96.imageshack.us/img96/7692/enleuko.th.png
# pacman -Qs flash
local/flashplugin 10.0.42.34-1
Adobe Flash Player
local/swfdec 0.8.4-2
free library for decoding and rendering Flash animations
p.s.
Ranger... που ειναι το πλατζιν του Αμαροκου ? -
01-02-10, 20:02
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
@Zephyr
αρα δλδ απ' οτι καταλαβαινω δεν γλιτωνεις την επανεγκατασταση αν θες να αλλαξεις τα flags. :( -
01-02-10, 16:20
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Η καμερα σου δουλευει κανονικα υποθετω ετσι? με το Cheece π.χ παιρνεις εικονα.
-
01-02-10, 16:03
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Skype ειναι οκ... σε εμενα
amsn δεν σου δουλευει?
και το emesene εχει καμερα, το οποιο ομως αμφιβαλω αν δουλευει για MSN servers. -
01-02-10, 14:49
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Μηπως μετα απο τοση συζητηση γυρω απο τα PMs μπορει καποιος να προσεγγισει και αυτο.. :p :p :p
Εχω παρατηρησει την εξης συμπεριφορα στον pacman ...
Οταν αφαιρεις ενα meta-πακετο προκειμενου να απεγκαταστησεις καποιο απο τα πακετα που ειναι κατω απ' αυτο το meta χωρις να φυγει ολο το group, η εντολη
pacman -Qdt
Επιστρεφει οτι πακετο υπαρχει και ηταν "κατω" απο το πρωην meta (αφου ειχαν εγκατασταθει ως εξαρτισεις του - λογικο...)
Το θεμα ειναι οτι ετσι, χανεις τη δυνατοτητα να χρησιμοποιεις την εντολη για καθαρισμα απο τα "ορφανα", καθως στη λιστα περιλαμβανονται μεν ορφανα πακετα, τα οποια ομως ΔΕΝ ειναι αχρηστα.
Μπορει καποιος να ξεχωρισει τα "πραγματικα" ορφανα απο τα ορφανα καποιου meta-πακετου? :hmm: -
31-01-10, 18:18
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Εχω παρατηρησει την εξης συμπεριφορα στον pacman ...
Οταν αφαιρεις ενα meta-πακετο προκειμενου να απεγκαταστησεις καποιο απο τα πακετα που ειναι κατω απ' αυτο το meta χωρις να φυγει ολο το group, η εντολη
pacman -Qdt
Επιστρεφει οτι πακετο υπαρχει και ηταν "κατω" απο το πρωην meta (αφου ειχαν εγκατασταθει ως εξαρτισεις του - λογικο...)
Το θεμα ειναι οτι ετσι, χανεις τη δυνατοτητα να χρησιμοποιεις την εντολη για καθαρισμα απο τα "ορφανα", καθως στη λιστα περιλαμβανονται μεν ορφανα πακετα, τα οποια ομως ΔΕΝ ειναι αχρηστα.
Μπορει καποιος να ξεχωρισει τα "πραγματικα" ορφανα απο τα ορφανα καποιου meta-πακετου? :hmm: -
26-01-10, 19:59
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Βασικα ποτε κανενας δεν μου εδωσε σωστο xorg.conf για τις intel καρτες (οπως και για τις ATi εχει πολυ καιρο καποιος να μου δωσει ενημερωμενο).
Απο εκει και περα, εχουν αλλαξει και κανα-δυο ονοματα πακετων (ασχετα με την intel VGA).
Σε 2 βδομαδες, αφοτου βγει το KDE 4.4, θα τον ενημερωσω καποια στιγμη.
Χμμμ...
τοτε θα το παω ψαχτα υποθετω και βλεπουμε. -
26-01-10, 19:36
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
οκ then...
θα προχωρησω και θα σας πω λεπτομερειες.
Wan, πρεπει να αλλαξω καποιο βημα στον οδηγο λογο X4500? -
26-01-10, 14:50
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Ερωτηση...
Το Uni μου δινει ενα λαπτοπ (Model: Dell Latitude E6400) το οποιο εχει πανω
* Intel Graphics Media Accelerator X4500
θα αντιμετωπισω προβλημα βαζοντας του Arch?
Με ποιους drivers θα παιξει αυτη? -
22-01-10, 14:15
- Μηνύματα
- 7.343
- Εμφανίσεις
- 447.113
Απάντηση: Archlinux On-Line repository: Ερωτήσεις και απαντήσεις
Noμιζω μ'ενα pacman -Syy θα'σουν ΟΚ :p
Πιθανοτατα... αυτοι οι μπακαλιστικοι τροποι δεν ειναι οι ποιο αμεσοι συνηθως... Λογικο να εχει προβλεψει ο pacman για κατι τετοιο! -
22-01-10, 04:00
- Μηνύματα
- 7.343
- Εμφανίσεις
- 447.113
Απάντηση: Archlinux On-Line repository: Ερωτήσεις και απαντήσεις
Εκλεισε παιδια...
απλα αντι για
/var/lib/pacman/adslgr64.db.tar.gz
ηταν /var/lib/pacman/adslgr64.db.tar.gz.part
πρεπει να κοπηκε στη μεση καποια στιγμη...
rm /var/lib/pacman/adslgr64.db.tar.gz.part
κ
pacman -Syu
:) -
22-01-10, 01:29
- Μηνύματα
- 7.343
- Εμφανίσεις
- 447.113
Απάντηση: Archlinux On-Line repository: Ερωτήσεις και απαντήσεις
Εχουν αλλαξει οι downloaders εδω και καιρο στο pacman.conf.
Εχεις μηνες να ενσωματωσεις τις αλλαγες του pacman.conf.pacnew.
Wan, οντος ετσι ηταν... ειχα καιρο.
Εβαλα το καινουριο pacman.conf.pacnew ομως και παλι τα ιδια...
αυτο ειναι το .conf μου :
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
CacheDir = /mnt/D/pacman/pkg/
#LogFile = /var/log/pacman.log
HoldPkg = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl %u > %o
#CleanMethod = KeepInstalled
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options (all disabled by default)
#UseSyslog
#ShowSize
#UseDelta
#TotalDownload
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
#
# Repository entries are of the format:
#
# Server = ServerName
# Include = IncludePath
#
# The header is crucial - it must be present and
# uncommented to enable the repo.
#
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
#
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist
Server = http://adslgr64.tiven.org/kde4-eyecandy-64
Server = http://adslgr64.tiven.org/archlinux/x86_64
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist
#
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#
#Server = file:///home/custompkgs
και παιρνω παλι το ιδιο
kde4-eyecandy-64 is up to date
error: failed retrieving file 'adslgr64.db.tar.gz' from adslgr64.tiven.org : Requested Range Not Satisfiable
error: failed to update adslgr64 (Requested Range Not Satisfiable) -
21-01-10, 20:50
- Μηνύματα
- 7.343
- Εμφανίσεις
- 447.113
Απάντηση: Archlinux On-Line repository: Ερωτήσεις και απαντήσεις
εδω και αρκετο καιρο οταν κανω να συγχρονισω παιρνω αυτο...
# pacman -Syu
:: Synchronizing package databases...
kde4-eyecandy-64 is up to date
error: failed retrieving file 'adslgr64.db.tar.gz' from adslgr64.tiven.org : Requested Range Not Satisfiable
error: failed to update adslgr64 (Requested Range Not Satisfiable)
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
τι μπορει να φταιει? -
17-12-09, 21:46
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Το μονο που προγραμμα που δε καταφερα να το κανω να δουλεψει με WINE ειναι τα τρισκαταρατο sonicstage της παναθλιας sony για τα walkman της (μΕσα σε μια προταση 3 trademark λεξεις, τρισκαταρατη)
ΚΑΙ ΜΗΝ ΣΩΣΕΙ ΝΑ ΔΟΥΛΕΨΕΙ η μ@λ*κια! :evil: :evil:
Μου ειχε φαει τα σκοτια και εμενα.
παρε αυτο να βρεις την υγεια σου παιδακι μου...:
http://symphonic.sourceforge.net/page.php?4
και cross platform και VGA και ... που ελεγε και ενα βιντεακι παλια!
καθομαστε και ασχολουμαστε με τη Sony...
Αυτα και sorry για την παρεμβολη...
Θυμηθηκα τα δικα μου :mad: -
16-12-09, 14:10
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Χρειαζομαι τα φωτα των εμπειρων χρηστων linux :p
Εχω εναν φακελο με καμποσους υποφακελους. Σε καθε υποφακελο εχω ενα αρχειο με συγκεκριμενο ονομα. Πως μπορω να μετονομασω αυτο το συγκεκριμενο αρχειο σε καθε υποφακελο;
Δε ξερω αν εχει σημασια, αλλα οι υποφακελοι περιεχουν κενα
Μηπως να ποσταρεις το ιδιο και στο thread του bash??? Λογικα απο εκει θα βρεις τη λυση σου. -
14-12-09, 15:06
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Απο τον οδηγο του Wan...
How-To: Arch Linux - Στοχευστε στο κεντρο του Desktop η του file server
Τελος παμε να εγκαταστησουμε και τα ξεκουραστα fonts της Microsoft:
Παμε:
cd /usr/share/fonts
mkdir ms-fonts
Το directory ms-fonts που φτιαξαμε δεν ειναι απαραιτητο να το ονομασουμε ετσι. Μπορουμε να το ονομασουμε οπως μας καπνισει. Αρκει να εχει μονο μικρα λατινικα γραμματα χωρις κενα.
Πεταμε εκει μεσα οσα TrueType fonts θελουμε απο καποια εγκατασταση Windows που εχουμε και μετα δινουμε:
fc-cache -f -v
Εγω προσωπικα χρησιμοποιω πολυ τα DejaVu Sans -
14-12-09, 14:33
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Για οσους θελουν να ξερουν, να εγκαταστησουν το pkgtools, εχει ωραια εργαλειακια οπως:
1)pkgfile: Πες οτι θες να βρεις που ανηκει το libGL.so.1 (λεμε τωρα). Το τρεχεις, και το βρισκει.
2)newpkg: Σου ετοιμαζει PKGBUILD αναλογα με το τι θες να κανεις. ΠΟΛΥ ΚΑΛΟ.
3)spec2arch: Μετατρεπει RedHat spec files σε PKGBUILDs. ΠΟΛΥ χρησιμο, εαν υπαρχει ηδη κατι σε spec. Το φτιαχνεις και μετα το διορθωνεις εαν εχει λαθη.
Flame...
Τα 2 και 3 για καποιους απο εμας που δεν εχουμε την ευχερεια και την εμπειρια τη δικια σας στα πακεταρισματα ποσο ασφαλη ειναι?
...και μετα το διορθωνεις εαν εχει λαθη.
Μια κουβεντα ειναι αυτο... :p
Nα επαναφερω και το θεμα του pptp ? :oops: -
14-12-09, 00:06
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Ναι, αλλα δεν εβγαλα ακρη.
-
13-12-09, 23:58
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
ναι το παρατηρησα και με παραξενεψε και εμενα.
Οταν σεταρω ομως pptp connection και απο Kvpnc παιρνω το παρακατω
debug: Preserving network environment
debug: pppd: /usr/sbin/pppd
debug: Default interface: "wlan0".
error: Unable to start proc (getting IP address from interface).
debug: IP address of default interface: "".
debug: pppd peer script: /etc/ppp/peers/kvpnc.Soton
debug: pppd: /usr/sbin/pppd
debug: Trying to connect to server "152.78.128.142" with user "ΧΧΧΧΧ"...
debug: Setting DNS_UPDATE "NO".
debug: "pppd" started.
debug: sh: -c: line 0: syntax error near unexpected token `-1'
debug: sh: -c: line 0: `chat -t60 \"\"ATZ OK ATX3 OK ATDT CONNECT'
debug: Connect script failed
debug: Waiting for 1 child processes...
debug: script /usr/sbin/pptp --debug --loglevel 0 152.78.128.142 --nolaunchpppd, pid 3550
debug:
debug:
debug: Script /usr/sbin/pptp --debug --loglevel 0 152.78.128.142 --nolaunchpppd finished (pid 3550), status = 0x0
debug:
debug: Disconnect requested
debug: Disconnect requested, status connecting
debug: Killing process while connecting.
p.s.
to script ειναι αυτο...
# cat /usr/sbin/pptpsetup
#!/usr/bin/perl
use strict;
use Getopt::Long;
use vars qw($VERSION);
$VERSION = '0.03';
# Command-line parameters:
# actions
my ( $_create, $_delete, $_help );
# values
my ( $SERVER, $DOMAIN, $USERNAME, $PASSWORD, $ENCRYPT, $START );
my $result = GetOptions(
"create|c=s" => \$_create, # --create foo -> &create("foo")
"delete=s" => \$_delete, # --delete foo -> &delete("foo")
"help|h" => \$_help, # --help -> &help()
"server|s=s" => \$SERVER,
"domain|d=s" => \$DOMAIN,
"username|u=s" => \$USERNAME,
"password|p=s" => \$PASSWORD,
"encrypt|e" => \$ENCRYPT,
"start" => \$START,
);
if ($_create) {
&create($_create);
} elsif ($_delete) {
&delete($_delete);
} elsif ($_help) {
&help();
} else {
die "$0: too few arguments.\nTry '$0 --help' for more information.\n";
}
exit;
####
sub create {
my $TUNNEL = shift;
# system checking
&Check_MPPE_in_kernel
or die "$0: couldn't find MPPE support in kernel.\n";
&Check_MPPE_in_pppd
or die "$0: couldn't find MPPE support in pppd.\n";
# input validation
($TUNNEL) = $TUNNEL =~ m{^(\w+)$}
or die "$0: invalid tunnel name.\nTry '$0 --help' for more information.\n";
($SERVER) = $SERVER =~ m{^(.+)$}
or die "$0: invalid server.\nTry '$0 --help' for more information.\n";
($USERNAME) = $USERNAME =~ m{^(.+)$}
or die "$0: invalid username.\nTry '$0 --help' for more information.\n";
# ask password
if ( !$PASSWORD ) {
print "Password: ";
$PASSWORD =;
chomp $PASSWORD;
}
# put '\' between domain and username IF specified a domain
$DOMAIN = "$DOMAIN\\" if $DOMAIN;
# create or add lines to the /etc/ppp/chap-secrets file,
# which holds usernames and passwords
my $chap_secrets_file = '/etc/ppp/chap-secrets';
open( FILE, ">>$chap_secrets_file" )
or die "$0: can't write to '$chap_secrets_file': $!\n";
print FILE "\n# added by pptpsetup for $TUNNEL\n$DOMAIN$USERNAME $TUNNEL \"$PASSWORD\" *\n";
close FILE;
# create a /etc/ppp/peers/$TUNNEL file
my $tunnel_file = "/etc/ppp/peers/$TUNNEL";
open( FILE, ">$tunnel_file" )
or die "$0: can't write to '$tunnel_file': $!\n";
print FILE <<"TUNNEL";
# written by pptpsetup
pty "pptp $SERVER --nolaunchpppd"
lock
noauth
nobsdcomp
nodeflate
name $DOMAIN$USERNAME
remotename $TUNNEL
ipparam $TUNNEL
TUNNEL
print FILE "require-mppe-128\n" if $ENCRYPT;
close FILE;
# start tunneling
if ($START) {
system("pppd call $TUNNEL updetach");
}
}
####
sub help {
print <<'EOF';
pptpsetup --create--server
--username
pptpsetup --delete
Options:
* the name you wish to use to refer to the tunnel (you choose it),
* the IP address or host name of the server,
* the authentication domain name (optional),
* the username you are to use,
* the password you are to use,
* whether encryption is required,
* whether to start the connection after configuration.
pptpsetup - Point-to-Point Tunneling Protocol setup
Copyright (C) 2006 Nelson Ferraz
pptpsetup comes with ABSOLUTELY NO WARRANTY; for details see source.
This is free software, and you are welcome to redistribute it
under certain conditions; see source for details.
EOF
exit;
}
####
sub delete {
my $tunnel = shift;
# input validation
($tunnel) = $tunnel =~ m{^(\w+)$}
or die "$0: invalid tunnel name.\nTry '$0 --help' for more information.\n";
# delete tunnel file
my $tunnel_file = "/etc/ppp/peers/$tunnel";
unlink $tunnel_file
or die "$0: can't delete '$tunnel_file': $!\n";
# delete entry from chap-secrets
my $chap_file = '/etc/ppp/chap-secrets';
open( FILE, $chap_file )
or die "$0: can't read '$chap_file': $!\n";
my @chap =;
close FILE;
my $new_chap = '';
foreach (@chap) {
$new_chap .= $_ unless /\b$tunnel\b/;
}
# backup
rename( $chap_file, "$chap_file.bkp" );
# write new chap-secrets
open( FILE, ">$chap_file" )
or die "$0: can't write '$chap_file': $!\n";
print FILE $new_chap;
close FILE;
exit;
}
### AUXILIAR SUBS ###
sub Check_MPPE_in_kernel {
my $command = q/modprobe ppp-compress-18/;
if (system( $command ) == 0) {
# no error!
return 1;
} else {
return 0;
}
}
sub Check_MPPE_in_pppd {
my $command = q/strings `which pppd`|grep -i mppe|wc --lines/;
my $answer = `$command`;
if ($answer > 0) {
# ok!
return 1;
} else {
return 0;
}
}
__END__
=head1 NAME
pptpsetup - Point-to-Point Tunneling Protocol setup
=head1 SYNOPSIS
pptpsetup --create--server
--username
pptpsetup --delete
=head1 DESCRIPTION
PPTP Client is a Linux, FreeBSD, NetBSD and OpenBSD client for the
proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP.
This script configures PPTP Client on Linux.
=head1 OPTIONS
=over 16
=item --create TUNNEL
create a tunnel named TUNNEL
=item --delete TUNNEL
delete the file /etc/ppp/peers/TUNNEL and any lines from
/etc/ppp/chap-secrets that contains "TUNNEL" as a single word
=item --server SERVER
the IP address or host name of the server
=item --domain DOMAIN
the authentication domain name (optional)
=item --username USERNAME
the username you are to use
=item --password PASSWORD
the password you are to use. If you don't specify a password,
pptpsetup will ask for one.
=item --encrypt
whether encryption is required
=item --start
whether the connection should be started after configuration.
=back
=head1 AUTHOR
Nelson Ferraz,
based on James Cameron's PPTP Client Debian HOWTO.
=head1 SEE ALSO
=over 16
=item PPTP Client Debian HOWTO
http://pptpclient.sourceforge.net/howto-debian.phtml
=item PPTP Client Diagnosis HOWTO
http://pptpclient.sourceforge.net/howto-diagnosis.phtml
=back
=head1 COPYRIGHT
pptpsetup - Point-to-Point Tunneling Protocol setup
Copyright (C) 2006 Nelson Ferraz
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -
13-12-09, 23:50
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Ρε παιδια, (γεια χαρα καταρχην)
Προσπαθω εδω και καιρο να σηκωσω ενα VPN με το Uni μου (University of Southampton) και δεν μπορω να το κανω να δουλεψει με τπτ οταν με την Πατρα συνδεομαι κανονικοτατα με openVpn και το config file του Uni.
Το θεμα εδω ειναι οτι το Soton χρησιμοποιει pptp. Ετσι δοκιμασα both Kvpnc και pptpsetup.
To error που μου επιστρεφει πρεπει να σχετιζεται με το script του pptpsetup και ειναι αυτο... :
# pptpsetup --create Soton --server 152.78.128.142 --domain 152.78.88.3 --username ΧΧΧΧΧ --start
Password: ΧΧΧΧΧΧΧ
sh: -c: line 0: syntax error near unexpected token `-1'
sh: -c: line 0: `chat -t60 \"\"ATZ OK ATX3 OK ATDT <8962488888> CONNECT'
Connect script failed
Waiting for 1 child processes...
script pptp 152.78.128.142 --nolaunchpppd, pid 3312
Script pptp 152.78.128.142 --nolaunchpppd finished (pid 3312), status = 0x0
Any ideas? -
14-11-09, 18:20
- Μηνύματα
- 7.343
- Εμφανίσεις
- 447.113
Απάντηση: Archlinux On-Line repository: Ερωτήσεις και απαντήσεις
Εγω παντως μολις προχθες, με το ιδιο build δηλαδη, εγραψα επιτυχως 2 ISOs.
:hmm: Τι να πω ... -
14-11-09, 17:27
- Μηνύματα
- 7.343
- Εμφανίσεις
- 447.113
Απάντηση: Archlinux On-Line repository: Ερωτήσεις και απαντήσεις
Για χαρα...
Εχω βαλει το K3b απο repo αλλα χτυπαει error καθε που επιχειρω να γραψω image (ISO). Δεν μιλαω γενικα γιατι στα ISO το αντιμετωπισα. ΔΕΝ εχω δοκιμασει κατι αλλο ομως για να αποκλεισω το ενδεχομενο να χτυπαει και εκει...
Το error ειναι αυτο
"cdrecord has no permission to open the device"
το οποιο εχει αναφερθει και στο παρελθον.
δοκιμασα:
α) να τρεξω το k3b ως root. Error ξανα. Οχι permissions αυτη τη φορα αλλα ξανα δεν σταιθηκε δυνατο να γραψει.
β) να τρεξω chmod 4710 /usr/bin/cdrecord. Δεν αλλαξε κατι
γ) να τρεξω k3bsetup και να επιλεξω αλλαγη στα permissions. Τα ιδια.
Αναρωτιεμε αν αυτο ειναι προβλημα ρυθμισεων δικων μου, της csv, του k3b γενικα η ακομα και του hal. -
13-11-09, 14:45
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Εχει κανεις αλλος προβλημα με τα controls σε flashακια (σε websites); Σε ακαθοριστες φασεις σταματουν να λειτουργουν.
Τα ιδια και εδω...
ειναι σαν τα συρρικνωνεται στο 1 πιξελ η ενεργος περιοχη και πρεπει να την ψαχνεις κλικαροντας πανω στο κουμπι μεχρι να πιασει. -
12-11-09, 16:35
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Αααα!
Πρεπει να εχει... Αλλα ως τωρα το απευευγα.
θα δοκιμασω και ετσι.
Τελικα κατεληξα σε αυτο
################## the TwinView stuff ####################
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "DFP-0"
Option "MetaModes" "CRT: nvidia-auto-select +0+0, DFP-0: 1280x800 +1680+250"
Option "TwinViewOrientation" "RightOf"
Option "SecondMonitorHorizSync" "UseEdidFreqs"
Option "SecondMonitorVertRefresh" "UseEdidFreqs"
###########################################################
:) -
12-11-09, 16:16
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
ΟΚ το βρηκα.
Απλα προσθετεις αυτα στο Xorg
Option "TwinView" "on"
Option "TwinViewOrientation" "RightOf"
Option "SecondMonitorHorizSync" "UseEdidFreqs"
Option "SecondMonitorVertRefresh" "UseEdidFreqs"
το θεμα για μενα ειναι οτι οπως λεει και η nvidia:
TWIN VIEW
All mobile NVIDIA chips support TwinView. TwinView on a laptop can be configured in the same way as on a desktop machine (please refer to Appendix G ); note that in a TwinView configuration using the laptop's internal flat
panel and an external CRT, the CRT is the primary display device (specify it's HorizSync and VertRefresh in the Monitor section of your X config file) and the flat panel is the secondary display device (specify it's HorizSync and VertRefresh through the SecondMonitorHorizSync and SecondMonitorVertRefresh options). You can also employ the UseEdidFreqs option to acquire the HorizSync
and VertRefresh from the EDID of each display devices, and not worry about setting them in your X config file (this should only be done if you trust your display device's reported EDIDs -- please see the description of the
UseEdidFreqs option in Appendix D for details).
Εγω ομως θελω το αντιθετο. Θελω η CRT να ειναι η 2ndary.
Μπορω να κανω τπτ γιαυτο; -
12-11-09, 14:48
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
:D
Δουλευει...
Touch Pad ΟΚ και μενει να τσεκαρω και την εξοδο για τη 2η οθωνη (οταν βρω ανταπτορα :p )
Ευχαριστω flame :)
Δεν δουλευει...
Μαλλον πρεπει να τη δηλωσω στο Χorg :( -
12-11-09, 14:21
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Νομιζω οτι και εδω υπαρχουν καποια σκαλωματακια και μαλλον ειναι ο νεος Xorg.
Λιγο στην αποκριση του Lancelot, λιγο στο FF, λιγο στην Konsole...
Υπαρχει καποιος τροπος να το ποσοτικοποιησω για να σας πω ακριβως;
Καποιο ΤΕΣΤ ας πουμε;
Laptop: GeForce Go 7600 (vesa) / xorg-server 1.7.1.901-3 / KDE / xorg.conf (auto generated και μετα τροποποιηθηκε βαση του "Οδηγου")
Xorg.conf
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "SynapticsTouchpad" "SendCoreEvents"
InputDevice "Configured Mouse"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
Load "synaptics"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
Identifier "SynapticsTouchpad"
Driver "synaptics"
Option "AlwaysCore" "true" # send events to CorePointer
# Option "Device" "/dev/input/mice"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "SHMConfig" "false" # configurable at runtime? security risk
Option "LeftEdge" "1700" # x coord left
Option "RightEdge" "5300" # x coord right
Option "TopEdge" "1700" # y coord top
Option "BottomEdge" "4200" # y coord bottom
Option "FingerLow" "25" # pressure below this level triggers release
Option "FingerHigh" "30" # pressure above this level triggers touch
Option "MaxTapTime" "280" # max time in ms for detecting tap
Option "VertEdgeScroll" "true" # enable vertical scroll zone
Option "HorizEdgeScroll" "true" # enable horizontal scroll zone
Option "CornerCoasting" "true" # enable continuous scroll with finger in corner
Option "CoastingSpeed" "0.30" # corner coasting speed
Option "VertScrollDelta" "100" # edge-to-edge scroll distance of the vertical scroll
Option "HorizScrollDelta" "100" # edge-to-edge scroll distance of the horizontal scroll
Option "MinSpeed" "0.04" # speed factor for low pointer movement
Option "MaxSpeed" "1.50" # maximum speed factor for fast pointer movement
Option "AccelFactor" "0.060" # acceleration factor for normal pointer movements
Option "VertTwoFingerScroll" "true" # vertical scroll anywhere with two fingers
Option "HorizTwoFingerScroll" "true" # horizontal scroll anywhere with two fingers
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS" "True"
Option "DPI" "96 x 96"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Extensions"
Option "Composite" "enable"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x800"
Viewport 0 0
EndSubSection
Option "DPI" "96 x 96"
Option "AddARGBGLXVisuals" "true"
Option "TripleBuffer" "true"
EndSection -
12-11-09, 01:25
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Εχει παρατηρησει κανεις προβλημα με το Wine μετα τα τελευταια updates? :hmm:
Ξαφνικα, οταν αλλαζω γλωσσα στο πληκτρολογιο (σε wine εφαρμογη π.χ. Polylex και Origin) αρνειται να γραψει ελληνικα. Εννοω δεν παιρνει εισοδο καθολου. Παπαλα. Τιποτα. Σαν να μην εχω keyboard. -
11-11-09, 00:09
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
# pacman -Sy libstdc++5
Τωρα, δοκιμασε να το ξανατρεξεις...
ναι, μετα που το ειπες... και με την bin32 και με την 64ρα... τπτ!
(ειναι 64αρι το συστημα).
ομως οκ προς το παρον...
Το τρεναρισα το project και δεν θα το χρειαστω αμεσα :p
Υ.Γ.
Ας το δοκιμασει και ενας 32bitos... ετσι απο περιεργεια :rolleyes: -
10-11-09, 16:28
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
Ευχαριστω παρα πολυ!
Ολα ΟΚ με το πακεταρισμα. :)
διστυχος ομως το LabView αρνειται να "τρεξει" :sorry: :sorry: :sorry:
$ ./labview
Fatal Internal Error : "AppEntryPoint.cpp", line 74
LabVIEW version 8.5
You will lose any unsaved work. For assistance in resolving this problem, please relaunch LabVIEW, or contact National Instruments.
Aborted -
10-11-09, 14:42
Θέμα: Περί Arch Linux... (v3)
Από Zaxariadis- Μηνύματα
- 2.542
- Εμφανίσεις
- 106.867
Απάντηση: Περί Arch Linux... (v3)
A little help, please...!
Εχω κατεβασει το LabVIEW για Linux αλλα ειναι σε rpm μορφη.
Μεσα ο καταλογος εχει ενα cript-ακι το οποιο οπως διαβασα στο ArchForum εγκαθιστα κανονικα το Software αλλα το uninstall λενε οτι δουλευει μονο για rpm based systems.
Υπαρχει καμια "εναλλακτικη" για την εγκατασταση?
Διατρεχω καποιον "κινδυνο" τρεχοντας το script?
p.s.
Τα install & Uninstall scripts ειναι αυτα...
install
#!/bin/bash -
#
# LabVIEW 8.5 installation script. Copyright (c)2007 National Instruments Corp.
#
ORIGPATH=$PATH
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
export PATH
TLR=85
REQSTDLIB=/usr/lib/libstdc++.so.5
LVONLY= # skip drivers
NSPLUGIN=LV85NPlugin.so
BETA=
RPMBUILD=1
EFPKG="NI Example Finder (LabVIEW 8.5)"
EFVERS="1.0"
SKIPEF=
SUBR=
EFMINR="-8$BETA"
RTEAALVERS="1.1-1"
MINR="-$RPMBUILD$BETA"
MAJVERS="8.5"
VERS="$MAJVERS$SUBR"
VISAVERS=4.2
VISADIR=NI-VISA-$VISAVERS
CVIRTVERS=5.0.1-3
ENETVERS=2.2.0
ENETDIR=nienet-$ENETVERS
DDIR=natinst/LabVIEW-$MAJVERS
LVRTE=lib/LabVIEW-$MAJVERS
UPGRADE=
PLAT=linux
if ; then
RPM=/usr/bin/rpm
else
RPM=/bin/rpm
fi
RPMOPT="-Uvh" # Options for LabVIEW package installation
TAR="tar"
OSNAME="`uname -s`"
sorry() {
echo "Sorry, LabVIEW is not currently available for this O/S and architecture."
echo "Visit http://www.ni.com/support/ to search the knowledge base"
echo "or http://www.ni.com/ask/ to obtain e-mail tech. support."
exit 1
}
#
# Initialization
#
CDPATH="`dirname $0`"
case "$CDPATH" in
/*) ;;
.) CDPATH="`pwd`" ;;
*) CDPATH="`pwd`/$CDPATH" ;;
esac
case "$OSNAME" in
Linux)
case "`uname -m`" in
i*86|x86_64)
ARCH=i386
ALTARCH=i386
OSNAMEV="GNU/Linux"
OSDIR=linux
NORPM=
# Gentoo has RPM but the system is not installed using it, so
# rpm dependencies will not be satisfied for our packages.
if # don't try to query for packages
then
NORPM=y
fi
if ; then
# Slackware and Debian/Ubuntu have RPM, but it's broken
# and fails on all dependencies.
NORPM=y
fi
VERSR=$MAJVERS$SUBR$MINR
DPKGEXT=".$ARCH.rpm"
PKGEXT="-$VERSR"
DFLTPREFIX=/usr/local
if ; then
DFLTPREFIX="`rpm -q --queryformat '%{instprefixes}' labview85-core`"
fi
LIBDIR=$DFLTPREFIX
GPIBVERS="NI-488.2 2.5.1"
GPIBDIR=NI-488-2.5.1
BASEDIR=$DFLTPREFIX
tarx () { $TAR xfz "$@"; }
echon () { echo -n "$@"; }
;;
*) sorry ;;
esac
;;
SunOS)
case "`uname -p`" in
sparc)
ARCH=sparc
ALTARCH=sparc
OSNAMEV="Sun Solaris"
OSDIR=solaris
NORPM=y
MINR=
EFMINR=
VERSR=$MAJVERS$SUBR
DPKGEXT=".tar.gz"
PKGEXT="-$VERSR"
LIBDIR=/usr
BASEDIR=/opt
GPIBVERS="PCI/SB/SCSI/ENET"
GPIBDIR=GPIB
tarx () { "$CDPATH/bin/gunzip" < "$@" | $TAR xf -; }
echon () { echo "$@\c"; }
;;
*) sorry ;;
esac
;;
*) sorry ;;
esac
if ; then
USERPM=y
fi
rawefpkg1="niexfinder-base-$EFVERS$EFMINR"
efpkg1="$rawefpkg1$DPKGEXT"
webpipebase="niwebpipeline20_dep"
webpipepkg="$webpipebase-2.0-5.i586.rpm"
rawefpkglv="niexfinder-labview$TLR-$EFVERS$EFMINR"
efpkglv="$rawefpkglv$DPKGEXT"
efpkg="$efpkg1 $efpkglv"
rtepkg="labview$TLR-rte$PKGEXT"
rteaalpkg="labview-rte-aal-$RTEAALVERS"
corepkg="labview$TLR-core$PKGEXT"
allpkg="$rtepkg $rteaalpkg $corepkg labview$TLR-examples$PKGEXT labview$TLR-help$PKGEXT labview$TLR-ref$PKGEXT labview$TLR-vxi$PKGEXT labview$TLR-desktop$PKGEXT labview$TLR-appbuild$PKGEXT labview$TLR-pro$PKGEXT"
cvirtpkg="nicvirte-$CVIRTVERS-3"
get_install_dir () {
if ; then
return
fi
olddir="`pwd`"
origdir=$instdir
while :
do
dir=$instdir
case "$RPMVERS" in
4.0.2|4.1*|4.2.1) ;;
*)
echo ""
echo $1
test ! -z "$2" && echo "$2"
test ! -z "$3" && echo "$3"
test ! -z "$4" && echo "$4"
echon " "
read ans
if ; then
dir=$ans
fi
;;
esac
echo ""
case "$dir" in
/*) ;;
*) exit 1 ;;
*) echo "Directory must begin with /"
continue ;;
esac
if ; then
echo "That path already exists as a regular file!"
echo "A directory path is required."
continue
fi
if ; then
echon "$dir does not exist. Create? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) mkdir -p "$dir" ;;
*) echo "Aborted."; exit 1 ;;
*) continue ;;
esac
fi
cd "$dir" 2>/dev/null
if touch "$dir/foo" 2>/dev/null; then
rm -f "$dir/foo"
break
else
echo "Cannot write to $dir. Check directory permissions. You may need to"
echo "run the installer as root"
fi
done
instdir="$dir"
cd "$olddir"
echo ""
}
summary () {
case "$1" in
*.rpm)
if ; then
$RPM -qp --queryformat '%{name}: %{summary}\n' "$1"
elif ; then
"$CDPATH/bin/rpmq" --rcfile=/dev/null -qp --queryformat '%{name}: %{summary}\n' $1
else
echo "Install $1"
fi
;;
*.tar.gz)
if ; then
case "$1" in
lv*) echo "Install $BETA" ;;
ef*) echo "Install $EFPKG" ;;
*) echo "Install $1" ;;
esac
else
basef="`echo $1 | sed 's,\.tar\.gz,,'`"
pkginfof=".$basef.info"
if ; then
pkginfo=`head -1 "$CDPATH/$pkginfof"`
echo "Install $basef: $pkginfo"
else
echo "Install $1"
fi
fi
;;
esac
}
info_rpm () {
case "$1" in
*.rpm)
if ; then
$RPM -qip "$1"
elif ; then
"$CDPATH/bin/rpmq" --rcfile=/dev/null -qp --queryformat \
'Name : %-27{NAME}\
Version : %-27{VERSION} Vendor: %{VENDOR}\
Group : %-27{GROUP} Size: %{SIZE}\
%|LICENSE?{License : %{LICENSE}}|\
%|URL?{URL : %{URL}}|\
Summary : %{SUMMARY}\
Description :\n%{DESCRIPTION}\n' $1
else
echo "$1: can't read RPM description info"
fi
;;
*.tar.gz)
basef="`echo $1 | sed 's,\.tar\.gz,,'`"
pkginfof=".$basef.info"
if ; then
echo "Name: $basef"
echon "Summary: "
head -1 "$CDPATH/$pkginfof"
echo "Description:"
sed -n -e '3,/^$/p' $CDPATH/$pkginfof
fi
;;
esac
}
#
# vercmp() - compares two RPM-style version numbers and returns -1, 0, 1
# to indicate if the first verison is less than, equal to, or greater than
# the second. Version numbers can be specified with or without release
# suffixes. Alpha, beta, etc. suffixes should always specified be in the
# release portion.
#
# Examples:
# vercmp 1.0 1.0.1
# vercmp 1.0-a1 1.0-a12
# vercmp 1.0.1-b1 1.0-1
# vercmp 2.2.3.4-99 2.2.4
# vercmp 8.2-d120 8.2-0b129
# vercmp 8.2-0b129 8.2-0rc0
# vercmp 8.2-0rc0 8.2-1
vercmp() {
canonicalizeVersion() {
canonicalVersion=`echo "$1" |
sed -e 's,\(\)\(\),\1.000.\2,g' \
-e 's,\(\)\(\),\1.\2,g' \
-e 's,^\(\),---.\1,' \
-e 's,\b\(\)\b,00\1,g' \
-e 's,\b\(\)\b,0\1,g'`
}
local arg1 arg2 nResult firstVers secondVers resultVers
if ; then
return 0;
fi
arg1=`echo "$1" | sed 's,-.*$,,'`
arg2=`echo "$2" | sed 's,-.*$,,'`
if ; then
vercmp "$arg1" "$arg2"
nResult=$?
if ; then
return $nResult
fi
fi
canonicalizeVersion `echo "$1" | sed 's,^.*-,,'`
firstVers="$canonicalVersion"
canonicalizeVersion `echo "$2" | sed 's,^.*-,,'`
secondVers="$canonicalVersion"
resultVers=`(echo "$firstVers"; echo "$secondVers") |
LC_ALL=C sort -t. | head -1`
if ; then
return -1
else
return 1
fi
}
confirm_install() {
rpmpkgs=
echon "The following components will be installed "
if ; then
echo "using rpm:"
else
echo "using cpio:"
fi
echo ""
totalSizeKB=0
for arg in "$@"
do
componentSizeKB=0
if ; then
case "$arg" in
niwebpipeline*)
componentInfo="NI Web Pipeline dependency libraries "
;;
*)
componentInfo=`$RPM -qp --queryformat '%-50{SUMMARY} ' $arg`
;;
esac
componentSizeKB=`$RPM -qp --queryformat '%{SIZE}' "$arg"`
else
componentInfo="$arg "
componentSizeKB=`$CDPATH/bin/rpmq -qp --rcfile=/dev/null --queryformat '%{SIZE}' "$arg"`
fi
if ; then
echo "Unable to find installation size for $arg"
return 1
fi
componentSizeKB=`expr $componentSizeKB / 1024`
printf "%s %d kB\n" "$componentInfo" $componentSizeKB
totalSizeKB=`expr $totalSizeKB + $componentSizeKB`
done
echo ""
echo "Total space required: $totalSizeKB kB"
echon "Space available: "
freespace=`df -k $BASEDIR | tail -1 | awk '{print $(NF-2)}'`
echo "$freespace kB"
echo ""
if ; then
return 0
fi
if ; then
echo "WARNING - not enough disk space to install selected packages."
echon "Proceed? "
else
echon "Proceed? "
fi
read ans
if ; then
test -z "$ans" && ans=n
else
test -z "$ans" && ans=y
fi
case "$ans" in
*) return 0 ;;
*) echo "Aborting installation."; exit 0 ;;
esac
echo "Skipping installation."
return 1
}
install_pkg() {
rpmpkgs=
for arg in "$@"
do
case "$arg" in
*-rte-*|*-rte-aal-*)
instdir=$LIBDIR
chowndir=$RTEDIR
msgdir=$LIBDIR/lib
isrte=y
isother=n
;;
labview85*)
instdir=$BASEDIR
chowndir=$LVDIR
msgdir=$BASEDIR
isrte=n
isother=n
;;
*)
instdir=$LIBDIR
chowndir=$RTEDIR
msgdir=$LIBDIR/lib
isrte=n
isother=y
;;
esac
case "$arg" in
*.rpm)
RPMPREFIX=
if ; then
RPMPREFIX="--prefix '$instdir'"
fi
if ; then
if ; then
"$RPM" $RPMOPT --replacepkgs --replacefiles $RPMPREFIX $arg
elif ; then
"$RPM" $RPMOPT --replacepkgs --replacefiles $arg
else
rpmpkgs="$rpmpkgs $arg"
LVRPMPREFIX="$RPMPREFIX"
fi
else
mkdir -p "$instdir" 2>/dev/null
/bin/sh "$CDPATH/bin/INSTALL.norpm" $arg "$instdir"
fi
;;
*.tar.gz)
basef="`echo $arg | sed 's,\.tar\.gz,,'`"
echo "Extracting files in package $basef into $msgdir."
(cd "$instdir"; tarx "$CDPATH/$arg")
status=$?
if ; then
echo "File extraction failed. Please check available disk space."
return 1
fi
pkginfof=".$basef.info"
# Extract and execute postinstall script
if ; then
tmpscript=/tmp/lvpostin.$$.sh
sed -n '/^#### postinstall/,$p' "$CDPATH/$pkginfof" > $tmpscript
RPM_INSTALL_PREFIX=$instdir LIBDIR=$LIBDIR BASEDIR=$BASEDIR /bin/sh $tmpscript
rm -f $tmpscript
fi
if ; then
chown -R root "$chowndir"
chgrp -R root "$chowndir"
fi
;;
esac
done
if ; then
"$RPM" $RPMOPT --replacefiles --replacepkgs $LVRPMPREFIX $rpmpkgs
if ; then
echo ""
echo "*** ERROR installing packages."
echo "Check that you have enough disk space and that the target filesystem" echo "is writable."
fi
fi
return 0
}
install_labview () {
echo "NOTE: LabVIEW will install by default in /usr/local/natinst/LabVIEW-8.5,"
echo "or in the natinst/LabVIEW-8.5 subdirectory if you specify an alternate location."
echo ""
echo "Preparing for installation..."
if ; then
GLIBCV=`ldd --version | head -1 | sed -e 's/.* //'`
echo "C runtime library (glibc) version: $GLIBCV."
case "$GLIBCV" in
*2.2.*) ;;
*2.*) ;;
*.*) ;;
*) echo "WARNING: It does not appear that your are running GNU C Library version 2.2.4"
echo " or later. glibc-2.4.4 is required to upgrade. See the README file"
echo " for information on how to upgrade this library." ;;
esac
if ; then
RPMVERS="`$RPM --version | sed 's,^RPM version ,,'`"
echo "Red Hat Package Manager (RPM) version: $RPMVERS."
case "$RPMVERS" in
*)
echo ""
echo "Note: RPM version $RPMVERS is too old for rpm package installation."
echo "LabVIEW packages will be extracted directly."
NORPM=y
;;
4.0.2|4.1.*|4.2.1)
echo ""
echo "Note: Your system's RPM package manager (version $RPMVERS) has a bug preventing"
echo "package relocation. LabVIEW will be installed in the default location"
echo "of $BASEDIR. If you need files to be installed on a different partition,"
echo "you may upgrade or downgrade to RPM 4.0.4 or RPM 4.2 (versions 4.0.2, 4.1 and"
echo "4.2.1 are broken), or you may make a symbolic link from $BASEDIR/lv$TLR to"
echo "another directory prior to installation. To contact Red Hat about these issues,"
echo "send e-mail to support@redhat.com."
echo ""
echo "Enter 's' if you wish to skip LabVIEW installation or 'q' to quit."
;;
*)
;;
esac
if ; then
ENFORCING=`/usr/sbin/getenforce | grep -i enforc >/dev/null 2>&1`
if ; then
echo ""
echo "*** You appear to have SELinux enabled on your system in 'enforcing' mode."
echo "If you experience errors in LabVIEW loading projects, make sure you have the"
echo "latest selinux-policy-targeted RPM package update from your vendor"
echo "(or disable SELinux with /usr/sbin/setenforce permissive)."
echo ""
fi
fi
fi
fi # QUICK
if ; then
proceed=y
if ; then
echo ""
echo "NOTE: This is an upgrade only; you must have $UPGRADE installed to proceed."
echo ""
fi
while ;
do
PREVDIR="$instdir"
#get_install_dir "Please enter the base path of your previous $UPGRADE installation." \
# "(Packages will be installed in the '$DDIR' subfolder.)"
if ; then
proceed=n
else
echo "That directory does not seem to contain a LabVIEW installation."
echo "An existing $UPGRADE installation is required to upgrade to $VERS."
instdir="$PREVDIR"
exit 1
fi
done
echo ""
echo "LabVIEW $VERS updates will be installed in on top of the existing $UPGRADE"
echo "installation. Files will be installed in $instdir/$DDIR"
echo ""
else
instdir=$BASEDIR
#get_install_dir "Where would you like to install LabVIEW packages?" \
#"(Packages will be installed in a subfolder named '$DDIR'.)"
fi
BASEDIR=$instdir
LVDIR=$instdir/$DDIR
ans=""
asked=""
if ; then
echo "NOTE: This is an upgrade only; you must have $UPGRADE installed to proceed."
fi
if ; then
echo "Please indicate whether you would like to install the following components:"
echo ""
fi
for rawpkg in $allpkg
do
pkg=$rawpkg$DPKGEXT
ask=""
errout=">/dev/null 2>&1"
if ; then
if ; then
ask=y
else
case "$pkg" in
*.rpm)
if ; then
#eval "$RPM" --ignoresize --test $RPMPREFIX $RPMOPT $pkg $errout
eval $RPM -q "$rawpkg" $errout
if ; then
echon # "Package $rawpkg is already installed."
else
ask=y
fi
else
ask=y
fi
;;
*.tar.gz)
ask=y
;;
esac
fi
fi
if ; then
while :
do
asked=y
if ; then
summary $pkg
ans=y
elif ; then
ans=y
else
summary $pkg
echon " "
read ans
test -z "$ans" && ans=y
fi
case "$ans" in
*) packages="$packages $pkg"
if ; then
installrte=y
fi
break ;;
*) packages="$packages $pkg"
echo "Selecting all packages..."
if ; then
installrte=y
fi
if ; then
skipconfirm=y
fi
installpkg=y
break ;;
*)
info_rpm $pkg
echo ""
echo "Enter 'y' to install this package, 'n' to skip, 'a' to install all LabVIEW"
echo "packages, 's' to skip all, or 'q' to abort installation entirely."
echo "" ;;
*) echo "Installation aborted."
exit 1 ;;
*) echo "Skipping LabVIEW installation."
packages=
break 2 ;;
*) echo "Proceeding."
skipconfirm=y
break 2 ;;
*) break ;;
esac
done
fi
done
lvstat=0
if ; then
echo "All available LabVIEW packages have already been installed or cannot"
echo "be installed due to package conflicts."
elif ; then
echo "No LabVIEW packages were selected."
else
RTEDIR=$LIBDIR/$LVRTE
skip=
if ; then
if ; then
$RPM -q `$RPM -qp $webpipepkg` >/dev/null 2>/dev/null
if ; then
installweb=y
fi
fi
else
installweb=y
fi
if ; then
echo ""
echo "You have selected packages which depend on the LabVIEW run-time engine, but did"
echo "not select the run-time engine and it is not already installed."
echon "Do you wish to install $rtepkg as well? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) packages="$rtepkg$DPKGEXT $packages" ;;
*) echo "Aborting installation."
exit 1 ;;
*) echo "Skipping LabVIEW package installation."
skip=y ;;
esac
fi
if ; then
echo ""
if ; then
echo "Auto-selecting dependency $webpipepkg"
packages="$packages $webpipepkg"
if ; then
echo "Auto-selecting dependency $rawefpkg1"
packages="$packages $efpkg1"
fi
echo ""
fi
if ; then
confirm_install $packages
fi
if ; then
echo "Installing..."
install_pkg $packages
lvstat=$?
fi
fi
fi
LVRTLINK=$LIBDIR/lib/liblvrt.so
DARKLINK=$LIBDIR/lib/liblvrtdark.so
askresetlnk=
# If they've installed an older RTE more recently than this one, offer
# to recreate the 'current' link
echo ""
if ; then
:
elif ; then
askresetlnk=y
echo "Run-time engine link $LVRTLINK does not exist."
echon "Create it? "
elif ; then
LTARG=
TMPLVRTLINK=$LVRTLINK
while ]; do
LTARG=`ls -l $TMPLVRTLINK | sed 's,^.* -> ,,'`
TMPLVRTLINK="$LIBDIR/lib/$LTARG"
done
LTARGVERS=`echo $LTARG | sed 's,.*liblvrt\.so\.,,'`
if ; then
vercmp $VERS $LTARGVERS
cmp=$?
if ] ; then
RTELINKCURRENT=y
elif ] ; then
askresetlnk=y
echo "Run-time engine link $LVRTLINK exists but points to an older"
echo "version ($LTARGVERS). This link determines which version of the LabVIEW"
echo "run-time to use when building C/C++ applications. Do you want to recreate"
echon "the link to make $VERS the default run-time engine? "
fi
fi
fi
if ; then
read ans
test -z "$ans" && ans=y
case "$ans" in
*)
rm -f $LVRTLINK $DARKLINK
echo "Recreating link to LabVIEW $VERS run-time engine."
echo ""
ln -s liblvrt.so.$MAJVERS $LVRTLINK
test -f $LIBDIR/lib/liblvrtdark.so.$MAJVERS && ln -s liblvrtdark.so.$MAJVERS $DARKLINK
;;
esac
fi
if ; then
if ; then
efpkg="$efpkg $webpipepkg"
fi
echo ""
ans=
if ; then
if ; then
eval $RPM -q "$rawefpkg1" $errout
efstat=$?
eval $RPM -q "$rawefpkglv" $errout
if ; then
echo "Package $rawefpkg1 is already installed."
ans=n
else
echon "Would you like to install $EFPKG? "
read ans
test -z "$ans" && ans=y
fi
fi
fi
if ; then
ans=y
fi
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
echo "Installing NI Example Finder..."
install_pkg $efpkg
SHAREDIR=`cat /etc/natinst/share/share.dir 2>/dev/null`
# Make a link from old EF loc to new so LV 7.1 can find it.
if ; then
mkdir -p "/usr/local/share/natinst/example finder/1.0/bin"
ln -s -f "$SHAREDIR/example finder/1.0/bin/NIExampleFinder" "/usr/local/share/natinst/example finder/1.0/bin/NIExampleFinder" 2>/dev/null
fi
;;
esac
fi
if ; then
if ; then
echo ""
echon "Would you like to install the LabVIEW web browser plugin? "
read ans
else
ans=y
fi
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
found=no
echo ""
echo "Checking for Mozilla/Firefox/Netscape 6+ installation..."
(
MDIRS=`echo /usr/lib/firefox /usr/lib/mozilla /usr/lib/mozilla-* /usr/local/lib/firefox /usr/local/mozilla /usr/local/mozilla-* /opt/mozilla /opt/mozila-* /opt/MozillaFirefox/lib /opt/gnome/lib/mozilla /opt/gnome/lib/mozilla-* /opt/netscape /usr/lib/netscape /usr/local/netscape /usr/local/lib/netscape /opt/SUNWns`
if ; then
dirs=`locate -r '/plugins$' | egrep 'mozilla|netscape|firefox' | grep -v '/\.' | sed 's,/plugins,,'`
for d in $dirs ; do
if ; then
MDIRS="$MDIRS $d"
fi
done
fi
MDIRS=`echo "$MDIRS" | tr ' ' '\n' | sort | uniq`
for dir in $MDIRS
do
if ; then
if ; then
echo "Copying plugin to $dir/plugins"
cp -f $LIBDIR/lib/LabVIEW-$VERS/$NSPLUGIN $dir/plugins
else
echo "Cannot write to browser plugin directory $dir/plugins"
fi
found=yes
else
true
fi
done
if ; then
echo "None found. If you have Netscape 6, Mozilla, or Firefox installed in a"
echo "non-standard location, copy $LIBDIR/lib/LabVIEW-$VERS/$NSPLUGIN to its"
echo "'plugins' subfolder."
fi
) 2>/dev/null
;;
esac
fi
if ; then
if ; then
if ; then
if ; then
mv -f /usr/local/bin/labview /usr/local/bin/labview.old
else
rm -f /usr/local/bin/labview
fi
ln -s -f "$LVDIR/labview" /usr/local/bin/labview
test -f "$LVDIR/linux/LVMerge" && cp -f "$LVDIR/linux/LVMerge" /usr/local/bin/LVMerge
else
echo "No permission to create links in /usr/local/bin."
fi
fi
echo ""
echo "LabVIEW package installation complete."
else
echo ""
echo "Browser plugins not installed."
if ; then
echo "Make sure you are installing in the same base directory as $UPGRADE."
fi
fi
}
checkrtelink() {
# Installing VISA or GPIB will install the 8.0.1 RTE, which may overwrite
# the latest RTE link. If it was the current link was installed before, reset the link.
if ; then
rm -f $LVRTLINK $DARKLINK
ln -s liblvrt.so.$MAJVERS $LVRTLINK
test -f $LIBDIR/lib/liblvrtdark.so.$MAJVERS && ln -s liblvrtdark.so.$MAJVERS $DARKLINK
fi
}
checknipalproc() {
PID=`/bin/ps aux | grep 'cat /dev/nipalk' | grep -v grep | awk '{print $2;}' 2>/dev/null`
if ; then
kill $PID >/dev/null 2>&1
fi
}
parse_options() {
for arg in "$@"
do
case "$arg" in
--accept-license|-al)
ACCEPT_LICENSE=y ;;
--no-prompt|-np)
NO_PROMPT=y ;;
--no-rpm)
echo ""
echo "Installing without RPM. Files will be extracted manually."
NORPM=y ;;
*) echo "Unrecognized option $arg"
exit 1;;
esac
done
if ; then
echo ""; echo "*** ERROR ***"
echo "In order to use the --no-prompt option, you must also use the --accept-license"
echo "option to indicate you have read and accepted the terms of the "
echo "National Instruments Software License Agreement, found in LICENSE.txt."
exit 1
fi
}
#
# MAIN
#
cd "$CDPATH"
echo ""
if ; then
cat COPYRIGHT
else
echo "LabVIEW $VERS for $OSNAMEV"
fi
if ; then
echo ""
echo "*** Sorry, you must have root privileges to run this install script. ***"
echo "Please su or login as root and try again."
echo "Installation aborted."
exit 1
fi
echo ""
parse_options "$@"
if ; then
if ; then
cat <
WARNING! You do not have glibc2 (libc.so.6) installed.
Because LabVIEW is a multi-threaded application and
requires POSIX 1003.1 pthread support, this library is
a prerequisite for installation.
See the file Glibc2-HOWTO on this CD for information on installing glibc2
from source or binary distribution, or for additional mirror
sites.
EOF
if ; then
echo "Since you are using RedHat Linux, you may wish to upgrade"
echo "to RedHat 7.2 (or later), which comes with glibc2 installed"
echo "by default. RedHat may be reached at http://www.redhat.com."
fi
echo ""
echon "Try to proceed anyway? "
read ans
case "$ans" in
*) ;;
*) exit 1 ;;
esac
else
echo # "Prerequisite glibc2 (libc.so.6) libraries found."
fi
echo ""
fi # i386
instdir=$BASEDIR
LVDIR=$instdir/$DDIR
if ; then
dir="`$RPM -ql labview$TLR-app 2>/dev/null | head -1 | xargs dirname 2>/dev/null`"
if ; then
dir="`$RPM -q --queryformat '%{prefixes}\n' labview$TLR-core 2>/dev/null`"
fi
if ; then
dir="`$RPM -q --queryformat '%{defaultprefix}\n' labview$TLR-core 2>/dev/null`"
fi
case "$dir" in
/*) instdir=$dir ;;
esac
fi
cd "$CDPATH"
if ; then
ACCEPT_LICENSE=
licloop=y
while ; do
echo "By installing LabVIEW software packages, you agree to the terms of the included"
echo "NI Software License Agreement (LICENSE.txt). Type 'v' to view the agreement,"
echo "'y' to consent to the agreement, or 'n' to decline the agreement and skip"
echon "LabVIEW installation. "
if ; then
echon " "
else
echon " "
fi
read ans
case "$ans" in
*)
ACCEPT_LICENSE=y
licloop=n
;;
*)
licloop=n
;;
*)
${PAGER:-more} LICENSE.txt
licview=y
;;
*)
echo "Installation aborted."
exit 1
;;
"")
if ; then
${PAGER:-more} LICENSE.txt
licview=y
fi
;;
esac
echo ""
done
fi
if ; then
install_labview
echo ""
if ; then
echo "LabVIEW installation complete."
else
if ; then
case "$packages" in
*update*)
echo "Launching LabVIEW Mass Compile utility."
$LVDIR/labview masscomp.vi 2>/dev/null ||
(echo "Please run 'masscomp.vi' to update the VIs in your $UPGRADE installation";
echo "to LabVIEW $VERS.")
;;
esac
fi
fi
fi
if ; then
# Don't install drivers or other non-LV packages in non-interactive mode
exit 0
fi
cd "$CDPATH"
if ; then
ACROREAD=/usr/bin/xpdf
elif ; then
ACROREAD=/usr/bin/ggv
elif ; then
ACROREAD=/usr/bin/kpf
elif ; then
ACROREAD=/usr/bin/gv
elif ; then
ACROREAD=/usr/bin/acroread
elif ; then
ACROREAD=/usr/local/bin/acroread
elif ; then
ACROREAD=/usr/local/Acrobat5/bin/acroread
fi
if ; then
echo "Note: This product contains online reference manuals in Adobe PDF format."
echo "The installer was not able to locate a PDF viewer on your system. To view these"
echo "documents, either install a viewer such as ggv, kpdf, or xpdf,"
echo "or visit http://www.adobe.com to download Adobe Acrobat Reader."
echo "(Adobe and Reader are registered trademarks of Adobe Systems Inc.)"
fi
cd "$CDPATH"
if ; then
echo ""
echon "Would you like to install the CVI Run-Time Engine ($CVIRTVERS)? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
if ; then
rpm -Uvh "$cvirtpkg"
else
/bin/sh "$CDPATH/bin/INSTALL.norpm" "$cvirtpkg" "$instdir"
fi
;;
esac
fi
echo ""
echo "================================================================================"
echo ""
echo "Beginning hardware driver installation."
echo ""
echo "Depending on your system configuration, some drivers may require you to reboot"
echo "after installation before you can access the driver."
kernwarn=
if ; then
$RPM -q kernel-source >/dev/null 2>&1
if ; then
kernwarn=y
fi
fi
if ; then
echo ""
echo "Note that some drivers may require the Linux kernel source to be installed."
echo "This can be found on your Linux distribution install CD as a package called"
echo "'kernel-source'. Make sure to install the version matching the kernel you are"
echo "running. If you need to install kernel source, press 'q' to abort installation,"
echo "and re-run this install script after you have installed the kernel source."
fi
echo ""
cd "$CDPATH"
if ; then
if ; then
echo "NOTE: NI-VISA is not supported on this distribution and may not work as"; echo " expected."
fi
echo ""
echon "Would you like to install NI-VISA ($VISAVERS) for $OSNAMEV? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
cd "$CDPATH/$VISADIR"
/bin/sh ./INSTALL
checkrtelink
checknipalproc
echo ""
;;
esac
fi
cd "$CDPATH"
if ; then
echo ""
echon "Would you like to install NI-GPIB ($GPIBVERS) for $OSNAMEV? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
cd "$CDPATH/$GPIBDIR"
/bin/sh ./INSTALL
checkrtelink
checknipalproc
echo ""
;;
esac
fi
cd "$CDPATH"
if ; then
echo ""
echon "Would you like to install NI-GPIB ENET/100 $ENETVERS for $OSNAMEV? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
cd "$CDPATH/$ENETDIR"
PATH=$ORIGPATH /bin/sh ./INSTALL
echo ""
;;
esac
fi
if ; then
UPNOTES="$LVDIR/manuals/LV_Upgrade_Notes.pdf"
if ; then
echo ""
echo "Please see the LabVIEW Beta Documentation in $LVDIR/help/betadoc.html."
elif ; then
if ; then
echo ""
echon "View the LabVIEW $VERS Upgrade Notes now? "
read ans
case "$ans" in
""|y|Y)
if ; then
echo "Launching $ACROREAD..."
$ACROREAD "$UPNOTES" 2>/dev/null &
else
echo "Sorry, xpdf, ggv, kpdf or Adobe Acrobat Reader must be installed to view PDF files."
fi
;;
esac
else
echo ""
echo "Please see the LabVIEW $VERS Upgrade Notes in $UPNOTES"
echo "for information about new features in LabVIEW $VERS."
fi
else
echo ""
echo "Please see the LabVIEW Upgrade Notes (in the labview$TLR-ref package) for"
echo "information about new features in LabVIEW $VERS."
fi
fi
echo ""
echo "Installation complete."
exit 0
Uninstall
#!/bin/bash -
#
# LabVIEW 8.5 installation script. Copyright (c)2007 National Instruments Corp.
#
ORIGPATH=$PATH
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
export PATH
TLR=85
REQSTDLIB=/usr/lib/libstdc++.so.5
LVONLY= # skip drivers
NSPLUGIN=LV85NPlugin.so
BETA=
RPMBUILD=1
EFPKG="NI Example Finder (LabVIEW 8.5)"
EFVERS="1.0"
SKIPEF=
SUBR=
EFMINR="-8$BETA"
RTEAALVERS="1.1-1"
MINR="-$RPMBUILD$BETA"
MAJVERS="8.5"
VERS="$MAJVERS$SUBR"
VISAVERS=4.2
VISADIR=NI-VISA-$VISAVERS
CVIRTVERS=5.0.1-3
ENETVERS=2.2.0
ENETDIR=nienet-$ENETVERS
DDIR=natinst/LabVIEW-$MAJVERS
LVRTE=lib/LabVIEW-$MAJVERS
UPGRADE=
PLAT=linux
if ; then
RPM=/usr/bin/rpm
else
RPM=/bin/rpm
fi
RPMOPT="-Uvh" # Options for LabVIEW package installation
TAR="tar"
OSNAME="`uname -s`"
sorry() {
echo "Sorry, LabVIEW is not currently available for this O/S and architecture."
echo "Visit http://www.ni.com/support/ to search the knowledge base"
echo "or http://www.ni.com/ask/ to obtain e-mail tech. support."
exit 1
}
#
# Initialization
#
CDPATH="`dirname $0`"
case "$CDPATH" in
/*) ;;
.) CDPATH="`pwd`" ;;
*) CDPATH="`pwd`/$CDPATH" ;;
esac
case "$OSNAME" in
Linux)
case "`uname -m`" in
i*86|x86_64)
ARCH=i386
ALTARCH=i386
OSNAMEV="GNU/Linux"
OSDIR=linux
NORPM=
# Gentoo has RPM but the system is not installed using it, so
# rpm dependencies will not be satisfied for our packages.
if # don't try to query for packages
then
NORPM=y
fi
if ; then
# Slackware and Debian/Ubuntu have RPM, but it's broken
# and fails on all dependencies.
NORPM=y
fi
VERSR=$MAJVERS$SUBR$MINR
DPKGEXT=".$ARCH.rpm"
PKGEXT="-$VERSR"
DFLTPREFIX=/usr/local
if ; then
DFLTPREFIX="`rpm -q --queryformat '%{instprefixes}' labview85-core`"
fi
LIBDIR=$DFLTPREFIX
GPIBVERS="NI-488.2 2.5.1"
GPIBDIR=NI-488-2.5.1
BASEDIR=$DFLTPREFIX
tarx () { $TAR xfz "$@"; }
echon () { echo -n "$@"; }
;;
*) sorry ;;
esac
;;
SunOS)
case "`uname -p`" in
sparc)
ARCH=sparc
ALTARCH=sparc
OSNAMEV="Sun Solaris"
OSDIR=solaris
NORPM=y
MINR=
EFMINR=
VERSR=$MAJVERS$SUBR
DPKGEXT=".tar.gz"
PKGEXT="-$VERSR"
LIBDIR=/usr
BASEDIR=/opt
GPIBVERS="PCI/SB/SCSI/ENET"
GPIBDIR=GPIB
tarx () { "$CDPATH/bin/gunzip" < "$@" | $TAR xf -; }
echon () { echo "$@\c"; }
;;
*) sorry ;;
esac
;;
*) sorry ;;
esac
if ; then
USERPM=y
fi
rawefpkg1="niexfinder-base-$EFVERS$EFMINR"
efpkg1="$rawefpkg1$DPKGEXT"
webpipebase="niwebpipeline20_dep"
webpipepkg="$webpipebase-2.0-5.i586.rpm"
rawefpkglv="niexfinder-labview$TLR-$EFVERS$EFMINR"
efpkglv="$rawefpkglv$DPKGEXT"
efpkg="$efpkg1 $efpkglv"
rtepkg="labview$TLR-rte$PKGEXT"
rteaalpkg="labview-rte-aal-$RTEAALVERS"
corepkg="labview$TLR-core$PKGEXT"
allpkg="$rtepkg $rteaalpkg $corepkg labview$TLR-examples$PKGEXT labview$TLR-help$PKGEXT labview$TLR-ref$PKGEXT labview$TLR-vxi$PKGEXT labview$TLR-desktop$PKGEXT labview$TLR-appbuild$PKGEXT labview$TLR-pro$PKGEXT"
cvirtpkg="nicvirte-$CVIRTVERS-3"
get_install_dir () {
if ; then
return
fi
olddir="`pwd`"
origdir=$instdir
while :
do
dir=$instdir
case "$RPMVERS" in
4.0.2|4.1*|4.2.1) ;;
*)
echo ""
echo $1
test ! -z "$2" && echo "$2"
test ! -z "$3" && echo "$3"
test ! -z "$4" && echo "$4"
echon " "
read ans
if ; then
dir=$ans
fi
;;
esac
echo ""
case "$dir" in
/*) ;;
*) exit 1 ;;
*) echo "Directory must begin with /"
continue ;;
esac
if ; then
echo "That path already exists as a regular file!"
echo "A directory path is required."
continue
fi
if ; then
echon "$dir does not exist. Create? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) mkdir -p "$dir" ;;
*) echo "Aborted."; exit 1 ;;
*) continue ;;
esac
fi
cd "$dir" 2>/dev/null
if touch "$dir/foo" 2>/dev/null; then
rm -f "$dir/foo"
break
else
echo "Cannot write to $dir. Check directory permissions. You may need to"
echo "run the installer as root"
fi
done
instdir="$dir"
cd "$olddir"
echo ""
}
summary () {
case "$1" in
*.rpm)
if ; then
$RPM -qp --queryformat '%{name}: %{summary}\n' "$1"
elif ; then
"$CDPATH/bin/rpmq" --rcfile=/dev/null -qp --queryformat '%{name}: %{summary}\n' $1
else
echo "Install $1"
fi
;;
*.tar.gz)
if ; then
case "$1" in
lv*) echo "Install $BETA" ;;
ef*) echo "Install $EFPKG" ;;
*) echo "Install $1" ;;
esac
else
basef="`echo $1 | sed 's,\.tar\.gz,,'`"
pkginfof=".$basef.info"
if ; then
pkginfo=`head -1 "$CDPATH/$pkginfof"`
echo "Install $basef: $pkginfo"
else
echo "Install $1"
fi
fi
;;
esac
}
info_rpm () {
case "$1" in
*.rpm)
if ; then
$RPM -qip "$1"
elif ; then
"$CDPATH/bin/rpmq" --rcfile=/dev/null -qp --queryformat \
'Name : %-27{NAME}\
Version : %-27{VERSION} Vendor: %{VENDOR}\
Group : %-27{GROUP} Size: %{SIZE}\
%|LICENSE?{License : %{LICENSE}}|\
%|URL?{URL : %{URL}}|\
Summary : %{SUMMARY}\
Description :\n%{DESCRIPTION}\n' $1
else
echo "$1: can't read RPM description info"
fi
;;
*.tar.gz)
basef="`echo $1 | sed 's,\.tar\.gz,,'`"
pkginfof=".$basef.info"
if ; then
echo "Name: $basef"
echon "Summary: "
head -1 "$CDPATH/$pkginfof"
echo "Description:"
sed -n -e '3,/^$/p' $CDPATH/$pkginfof
fi
;;
esac
}
#
# vercmp() - compares two RPM-style version numbers and returns -1, 0, 1
# to indicate if the first verison is less than, equal to, or greater than
# the second. Version numbers can be specified with or without release
# suffixes. Alpha, beta, etc. suffixes should always specified be in the
# release portion.
#
# Examples:
# vercmp 1.0 1.0.1
# vercmp 1.0-a1 1.0-a12
# vercmp 1.0.1-b1 1.0-1
# vercmp 2.2.3.4-99 2.2.4
# vercmp 8.2-d120 8.2-0b129
# vercmp 8.2-0b129 8.2-0rc0
# vercmp 8.2-0rc0 8.2-1
vercmp() {
canonicalizeVersion() {
canonicalVersion=`echo "$1" |
sed -e 's,\(\)\(\),\1.000.\2,g' \
-e 's,\(\)\(\),\1.\2,g' \
-e 's,^\(\),---.\1,' \
-e 's,\b\(\)\b,00\1,g' \
-e 's,\b\(\)\b,0\1,g'`
}
local arg1 arg2 nResult firstVers secondVers resultVers
if ; then
return 0;
fi
arg1=`echo "$1" | sed 's,-.*$,,'`
arg2=`echo "$2" | sed 's,-.*$,,'`
if ; then
vercmp "$arg1" "$arg2"
nResult=$?
if ; then
return $nResult
fi
fi
canonicalizeVersion `echo "$1" | sed 's,^.*-,,'`
firstVers="$canonicalVersion"
canonicalizeVersion `echo "$2" | sed 's,^.*-,,'`
secondVers="$canonicalVersion"
resultVers=`(echo "$firstVers"; echo "$secondVers") |
LC_ALL=C sort -t. | head -1`
if ; then
return -1
else
return 1
fi
}
confirm_install() {
rpmpkgs=
echon "The following components will be installed "
if ; then
echo "using rpm:"
else
echo "using cpio:"
fi
echo ""
totalSizeKB=0
for arg in "$@"
do
componentSizeKB=0
if ; then
case "$arg" in
niwebpipeline*)
componentInfo="NI Web Pipeline dependency libraries "
;;
*)
componentInfo=`$RPM -qp --queryformat '%-50{SUMMARY} ' $arg`
;;
esac
componentSizeKB=`$RPM -qp --queryformat '%{SIZE}' "$arg"`
else
componentInfo="$arg "
componentSizeKB=`$CDPATH/bin/rpmq -qp --rcfile=/dev/null --queryformat '%{SIZE}' "$arg"`
fi
if ; then
echo "Unable to find installation size for $arg"
return 1
fi
componentSizeKB=`expr $componentSizeKB / 1024`
printf "%s %d kB\n" "$componentInfo" $componentSizeKB
totalSizeKB=`expr $totalSizeKB + $componentSizeKB`
done
echo ""
echo "Total space required: $totalSizeKB kB"
echon "Space available: "
freespace=`df -k $BASEDIR | tail -1 | awk '{print $(NF-2)}'`
echo "$freespace kB"
echo ""
if ; then
return 0
fi
if ; then
echo "WARNING - not enough disk space to install selected packages."
echon "Proceed? "
else
echon "Proceed? "
fi
read ans
if ; then
test -z "$ans" && ans=n
else
test -z "$ans" && ans=y
fi
case "$ans" in
*) return 0 ;;
*) echo "Aborting installation."; exit 0 ;;
esac
echo "Skipping installation."
return 1
}
install_pkg() {
rpmpkgs=
for arg in "$@"
do
case "$arg" in
*-rte-*|*-rte-aal-*)
instdir=$LIBDIR
chowndir=$RTEDIR
msgdir=$LIBDIR/lib
isrte=y
isother=n
;;
labview85*)
instdir=$BASEDIR
chowndir=$LVDIR
msgdir=$BASEDIR
isrte=n
isother=n
;;
*)
instdir=$LIBDIR
chowndir=$RTEDIR
msgdir=$LIBDIR/lib
isrte=n
isother=y
;;
esac
case "$arg" in
*.rpm)
RPMPREFIX=
if ; then
RPMPREFIX="--prefix '$instdir'"
fi
if ; then
if ; then
"$RPM" $RPMOPT --replacepkgs --replacefiles $RPMPREFIX $arg
elif ; then
"$RPM" $RPMOPT --replacepkgs --replacefiles $arg
else
rpmpkgs="$rpmpkgs $arg"
LVRPMPREFIX="$RPMPREFIX"
fi
else
mkdir -p "$instdir" 2>/dev/null
/bin/sh "$CDPATH/bin/INSTALL.norpm" $arg "$instdir"
fi
;;
*.tar.gz)
basef="`echo $arg | sed 's,\.tar\.gz,,'`"
echo "Extracting files in package $basef into $msgdir."
(cd "$instdir"; tarx "$CDPATH/$arg")
status=$?
if ; then
echo "File extraction failed. Please check available disk space."
return 1
fi
pkginfof=".$basef.info"
# Extract and execute postinstall script
if ; then
tmpscript=/tmp/lvpostin.$$.sh
sed -n '/^#### postinstall/,$p' "$CDPATH/$pkginfof" > $tmpscript
RPM_INSTALL_PREFIX=$instdir LIBDIR=$LIBDIR BASEDIR=$BASEDIR /bin/sh $tmpscript
rm -f $tmpscript
fi
if ; then
chown -R root "$chowndir"
chgrp -R root "$chowndir"
fi
;;
esac
done
if ; then
"$RPM" $RPMOPT --replacefiles --replacepkgs $LVRPMPREFIX $rpmpkgs
if ; then
echo ""
echo "*** ERROR installing packages."
echo "Check that you have enough disk space and that the target filesystem" echo "is writable."
fi
fi
return 0
}
install_labview () {
echo "NOTE: LabVIEW will install by default in /usr/local/natinst/LabVIEW-8.5,"
echo "or in the natinst/LabVIEW-8.5 subdirectory if you specify an alternate location."
echo ""
echo "Preparing for installation..."
if ; then
GLIBCV=`ldd --version | head -1 | sed -e 's/.* //'`
echo "C runtime library (glibc) version: $GLIBCV."
case "$GLIBCV" in
*2.2.*) ;;
*2.*) ;;
*.*) ;;
*) echo "WARNING: It does not appear that your are running GNU C Library version 2.2.4"
echo " or later. glibc-2.4.4 is required to upgrade. See the README file"
echo " for information on how to upgrade this library." ;;
esac
if ; then
RPMVERS="`$RPM --version | sed 's,^RPM version ,,'`"
echo "Red Hat Package Manager (RPM) version: $RPMVERS."
case "$RPMVERS" in
*)
echo ""
echo "Note: RPM version $RPMVERS is too old for rpm package installation."
echo "LabVIEW packages will be extracted directly."
NORPM=y
;;
4.0.2|4.1.*|4.2.1)
echo ""
echo "Note: Your system's RPM package manager (version $RPMVERS) has a bug preventing"
echo "package relocation. LabVIEW will be installed in the default location"
echo "of $BASEDIR. If you need files to be installed on a different partition,"
echo "you may upgrade or downgrade to RPM 4.0.4 or RPM 4.2 (versions 4.0.2, 4.1 and"
echo "4.2.1 are broken), or you may make a symbolic link from $BASEDIR/lv$TLR to"
echo "another directory prior to installation. To contact Red Hat about these issues,"
echo "send e-mail to support@redhat.com."
echo ""
echo "Enter 's' if you wish to skip LabVIEW installation or 'q' to quit."
;;
*)
;;
esac
if ; then
ENFORCING=`/usr/sbin/getenforce | grep -i enforc >/dev/null 2>&1`
if ; then
echo ""
echo "*** You appear to have SELinux enabled on your system in 'enforcing' mode."
echo "If you experience errors in LabVIEW loading projects, make sure you have the"
echo "latest selinux-policy-targeted RPM package update from your vendor"
echo "(or disable SELinux with /usr/sbin/setenforce permissive)."
echo ""
fi
fi
fi
fi # QUICK
if ; then
proceed=y
if ; then
echo ""
echo "NOTE: This is an upgrade only; you must have $UPGRADE installed to proceed."
echo ""
fi
while ;
do
PREVDIR="$instdir"
#get_install_dir "Please enter the base path of your previous $UPGRADE installation." \
# "(Packages will be installed in the '$DDIR' subfolder.)"
if ; then
proceed=n
else
echo "That directory does not seem to contain a LabVIEW installation."
echo "An existing $UPGRADE installation is required to upgrade to $VERS."
instdir="$PREVDIR"
exit 1
fi
done
echo ""
echo "LabVIEW $VERS updates will be installed in on top of the existing $UPGRADE"
echo "installation. Files will be installed in $instdir/$DDIR"
echo ""
else
instdir=$BASEDIR
#get_install_dir "Where would you like to install LabVIEW packages?" \
#"(Packages will be installed in a subfolder named '$DDIR'.)"
fi
BASEDIR=$instdir
LVDIR=$instdir/$DDIR
ans=""
asked=""
if ; then
echo "NOTE: This is an upgrade only; you must have $UPGRADE installed to proceed."
fi
if ; then
echo "Please indicate whether you would like to install the following components:"
echo ""
fi
for rawpkg in $allpkg
do
pkg=$rawpkg$DPKGEXT
ask=""
errout=">/dev/null 2>&1"
if ; then
if ; then
ask=y
else
case "$pkg" in
*.rpm)
if ; then
#eval "$RPM" --ignoresize --test $RPMPREFIX $RPMOPT $pkg $errout
eval $RPM -q "$rawpkg" $errout
if ; then
echon # "Package $rawpkg is already installed."
else
ask=y
fi
else
ask=y
fi
;;
*.tar.gz)
ask=y
;;
esac
fi
fi
if ; then
while :
do
asked=y
if ; then
summary $pkg
ans=y
elif ; then
ans=y
else
summary $pkg
echon " "
read ans
test -z "$ans" && ans=y
fi
case "$ans" in
*) packages="$packages $pkg"
if ; then
installrte=y
fi
break ;;
*) packages="$packages $pkg"
echo "Selecting all packages..."
if ; then
installrte=y
fi
if ; then
skipconfirm=y
fi
installpkg=y
break ;;
*)
info_rpm $pkg
echo ""
echo "Enter 'y' to install this package, 'n' to skip, 'a' to install all LabVIEW"
echo "packages, 's' to skip all, or 'q' to abort installation entirely."
echo "" ;;
*) echo "Installation aborted."
exit 1 ;;
*) echo "Skipping LabVIEW installation."
packages=
break 2 ;;
*) echo "Proceeding."
skipconfirm=y
break 2 ;;
*) break ;;
esac
done
fi
done
lvstat=0
if ; then
echo "All available LabVIEW packages have already been installed or cannot"
echo "be installed due to package conflicts."
elif ; then
echo "No LabVIEW packages were selected."
else
RTEDIR=$LIBDIR/$LVRTE
skip=
if ; then
if ; then
$RPM -q `$RPM -qp $webpipepkg` >/dev/null 2>/dev/null
if ; then
installweb=y
fi
fi
else
installweb=y
fi
if ; then
echo ""
echo "You have selected packages which depend on the LabVIEW run-time engine, but did"
echo "not select the run-time engine and it is not already installed."
echon "Do you wish to install $rtepkg as well? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) packages="$rtepkg$DPKGEXT $packages" ;;
*) echo "Aborting installation."
exit 1 ;;
*) echo "Skipping LabVIEW package installation."
skip=y ;;
esac
fi
if ; then
echo ""
if ; then
echo "Auto-selecting dependency $webpipepkg"
packages="$packages $webpipepkg"
if ; then
echo "Auto-selecting dependency $rawefpkg1"
packages="$packages $efpkg1"
fi
echo ""
fi
if ; then
confirm_install $packages
fi
if ; then
echo "Installing..."
install_pkg $packages
lvstat=$?
fi
fi
fi
LVRTLINK=$LIBDIR/lib/liblvrt.so
DARKLINK=$LIBDIR/lib/liblvrtdark.so
askresetlnk=
# If they've installed an older RTE more recently than this one, offer
# to recreate the 'current' link
echo ""
if ; then
:
elif ; then
askresetlnk=y
echo "Run-time engine link $LVRTLINK does not exist."
echon "Create it? "
elif ; then
LTARG=
TMPLVRTLINK=$LVRTLINK
while ]; do
LTARG=`ls -l $TMPLVRTLINK | sed 's,^.* -> ,,'`
TMPLVRTLINK="$LIBDIR/lib/$LTARG"
done
LTARGVERS=`echo $LTARG | sed 's,.*liblvrt\.so\.,,'`
if ; then
vercmp $VERS $LTARGVERS
cmp=$?
if ] ; then
RTELINKCURRENT=y
elif ] ; then
askresetlnk=y
echo "Run-time engine link $LVRTLINK exists but points to an older"
echo "version ($LTARGVERS). This link determines which version of the LabVIEW"
echo "run-time to use when building C/C++ applications. Do you want to recreate"
echon "the link to make $VERS the default run-time engine? "
fi
fi
fi
if ; then
read ans
test -z "$ans" && ans=y
case "$ans" in
*)
rm -f $LVRTLINK $DARKLINK
echo "Recreating link to LabVIEW $VERS run-time engine."
echo ""
ln -s liblvrt.so.$MAJVERS $LVRTLINK
test -f $LIBDIR/lib/liblvrtdark.so.$MAJVERS && ln -s liblvrtdark.so.$MAJVERS $DARKLINK
;;
esac
fi
if ; then
if ; then
efpkg="$efpkg $webpipepkg"
fi
echo ""
ans=
if ; then
if ; then
eval $RPM -q "$rawefpkg1" $errout
efstat=$?
eval $RPM -q "$rawefpkglv" $errout
if ; then
echo "Package $rawefpkg1 is already installed."
ans=n
else
echon "Would you like to install $EFPKG? "
read ans
test -z "$ans" && ans=y
fi
fi
fi
if ; then
ans=y
fi
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
echo "Installing NI Example Finder..."
install_pkg $efpkg
SHAREDIR=`cat /etc/natinst/share/share.dir 2>/dev/null`
# Make a link from old EF loc to new so LV 7.1 can find it.
if ; then
mkdir -p "/usr/local/share/natinst/example finder/1.0/bin"
ln -s -f "$SHAREDIR/example finder/1.0/bin/NIExampleFinder" "/usr/local/share/natinst/example finder/1.0/bin/NIExampleFinder" 2>/dev/null
fi
;;
esac
fi
if ; then
if ; then
echo ""
echon "Would you like to install the LabVIEW web browser plugin? "
read ans
else
ans=y
fi
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
found=no
echo ""
echo "Checking for Mozilla/Firefox/Netscape 6+ installation..."
(
MDIRS=`echo /usr/lib/firefox /usr/lib/mozilla /usr/lib/mozilla-* /usr/local/lib/firefox /usr/local/mozilla /usr/local/mozilla-* /opt/mozilla /opt/mozila-* /opt/MozillaFirefox/lib /opt/gnome/lib/mozilla /opt/gnome/lib/mozilla-* /opt/netscape /usr/lib/netscape /usr/local/netscape /usr/local/lib/netscape /opt/SUNWns`
if ; then
dirs=`locate -r '/plugins$' | egrep 'mozilla|netscape|firefox' | grep -v '/\.' | sed 's,/plugins,,'`
for d in $dirs ; do
if ; then
MDIRS="$MDIRS $d"
fi
done
fi
MDIRS=`echo "$MDIRS" | tr ' ' '\n' | sort | uniq`
for dir in $MDIRS
do
if ; then
if ; then
echo "Copying plugin to $dir/plugins"
cp -f $LIBDIR/lib/LabVIEW-$VERS/$NSPLUGIN $dir/plugins
else
echo "Cannot write to browser plugin directory $dir/plugins"
fi
found=yes
else
true
fi
done
if ; then
echo "None found. If you have Netscape 6, Mozilla, or Firefox installed in a"
echo "non-standard location, copy $LIBDIR/lib/LabVIEW-$VERS/$NSPLUGIN to its"
echo "'plugins' subfolder."
fi
) 2>/dev/null
;;
esac
fi
if ; then
if ; then
if ; then
if ; then
mv -f /usr/local/bin/labview /usr/local/bin/labview.old
else
rm -f /usr/local/bin/labview
fi
ln -s -f "$LVDIR/labview" /usr/local/bin/labview
test -f "$LVDIR/linux/LVMerge" && cp -f "$LVDIR/linux/LVMerge" /usr/local/bin/LVMerge
else
echo "No permission to create links in /usr/local/bin."
fi
fi
echo ""
echo "LabVIEW package installation complete."
else
echo ""
echo "Browser plugins not installed."
if ; then
echo "Make sure you are installing in the same base directory as $UPGRADE."
fi
fi
}
checkrtelink() {
# Installing VISA or GPIB will install the 8.0.1 RTE, which may overwrite
# the latest RTE link. If it was the current link was installed before, reset the link.
if ; then
rm -f $LVRTLINK $DARKLINK
ln -s liblvrt.so.$MAJVERS $LVRTLINK
test -f $LIBDIR/lib/liblvrtdark.so.$MAJVERS && ln -s liblvrtdark.so.$MAJVERS $DARKLINK
fi
}
checknipalproc() {
PID=`/bin/ps aux | grep 'cat /dev/nipalk' | grep -v grep | awk '{print $2;}' 2>/dev/null`
if ; then
kill $PID >/dev/null 2>&1
fi
}
parse_options() {
for arg in "$@"
do
case "$arg" in
--accept-license|-al)
ACCEPT_LICENSE=y ;;
--no-prompt|-np)
NO_PROMPT=y ;;
--no-rpm)
echo ""
echo "Installing without RPM. Files will be extracted manually."
NORPM=y ;;
*) echo "Unrecognized option $arg"
exit 1;;
esac
done
if ; then
echo ""; echo "*** ERROR ***"
echo "In order to use the --no-prompt option, you must also use the --accept-license"
echo "option to indicate you have read and accepted the terms of the "
echo "National Instruments Software License Agreement, found in LICENSE.txt."
exit 1
fi
}
#
# MAIN
#
cd "$CDPATH"
echo ""
if ; then
cat COPYRIGHT
else
echo "LabVIEW $VERS for $OSNAMEV"
fi
if ; then
echo ""
echo "*** Sorry, you must have root privileges to run this install script. ***"
echo "Please su or login as root and try again."
echo "Installation aborted."
exit 1
fi
echo ""
parse_options "$@"
if ; then
if ; then
cat <
WARNING! You do not have glibc2 (libc.so.6) installed.
Because LabVIEW is a multi-threaded application and
requires POSIX 1003.1 pthread support, this library is
a prerequisite for installation.
See the file Glibc2-HOWTO on this CD for information on installing glibc2
from source or binary distribution, or for additional mirror
sites.
EOF
if ; then
echo "Since you are using RedHat Linux, you may wish to upgrade"
echo "to RedHat 7.2 (or later), which comes with glibc2 installed"
echo "by default. RedHat may be reached at http://www.redhat.com."
fi
echo ""
echon "Try to proceed anyway? "
read ans
case "$ans" in
*) ;;
*) exit 1 ;;
esac
else
echo # "Prerequisite glibc2 (libc.so.6) libraries found."
fi
echo ""
fi # i386
instdir=$BASEDIR
LVDIR=$instdir/$DDIR
if ; then
dir="`$RPM -ql labview$TLR-app 2>/dev/null | head -1 | xargs dirname 2>/dev/null`"
if ; then
dir="`$RPM -q --queryformat '%{prefixes}\n' labview$TLR-core 2>/dev/null`"
fi
if ; then
dir="`$RPM -q --queryformat '%{defaultprefix}\n' labview$TLR-core 2>/dev/null`"
fi
case "$dir" in
/*) instdir=$dir ;;
esac
fi
cd "$CDPATH"
if ; then
ACCEPT_LICENSE=
licloop=y
while ; do
echo "By installing LabVIEW software packages, you agree to the terms of the included"
echo "NI Software License Agreement (LICENSE.txt). Type 'v' to view the agreement,"
echo "'y' to consent to the agreement, or 'n' to decline the agreement and skip"
echon "LabVIEW installation. "
if ; then
echon " "
else
echon " "
fi
read ans
case "$ans" in
*)
ACCEPT_LICENSE=y
licloop=n
;;
*)
licloop=n
;;
*)
${PAGER:-more} LICENSE.txt
licview=y
;;
*)
echo "Installation aborted."
exit 1
;;
"")
if ; then
${PAGER:-more} LICENSE.txt
licview=y
fi
;;
esac
echo ""
done
fi
if ; then
install_labview
echo ""
if ; then
echo "LabVIEW installation complete."
else
if ; then
case "$packages" in
*update*)
echo "Launching LabVIEW Mass Compile utility."
$LVDIR/labview masscomp.vi 2>/dev/null ||
(echo "Please run 'masscomp.vi' to update the VIs in your $UPGRADE installation";
echo "to LabVIEW $VERS.")
;;
esac
fi
fi
fi
if ; then
# Don't install drivers or other non-LV packages in non-interactive mode
exit 0
fi
cd "$CDPATH"
if ; then
ACROREAD=/usr/bin/xpdf
elif ; then
ACROREAD=/usr/bin/ggv
elif ; then
ACROREAD=/usr/bin/kpf
elif ; then
ACROREAD=/usr/bin/gv
elif ; then
ACROREAD=/usr/bin/acroread
elif ; then
ACROREAD=/usr/local/bin/acroread
elif ; then
ACROREAD=/usr/local/Acrobat5/bin/acroread
fi
if ; then
echo "Note: This product contains online reference manuals in Adobe PDF format."
echo "The installer was not able to locate a PDF viewer on your system. To view these"
echo "documents, either install a viewer such as ggv, kpdf, or xpdf,"
echo "or visit http://www.adobe.com to download Adobe Acrobat Reader."
echo "(Adobe and Reader are registered trademarks of Adobe Systems Inc.)"
fi
cd "$CDPATH"
if ; then
echo ""
echon "Would you like to install the CVI Run-Time Engine ($CVIRTVERS)? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
if ; then
rpm -Uvh "$cvirtpkg"
else
/bin/sh "$CDPATH/bin/INSTALL.norpm" "$cvirtpkg" "$instdir"
fi
;;
esac
fi
echo ""
echo "================================================================================"
echo ""
echo "Beginning hardware driver installation."
echo ""
echo "Depending on your system configuration, some drivers may require you to reboot"
echo "after installation before you can access the driver."
kernwarn=
if ; then
$RPM -q kernel-source >/dev/null 2>&1
if ; then
kernwarn=y
fi
fi
if ; then
echo ""
echo "Note that some drivers may require the Linux kernel source to be installed."
echo "This can be found on your Linux distribution install CD as a package called"
echo "'kernel-source'. Make sure to install the version matching the kernel you are"
echo "running. If you need to install kernel source, press 'q' to abort installation,"
echo "and re-run this install script after you have installed the kernel source."
fi
echo ""
cd "$CDPATH"
if ; then
if ; then
echo "NOTE: NI-VISA is not supported on this distribution and may not work as"; echo " expected."
fi
echo ""
echon "Would you like to install NI-VISA ($VISAVERS) for $OSNAMEV? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
cd "$CDPATH/$VISADIR"
/bin/sh ./INSTALL
checkrtelink
checknipalproc
echo ""
;;
esac
fi
cd "$CDPATH"
if ; then
echo ""
echon "Would you like to install NI-GPIB ($GPIBVERS) for $OSNAMEV? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
cd "$CDPATH/$GPIBDIR"
/bin/sh ./INSTALL
checkrtelink
checknipalproc
echo ""
;;
esac
fi
cd "$CDPATH"
if ; then
echo ""
echon "Would you like to install NI-GPIB ENET/100 $ENETVERS for $OSNAMEV? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
cd "$CDPATH/$ENETDIR"
PATH=$ORIGPATH /bin/sh ./INSTALL
echo ""
;;
esac
fi
if ; then
UPNOTES="$LVDIR/manuals/LV_Upgrade_Notes.pdf"
if ; then
echo ""
echo "Please see the LabVIEW Beta Documentation in $LVDIR/help/betadoc.html."
elif ; then
if ; then
echo ""
echon "View the LabVIEW $VERS Upgrade Notes now? "
read ans
case "$ans" in
""|y|Y)
if ; then
echo "Launching $ACROREAD..."
$ACROREAD "$UPNOTES" 2>/dev/null &
else
echo "Sorry, xpdf, ggv, kpdf or Adobe Acrobat Reader must be installed to view PDF files."
fi
;;
esac
else
echo ""
echo "Please see the LabVIEW $VERS Upgrade Notes in $UPNOTES"
echo "for information about new features in LabVIEW $VERS."
fi
else
echo ""
echo "Please see the LabVIEW Upgrade Notes (in the labview$TLR-ref package) for"
echo "information about new features in LabVIEW $VERS."
fi
fi
echo ""
echo "Installation complete."
exit 0
........Auto merged post: Zaxariadis προσθεσε 2 λεπτα και 34 δευτερολεπτα αργοτερα ........
A little help, please...!
Εχω κατεβασει το LabVIEW για Linux αλλα ειναι σε rpm μορφη.
Μεσα ο καταλογος εχει ενα cript-ακι το οποιο οπως διαβασα στο ArchForum εγκαθιστα κανονικα το Software αλλα το uninstall λενε οτι δουλευει μονο για rpm systems.
Υπαρχει καμια "εναλλακτικη" για την εγκατασταση?
Διατρεχω καποιον "κινδυνο" τρεχοντας το script?
p.s.
Τα install & Uninstall scripts ειναι αυτα...
install
#!/bin/bash -
#
# LabVIEW 8.5 installation script. Copyright (c)2007 National Instruments Corp.
#
ORIGPATH=$PATH
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
export PATH
TLR=85
REQSTDLIB=/usr/lib/libstdc++.so.5
LVONLY= # skip drivers
NSPLUGIN=LV85NPlugin.so
BETA=
RPMBUILD=1
EFPKG="NI Example Finder (LabVIEW 8.5)"
EFVERS="1.0"
SKIPEF=
SUBR=
EFMINR="-8$BETA"
RTEAALVERS="1.1-1"
MINR="-$RPMBUILD$BETA"
MAJVERS="8.5"
VERS="$MAJVERS$SUBR"
VISAVERS=4.2
VISADIR=NI-VISA-$VISAVERS
CVIRTVERS=5.0.1-3
ENETVERS=2.2.0
ENETDIR=nienet-$ENETVERS
DDIR=natinst/LabVIEW-$MAJVERS
LVRTE=lib/LabVIEW-$MAJVERS
UPGRADE=
PLAT=linux
if ; then
RPM=/usr/bin/rpm
else
RPM=/bin/rpm
fi
RPMOPT="-Uvh" # Options for LabVIEW package installation
TAR="tar"
OSNAME="`uname -s`"
sorry() {
echo "Sorry, LabVIEW is not currently available for this O/S and architecture."
echo "Visit http://www.ni.com/support/ to search the knowledge base"
echo "or http://www.ni.com/ask/ to obtain e-mail tech. support."
exit 1
}
#
# Initialization
#
CDPATH="`dirname $0`"
case "$CDPATH" in
/*) ;;
.) CDPATH="`pwd`" ;;
*) CDPATH="`pwd`/$CDPATH" ;;
esac
case "$OSNAME" in
Linux)
case "`uname -m`" in
i*86|x86_64)
ARCH=i386
ALTARCH=i386
OSNAMEV="GNU/Linux"
OSDIR=linux
NORPM=
# Gentoo has RPM but the system is not installed using it, so
# rpm dependencies will not be satisfied for our packages.
if # don't try to query for packages
then
NORPM=y
fi
if ; then
# Slackware and Debian/Ubuntu have RPM, but it's broken
# and fails on all dependencies.
NORPM=y
fi
VERSR=$MAJVERS$SUBR$MINR
DPKGEXT=".$ARCH.rpm"
PKGEXT="-$VERSR"
DFLTPREFIX=/usr/local
if ; then
DFLTPREFIX="`rpm -q --queryformat '%{instprefixes}' labview85-core`"
fi
LIBDIR=$DFLTPREFIX
GPIBVERS="NI-488.2 2.5.1"
GPIBDIR=NI-488-2.5.1
BASEDIR=$DFLTPREFIX
tarx () { $TAR xfz "$@"; }
echon () { echo -n "$@"; }
;;
*) sorry ;;
esac
;;
SunOS)
case "`uname -p`" in
sparc)
ARCH=sparc
ALTARCH=sparc
OSNAMEV="Sun Solaris"
OSDIR=solaris
NORPM=y
MINR=
EFMINR=
VERSR=$MAJVERS$SUBR
DPKGEXT=".tar.gz"
PKGEXT="-$VERSR"
LIBDIR=/usr
BASEDIR=/opt
GPIBVERS="PCI/SB/SCSI/ENET"
GPIBDIR=GPIB
tarx () { "$CDPATH/bin/gunzip" < "$@" | $TAR xf -; }
echon () { echo "$@\c"; }
;;
*) sorry ;;
esac
;;
*) sorry ;;
esac
if ; then
USERPM=y
fi
rawefpkg1="niexfinder-base-$EFVERS$EFMINR"
efpkg1="$rawefpkg1$DPKGEXT"
webpipebase="niwebpipeline20_dep"
webpipepkg="$webpipebase-2.0-5.i586.rpm"
rawefpkglv="niexfinder-labview$TLR-$EFVERS$EFMINR"
efpkglv="$rawefpkglv$DPKGEXT"
efpkg="$efpkg1 $efpkglv"
rtepkg="labview$TLR-rte$PKGEXT"
rteaalpkg="labview-rte-aal-$RTEAALVERS"
corepkg="labview$TLR-core$PKGEXT"
allpkg="$rtepkg $rteaalpkg $corepkg labview$TLR-examples$PKGEXT labview$TLR-help$PKGEXT labview$TLR-ref$PKGEXT labview$TLR-vxi$PKGEXT labview$TLR-desktop$PKGEXT labview$TLR-appbuild$PKGEXT labview$TLR-pro$PKGEXT"
cvirtpkg="nicvirte-$CVIRTVERS-3"
get_install_dir () {
if ; then
return
fi
olddir="`pwd`"
origdir=$instdir
while :
do
dir=$instdir
case "$RPMVERS" in
4.0.2|4.1*|4.2.1) ;;
*)
echo ""
echo $1
test ! -z "$2" && echo "$2"
test ! -z "$3" && echo "$3"
test ! -z "$4" && echo "$4"
echon " "
read ans
if ; then
dir=$ans
fi
;;
esac
echo ""
case "$dir" in
/*) ;;
*) exit 1 ;;
*) echo "Directory must begin with /"
continue ;;
esac
if ; then
echo "That path already exists as a regular file!"
echo "A directory path is required."
continue
fi
if ; then
echon "$dir does not exist. Create? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) mkdir -p "$dir" ;;
*) echo "Aborted."; exit 1 ;;
*) continue ;;
esac
fi
cd "$dir" 2>/dev/null
if touch "$dir/foo" 2>/dev/null; then
rm -f "$dir/foo"
break
else
echo "Cannot write to $dir. Check directory permissions. You may need to"
echo "run the installer as root"
fi
done
instdir="$dir"
cd "$olddir"
echo ""
}
summary () {
case "$1" in
*.rpm)
if ; then
$RPM -qp --queryformat '%{name}: %{summary}\n' "$1"
elif ; then
"$CDPATH/bin/rpmq" --rcfile=/dev/null -qp --queryformat '%{name}: %{summary}\n' $1
else
echo "Install $1"
fi
;;
*.tar.gz)
if ; then
case "$1" in
lv*) echo "Install $BETA" ;;
ef*) echo "Install $EFPKG" ;;
*) echo "Install $1" ;;
esac
else
basef="`echo $1 | sed 's,\.tar\.gz,,'`"
pkginfof=".$basef.info"
if ; then
pkginfo=`head -1 "$CDPATH/$pkginfof"`
echo "Install $basef: $pkginfo"
else
echo "Install $1"
fi
fi
;;
esac
}
info_rpm () {
case "$1" in
*.rpm)
if ; then
$RPM -qip "$1"
elif ; then
"$CDPATH/bin/rpmq" --rcfile=/dev/null -qp --queryformat \
'Name : %-27{NAME}\
Version : %-27{VERSION} Vendor: %{VENDOR}\
Group : %-27{GROUP} Size: %{SIZE}\
%|LICENSE?{License : %{LICENSE}}|\
%|URL?{URL : %{URL}}|\
Summary : %{SUMMARY}\
Description :\n%{DESCRIPTION}\n' $1
else
echo "$1: can't read RPM description info"
fi
;;
*.tar.gz)
basef="`echo $1 | sed 's,\.tar\.gz,,'`"
pkginfof=".$basef.info"
if ; then
echo "Name: $basef"
echon "Summary: "
head -1 "$CDPATH/$pkginfof"
echo "Description:"
sed -n -e '3,/^$/p' $CDPATH/$pkginfof
fi
;;
esac
}
#
# vercmp() - compares two RPM-style version numbers and returns -1, 0, 1
# to indicate if the first verison is less than, equal to, or greater than
# the second. Version numbers can be specified with or without release
# suffixes. Alpha, beta, etc. suffixes should always specified be in the
# release portion.
#
# Examples:
# vercmp 1.0 1.0.1
# vercmp 1.0-a1 1.0-a12
# vercmp 1.0.1-b1 1.0-1
# vercmp 2.2.3.4-99 2.2.4
# vercmp 8.2-d120 8.2-0b129
# vercmp 8.2-0b129 8.2-0rc0
# vercmp 8.2-0rc0 8.2-1
vercmp() {
canonicalizeVersion() {
canonicalVersion=`echo "$1" |
sed -e 's,\(\)\(\),\1.000.\2,g' \
-e 's,\(\)\(\),\1.\2,g' \
-e 's,^\(\),---.\1,' \
-e 's,\b\(\)\b,00\1,g' \
-e 's,\b\(\)\b,0\1,g'`
}
local arg1 arg2 nResult firstVers secondVers resultVers
if ; then
return 0;
fi
arg1=`echo "$1" | sed 's,-.*$,,'`
arg2=`echo "$2" | sed 's,-.*$,,'`
if ; then
vercmp "$arg1" "$arg2"
nResult=$?
if ; then
return $nResult
fi
fi
canonicalizeVersion `echo "$1" | sed 's,^.*-,,'`
firstVers="$canonicalVersion"
canonicalizeVersion `echo "$2" | sed 's,^.*-,,'`
secondVers="$canonicalVersion"
resultVers=`(echo "$firstVers"; echo "$secondVers") |
LC_ALL=C sort -t. | head -1`
if ; then
return -1
else
return 1
fi
}
confirm_install() {
rpmpkgs=
echon "The following components will be installed "
if ; then
echo "using rpm:"
else
echo "using cpio:"
fi
echo ""
totalSizeKB=0
for arg in "$@"
do
componentSizeKB=0
if ; then
case "$arg" in
niwebpipeline*)
componentInfo="NI Web Pipeline dependency libraries "
;;
*)
componentInfo=`$RPM -qp --queryformat '%-50{SUMMARY} ' $arg`
;;
esac
componentSizeKB=`$RPM -qp --queryformat '%{SIZE}' "$arg"`
else
componentInfo="$arg "
componentSizeKB=`$CDPATH/bin/rpmq -qp --rcfile=/dev/null --queryformat '%{SIZE}' "$arg"`
fi
if ; then
echo "Unable to find installation size for $arg"
return 1
fi
componentSizeKB=`expr $componentSizeKB / 1024`
printf "%s %d kB\n" "$componentInfo" $componentSizeKB
totalSizeKB=`expr $totalSizeKB + $componentSizeKB`
done
echo ""
echo "Total space required: $totalSizeKB kB"
echon "Space available: "
freespace=`df -k $BASEDIR | tail -1 | awk '{print $(NF-2)}'`
echo "$freespace kB"
echo ""
if ; then
return 0
fi
if ; then
echo "WARNING - not enough disk space to install selected packages."
echon "Proceed? "
else
echon "Proceed? "
fi
read ans
if ; then
test -z "$ans" && ans=n
else
test -z "$ans" && ans=y
fi
case "$ans" in
*) return 0 ;;
*) echo "Aborting installation."; exit 0 ;;
esac
echo "Skipping installation."
return 1
}
install_pkg() {
rpmpkgs=
for arg in "$@"
do
case "$arg" in
*-rte-*|*-rte-aal-*)
instdir=$LIBDIR
chowndir=$RTEDIR
msgdir=$LIBDIR/lib
isrte=y
isother=n
;;
labview85*)
instdir=$BASEDIR
chowndir=$LVDIR
msgdir=$BASEDIR
isrte=n
isother=n
;;
*)
instdir=$LIBDIR
chowndir=$RTEDIR
msgdir=$LIBDIR/lib
isrte=n
isother=y
;;
esac
case "$arg" in
*.rpm)
RPMPREFIX=
if ; then
RPMPREFIX="--prefix '$instdir'"
fi
if ; then
if ; then
"$RPM" $RPMOPT --replacepkgs --replacefiles $RPMPREFIX $arg
elif ; then
"$RPM" $RPMOPT --replacepkgs --replacefiles $arg
else
rpmpkgs="$rpmpkgs $arg"
LVRPMPREFIX="$RPMPREFIX"
fi
else
mkdir -p "$instdir" 2>/dev/null
/bin/sh "$CDPATH/bin/INSTALL.norpm" $arg "$instdir"
fi
;;
*.tar.gz)
basef="`echo $arg | sed 's,\.tar\.gz,,'`"
echo "Extracting files in package $basef into $msgdir."
(cd "$instdir"; tarx "$CDPATH/$arg")
status=$?
if ; then
echo "File extraction failed. Please check available disk space."
return 1
fi
pkginfof=".$basef.info"
# Extract and execute postinstall script
if ; then
tmpscript=/tmp/lvpostin.$$.sh
sed -n '/^#### postinstall/,$p' "$CDPATH/$pkginfof" > $tmpscript
RPM_INSTALL_PREFIX=$instdir LIBDIR=$LIBDIR BASEDIR=$BASEDIR /bin/sh $tmpscript
rm -f $tmpscript
fi
if ; then
chown -R root "$chowndir"
chgrp -R root "$chowndir"
fi
;;
esac
done
if ; then
"$RPM" $RPMOPT --replacefiles --replacepkgs $LVRPMPREFIX $rpmpkgs
if ; then
echo ""
echo "*** ERROR installing packages."
echo "Check that you have enough disk space and that the target filesystem" echo "is writable."
fi
fi
return 0
}
install_labview () {
echo "NOTE: LabVIEW will install by default in /usr/local/natinst/LabVIEW-8.5,"
echo "or in the natinst/LabVIEW-8.5 subdirectory if you specify an alternate location."
echo ""
echo "Preparing for installation..."
if ; then
GLIBCV=`ldd --version | head -1 | sed -e 's/.* //'`
echo "C runtime library (glibc) version: $GLIBCV."
case "$GLIBCV" in
*2.2.*) ;;
*2.*) ;;
*.*) ;;
*) echo "WARNING: It does not appear that your are running GNU C Library version 2.2.4"
echo " or later. glibc-2.4.4 is required to upgrade. See the README file"
echo " for information on how to upgrade this library." ;;
esac
if ; then
RPMVERS="`$RPM --version | sed 's,^RPM version ,,'`"
echo "Red Hat Package Manager (RPM) version: $RPMVERS."
case "$RPMVERS" in
*)
echo ""
echo "Note: RPM version $RPMVERS is too old for rpm package installation."
echo "LabVIEW packages will be extracted directly."
NORPM=y
;;
4.0.2|4.1.*|4.2.1)
echo ""
echo "Note: Your system's RPM package manager (version $RPMVERS) has a bug preventing"
echo "package relocation. LabVIEW will be installed in the default location"
echo "of $BASEDIR. If you need files to be installed on a different partition,"
echo "you may upgrade or downgrade to RPM 4.0.4 or RPM 4.2 (versions 4.0.2, 4.1 and"
echo "4.2.1 are broken), or you may make a symbolic link from $BASEDIR/lv$TLR to"
echo "another directory prior to installation. To contact Red Hat about these issues,"
echo "send e-mail to support@redhat.com."
echo ""
echo "Enter 's' if you wish to skip LabVIEW installation or 'q' to quit."
;;
*)
;;
esac
if ; then
ENFORCING=`/usr/sbin/getenforce | grep -i enforc >/dev/null 2>&1`
if ; then
echo ""
echo "*** You appear to have SELinux enabled on your system in 'enforcing' mode."
echo "If you experience errors in LabVIEW loading projects, make sure you have the"
echo "latest selinux-policy-targeted RPM package update from your vendor"
echo "(or disable SELinux with /usr/sbin/setenforce permissive)."
echo ""
fi
fi
fi
fi # QUICK
if ; then
proceed=y
if ; then
echo ""
echo "NOTE: This is an upgrade only; you must have $UPGRADE installed to proceed."
echo ""
fi
while ;
do
PREVDIR="$instdir"
#get_install_dir "Please enter the base path of your previous $UPGRADE installation." \
# "(Packages will be installed in the '$DDIR' subfolder.)"
if ; then
proceed=n
else
echo "That directory does not seem to contain a LabVIEW installation."
echo "An existing $UPGRADE installation is required to upgrade to $VERS."
instdir="$PREVDIR"
exit 1
fi
done
echo ""
echo "LabVIEW $VERS updates will be installed in on top of the existing $UPGRADE"
echo "installation. Files will be installed in $instdir/$DDIR"
echo ""
else
instdir=$BASEDIR
#get_install_dir "Where would you like to install LabVIEW packages?" \
#"(Packages will be installed in a subfolder named '$DDIR'.)"
fi
BASEDIR=$instdir
LVDIR=$instdir/$DDIR
ans=""
asked=""
if ; then
echo "NOTE: This is an upgrade only; you must have $UPGRADE installed to proceed."
fi
if ; then
echo "Please indicate whether you would like to install the following components:"
echo ""
fi
for rawpkg in $allpkg
do
pkg=$rawpkg$DPKGEXT
ask=""
errout=">/dev/null 2>&1"
if ; then
if ; then
ask=y
else
case "$pkg" in
*.rpm)
if ; then
#eval "$RPM" --ignoresize --test $RPMPREFIX $RPMOPT $pkg $errout
eval $RPM -q "$rawpkg" $errout
if ; then
echon # "Package $rawpkg is already installed."
else
ask=y
fi
else
ask=y
fi
;;
*.tar.gz)
ask=y
;;
esac
fi
fi
if ; then
while :
do
asked=y
if ; then
summary $pkg
ans=y
elif ; then
ans=y
else
summary $pkg
echon " "
read ans
test -z "$ans" && ans=y
fi
case "$ans" in
*) packages="$packages $pkg"
if ; then
installrte=y
fi
break ;;
*) packages="$packages $pkg"
echo "Selecting all packages..."
if ; then
installrte=y
fi
if ; then
skipconfirm=y
fi
installpkg=y
break ;;
*)
info_rpm $pkg
echo ""
echo "Enter 'y' to install this package, 'n' to skip, 'a' to install all LabVIEW"
echo "packages, 's' to skip all, or 'q' to abort installation entirely."
echo "" ;;
*) echo "Installation aborted."
exit 1 ;;
*) echo "Skipping LabVIEW installation."
packages=
break 2 ;;
*) echo "Proceeding."
skipconfirm=y
break 2 ;;
*) break ;;
esac
done
fi
done
lvstat=0
if ; then
echo "All available LabVIEW packages have already been installed or cannot"
echo "be installed due to package conflicts."
elif ; then
echo "No LabVIEW packages were selected."
else
RTEDIR=$LIBDIR/$LVRTE
skip=
if ; then
if ; then
$RPM -q `$RPM -qp $webpipepkg` >/dev/null 2>/dev/null
if ; then
installweb=y
fi
fi
else
installweb=y
fi
if ; then
echo ""
echo "You have selected packages which depend on the LabVIEW run-time engine, but did"
echo "not select the run-time engine and it is not already installed."
echon "Do you wish to install $rtepkg as well? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) packages="$rtepkg$DPKGEXT $packages" ;;
*) echo "Aborting installation."
exit 1 ;;
*) echo "Skipping LabVIEW package installation."
skip=y ;;
esac
fi
if ; then
echo ""
if ; then
echo "Auto-selecting dependency $webpipepkg"
packages="$packages $webpipepkg"
if ; then
echo "Auto-selecting dependency $rawefpkg1"
packages="$packages $efpkg1"
fi
echo ""
fi
if ; then
confirm_install $packages
fi
if ; then
echo "Installing..."
install_pkg $packages
lvstat=$?
fi
fi
fi
LVRTLINK=$LIBDIR/lib/liblvrt.so
DARKLINK=$LIBDIR/lib/liblvrtdark.so
askresetlnk=
# If they've installed an older RTE more recently than this one, offer
# to recreate the 'current' link
echo ""
if ; then
:
elif ; then
askresetlnk=y
echo "Run-time engine link $LVRTLINK does not exist."
echon "Create it? "
elif ; then
LTARG=
TMPLVRTLINK=$LVRTLINK
while ]; do
LTARG=`ls -l $TMPLVRTLINK | sed 's,^.* -> ,,'`
TMPLVRTLINK="$LIBDIR/lib/$LTARG"
done
LTARGVERS=`echo $LTARG | sed 's,.*liblvrt\.so\.,,'`
if ; then
vercmp $VERS $LTARGVERS
cmp=$?
if ] ; then
RTELINKCURRENT=y
elif ] ; then
askresetlnk=y
echo "Run-time engine link $LVRTLINK exists but points to an older"
echo "version ($LTARGVERS). This link determines which version of the LabVIEW"
echo "run-time to use when building C/C++ applications. Do you want to recreate"
echon "the link to make $VERS the default run-time engine? "
fi
fi
fi
if ; then
read ans
test -z "$ans" && ans=y
case "$ans" in
*)
rm -f $LVRTLINK $DARKLINK
echo "Recreating link to LabVIEW $VERS run-time engine."
echo ""
ln -s liblvrt.so.$MAJVERS $LVRTLINK
test -f $LIBDIR/lib/liblvrtdark.so.$MAJVERS && ln -s liblvrtdark.so.$MAJVERS $DARKLINK
;;
esac
fi
if ; then
if ; then
efpkg="$efpkg $webpipepkg"
fi
echo ""
ans=
if ; then
if ; then
eval $RPM -q "$rawefpkg1" $errout
efstat=$?
eval $RPM -q "$rawefpkglv" $errout
if ; then
echo "Package $rawefpkg1 is already installed."
ans=n
else
echon "Would you like to install $EFPKG? "
read ans
test -z "$ans" && ans=y
fi
fi
fi
if ; then
ans=y
fi
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
echo "Installing NI Example Finder..."
install_pkg $efpkg
SHAREDIR=`cat /etc/natinst/share/share.dir 2>/dev/null`
# Make a link from old EF loc to new so LV 7.1 can find it.
if ; then
mkdir -p "/usr/local/share/natinst/example finder/1.0/bin"
ln -s -f "$SHAREDIR/example finder/1.0/bin/NIExampleFinder" "/usr/local/share/natinst/example finder/1.0/bin/NIExampleFinder" 2>/dev/null
fi
;;
esac
fi
if ; then
if ; then
echo ""
echon "Would you like to install the LabVIEW web browser plugin? "
read ans
else
ans=y
fi
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
found=no
echo ""
echo "Checking for Mozilla/Firefox/Netscape 6+ installation..."
(
MDIRS=`echo /usr/lib/firefox /usr/lib/mozilla /usr/lib/mozilla-* /usr/local/lib/firefox /usr/local/mozilla /usr/local/mozilla-* /opt/mozilla /opt/mozila-* /opt/MozillaFirefox/lib /opt/gnome/lib/mozilla /opt/gnome/lib/mozilla-* /opt/netscape /usr/lib/netscape /usr/local/netscape /usr/local/lib/netscape /opt/SUNWns`
if ; then
dirs=`locate -r '/plugins$' | egrep 'mozilla|netscape|firefox' | grep -v '/\.' | sed 's,/plugins,,'`
for d in $dirs ; do
if ; then
MDIRS="$MDIRS $d"
fi
done
fi
MDIRS=`echo "$MDIRS" | tr ' ' '\n' | sort | uniq`
for dir in $MDIRS
do
if ; then
if ; then
echo "Copying plugin to $dir/plugins"
cp -f $LIBDIR/lib/LabVIEW-$VERS/$NSPLUGIN $dir/plugins
else
echo "Cannot write to browser plugin directory $dir/plugins"
fi
found=yes
else
true
fi
done
if ; then
echo "None found. If you have Netscape 6, Mozilla, or Firefox installed in a"
echo "non-standard location, copy $LIBDIR/lib/LabVIEW-$VERS/$NSPLUGIN to its"
echo "'plugins' subfolder."
fi
) 2>/dev/null
;;
esac
fi
if ; then
if ; then
if ; then
if ; then
mv -f /usr/local/bin/labview /usr/local/bin/labview.old
else
rm -f /usr/local/bin/labview
fi
ln -s -f "$LVDIR/labview" /usr/local/bin/labview
test -f "$LVDIR/linux/LVMerge" && cp -f "$LVDIR/linux/LVMerge" /usr/local/bin/LVMerge
else
echo "No permission to create links in /usr/local/bin."
fi
fi
echo ""
echo "LabVIEW package installation complete."
else
echo ""
echo "Browser plugins not installed."
if ; then
echo "Make sure you are installing in the same base directory as $UPGRADE."
fi
fi
}
checkrtelink() {
# Installing VISA or GPIB will install the 8.0.1 RTE, which may overwrite
# the latest RTE link. If it was the current link was installed before, reset the link.
if ; then
rm -f $LVRTLINK $DARKLINK
ln -s liblvrt.so.$MAJVERS $LVRTLINK
test -f $LIBDIR/lib/liblvrtdark.so.$MAJVERS && ln -s liblvrtdark.so.$MAJVERS $DARKLINK
fi
}
checknipalproc() {
PID=`/bin/ps aux | grep 'cat /dev/nipalk' | grep -v grep | awk '{print $2;}' 2>/dev/null`
if ; then
kill $PID >/dev/null 2>&1
fi
}
parse_options() {
for arg in "$@"
do
case "$arg" in
--accept-license|-al)
ACCEPT_LICENSE=y ;;
--no-prompt|-np)
NO_PROMPT=y ;;
--no-rpm)
echo ""
echo "Installing without RPM. Files will be extracted manually."
NORPM=y ;;
*) echo "Unrecognized option $arg"
exit 1;;
esac
done
if ; then
echo ""; echo "*** ERROR ***"
echo "In order to use the --no-prompt option, you must also use the --accept-license"
echo "option to indicate you have read and accepted the terms of the "
echo "National Instruments Software License Agreement, found in LICENSE.txt."
exit 1
fi
}
#
# MAIN
#
cd "$CDPATH"
echo ""
if ; then
cat COPYRIGHT
else
echo "LabVIEW $VERS for $OSNAMEV"
fi
if ; then
echo ""
echo "*** Sorry, you must have root privileges to run this install script. ***"
echo "Please su or login as root and try again."
echo "Installation aborted."
exit 1
fi
echo ""
parse_options "$@"
if ; then
if ; then
cat <
WARNING! You do not have glibc2 (libc.so.6) installed.
Because LabVIEW is a multi-threaded application and
requires POSIX 1003.1 pthread support, this library is
a prerequisite for installation.
See the file Glibc2-HOWTO on this CD for information on installing glibc2
from source or binary distribution, or for additional mirror
sites.
EOF
if ; then
echo "Since you are using RedHat Linux, you may wish to upgrade"
echo "to RedHat 7.2 (or later), which comes with glibc2 installed"
echo "by default. RedHat may be reached at http://www.redhat.com."
fi
echo ""
echon "Try to proceed anyway? "
read ans
case "$ans" in
*) ;;
*) exit 1 ;;
esac
else
echo # "Prerequisite glibc2 (libc.so.6) libraries found."
fi
echo ""
fi # i386
instdir=$BASEDIR
LVDIR=$instdir/$DDIR
if ; then
dir="`$RPM -ql labview$TLR-app 2>/dev/null | head -1 | xargs dirname 2>/dev/null`"
if ; then
dir="`$RPM -q --queryformat '%{prefixes}\n' labview$TLR-core 2>/dev/null`"
fi
if ; then
dir="`$RPM -q --queryformat '%{defaultprefix}\n' labview$TLR-core 2>/dev/null`"
fi
case "$dir" in
/*) instdir=$dir ;;
esac
fi
cd "$CDPATH"
if ; then
ACCEPT_LICENSE=
licloop=y
while ; do
echo "By installing LabVIEW software packages, you agree to the terms of the included"
echo "NI Software License Agreement (LICENSE.txt). Type 'v' to view the agreement,"
echo "'y' to consent to the agreement, or 'n' to decline the agreement and skip"
echon "LabVIEW installation. "
if ; then
echon " "
else
echon " "
fi
read ans
case "$ans" in
*)
ACCEPT_LICENSE=y
licloop=n
;;
*)
licloop=n
;;
*)
${PAGER:-more} LICENSE.txt
licview=y
;;
*)
echo "Installation aborted."
exit 1
;;
"")
if ; then
${PAGER:-more} LICENSE.txt
licview=y
fi
;;
esac
echo ""
done
fi
if ; then
install_labview
echo ""
if ; then
echo "LabVIEW installation complete."
else
if ; then
case "$packages" in
*update*)
echo "Launching LabVIEW Mass Compile utility."
$LVDIR/labview masscomp.vi 2>/dev/null ||
(echo "Please run 'masscomp.vi' to update the VIs in your $UPGRADE installation";
echo "to LabVIEW $VERS.")
;;
esac
fi
fi
fi
if ; then
# Don't install drivers or other non-LV packages in non-interactive mode
exit 0
fi
cd "$CDPATH"
if ; then
ACROREAD=/usr/bin/xpdf
elif ; then
ACROREAD=/usr/bin/ggv
elif ; then
ACROREAD=/usr/bin/kpf
elif ; then
ACROREAD=/usr/bin/gv
elif ; then
ACROREAD=/usr/bin/acroread
elif ; then
ACROREAD=/usr/local/bin/acroread
elif ; then
ACROREAD=/usr/local/Acrobat5/bin/acroread
fi
if ; then
echo "Note: This product contains online reference manuals in Adobe PDF format."
echo "The installer was not able to locate a PDF viewer on your system. To view these"
echo "documents, either install a viewer such as ggv, kpdf, or xpdf,"
echo "or visit http://www.adobe.com to download Adobe Acrobat Reader."
echo "(Adobe and Reader are registered trademarks of Adobe Systems Inc.)"
fi
cd "$CDPATH"
if ; then
echo ""
echon "Would you like to install the CVI Run-Time Engine ($CVIRTVERS)? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
if ; then
rpm -Uvh "$cvirtpkg"
else
/bin/sh "$CDPATH/bin/INSTALL.norpm" "$cvirtpkg" "$instdir"
fi
;;
esac
fi
echo ""
echo "================================================================================"
echo ""
echo "Beginning hardware driver installation."
echo ""
echo "Depending on your system configuration, some drivers may require you to reboot"
echo "after installation before you can access the driver."
kernwarn=
if ; then
$RPM -q kernel-source >/dev/null 2>&1
if ; then
kernwarn=y
fi
fi
if ; then
echo ""
echo "Note that some drivers may require the Linux kernel source to be installed."
echo "This can be found on your Linux distribution install CD as a package called"
echo "'kernel-source'. Make sure to install the version matching the kernel you are"
echo "running. If you need to install kernel source, press 'q' to abort installation,"
echo "and re-run this install script after you have installed the kernel source."
fi
echo ""
cd "$CDPATH"
if ; then
if ; then
echo "NOTE: NI-VISA is not supported on this distribution and may not work as"; echo " expected."
fi
echo ""
echon "Would you like to install NI-VISA ($VISAVERS) for $OSNAMEV? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
cd "$CDPATH/$VISADIR"
/bin/sh ./INSTALL
checkrtelink
checknipalproc
echo ""
;;
esac
fi
cd "$CDPATH"
if ; then
echo ""
echon "Would you like to install NI-GPIB ($GPIBVERS) for $OSNAMEV? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
cd "$CDPATH/$GPIBDIR"
/bin/sh ./INSTALL
checkrtelink
checknipalproc
echo ""
;;
esac
fi
cd "$CDPATH"
if ; then
echo ""
echon "Would you like to install NI-GPIB ENET/100 $ENETVERS for $OSNAMEV? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
cd "$CDPATH/$ENETDIR"
PATH=$ORIGPATH /bin/sh ./INSTALL
echo ""
;;
esac
fi
if ; then
UPNOTES="$LVDIR/manuals/LV_Upgrade_Notes.pdf"
if ; then
echo ""
echo "Please see the LabVIEW Beta Documentation in $LVDIR/help/betadoc.html."
elif ; then
if ; then
echo ""
echon "View the LabVIEW $VERS Upgrade Notes now? "
read ans
case "$ans" in
""|y|Y)
if ; then
echo "Launching $ACROREAD..."
$ACROREAD "$UPNOTES" 2>/dev/null &
else
echo "Sorry, xpdf, ggv, kpdf or Adobe Acrobat Reader must be installed to view PDF files."
fi
;;
esac
else
echo ""
echo "Please see the LabVIEW $VERS Upgrade Notes in $UPNOTES"
echo "for information about new features in LabVIEW $VERS."
fi
else
echo ""
echo "Please see the LabVIEW Upgrade Notes (in the labview$TLR-ref package) for"
echo "information about new features in LabVIEW $VERS."
fi
fi
echo ""
echo "Installation complete."
exit 0
Uninstall
#!/bin/bash -
#
# LabVIEW 8.5 installation script. Copyright (c)2007 National Instruments Corp.
#
ORIGPATH=$PATH
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
export PATH
TLR=85
REQSTDLIB=/usr/lib/libstdc++.so.5
LVONLY= # skip drivers
NSPLUGIN=LV85NPlugin.so
BETA=
RPMBUILD=1
EFPKG="NI Example Finder (LabVIEW 8.5)"
EFVERS="1.0"
SKIPEF=
SUBR=
EFMINR="-8$BETA"
RTEAALVERS="1.1-1"
MINR="-$RPMBUILD$BETA"
MAJVERS="8.5"
VERS="$MAJVERS$SUBR"
VISAVERS=4.2
VISADIR=NI-VISA-$VISAVERS
CVIRTVERS=5.0.1-3
ENETVERS=2.2.0
ENETDIR=nienet-$ENETVERS
DDIR=natinst/LabVIEW-$MAJVERS
LVRTE=lib/LabVIEW-$MAJVERS
UPGRADE=
PLAT=linux
if ; then
RPM=/usr/bin/rpm
else
RPM=/bin/rpm
fi
RPMOPT="-Uvh" # Options for LabVIEW package installation
TAR="tar"
OSNAME="`uname -s`"
sorry() {
echo "Sorry, LabVIEW is not currently available for this O/S and architecture."
echo "Visit http://www.ni.com/support/ to search the knowledge base"
echo "or http://www.ni.com/ask/ to obtain e-mail tech. support."
exit 1
}
#
# Initialization
#
CDPATH="`dirname $0`"
case "$CDPATH" in
/*) ;;
.) CDPATH="`pwd`" ;;
*) CDPATH="`pwd`/$CDPATH" ;;
esac
case "$OSNAME" in
Linux)
case "`uname -m`" in
i*86|x86_64)
ARCH=i386
ALTARCH=i386
OSNAMEV="GNU/Linux"
OSDIR=linux
NORPM=
# Gentoo has RPM but the system is not installed using it, so
# rpm dependencies will not be satisfied for our packages.
if # don't try to query for packages
then
NORPM=y
fi
if ; then
# Slackware and Debian/Ubuntu have RPM, but it's broken
# and fails on all dependencies.
NORPM=y
fi
VERSR=$MAJVERS$SUBR$MINR
DPKGEXT=".$ARCH.rpm"
PKGEXT="-$VERSR"
DFLTPREFIX=/usr/local
if ; then
DFLTPREFIX="`rpm -q --queryformat '%{instprefixes}' labview85-core`"
fi
LIBDIR=$DFLTPREFIX
GPIBVERS="NI-488.2 2.5.1"
GPIBDIR=NI-488-2.5.1
BASEDIR=$DFLTPREFIX
tarx () { $TAR xfz "$@"; }
echon () { echo -n "$@"; }
;;
*) sorry ;;
esac
;;
SunOS)
case "`uname -p`" in
sparc)
ARCH=sparc
ALTARCH=sparc
OSNAMEV="Sun Solaris"
OSDIR=solaris
NORPM=y
MINR=
EFMINR=
VERSR=$MAJVERS$SUBR
DPKGEXT=".tar.gz"
PKGEXT="-$VERSR"
LIBDIR=/usr
BASEDIR=/opt
GPIBVERS="PCI/SB/SCSI/ENET"
GPIBDIR=GPIB
tarx () { "$CDPATH/bin/gunzip" < "$@" | $TAR xf -; }
echon () { echo "$@\c"; }
;;
*) sorry ;;
esac
;;
*) sorry ;;
esac
if ; then
USERPM=y
fi
rawefpkg1="niexfinder-base-$EFVERS$EFMINR"
efpkg1="$rawefpkg1$DPKGEXT"
webpipebase="niwebpipeline20_dep"
webpipepkg="$webpipebase-2.0-5.i586.rpm"
rawefpkglv="niexfinder-labview$TLR-$EFVERS$EFMINR"
efpkglv="$rawefpkglv$DPKGEXT"
efpkg="$efpkg1 $efpkglv"
rtepkg="labview$TLR-rte$PKGEXT"
rteaalpkg="labview-rte-aal-$RTEAALVERS"
corepkg="labview$TLR-core$PKGEXT"
allpkg="$rtepkg $rteaalpkg $corepkg labview$TLR-examples$PKGEXT labview$TLR-help$PKGEXT labview$TLR-ref$PKGEXT labview$TLR-vxi$PKGEXT labview$TLR-desktop$PKGEXT labview$TLR-appbuild$PKGEXT labview$TLR-pro$PKGEXT"
cvirtpkg="nicvirte-$CVIRTVERS-3"
get_install_dir () {
if ; then
return
fi
olddir="`pwd`"
origdir=$instdir
while :
do
dir=$instdir
case "$RPMVERS" in
4.0.2|4.1*|4.2.1) ;;
*)
echo ""
echo $1
test ! -z "$2" && echo "$2"
test ! -z "$3" && echo "$3"
test ! -z "$4" && echo "$4"
echon " "
read ans
if ; then
dir=$ans
fi
;;
esac
echo ""
case "$dir" in
/*) ;;
*) exit 1 ;;
*) echo "Directory must begin with /"
continue ;;
esac
if ; then
echo "That path already exists as a regular file!"
echo "A directory path is required."
continue
fi
if ; then
echon "$dir does not exist. Create? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) mkdir -p "$dir" ;;
*) echo "Aborted."; exit 1 ;;
*) continue ;;
esac
fi
cd "$dir" 2>/dev/null
if touch "$dir/foo" 2>/dev/null; then
rm -f "$dir/foo"
break
else
echo "Cannot write to $dir. Check directory permissions. You may need to"
echo "run the installer as root"
fi
done
instdir="$dir"
cd "$olddir"
echo ""
}
summary () {
case "$1" in
*.rpm)
if ; then
$RPM -qp --queryformat '%{name}: %{summary}\n' "$1"
elif ; then
"$CDPATH/bin/rpmq" --rcfile=/dev/null -qp --queryformat '%{name}: %{summary}\n' $1
else
echo "Install $1"
fi
;;
*.tar.gz)
if ; then
case "$1" in
lv*) echo "Install $BETA" ;;
ef*) echo "Install $EFPKG" ;;
*) echo "Install $1" ;;
esac
else
basef="`echo $1 | sed 's,\.tar\.gz,,'`"
pkginfof=".$basef.info"
if ; then
pkginfo=`head -1 "$CDPATH/$pkginfof"`
echo "Install $basef: $pkginfo"
else
echo "Install $1"
fi
fi
;;
esac
}
info_rpm () {
case "$1" in
*.rpm)
if ; then
$RPM -qip "$1"
elif ; then
"$CDPATH/bin/rpmq" --rcfile=/dev/null -qp --queryformat \
'Name : %-27{NAME}\
Version : %-27{VERSION} Vendor: %{VENDOR}\
Group : %-27{GROUP} Size: %{SIZE}\
%|LICENSE?{License : %{LICENSE}}|\
%|URL?{URL : %{URL}}|\
Summary : %{SUMMARY}\
Description :\n%{DESCRIPTION}\n' $1
else
echo "$1: can't read RPM description info"
fi
;;
*.tar.gz)
basef="`echo $1 | sed 's,\.tar\.gz,,'`"
pkginfof=".$basef.info"
if ; then
echo "Name: $basef"
echon "Summary: "
head -1 "$CDPATH/$pkginfof"
echo "Description:"
sed -n -e '3,/^$/p' $CDPATH/$pkginfof
fi
;;
esac
}
#
# vercmp() - compares two RPM-style version numbers and returns -1, 0, 1
# to indicate if the first verison is less than, equal to, or greater than
# the second. Version numbers can be specified with or without release
# suffixes. Alpha, beta, etc. suffixes should always specified be in the
# release portion.
#
# Examples:
# vercmp 1.0 1.0.1
# vercmp 1.0-a1 1.0-a12
# vercmp 1.0.1-b1 1.0-1
# vercmp 2.2.3.4-99 2.2.4
# vercmp 8.2-d120 8.2-0b129
# vercmp 8.2-0b129 8.2-0rc0
# vercmp 8.2-0rc0 8.2-1
vercmp() {
canonicalizeVersion() {
canonicalVersion=`echo "$1" |
sed -e 's,\(\)\(\),\1.000.\2,g' \
-e 's,\(\)\(\),\1.\2,g' \
-e 's,^\(\),---.\1,' \
-e 's,\b\(\)\b,00\1,g' \
-e 's,\b\(\)\b,0\1,g'`
}
local arg1 arg2 nResult firstVers secondVers resultVers
if ; then
return 0;
fi
arg1=`echo "$1" | sed 's,-.*$,,'`
arg2=`echo "$2" | sed 's,-.*$,,'`
if ; then
vercmp "$arg1" "$arg2"
nResult=$?
if ; then
return $nResult
fi
fi
canonicalizeVersion `echo "$1" | sed 's,^.*-,,'`
firstVers="$canonicalVersion"
canonicalizeVersion `echo "$2" | sed 's,^.*-,,'`
secondVers="$canonicalVersion"
resultVers=`(echo "$firstVers"; echo "$secondVers") |
LC_ALL=C sort -t. | head -1`
if ; then
return -1
else
return 1
fi
}
confirm_install() {
rpmpkgs=
echon "The following components will be installed "
if ; then
echo "using rpm:"
else
echo "using cpio:"
fi
echo ""
totalSizeKB=0
for arg in "$@"
do
componentSizeKB=0
if ; then
case "$arg" in
niwebpipeline*)
componentInfo="NI Web Pipeline dependency libraries "
;;
*)
componentInfo=`$RPM -qp --queryformat '%-50{SUMMARY} ' $arg`
;;
esac
componentSizeKB=`$RPM -qp --queryformat '%{SIZE}' "$arg"`
else
componentInfo="$arg "
componentSizeKB=`$CDPATH/bin/rpmq -qp --rcfile=/dev/null --queryformat '%{SIZE}' "$arg"`
fi
if ; then
echo "Unable to find installation size for $arg"
return 1
fi
componentSizeKB=`expr $componentSizeKB / 1024`
printf "%s %d kB\n" "$componentInfo" $componentSizeKB
totalSizeKB=`expr $totalSizeKB + $componentSizeKB`
done
echo ""
echo "Total space required: $totalSizeKB kB"
echon "Space available: "
freespace=`df -k $BASEDIR | tail -1 | awk '{print $(NF-2)}'`
echo "$freespace kB"
echo ""
if ; then
return 0
fi
if ; then
echo "WARNING - not enough disk space to install selected packages."
echon "Proceed? "
else
echon "Proceed? "
fi
read ans
if ; then
test -z "$ans" && ans=n
else
test -z "$ans" && ans=y
fi
case "$ans" in
*) return 0 ;;
*) echo "Aborting installation."; exit 0 ;;
esac
echo "Skipping installation."
return 1
}
install_pkg() {
rpmpkgs=
for arg in "$@"
do
case "$arg" in
*-rte-*|*-rte-aal-*)
instdir=$LIBDIR
chowndir=$RTEDIR
msgdir=$LIBDIR/lib
isrte=y
isother=n
;;
labview85*)
instdir=$BASEDIR
chowndir=$LVDIR
msgdir=$BASEDIR
isrte=n
isother=n
;;
*)
instdir=$LIBDIR
chowndir=$RTEDIR
msgdir=$LIBDIR/lib
isrte=n
isother=y
;;
esac
case "$arg" in
*.rpm)
RPMPREFIX=
if ; then
RPMPREFIX="--prefix '$instdir'"
fi
if ; then
if ; then
"$RPM" $RPMOPT --replacepkgs --replacefiles $RPMPREFIX $arg
elif ; then
"$RPM" $RPMOPT --replacepkgs --replacefiles $arg
else
rpmpkgs="$rpmpkgs $arg"
LVRPMPREFIX="$RPMPREFIX"
fi
else
mkdir -p "$instdir" 2>/dev/null
/bin/sh "$CDPATH/bin/INSTALL.norpm" $arg "$instdir"
fi
;;
*.tar.gz)
basef="`echo $arg | sed 's,\.tar\.gz,,'`"
echo "Extracting files in package $basef into $msgdir."
(cd "$instdir"; tarx "$CDPATH/$arg")
status=$?
if ; then
echo "File extraction failed. Please check available disk space."
return 1
fi
pkginfof=".$basef.info"
# Extract and execute postinstall script
if ; then
tmpscript=/tmp/lvpostin.$$.sh
sed -n '/^#### postinstall/,$p' "$CDPATH/$pkginfof" > $tmpscript
RPM_INSTALL_PREFIX=$instdir LIBDIR=$LIBDIR BASEDIR=$BASEDIR /bin/sh $tmpscript
rm -f $tmpscript
fi
if ; then
chown -R root "$chowndir"
chgrp -R root "$chowndir"
fi
;;
esac
done
if ; then
"$RPM" $RPMOPT --replacefiles --replacepkgs $LVRPMPREFIX $rpmpkgs
if ; then
echo ""
echo "*** ERROR installing packages."
echo "Check that you have enough disk space and that the target filesystem" echo "is writable."
fi
fi
return 0
}
install_labview () {
echo "NOTE: LabVIEW will install by default in /usr/local/natinst/LabVIEW-8.5,"
echo "or in the natinst/LabVIEW-8.5 subdirectory if you specify an alternate location."
echo ""
echo "Preparing for installation..."
if ; then
GLIBCV=`ldd --version | head -1 | sed -e 's/.* //'`
echo "C runtime library (glibc) version: $GLIBCV."
case "$GLIBCV" in
*2.2.*) ;;
*2.*) ;;
*.*) ;;
*) echo "WARNING: It does not appear that your are running GNU C Library version 2.2.4"
echo " or later. glibc-2.4.4 is required to upgrade. See the README file"
echo " for information on how to upgrade this library." ;;
esac
if ; then
RPMVERS="`$RPM --version | sed 's,^RPM version ,,'`"
echo "Red Hat Package Manager (RPM) version: $RPMVERS."
case "$RPMVERS" in
*)
echo ""
echo "Note: RPM version $RPMVERS is too old for rpm package installation."
echo "LabVIEW packages will be extracted directly."
NORPM=y
;;
4.0.2|4.1.*|4.2.1)
echo ""
echo "Note: Your system's RPM package manager (version $RPMVERS) has a bug preventing"
echo "package relocation. LabVIEW will be installed in the default location"
echo "of $BASEDIR. If you need files to be installed on a different partition,"
echo "you may upgrade or downgrade to RPM 4.0.4 or RPM 4.2 (versions 4.0.2, 4.1 and"
echo "4.2.1 are broken), or you may make a symbolic link from $BASEDIR/lv$TLR to"
echo "another directory prior to installation. To contact Red Hat about these issues,"
echo "send e-mail to support@redhat.com."
echo ""
echo "Enter 's' if you wish to skip LabVIEW installation or 'q' to quit."
;;
*)
;;
esac
if ; then
ENFORCING=`/usr/sbin/getenforce | grep -i enforc >/dev/null 2>&1`
if ; then
echo ""
echo "*** You appear to have SELinux enabled on your system in 'enforcing' mode."
echo "If you experience errors in LabVIEW loading projects, make sure you have the"
echo "latest selinux-policy-targeted RPM package update from your vendor"
echo "(or disable SELinux with /usr/sbin/setenforce permissive)."
echo ""
fi
fi
fi
fi # QUICK
if ; then
proceed=y
if ; then
echo ""
echo "NOTE: This is an upgrade only; you must have $UPGRADE installed to proceed."
echo ""
fi
while ;
do
PREVDIR="$instdir"
#get_install_dir "Please enter the base path of your previous $UPGRADE installation." \
# "(Packages will be installed in the '$DDIR' subfolder.)"
if ; then
proceed=n
else
echo "That directory does not seem to contain a LabVIEW installation."
echo "An existing $UPGRADE installation is required to upgrade to $VERS."
instdir="$PREVDIR"
exit 1
fi
done
echo ""
echo "LabVIEW $VERS updates will be installed in on top of the existing $UPGRADE"
echo "installation. Files will be installed in $instdir/$DDIR"
echo ""
else
instdir=$BASEDIR
#get_install_dir "Where would you like to install LabVIEW packages?" \
#"(Packages will be installed in a subfolder named '$DDIR'.)"
fi
BASEDIR=$instdir
LVDIR=$instdir/$DDIR
ans=""
asked=""
if ; then
echo "NOTE: This is an upgrade only; you must have $UPGRADE installed to proceed."
fi
if ; then
echo "Please indicate whether you would like to install the following components:"
echo ""
fi
for rawpkg in $allpkg
do
pkg=$rawpkg$DPKGEXT
ask=""
errout=">/dev/null 2>&1"
if ; then
if ; then
ask=y
else
case "$pkg" in
*.rpm)
if ; then
#eval "$RPM" --ignoresize --test $RPMPREFIX $RPMOPT $pkg $errout
eval $RPM -q "$rawpkg" $errout
if ; then
echon # "Package $rawpkg is already installed."
else
ask=y
fi
else
ask=y
fi
;;
*.tar.gz)
ask=y
;;
esac
fi
fi
if ; then
while :
do
asked=y
if ; then
summary $pkg
ans=y
elif ; then
ans=y
else
summary $pkg
echon " "
read ans
test -z "$ans" && ans=y
fi
case "$ans" in
*) packages="$packages $pkg"
if ; then
installrte=y
fi
break ;;
*) packages="$packages $pkg"
echo "Selecting all packages..."
if ; then
installrte=y
fi
if ; then
skipconfirm=y
fi
installpkg=y
break ;;
*)
info_rpm $pkg
echo ""
echo "Enter 'y' to install this package, 'n' to skip, 'a' to install all LabVIEW"
echo "packages, 's' to skip all, or 'q' to abort installation entirely."
echo "" ;;
*) echo "Installation aborted."
exit 1 ;;
*) echo "Skipping LabVIEW installation."
packages=
break 2 ;;
*) echo "Proceeding."
skipconfirm=y
break 2 ;;
*) break ;;
esac
done
fi
done
lvstat=0
if ; then
echo "All available LabVIEW packages have already been installed or cannot"
echo "be installed due to package conflicts."
elif ; then
echo "No LabVIEW packages were selected."
else
RTEDIR=$LIBDIR/$LVRTE
skip=
if ; then
if ; then
$RPM -q `$RPM -qp $webpipepkg` >/dev/null 2>/dev/null
if ; then
installweb=y
fi
fi
else
installweb=y
fi
if ; then
echo ""
echo "You have selected packages which depend on the LabVIEW run-time engine, but did"
echo "not select the run-time engine and it is not already installed."
echon "Do you wish to install $rtepkg as well? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) packages="$rtepkg$DPKGEXT $packages" ;;
*) echo "Aborting installation."
exit 1 ;;
*) echo "Skipping LabVIEW package installation."
skip=y ;;
esac
fi
if ; then
echo ""
if ; then
echo "Auto-selecting dependency $webpipepkg"
packages="$packages $webpipepkg"
if ; then
echo "Auto-selecting dependency $rawefpkg1"
packages="$packages $efpkg1"
fi
echo ""
fi
if ; then
confirm_install $packages
fi
if ; then
echo "Installing..."
install_pkg $packages
lvstat=$?
fi
fi
fi
LVRTLINK=$LIBDIR/lib/liblvrt.so
DARKLINK=$LIBDIR/lib/liblvrtdark.so
askresetlnk=
# If they've installed an older RTE more recently than this one, offer
# to recreate the 'current' link
echo ""
if ; then
:
elif ; then
askresetlnk=y
echo "Run-time engine link $LVRTLINK does not exist."
echon "Create it? "
elif ; then
LTARG=
TMPLVRTLINK=$LVRTLINK
while ]; do
LTARG=`ls -l $TMPLVRTLINK | sed 's,^.* -> ,,'`
TMPLVRTLINK="$LIBDIR/lib/$LTARG"
done
LTARGVERS=`echo $LTARG | sed 's,.*liblvrt\.so\.,,'`
if ; then
vercmp $VERS $LTARGVERS
cmp=$?
if ] ; then
RTELINKCURRENT=y
elif ] ; then
askresetlnk=y
echo "Run-time engine link $LVRTLINK exists but points to an older"
echo "version ($LTARGVERS). This link determines which version of the LabVIEW"
echo "run-time to use when building C/C++ applications. Do you want to recreate"
echon "the link to make $VERS the default run-time engine? "
fi
fi
fi
if ; then
read ans
test -z "$ans" && ans=y
case "$ans" in
*)
rm -f $LVRTLINK $DARKLINK
echo "Recreating link to LabVIEW $VERS run-time engine."
echo ""
ln -s liblvrt.so.$MAJVERS $LVRTLINK
test -f $LIBDIR/lib/liblvrtdark.so.$MAJVERS && ln -s liblvrtdark.so.$MAJVERS $DARKLINK
;;
esac
fi
if ; then
if ; then
efpkg="$efpkg $webpipepkg"
fi
echo ""
ans=
if ; then
if ; then
eval $RPM -q "$rawefpkg1" $errout
efstat=$?
eval $RPM -q "$rawefpkglv" $errout
if ; then
echo "Package $rawefpkg1 is already installed."
ans=n
else
echon "Would you like to install $EFPKG? "
read ans
test -z "$ans" && ans=y
fi
fi
fi
if ; then
ans=y
fi
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
echo "Installing NI Example Finder..."
install_pkg $efpkg
SHAREDIR=`cat /etc/natinst/share/share.dir 2>/dev/null`
# Make a link from old EF loc to new so LV 7.1 can find it.
if ; then
mkdir -p "/usr/local/share/natinst/example finder/1.0/bin"
ln -s -f "$SHAREDIR/example finder/1.0/bin/NIExampleFinder" "/usr/local/share/natinst/example finder/1.0/bin/NIExampleFinder" 2>/dev/null
fi
;;
esac
fi
if ; then
if ; then
echo ""
echon "Would you like to install the LabVIEW web browser plugin? "
read ans
else
ans=y
fi
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
found=no
echo ""
echo "Checking for Mozilla/Firefox/Netscape 6+ installation..."
(
MDIRS=`echo /usr/lib/firefox /usr/lib/mozilla /usr/lib/mozilla-* /usr/local/lib/firefox /usr/local/mozilla /usr/local/mozilla-* /opt/mozilla /opt/mozila-* /opt/MozillaFirefox/lib /opt/gnome/lib/mozilla /opt/gnome/lib/mozilla-* /opt/netscape /usr/lib/netscape /usr/local/netscape /usr/local/lib/netscape /opt/SUNWns`
if ; then
dirs=`locate -r '/plugins$' | egrep 'mozilla|netscape|firefox' | grep -v '/\.' | sed 's,/plugins,,'`
for d in $dirs ; do
if ; then
MDIRS="$MDIRS $d"
fi
done
fi
MDIRS=`echo "$MDIRS" | tr ' ' '\n' | sort | uniq`
for dir in $MDIRS
do
if ; then
if ; then
echo "Copying plugin to $dir/plugins"
cp -f $LIBDIR/lib/LabVIEW-$VERS/$NSPLUGIN $dir/plugins
else
echo "Cannot write to browser plugin directory $dir/plugins"
fi
found=yes
else
true
fi
done
if ; then
echo "None found. If you have Netscape 6, Mozilla, or Firefox installed in a"
echo "non-standard location, copy $LIBDIR/lib/LabVIEW-$VERS/$NSPLUGIN to its"
echo "'plugins' subfolder."
fi
) 2>/dev/null
;;
esac
fi
if ; then
if ; then
if ; then
if ; then
mv -f /usr/local/bin/labview /usr/local/bin/labview.old
else
rm -f /usr/local/bin/labview
fi
ln -s -f "$LVDIR/labview" /usr/local/bin/labview
test -f "$LVDIR/linux/LVMerge" && cp -f "$LVDIR/linux/LVMerge" /usr/local/bin/LVMerge
else
echo "No permission to create links in /usr/local/bin."
fi
fi
echo ""
echo "LabVIEW package installation complete."
else
echo ""
echo "Browser plugins not installed."
if ; then
echo "Make sure you are installing in the same base directory as $UPGRADE."
fi
fi
}
checkrtelink() {
# Installing VISA or GPIB will install the 8.0.1 RTE, which may overwrite
# the latest RTE link. If it was the current link was installed before, reset the link.
if ; then
rm -f $LVRTLINK $DARKLINK
ln -s liblvrt.so.$MAJVERS $LVRTLINK
test -f $LIBDIR/lib/liblvrtdark.so.$MAJVERS && ln -s liblvrtdark.so.$MAJVERS $DARKLINK
fi
}
checknipalproc() {
PID=`/bin/ps aux | grep 'cat /dev/nipalk' | grep -v grep | awk '{print $2;}' 2>/dev/null`
if ; then
kill $PID >/dev/null 2>&1
fi
}
parse_options() {
for arg in "$@"
do
case "$arg" in
--accept-license|-al)
ACCEPT_LICENSE=y ;;
--no-prompt|-np)
NO_PROMPT=y ;;
--no-rpm)
echo ""
echo "Installing without RPM. Files will be extracted manually."
NORPM=y ;;
*) echo "Unrecognized option $arg"
exit 1;;
esac
done
if ; then
echo ""; echo "*** ERROR ***"
echo "In order to use the --no-prompt option, you must also use the --accept-license"
echo "option to indicate you have read and accepted the terms of the "
echo "National Instruments Software License Agreement, found in LICENSE.txt."
exit 1
fi
}
#
# MAIN
#
cd "$CDPATH"
echo ""
if ; then
cat COPYRIGHT
else
echo "LabVIEW $VERS for $OSNAMEV"
fi
if ; then
echo ""
echo "*** Sorry, you must have root privileges to run this install script. ***"
echo "Please su or login as root and try again."
echo "Installation aborted."
exit 1
fi
echo ""
parse_options "$@"
if ; then
if ; then
cat <
WARNING! You do not have glibc2 (libc.so.6) installed.
Because LabVIEW is a multi-threaded application and
requires POSIX 1003.1 pthread support, this library is
a prerequisite for installation.
See the file Glibc2-HOWTO on this CD for information on installing glibc2
from source or binary distribution, or for additional mirror
sites.
EOF
if ; then
echo "Since you are using RedHat Linux, you may wish to upgrade"
echo "to RedHat 7.2 (or later), which comes with glibc2 installed"
echo "by default. RedHat may be reached at http://www.redhat.com."
fi
echo ""
echon "Try to proceed anyway? "
read ans
case "$ans" in
*) ;;
*) exit 1 ;;
esac
else
echo # "Prerequisite glibc2 (libc.so.6) libraries found."
fi
echo ""
fi # i386
instdir=$BASEDIR
LVDIR=$instdir/$DDIR
if ; then
dir="`$RPM -ql labview$TLR-app 2>/dev/null | head -1 | xargs dirname 2>/dev/null`"
if ; then
dir="`$RPM -q --queryformat '%{prefixes}\n' labview$TLR-core 2>/dev/null`"
fi
if ; then
dir="`$RPM -q --queryformat '%{defaultprefix}\n' labview$TLR-core 2>/dev/null`"
fi
case "$dir" in
/*) instdir=$dir ;;
esac
fi
cd "$CDPATH"
if ; then
ACCEPT_LICENSE=
licloop=y
while ; do
echo "By installing LabVIEW software packages, you agree to the terms of the included"
echo "NI Software License Agreement (LICENSE.txt). Type 'v' to view the agreement,"
echo "'y' to consent to the agreement, or 'n' to decline the agreement and skip"
echon "LabVIEW installation. "
if ; then
echon " "
else
echon " "
fi
read ans
case "$ans" in
*)
ACCEPT_LICENSE=y
licloop=n
;;
*)
licloop=n
;;
*)
${PAGER:-more} LICENSE.txt
licview=y
;;
*)
echo "Installation aborted."
exit 1
;;
"")
if ; then
${PAGER:-more} LICENSE.txt
licview=y
fi
;;
esac
echo ""
done
fi
if ; then
install_labview
echo ""
if ; then
echo "LabVIEW installation complete."
else
if ; then
case "$packages" in
*update*)
echo "Launching LabVIEW Mass Compile utility."
$LVDIR/labview masscomp.vi 2>/dev/null ||
(echo "Please run 'masscomp.vi' to update the VIs in your $UPGRADE installation";
echo "to LabVIEW $VERS.")
;;
esac
fi
fi
fi
if ; then
# Don't install drivers or other non-LV packages in non-interactive mode
exit 0
fi
cd "$CDPATH"
if ; then
ACROREAD=/usr/bin/xpdf
elif ; then
ACROREAD=/usr/bin/ggv
elif ; then
ACROREAD=/usr/bin/kpf
elif ; then
ACROREAD=/usr/bin/gv
elif ; then
ACROREAD=/usr/bin/acroread
elif ; then
ACROREAD=/usr/local/bin/acroread
elif ; then
ACROREAD=/usr/local/Acrobat5/bin/acroread
fi
if ; then
echo "Note: This product contains online reference manuals in Adobe PDF format."
echo "The installer was not able to locate a PDF viewer on your system. To view these"
echo "documents, either install a viewer such as ggv, kpdf, or xpdf,"
echo "or visit http://www.adobe.com to download Adobe Acrobat Reader."
echo "(Adobe and Reader are registered trademarks of Adobe Systems Inc.)"
fi
cd "$CDPATH"
if ; then
echo ""
echon "Would you like to install the CVI Run-Time Engine ($CVIRTVERS)? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
if ; then
rpm -Uvh "$cvirtpkg"
else
/bin/sh "$CDPATH/bin/INSTALL.norpm" "$cvirtpkg" "$instdir"
fi
;;
esac
fi
echo ""
echo "================================================================================"
echo ""
echo "Beginning hardware driver installation."
echo ""
echo "Depending on your system configuration, some drivers may require you to reboot"
echo "after installation before you can access the driver."
kernwarn=
if ; then
$RPM -q kernel-source >/dev/null 2>&1
if ; then
kernwarn=y
fi
fi
if ; then
echo ""
echo "Note that some drivers may require the Linux kernel source to be installed."
echo "This can be found on your Linux distribution install CD as a package called"
echo "'kernel-source'. Make sure to install the version matching the kernel you are"
echo "running. If you need to install kernel source, press 'q' to abort installation,"
echo "and re-run this install script after you have installed the kernel source."
fi
echo ""
cd "$CDPATH"
if ; then
if ; then
echo "NOTE: NI-VISA is not supported on this distribution and may not work as"; echo " expected."
fi
echo ""
echon "Would you like to install NI-VISA ($VISAVERS) for $OSNAMEV? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
cd "$CDPATH/$VISADIR"
/bin/sh ./INSTALL
checkrtelink
checknipalproc
echo ""
;;
esac
fi
cd "$CDPATH"
if ; then
echo ""
echon "Would you like to install NI-GPIB ($GPIBVERS) for $OSNAMEV? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
cd "$CDPATH/$GPIBDIR"
/bin/sh ./INSTALL
checkrtelink
checknipalproc
echo ""
;;
esac
fi
cd "$CDPATH"
if ; then
echo ""
echon "Would you like to install NI-GPIB ENET/100 $ENETVERS for $OSNAMEV? "
read ans
test -z "$ans" && ans=y
case "$ans" in
*) echo "Installation aborted."
exit 1 ;;
*)
cd "$CDPATH/$ENETDIR"
PATH=$ORIGPATH /bin/sh ./INSTALL
echo ""
;;
esac
fi
if ; then
UPNOTES="$LVDIR/manuals/LV_Upgrade_Notes.pdf"
if ; then
echo ""
echo "Please see the LabVIEW Beta Documentation in $LVDIR/help/betadoc.html."
elif ; then
if ; then
echo ""
echon "View the LabVIEW $VERS Upgrade Notes now? "
read ans
case "$ans" in
""|y|Y)
if ; then
echo "Launching $ACROREAD..."
$ACROREAD "$UPNOTES" 2>/dev/null &
else
echo "Sorry, xpdf, ggv, kpdf or Adobe Acrobat Reader must be installed to view PDF files."
fi
;;
esac
else
echo ""
echo "Please see the LabVIEW $VERS Upgrade Notes in $UPNOTES"
echo "for information about new features in LabVIEW $VERS."
fi
else
echo ""
echo "Please see the LabVIEW Upgrade Notes (in the labview$TLR-ref package) for"
echo "information about new features in LabVIEW $VERS."
fi
fi
echo ""
echo "Installation complete."
exit 0 -
09-11-09, 15:04
- Μηνύματα
- 322
- Εμφανίσεις
- 21.290
Απάντηση: Μετάφραση του Arch Linux Wiki στα Ελληνικά
I rest my case ! (:lock: for me...) :cool:
Αν και οπως ειπα και παραπανω το "παρελθουσα εκδοση" δεν ειναι το ιδιο με το "παρωχημενο". και εσυ το χρησιμοποιησες ως επεξηγηση του "παρωχημενο" ειναι σαφες οτι και με το "ανενημερωτο" και με το "παρελθουσα εκδοση" και με το "εχει βγει νεα εκδοση" ολοι καταλαβαν αυτο που ΚΑΝΕΝΑΣ δεν καταλαβε οταν του ειπες οτι το ktorrent στο pc του ειναι παρωχημενο.
και εισαι και τυχερος που δεν σου απαντησαν
-παρωχημενος ειναι εσυ και ολο σου το σοι.... :lol: :lol: :lol: :lol: -
09-11-09, 13:44
- Μηνύματα
- 322
- Εμφανίσεις
- 21.290
Απάντηση: Μετάφραση του Arch Linux Wiki στα Ελληνικά
Βλεπω οτι "διυλιζουμε τον κωνωπα" και χανουμε την ουσια αφου αναλωνομαστε σε βερμπαλισμους που δεν εξυπηρετουν καθολου το σκοπο μας.
Μα ο λογος να ανοιξει δημοσια συζητηση για οποιοδηποτε θεμα ειναι να υπαρξει ανταλλαγη αποψεων. Η ουσια παραμενει στη σωστη αποδοση.
Ο Wan εχει δικιο.
Ο φιλολογος πρεπει να γνωριζει και τις δυο γλωσσες πολυ καλα για να αποδωσει τον ορο στα ελληνικα,
Παραπεμπω ξανα στο προηγουμενο ποστ μου. Νομιζω απαντησα.
Δεν εχει νοημα αυτο που λες. Δεν ενδιαφερει εδω τον χρηστη να μαθει ελληνικα. Αυτος ο "δασκαλιστικος" κειμενοκεντρισμος δε μου αρεσει καθολου.
Μακραν εμου καθε "δασκαλιστικος" κειμενοκεντρισμος. Δεν ηταν και δεν ειναι καθολου αυτη η προθεση μου. Αν επετρεψα να εννοηθει κατι τετοιο το σφαλμα ειναι δικο μου και ζητω συγνωμη!
Ο λογος που επεμεινα και επιμενω στο "παρελθουσα εκδοση" ειναι γιατι πιστευω οτι αποδιδει καλυτερα αυτο που θελουμε να πουμε.
Προσωπικα το "παρελθουσα εκδοση" ακουγεται "ξυλινο". Δεν κανει.
Διαφωνω! Αλλα ειναι αποψη σου (και ισως και αλλων εδω μεσα). Δεν θεωρω οτι κραταω κανενα "σκηπτρο της αληθειας". Εγω απλα προτεινα αυτο που ειναι σωστοτερο κατα τη γνωμη μου. Δεν πιστευω επισης οτι η βαρυτητα της αποψης μου ειναι συναρτηση του αριθμου των ποστ, και γι'αυτο χρησιμοποιω φρασεις οπως "η αποψη μου" "Νομιζω" "ισως" "κτλ" . . .
demode
Απο λεξικο Μπαμπινιωτη.
Λεει οτι ειναι συνωνυμο της ΕΛΛΗΝΙΚΗΣ? Τη θεωρει δανειο δλδ? Αυτο 1η φορα το ακουω!
Εμφάνιση 1-50 από 165