Content tagged with "ubuntu"
Files where Ubuntu menus are stored Post on Oct 21, 2009
Note to self - Ubuntu menus are stored here:
/usr/share/applications
I keep forgetting this one...
af
MXMLC FileReference.load() compiler error Post on Dec 23, 2008
On my linux box I am running the Flex SDK 3.2, and tried to use the funky new load() method for FileReference (which pulls the byteArray data of the loaded file = sweet). But my Flex wouldn't compile it, complaining of an error:
Error: Call to a possibly undefined method load through a reference with static type flash.net:FileReference.
The fix?
Edit my /flex/frameworks/flex-config.xml and change the target-player version from 9.0.124 to 10.0.12.36 (even though linux is currently 10.0.15.3)
A hack a day keeps the blues away...
Aaron
Gedit Loveliness :) Snippet on Dec 23, 2008
sudo apt-get install gedit-plugins
Ubuntu and Actionscript Post on Dec 20, 2008
I just downloaded the Flex 3 SDK for Linux and wanted to pick up an old project I've been putting off for a while. I found some syntax-highlighting (language) files for gedit that cover mxml and actionscript but I immediately ran into a problem with opening actionscript files in my system. In the gedit file view, .as files don't even show up at all. In nautilus they do, but when I try to open one, I get an error:
The filename "Logger.as" indicates that this file is of type "Applix Spreadsheets spreadsheet". The contents of the file indicate that the file is of type "plain text document". If you open this file, the file might present a security risk to your system. Do not open the file unless you created the file yourself, or received the file from a trusted source. To open the file, rename the file to the correct extension for "plain text document", then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file.
Applix Spreadsheet? Never heard of it. Turns out the solution wasn't too hard afterall, create a mime-type association in Ubuntu, but it did take some creating search terms on Google to finally get a result.
Another day, another Linux hack.
Cheers, Aaron
[edit] There are a couple more things you need to do to make this work. First make sure the mime-types for actionscript in both files are the same, currently one is 'application/x-actionscript' and the other is 'text/x-actionscript'. Then you need to run 'sudo update-mime-database /usr/share/mime' (assuming that is where you installed the mime xml files).
I'm not sure if you need to restart ubuntu for this to work, I did anyway. [/edit]
Ubuntu VNC glory Post on Dec 09, 2008
I needed to have a friend pull my vnc client the other day, and in UltraVNC in Windows, you can just set the client on 'listen mode'. I didn't know how to do this in Linux, but the answer was easy:
vncviewer -listen 5500
And the server
The server was just as easy to set up:
x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800 -listen 192.168.1.103
Make sure and -usepw or you'll open your machine up to a world of trouble :)
Aaron
Mouse sensitivity in Fluxbox Snippet on Dec 09, 2008
xset m 5 10 # sensitivity / threshold
Fluxbuntu and Intel Pro Wireless 2200bg Post on Dec 08, 2008
I had to blog this one. It's the hack of the day. I couldn't get a minipci wireless card (Intel Pro/Wireless 2200BG) card to work on my old Toshiba Satellite A30. The ipw2200 driver is installed in Fluxbuntu by default (which is nice) but 'iwconif' reported my 'radio off' on eth1.
I had to tape a couple pins to get it to work, and the sliver of tape was tiny, harder to pull off than I thought, but I'll be damned if it didn't work.
Internet: 1, Pro/Wireless 2200BG:0 :)
Aaron
FlexiCAM and Skype on Intrepid Post on Dec 01, 2008
I was having an issue with the new webcam I bought today on Intrepid and Skype. I first thought it was an issue with the video for linux driver, but the cam worked fine in cheese, but all I got was this funky green screen in Skype when testing my camera. After quite a bit of searching, I finally found an answer that worked, and it was really simple. You can grab it on Ubuntu Forms.
Cheers,
Aaron
[edit]I have to say, I'm not really impressed with the picture quality, I would go way beyond soft and say the picture is either blurry or completely out of focus. Here's a snap:
I read a couple reviews that said this camera has a sharp picture, I wonder if I got a bad one...[/edit]
Ubuntu Intrepid breaks Virtualbox Post on Nov 27, 2008
I have had a couple go-arounds with this one now, I try to boot my Virtualbox and it says something like
VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Re-setup the kernel module by executing '/etc/init.d/vboxdrv setup' as root.
VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED).
Result Code:
0x80004005
Component:
Console
Interface:
IConsole {d5a1cbda-f5d7-4824-9afe-d640c94c7dcf}
So I run
sudo /etc/init.d/vboxdrv setup
and I get
* Stopping VirtualBox kernel module
* done.
* Recompiling VirtualBox kernel module
/etc/init.d/vboxdrv: 311: cannot create /var/log/vbox-install.log: Permission denied
* Look at /var/log/vbox-install.log to find out what went wrong
And the log gives me some funky compile output and an 'Error 2' at the end.
... make -f scripts/Makefile.build obj=/tmp/vbox.1 gcc -Wp,-MD,/tmp/vbox.1/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude -I/usr/src/linux-headers-2.6.27-7-generic/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -I/lib/modules/2.6.27-7-generic/build/include -I/tmp/vbox.1/ -I/tmp/vbox.1/include -I/tmp/vbox.1/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DUSE_NEW_OS_INTERFACE_FOR_MM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.1/linux/.tmp_SUPDrv-linux.o /tmp/vbox.1/linux/SUPDrv-linux.c In file included from /tmp/vbox.1/linux/SUPDrv-linux.c:35: /tmp/vbox.1/SUPDRV.h:99:30: error: asm/semaphore.h: No such file or directory /tmp/vbox.1/linux/SUPDrv-linux.c: In function 'supdrvOSGipResume': /tmp/vbox.1/linux/SUPDrv-linux.c:1331: error: too many arguments to function 'smp_call_function' make[2]: *** [/tmp/vbox.1/linux/SUPDrv-linux.o] Error 1 make[1]: *** [_module_/tmp/vbox.1] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-2.6.27-7-generic' make: *** [vboxdrv] Error 2
Cheers, Af
Mount an Ubuntu hard drive in XP Post on Nov 15, 2008
I have been running Ubuntu Linux for a number of months now, but every once in a while I need to jump into XP to do something (I'm running a dual-boot right now). And as soon as I'd get into Windows, I'd realize I needed a file off my Linux disk. Now XP and Ubuntu run totally different file systems, I run NTFS on Windows, and my Ubuntu install is using Ext2 (I believe). But, no problem, just run this handy little utility and your drive will show right up :)
Another crisis nearly diverted.
Aaron out.
PCI device list in Ubuntu Post on Nov 12, 2008
I just ran across this today, trying to get Ibex running on my wife's PC. I needed to know the hardware on this wireless card.
lspci
spit out something like this:
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 81) 00:01.0 PCI bridge: Intel Corporation 82945G/GZ/P/PL PCI Express Root Port (rev 81) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01) 00:1c.4 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5 (rev 01) 00:1c.5 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 6 (rev 01) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01) 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01) 01:01.0 Ethernet controller: Marvell Technology Group Ltd. Marvell W8300 802.11 Adapter (rev 07) 01:03.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link) 01:04.0 Mass storage controller: Integrated Technology Express, Inc. ITE 8211F Single Channel UDMA 133 (rev 11) 02:00.0 Mass storage controller: Silicon Image, Inc. SiI 3132 Serial ATA Raid II Controller (rev 01) 03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 15) 05:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7800 GTX] (rev a1)
Not so scary after all :)
Ubuntu and PyQt Post on Oct 14, 2008
I just went through the nightmare of trying to install PyQt and all its dependancies. I had originally searched for an ubuntu package (coz we loves packages, doesn't we precious?) I couldn't seem to find one.
Turns out (after failing 'configure's and 'make's and missing dependancies), there is a package (a couple, actually).
To install PyQt on Ubuntu:
sudo apt-get install libqt4-core libqt4-dev libqt4-gui qt4-dev-tools python-qt4 pyqt4-dev-tools
I'm not sure if all the packages before the last one are necessary, but I didn't think it would hurt to have them.
Thanks again, Ubuntu Forums.
af
Hardy and my LJ1600 Post on Oct 09, 2008
I'm impressed once again with Ubuntu 8.04 (LTS). I remember having to tweak gutsy to get color working on my laserjet, but I just plugged it into this box, and it worked without a glitch. Well, one glitch, I had to change the 'color' setting from 'monochrome' to 'color', but I can't complain, it's not find/editing obscure configuration files...
Cheers to Ubuntu :) af