[Hampshire] Compiling Fortran code in 32-bit and 64-bit on the same machine
Hi, I seem to have run into an issue with some Fortran code that I'm compiling where the results are different (quite significantly so) on different computers. I'm trying to narrow down why the results are different, and one difference between the executables that I'm running on these different machines are that one is 32-bit and one is 64-bit. I suspect this might be the problem (floating-point precision and so on), but I'd like to test 32-bit and 64-bit executables on the same machine to ensure that it isn't some other difference between the machines. How should I go about doing this? I've tried simply adding a -m32 parameter to my gfotran call, but at linking stage that gives me all sorts of errors like: /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgfortran.so when searching for -lgfortran /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgfortran.a when searching for -lgfortran /usr/bin/ld: cannot find -lgfortran /usr/bin/ld: cannot find -lm /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgfortran.so when searching for -lgfortran (and lots more of the same) I really don't want to screw up my GCC install, but is there a way to get the 32-bit libraries in such a manner that I can compile for both 32-bit and 64-bit on the same machine? Any help would be much appreciated, Cheers, Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Compiling Fortran code in 32-bit and 64-bit on the same machine
Hi Alex, Thanks - that plus installing gcc-multilib (apt-get install gcc-multilib) made it all work for me. Cheers, Robin On 21 Jan 2014, at 13:23, Alex Dicks a...@dixie.me.uk wrote: On 21/01/14 12:59, Robin Wilson wrote: I really don't want to screw up my GCC install, but is there a way to get the 32-bit libraries in such a manner that I can compile for both 32-bit and 64-bit on the same machine? Perhaps apt-get install lib32gfortran-4.8-dev (or your distribution's equivalent) will install the runtime libraries you need. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] 'Killed' response when running program from command-line
On 17 Jan 2014, at 08:56, Bob Dunlop bob.dun...@xyzzy.org.uk wrote: I wonder what valgrind tells you. valgrind command will run the command and give you a summary of dynamic memory allocated and freed. Also worth running size command as I've seen Fortan programs with huge static memory allocations, add up the bss and data values. Wow - I get the following result from size: textdata bss dec hex filename 1733582 21888 1123936088 1125691558 4318b0a6./sixsV1.1 Which seems to suggest that the bss segment (apparently the size of variable storage) is over 1Gb in size…that might explain my problems! Thanks for all your help, Cheers, Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
[Hampshire] 'Killed' response when running program from command-line
Hi, I've just got access to a new cloud server, and am trying to setup various things on it for my work. One of these is a legacy Fortran program that I have compiled, and am trying to run. However, whenever I run it I get the output: robintw@test:~/Py6S/6S/6SV1.1$ ./sixsV1.1 Killed Everything I've seen online suggests that this is due to running out of memory, but the program uses very little memory, and I've got around 0.5Gb free. I can't find any reference to this program being killed in dmesg or in any of the log files that I've looked at (kern.log, anything under syslog etc). Does anyone have any idea what I can do to try and work out what's happening? Cheers, Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] 'Killed' response when running program from command-line
Thanks Al. That gives: execve(./sixsV1.1, [./sixsV1.1], [/* 21 vars */] unfinished ... +++ killed by SIGKILL +++ Killed So it is obviously being SIGKILLed by someone/something. I don't understand the first line of output - does that tell us anything interesting? It's really strange - I've never had this problem before with this program, and I've run it on many machines. I've checked it isn't the Fortran compiler producing executables that always die: a Hello World program compiled with the same compiler runs fine. Is it always the case the the Out of Memory Killer will log that it has killed something? I find the fact that I can't find anything in the logs anywhere very suspicious. Cheers, Robin On 16 Jan 2014, at 20:15, Alan Pope a...@popey.com wrote: On 16 January 2014 19:30, Robin Wilson ro...@rtwilson.com wrote: robintw@test:~/Py6S/6S/6SV1.1$ ./sixsV1.1 Killed Does anyone have any idea what I can do to try and work out what's happening? strace it? strace ./sixsV1.1 Cheers, Al. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] 'Killed' response when running program from command-line
All, I've managed to solve this now. Setting it up on a server instance with more RAM (8Gb compared to 2Gb) worked fine, so I assume it was an out of memory error. However, I have a couple of questions: 1. Does anyone have any idea why the fact that the process was killed due to low memory wasn't logged? Or was it logged, but I just couldn't find it (I recursively searched in /var/log though…) 2. I'm intrigued as to how much memory this program uses - I thought it wouldn't be much but obviously I was wrong. I would normally just use top, but the program executes very quickly and so I don't have chance to do anything like that - is there something I can run the program with that will tell me the total memory usage once the program has exited? Cheers, Robin On 16 Jan 2014, at 20:19, Robin Wilson ro...@rtwilson.com wrote: Thanks Al. That gives: execve(./sixsV1.1, [./sixsV1.1], [/* 21 vars */] unfinished ... +++ killed by SIGKILL +++ Killed So it is obviously being SIGKILLed by someone/something. I don't understand the first line of output - does that tell us anything interesting? It's really strange - I've never had this problem before with this program, and I've run it on many machines. I've checked it isn't the Fortran compiler producing executables that always die: a Hello World program compiled with the same compiler runs fine. Is it always the case the the Out of Memory Killer will log that it has killed something? I find the fact that I can't find anything in the logs anywhere very suspicious. Cheers, Robin On 16 Jan 2014, at 20:15, Alan Pope a...@popey.com wrote: On 16 January 2014 19:30, Robin Wilson ro...@rtwilson.com wrote: robintw@test:~/Py6S/6S/6SV1.1$ ./sixsV1.1 Killed Does anyone have any idea what I can do to try and work out what's happening? strace it? strace ./sixsV1.1 Cheers, Al. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Python sorting
Hi Leo, You can do this fairly easily using the 'key' keyword argument for the 'sorted' function. Sorting a normal list can be done easily as: s = sorted(test) But if you want to tell it how to generate the value to sort on, you can use the key keyword, for example: s = sorted(test, key=str.lower) As you can see, the key parameter gives a function to be called on each of the elements before comparing them. In that case it uses a built-in Python function to convert each element to lowercase, but you can write your own function very easily to do what you want. You can do this by writing a normal function, like: def f(value): return value.prop and then calling it as follows: s = sorted(test.itervalues(), key=f) or by writing a lambda function, which is basically the same, but inline and without a name: s = sorted(test.itervalues(), key=lambda x: x.prop) I'm using test.itervalues() as the list to use here as that will just provide a list of the values in the dictionary, not the keys. Hope that helps, Cheers, Robin On 1 Sep 2012, at 15:53, Leo li...@fractal.me.uk wrote: If I have a dictionary in Python, where the keys are strings, and the values are instances of a class of mine, how can I get the list of keys sorted based on a property on my class? I can obviously do this manually, but was wondering if there was an inbuilt Python way of doing it more easily. As an example: Class MyClass: def __init__(self, prop) self.prop = prop def main(): test=dict() test[a] = MyClass(46) test[b] = MyClass(3) test[c] = MyClass(15) # I would like to generate sortedTest=list() #containing b, c, a in that order. Thanks, Leo -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] [OT] Old HP Printers offered
Hi Peter, I would be very interested in either of these - though particularly the colour laser jet. Are they still available? I am a student at the university and find I need to do a lot of printing at home! Where are you located? I could pick up this afternoon if you wanted to get rid of them quickly! Best regards, Robin On 11 Mar 2012, at 10:13, Peter Collins wrote: Hi All, I'm just going through my garage and I have a old HP 4500N Colour Laserjet and a HP 2100 Mono Laserjet which are taking up needed space. Both were working fine last time I tried them, however they have been sat in the garage for a while. Is anybody interested in either please let me know. Rgds Peter. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
[Hampshire] Error with apt-get upgrade on Debian
Hi, I have been trying to upgrade packages on my Debian installation using apt-get upgrade. When I ran that the first time it downloaded all of the packages and installed a number of them, before crashing saying that dpkg returned an error code (1). Whenever I try and run apt-get upgrade again I get the following message: Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: mplayer 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 231 not fully installed or removed. Need to get 0 B/6,280 kB of archives. After this operation, 8,012 kB of additional disk space will be used. Do you want to continue [Y/n]? It says that 231 packages are not fully installed or removed, which suggests to me that the upgrade process failed half way through. The thing is - I can't find out how to get it to restart again, and how to install/remove the 231 packages that need dealing with? All of my google searches are turning up forum posts that are either very old, or don't help at all. Any ideas how I can get this upgrade properly done? Cheers, Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Error with apt-get upgrade on Debian
Hi everyone, Thanks for all the prompt help. I followed one of the previous bits of advice by running apt-get remove mplayer I can only assume that mplayer was causing the problem, as once this was removed the rest of the packages were processed properly. I have now reinstalled mplayer and it seems to be fine. Not sure why it happened - but thanks for the help, Robin On 6 Nov 2011, at 14:36, Simon Huggins wrote: On Sun, Nov 06, 2011 at 02:14:43PM +, Robin Wilson wrote: I have been trying to upgrade packages on my Debian installation using apt-get upgrade. When I ran that the first time it downloaded all of the packages and installed a number of them, before crashing saying that dpkg returned an error code (1). Don't suppose you remember anything else after this? Whenever I try and run apt-get upgrade again I get the following message: Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: mplayer 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 231 not fully installed or removed. Need to get 0 B/6,280 kB of archives. After this operation, 8,012 kB of additional disk space will be used. Do you want to continue [Y/n]? What happens when you hit enter? I'd try: apt-get -f install first of all. -f is for --fix-broken which can help in some circumstances. Other things you could try: apt-get dist-upgrade (rather than just plain upgrade) aptitude dist-upgrade (since aptitude uses a slightly different algorithm) But I suspect apt-get -f install will get you further down the path. There's probably something dodgy somewhere which caused the original upgrade to bomb out so it'll be interesting to see what error you do end up with. Let us know how you get on. Simon -- ... Mithrandir An acronym that sticks to your brain like butter to teflon -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
[Hampshire] Ctrl-Alt-F* doesn't work - what to check?
Hi all, Sorry for the number of messages today - I'm finally trying to get round to sorting out my server. I'm sure last time I used the server I could get to a text-console by pressing Ctrl-Alt-F* - F1, F2 etc, and then back to the GUI by using Ctrl-Alt-F7. However, I can't seem to do that anymore. My system runs gdm3 on boot, which then does an autologin as a certain user. Is this likely to stop Ctrl-Alt-F1 etc working? According to a post on the internet, the command chvt should allow me to switch to a terminal. However, running that just gives me a blank black screen with a flashing cursor - with no way out (I had to restart). Any ideas what I could do to get this working again? Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Ctrl-Alt-F* doesn't work - what to check?
On 6 Nov 2011, at 15:39, Keith Edmunds wrote: On Sun, 6 Nov 2011 15:22:48 +, ro...@rtwilson.com said: I'm finally trying to get round to sorting out my server. What's it running? Debian 6.0.3 I'm sure last time I used the server I could get to a text-console by pressing Ctrl-Alt-F* - F1, F2 etc, and then back to the GUI by using Ctrl-Alt-F7. However, I can't seem to do that anymore. What happens when you try? Absolutely nothing. -- You can have everything in life you want if you help enough other people get what they want - Zig Ziglar. Who did you help today? -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Analytics packages
Hi Rob, I'd recommend going for R. Yes, it's fairly complicated, but it is incredibly powerful and very good at dealing with large datasets. Depending on your needs, RStudio (http://rstudio.org/) may be useful as an Integrated Development Environment for R - very lightweight, but helps a lot. There are also more fully-featured GUIs available like R Commander (http://socserv.mcmaster.ca/jfox/Misc/Rcmdr/). Hope that might help, Robin On 30 Oct 2011, at 12:29, Rob Malpass wrote: Hi all Does anyone know a good, user friendly statistics / analytics package for Linux? The trick is - it needs to be able to handle an absolutely massive dataset - 13m rows. For Uni, I have a dataset with no fewer than 13m records and I need to run a regression on it. In fact I probably need to run about a thousand regressions comparing results later. In theory, something like Libre could handle the individual regressions once I've split the txt file up but I don't want to get into faffing around with awk, sed, cat, head etc etc (takes ages, creates massive files and besides which the file needs splitting according to a rule which uses a field within it that at present I can't guarantee it's sorted on). I can't afford the frankly ludicrous prices charged for SAS and SPSS. I just wondered if any of you knew if there was something really good that people are using and I've missed. I've tried: R [1] - powerful but very clunky and a dreadful GUI PSPP [2] - still a work in progress and truly awfully formatted output. It'll get there one day but it's a mile off at the moment. DAP - won't compile for me and I don't have time to investigate. gretl [3] - seemingly for economists who seldom have to handle such big datasets. Various database packages which are fine for handling the data - but don't run to linear regression. Cheers Rob [1] www.r-project.org [2] http://www.gnu.org/software/pspp/ [3] http://gretl.sourceforge.net/ -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
[Hampshire] Sharing printers with OS X from CUPS
Hi all, Is there anyone on this list with particular experience in sharing printers from CUPS, particularly with OS X machines but also to Windows clients? I'm trying to set up printer sharing on my home server, and it isn't going very well. I've got printing working fine on the server itself, but I can't seem to access the printer from anywhere else. I'm not entirely sure what to check, and the various guides on the internet all seem to say different things - and the things they do say don't seem to help hugely. I've pasted the relevant sections of various config files below: /etc/samba/smb.conf: ## Printing ## # If you want to automatically load your printer list rather # than setting them up individually then you'll need this load printers = yes # lpr(ng) printing. You may wish to override the location of the # printcap file ; printing = bsd ; printcap name = /etc/printcap # CUPS printing. See also the cupsaddsmb(8) manpage in the # cupsys-client package. printing = cups printcap name = cups and [printers] comment = All Printers browseable = yes path = /var/spool/samba use client driver = yes printable = yes guest ok = no read only = yes create mask = 0700 [ColourLaser] comment = ColourLaser browseable = yes printable = yes path = /var/spool/samba public = yes guest ok = yes printer admin = printer_username,root # Windows clients look for this share name as a source of downloadable # printer drivers [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes read only = yes guest ok = no /etc/cups/cupsd.conf: # Log general information in error_log - change warn to debug # for troubleshooting... LogLevel warn # Deactivate CUPS' internal logrotating, as we provide a better one, especially # LogLevel debug2 gets usable now MaxLogSize 0 # Administrator user group... SystemGroup lpadmin # Only listen for connections from the local machine. Listen localhost:631 Listen /var/run/cups/cups.sock # Show shared printers on the local network. Browsing On BrowseOrder allow,deny BrowseAllow all BrowseLocalProtocols CUPS dnssd # Default authentication type, when authentication is required... DefaultAuthType Basic # Restrict access to the server... Location / Order deny,allow Deny from all Allow From 192.168.0.* /Location # Restrict access to the admin pages... Location /admin Order deny,allow AuthType Basic AuthClass System Allow From 192.168.0.* /Location # Restrict access to configuration files... Location /admin/conf AuthType Default Require user @SYSTEM Order allow,deny /Location # Set the default printer/job policies... Policy default # Job-related operations must be done by the owner or an administrator... Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document Require user @OWNER @SYSTEM Order deny,allow /Limit # All administration operations require an administrator to authenticate... Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices AuthType Default Require user @SYSTEM Order deny,allow /Limit # All printer operations require a printer operator to authenticate... Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs AuthType Default Require user @SYSTEM Order deny,allow /Limit # Only the owner or an administrator can cancel or authenticate a job... Limit Cancel-Job CUPS-Authenticate-Job Require user @OWNER @SYSTEM Order deny,allow /Limit Limit All Order deny,allow /Limit /Policy # Set the authenticated printer/job policies... Policy authenticated # Job-related operations must be done by the owner or an administrator... Limit Create-Job Print-Job Print-URI AuthType Default Order deny,allow /Limit Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document AuthType Default Require user @OWNER @SYSTEM Order deny,allow /Limit # All administration operations require an administrator to authenticate... Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default AuthType Default Require user @SYSTEM Order deny,allow /Limit # All printer operations require a
[Hampshire] HERE files and output redirection
Hi all, I have the following code in a batch script: mpirun -np 6 ./laplace END 100 100 100 0.01 100 3 2 1 END | tail -n 1 output What I want it to do is to use the HERE file as input to the mpirun command, and then pipe the output of the mpirun command to the tail command. However, I think the HERE file and tail output things are getting confused. Any ideas on how should I write this so that it does what I want? Cheers, Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Setting up ATI Mobility Radeon HD 4200 in Debian
Hiya, Thanks for the ideas you sent. I tried running modprobe fglrx and got an error saying that module couldn't be found. I googled this error and found this site: http://www.debianadmin.com/how-to-install-ati-fglrx-driver-in-debian.html I've tried following the instructions there to take the ATI download and turn it into a debian package that can be installed, but I get the following error: root@server:~/Downloads# sh ati-driver-installer-11-4-x86.x86_64.run --buildpkg Debian/experimental Created directory fglrx-install.5Cujo2 Verifying archive integrity... All good. Uncompressing ATI Catalyst(TM) Proprietary Driver-8.841 = ATI Technologies Catalyst(TM) Proprietary Driver Installer/Packager = Generating package: Debian/experimental cp: cannot stat `/root/Downloads/fglrx-install.5Cujo2/x710_64a/*': No such file or directory Package build failed! Package build utility output: dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: source package fglrx-installer dpkg-buildpackage: source version 8.841-1 dpkg-buildpackage: source changed by ATI Technologies Inc. http://ati.amd.com/support/driver.html dpkg-source --before-build fglrx.4rcUKk dpkg-buildpackage: host architecture amd64 debian/rules build dh_testdir make: dh_testdir: Command not found make: *** [build] Error 127 dpkg-buildpackage: error: debian/rules build gave error exit status 2 Removing temporary directory: fglrx-install.5Cujo2 My xorg.conf file is: Section ServerLayout Identifier aticonfig Layout Screen 0 aticonfig-Screen[0]-0 0 0 EndSection Section Module EndSection Section Monitor Identifier aticonfig-Monitor[0]-0 Option VendorName ATI Proprietary Driver Option ModelName Generic Autodetecting Monitor Option DPMS true EndSection Section Device Identifier aticonfig-Device[0]-0 Driver fglrx BusID PCI:1:5:0 EndSection Section Screen Identifier aticonfig-Screen[0]-0 Device aticonfig-Device[0]-0 Monitoraticonfig-Monitor[0]-0 DefaultDepth 24 SubSection Display Viewport 0 0 Depth 24 EndSubSection EndSection The important part of my Xorg log file is below (II) fglrx(0): Output CRT1 connected (II) fglrx(0): Using exact sizes for initial modes (II) fglrx(0): Output CRT1 using initial mode 1600x1200 (II) fglrx(0): DPI set to (96, 96) (II) fglrx(0): Adapter ATI Mobility Radeon HD 4200 Series has 2 configurable heads and 1 displays connected. (==) fglrx(0): PseudoColor visuals disabled (II) Loading sub module ramdac (II) LoadModule: ramdac (II) Module ramdac already built-in (==) fglrx(0): NoDRI = NO (==) fglrx(0): Capabilities: 0x (==) fglrx(0): CapabilitiesEx: 0x (==) fglrx(0): OpenGL ClientDriverName: fglrx_dri.so (==) fglrx(0): UseFastTLS=0 (==) fglrx(0): BlockSignalsOnLock=1 (--) Depth 24 pixmap format is 32 bpp (EE) fglrx(0): atiddxDriScreenInit failed, GPS not been initialized. (WW) fglrx(0): *** (WW) fglrx(0): * DRI initialization failed * (WW) fglrx(0): * kernel module (fglrx.ko) may be missing or incompatible * (WW) fglrx(0): * 2D and 3D acceleration disabled * (WW) fglrx(0): *** It looks like the kernel module isn't installed properly - any ideas how I should go about setting it up? Robin On 6 May 2011, at 16:10, Benjie Gillam wrote: You probably want to fully uninstall
Re: [Hampshire] Setting up ATI Mobility Radeon HD 4200 in Debian
Hi all, It turns out that build-essentials doesn't bring in debhelper, but installing it by itself fixed that error. The only problem is that now I have another error: Generating package: Debian/unstable cp: cannot stat `/root/Downloads/fglrx-install.r1t4YG/x710_64a/*': No such file or directory Package build failed! Package build utility output: dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: source package fglrx-installer dpkg-buildpackage: source version 8.841-1 dpkg-buildpackage: source changed by ATI Technologies Inc. http://ati.amd.com/support/driver.html dpkg-source --before-build fglrx.LBvpNl dpkg-buildpackage: host architecture amd64 debian/rules build dh_testdir # move licenses away from binary dir if [ ! -d usr/share/doc/fglrx ]; then \ mkdir -p usr/share/doc/fglrx; \ mv usr/X11R6/bin/LICENSE.* usr/share/doc/fglrx; \ fi # set executable on user apps find usr/X11R6/bin -type f | xargs chmod a+x # remove exec bit from files that don't deserve it find usr/X11R6/include \ usr/X11R6/lib \ usr/X11R6/lib64 \ usr/share usr/src -type f | xargs chmod -x find: `usr/X11R6/include': No such file or directory find lib -not -name *.sh -type f | xargs chmod -x find lib -name *.sh -type f | xargs chmod +x # set proper permissions on /etc files if [ -d etc/ati ]; then \ chmod 755 etc/ati ; \ chmod 644 etc/ati/* ; \ chmod a+x etc/ati/*.sh ;\ fi if [ -f debian/fglrx.default ]; then \ mv -v debian/fglrx.default debian/fglrx; \ fi `debian/fglrx.default' - `debian/fglrx' # remove exec bit from 64-bit libs too find usr/X11R6/lib64 -type f | xargs chmod -x debian/rules binary dh_testdir # move licenses away from binary dir if [ ! -d usr/share/doc/fglrx ]; then \ mkdir -p usr/share/doc/fglrx; \ mv usr/X11R6/bin/LICENSE.* usr/share/doc/fglrx; \ fi # set executable on user apps find usr/X11R6/bin -type f | xargs chmod a+x # remove exec bit from files that don't deserve it find usr/X11R6/include \ usr/X11R6/lib \ usr/X11R6/lib64 \ usr/share usr/src -type f | xargs chmod -x find: `usr/X11R6/include': No such file or directory find lib -not -name *.sh -type f | xargs chmod -x find lib -name *.sh -type f | xargs chmod +x # set proper permissions on /etc files if [ -d etc/ati ]; then \ chmod 755 etc/ati ; \ chmod 644 etc/ati/* ; \ chmod a+x etc/ati/*.sh ;\ fi if [ -f debian/fglrx.default ]; then \ mv -v debian/fglrx.default debian/fglrx; \ fi # remove exec bit from 64-bit libs too find usr/X11R6/lib64 -type f | xargs chmod -x dh_testdir dh_testroot dh_clean -k dh_clean: dh_clean -k is deprecated; use dh_prep instead dh_clean: Compatibility levels before 5 are deprecated. dh_installdirs dh_installdirs: Compatibility levels before 5 are deprecated. # Create the directories to install into dh_installdirs -pfglrx-driver \ usr \ usr/lib/xorg \ usr/lib/xorg/modules \ usr/lib/dri \ usr/bin \ usr/sbin \ etc/acpi \ etc/acpi/events \ etc/default \ etc/X11/Xsession.d dh_installdirs: Compatibility levels before 5 are deprecated. # the amd64 package includes 32bit compatibility libraries dh_installdirs -pfglrx-driver \ emul/ia32-linux/usr/lib \ emul/ia32-linux/usr/lib/xorg \ emul/ia32-linux/usr/lib/xorg/modules \ emul/ia32-linux/usr/lib/dri dh_installdirs: Compatibility levels before 5 are deprecated. dh_installdirs -pfglrx-driver-dev \ usr \ usr/include \ usr/lib dh_installdirs: Compatibility levels before 5 are deprecated. dh_installdirs -pfglrx-kernel-src \ usr/src/modules/fglrx \ usr/src/modules/fglrx/debian dh_installdirs: Compatibility levels before 5 are deprecated. dh_installdirs -A -pfglrx-amdcccle \ usr \ usr/bin \ usr/share \ usr/share/applnk \ usr/share/applications \ usr/share/icons \ usr/share/pixmaps dh_installdirs: Compatibility levels before 5 are deprecated. dh_installdirs -p \ usr/src dh_installdirs: Compatibility levels
Re: [Hampshire] Setting up ATI Mobility Radeon HD 4200 in Debian
Hi all, Actually - I've managed to sort this now. I don't know why I was getting the errors below, but I've found that I can install it directly using apt-get install fglrx-driver, if I enable the non-free Debian repositories. I'm still interested as to why the command below wasn't working, but I've got things working now - so I'm pleased. Cheers, Robin On 6 May 2011, at 22:54, Robin Wilson wrote: Hi all, It turns out that build-essentials doesn't bring in debhelper, but installing it by itself fixed that error. The only problem is that now I have another error: Generating package: Debian/unstable cp: cannot stat `/root/Downloads/fglrx-install.r1t4YG/x710_64a/*': No such file or directory Package build failed! Package build utility output: dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: source package fglrx-installer dpkg-buildpackage: source version 8.841-1 dpkg-buildpackage: source changed by ATI Technologies Inc. http://ati.amd.com/support/driver.html dpkg-source --before-build fglrx.LBvpNl dpkg-buildpackage: host architecture amd64 debian/rules build dh_testdir # move licenses away from binary dir if [ ! -d usr/share/doc/fglrx ]; then \ mkdir -p usr/share/doc/fglrx; \ mv usr/X11R6/bin/LICENSE.* usr/share/doc/fglrx; \ fi # set executable on user apps find usr/X11R6/bin -type f | xargs chmod a+x # remove exec bit from files that don't deserve it find usr/X11R6/include \ usr/X11R6/lib \ usr/X11R6/lib64 \ usr/share usr/src -type f | xargs chmod -x find: `usr/X11R6/include': No such file or directory find lib -not -name *.sh -type f | xargs chmod -x find lib -name *.sh -type f | xargs chmod +x # set proper permissions on /etc files if [ -d etc/ati ]; then \ chmod 755 etc/ati ; \ chmod 644 etc/ati/* ; \ chmod a+x etc/ati/*.sh ;\ fi if [ -f debian/fglrx.default ]; then \ mv -v debian/fglrx.default debian/fglrx; \ fi `debian/fglrx.default' - `debian/fglrx' # remove exec bit from 64-bit libs too find usr/X11R6/lib64 -type f | xargs chmod -x debian/rules binary dh_testdir # move licenses away from binary dir if [ ! -d usr/share/doc/fglrx ]; then \ mkdir -p usr/share/doc/fglrx; \ mv usr/X11R6/bin/LICENSE.* usr/share/doc/fglrx; \ fi # set executable on user apps find usr/X11R6/bin -type f | xargs chmod a+x # remove exec bit from files that don't deserve it find usr/X11R6/include \ usr/X11R6/lib \ usr/X11R6/lib64 \ usr/share usr/src -type f | xargs chmod -x find: `usr/X11R6/include': No such file or directory find lib -not -name *.sh -type f | xargs chmod -x find lib -name *.sh -type f | xargs chmod +x # set proper permissions on /etc files if [ -d etc/ati ]; then \ chmod 755 etc/ati ; \ chmod 644 etc/ati/* ; \ chmod a+x etc/ati/*.sh ;\ fi if [ -f debian/fglrx.default ]; then \ mv -v debian/fglrx.default debian/fglrx; \ fi # remove exec bit from 64-bit libs too find usr/X11R6/lib64 -type f | xargs chmod -x dh_testdir dh_testroot dh_clean -k dh_clean: dh_clean -k is deprecated; use dh_prep instead dh_clean: Compatibility levels before 5 are deprecated. dh_installdirs dh_installdirs: Compatibility levels before 5 are deprecated. # Create the directories to install into dh_installdirs -pfglrx-driver \ usr \ usr/lib/xorg \ usr/lib/xorg/modules \ usr/lib/dri \ usr/bin \ usr/sbin \ etc/acpi \ etc/acpi/events \ etc/default \ etc/X11/Xsession.d dh_installdirs: Compatibility levels before 5 are deprecated. # the amd64 package includes 32bit compatibility libraries dh_installdirs -pfglrx-driver \ emul/ia32-linux/usr/lib \ emul/ia32-linux/usr/lib/xorg \ emul/ia32-linux/usr/lib/xorg/modules \ emul/ia32-linux/usr/lib/dri dh_installdirs: Compatibility levels before 5 are deprecated. dh_installdirs -pfglrx-driver-dev \ usr \ usr/include \ usr/lib dh_installdirs: Compatibility levels before 5 are deprecated. dh_installdirs -pfglrx-kernel-src \ usr/src/modules/fglrx \ usr/src/modules/fglrx/debian dh_installdirs
[Hampshire] Setting up ATI Mobility Radeon HD 4200 in Debian
Hi all, It's a long time since I've done significant hardware setting up in Linux, and I'm a bit stuck with dealing with this problem. I've got a computer which I've installed the latest version of Debian on. It didn't automatically configure proper video drivers for me - video playback was horribly jerky etc - so I've tried to do it myself. lspci tells me the details below: 01:05.0 VGA compatible controller: ATI Technologies Inc M880G [Mobility Radeon HD 4200] I've tried installing the ATI proprietary driver, but that doesn't seem to have fixed things. Running glxgears gives me an error as does fglrxinfo. I have a feeling I might have completely mucked things up in my attempt to get things working. Any suggestions for where I go from here? Is there a nice automatic way to set this up (through apt-get and some configure scripts?). Cheers, Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
[Hampshire] How to make linux server accessible via hostname on home LAN
Hi everyone, Thanks to the useful replies I got from this mailing list about setting up a home server, I now have a nice new server that I've been configuring today :-) Everything is going really well, I just have one question. I have a home network running from an off-the-shelf broadband router which has a couple of wired clients on it, and a number of wireless clients. At the moment I am accessing my server via ssh using the IP address (192.168.2.3), but I'd like to be able to access it via its hostname (which is, appropriately, SERVER). I'd also like to be able to do this for Samba connections (that is, connect with \\SERVER\sharename rather than \\192.168.2.3\\sharename). How should I go about doing this? I know that I need to have some sort of Domain Name Resolution going on to convert SERVER to the right IP. The problem is that I'm using DHCP, and my router (silly rubbishy router that it is) doesn't allow me to fix certain devices to certain DHCP allocated addresses. I assume this means I can't just add entries to the /etc/hosts file, as the IP addresses may well change. Also, my network is running a mix of linux, OS X and Windows clients, and I assume /etc/hosts doesn't exist on Windows. I'm sure I've seen people who've had this working before. Is there a way of using the router itself as a nameserver? If so, how should I set this up? I notice that when I view the list of attached devices in the router configuration interface, all of the IP addresses have hostnames next to them apart from my new server. Any idea why this is? Sorry for the rather vague questions - I'm hoping someone here can help, Cheers, Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
[Hampshire] Suggestion for low-power file server to run at home
Hi all, I've recently moved into a flat and am starting to get my computer setup there sorted. I'd like to set up a low-power server, running in a cupboard somewhere (the equivalent of 'under the stairs' in my one-floor flat). The main purpose of this server will be to store files (both for streaming to media playing devices, such as a computer running XBMC under the TV and my O2 Joggler (running Ubuntu and XBMC) in the kitchen, and for backing up other devices). However, I'd also like to be able to run a few other programs on it - maybe have an FTP server, some other small test servers (web servers for development etc). I've heard good things about the GuruPlug - would that be appropriate for this situation? Would it have enough power to send video across the network for streaming? Are there other alternatives to the GuruPlug which are larger (size doesn't really matter much, but power consumption does) and possibly cheaper? Any advice will be much appreciated, Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] [sort-of-OT] Advice for (geeky) broadband provider
Hi, Thanks for all of the suggestions. I was most impressed by BE, but have contacted them and found that they haven't yet upgraded the Bassett exchange in Southampton, so they can't provide us with broadband :-( Very disappointing. I was particularly attracted to BE because they had completely unlimited services, whereas the others (Andrews and Arnold and LDNet) appear to have download/upload limits. Andrews and Arnold seem better on this front (their off-peak services are from 6pm and include weekends, whereas peak for LDNet counts as 9am to midnight!). Any other particular suggestions? Doesn't necessarily have to be a hugely geeky supplier, but just one that is reliable, and preferably unlimited downloads. Cheers, Robin On 12 Jan 2011, at 09:00, Bob Dunlop wrote: On Tue, Jan 11 at 08:55, Robin Wilson wrote: ... I guess the key criteria for me are unlimited downloads and fairly good speed. Any recommendations? I'm suprised no ones mentioned Andrews Arnold[1] yet. Definitely geeky/technical/professional. IPv6, multiple line etc. Out of hours support response on IRC is excellent, not had a reason to phone them in years. Not cable that I'm aware of, BT and Be ADSL reseller as well as various fiber/ SDSL options for business. Not unlimited download but off peak download is worked out in units of 50G per month, with good carry over etc. 3 quid or thereabouts gets you another 50G. [1] http://www.aaisp.net.uk/ -- Bob Dunlop -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
[Hampshire] [sort-of-OT] Advice for (geeky) broadband provider
Hi all, I will be moving to a new flat in Southampton fairly soon and will need to set up broadband. Does anyone have any particular recommendations for good broadband providers? Compatability with Linux is obviously not a problem, as any broadband provided by a router should be fine, but I wondered if anyone had any suggestions for sensible providers. As a geek I'd love it if I could call their tech support line and get through to someone who actually understood what I was saying about IP addresses, ports etc. I guess the key criteria for me are unlimited downloads and fairly good speed. Any recommendations? Cheers, Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Cable coverage
Alternatively, you can get it free and legally (although subject to some terms and conditions) from the Ordnance Survey OpenData initiative. See Code Point Open on this page: https://www.ordnancesurvey.co.uk/opendatadownload/products.html Robin On 9 Jan 2011, at 10:37, Benjie Gillam wrote: The UK post code database is out there on the net, you just have to look :) I'd guess a name for the 2009 post code database might be along the lines of uk-post-code-2009? And perhaps, due to size, it might be bz2 compressed...? Benjie. On 9 January 2011 00:36, Vic l...@beer.org.uk wrote: I think the problem you will have will be associating geographical locations with post codes. The post office charges a nice fee for this information, and therefore it is not readily available. The Post Office are not the only people to have that database. I've found querying Google to be very successful in the past. It doesn't cost anything, and seems to be very accurate. You can get lat/long for any given postcode, and I've done it from both perl and PHP. It does require a sign-up, which is tied to a particular domain. Vic. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] [OT] Wireless Access Point
Famous last words, eh? I would suggest that he very carefully examines his university's IT policy. I know that the University of Southampton policy expressly forbids connecting hubs or wireless access points to ethernet sockets in halls of residence. A friend of mine at Southampton had his computing access revoked for the rest of the semester for breaking this policy. Obviously other universities may be more lenient than ISS at Southampton are. Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] banks and home use of card readers
Hugo Mills wrote: As far as I know, they're stand-alone units. Hugo. Yes I can confirm this. I have one for my Natwest account and they are completely standalone units. They look a little like a calculator, and you just put your card in it and it displays various numbers which you then type into the computer - there's no USB interface or anything. Cheers, Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Problems changing boot order in Ubuntu
Thanks James - that solved it. I found that the /boot in /etc/fstab was commented out, but I checked in cfdisk and I definitely did have a boot partition. I uncommented the line and mounted it and then edited the menu.lst file on that partition. It then worked first time! :-) Thanks for the help everyone, Robin James Ogden wrote: 2009/1/5 Robin Wilson r.t.wil...@rmplc.co.uk mailto:r.t.wil...@rmplc.co.uk I'm editing the /boot/grub/menu.lst file. The contents of that file is as below. I've posted the whole file as there is a large commented section called the Automagic Kernels list, which is confusing me a bit. I had a search around and couldn't find any other files that looked like they might be the right one. There was nothing of interest in /etc/grub. Do you have a /boot in /etc/fstab? If you mount /boot do you get a different menu.lst? James -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --