Outils pour utilisateurs

Outils du site


issue70:q_r

Ceci est une ancienne révision du document !


Q I carelessly deleted the /tmp directory. Now I can't login. A (Thanks again to SeijiSensei in the Ubuntu Forums) See this message thread: http://ubuntuforums.org/showthread.php?t=2107154

Q J'ai supprimé par négligence le répertoire /tmp. Maintenant il m'est impossible de me connecter.

R

Q I have a Macbook Pro with Retina display. Can I use Ubuntu?

A You're going to love 13.04! For now, see this blog: http://linuxmacbookproretina.blogspot.com.au/2012/12/ubuntu-1304-daily-build-macbook-pro.html

Q After installing Ubuntu 12.10, Libreoffice won't let me open any bases or build new bases. The message says it can't locate any Java installations. Has anyone else had this problem?

A Yes, I would say the the packaging of Libreoffice-base is incomplete. After installing openjdk-jre, you should be able to create a database.

Q How can I make my wireless connection use a static IP address in Ubuntu 12.10?

A (Based on information from chili555 in the Ubuntu Forums) This is a blow-by-blow, which should also work in Ubuntu 12.04, and you can probably do it faster than the time it takes to read this. Click on the network icon, which is probably next to the volume control on the top-right of your screen, and select Edit Connections. Select the Wireless tab. Click on the name of your current connection and select “Edit”.

A new window pops up. Select the IPv4 Settings tab. “Method” is a drop-down box, select “Manual.” The next box is Addresses, click on Add. For “Address,” type in the address you want the computer to use. Make sure it is not in the range of DHCP addresses your router might assign. I used 192.168.1.32 For Netmask, use 255.255.255.0. Gateway is the address of your router. Mine is 192.168.1.1 but some routers use 192.168.0.1. Some use a very different address.

In order to browse the web, you must specify DNS Servers. When you signed up with your ISP, you probably got an information package suggesting what DNS servers to use. Google operates excellent DNS servers at 8.8.8.8 and your router can also pass requests to DNS servers, so you might enter 8.8.8.8 192.168.1.1 into this field. I plugged in the numbers my ISP suggested, separated by a space.

Save your changes, and you're done. You can restart networking, or just reboot to have the change take effect.

At least, that's the theory. I discovered that Network Manager saved the original settings under a new name, and that is what it used. When I clicked on the icon, it didn't offer the modified settings as a connection option. So, I made the changes once again, this time to the new name. Clicked save, disconnected and reconnected, and I was using the static IP address. I used Conky to display my IP address with this line:

IP Address: ${addr wlan1}

Your wireless might be wlan0.

Q After entering all the necessary info to set up the wireless connection, not only did it not connect, but there did not appear to be any attempt to connect. Went to the settings/network/settings page and it reports that it's on, the hardware address, and also says “firmware missing”.

A (Thanks to ubfan1 in the Ubuntu Forums) From a wired connection, add the package linux-firmware-nonfree

sudo apt-get install linux-firmware-nonfree

Q After installing Ubuntu 12.04, my G4 Mac mini was mute.

A (Thanks to linuxopjemac in the Ubuntu Forums) Use this command:

sudo nano /etc/modules

Add these lines at the end: snd_aoa_i2sbus snd_aoa_fabric_layout snd_aoa_codec_tas snd_aoa_codec_onyx

Then CTRL-X and “y” to save. Reboot. Sound works, hopefully.

Q (Thanks to baseballa51 and DuckHook in the Ubuntu Forums) I have a RocketRAID 2640 x1 PCIE 1x 4 port SATA Controller, with four drives attached to it. I cannot access my HDDs connected to the RAID controller card.

A This web page: http://www.flynsarmy.com/2012/11/installing-rocketraid-2760a-drivers-on-ubuntu-12-10 was for a slightly different version of the card, but it spelled out the steps needed to use the RAID controller.

Tips and Techniques

Driver File Types

The Linux kernel is constantly growing, so new versions often drop support for older hardware. If you are stuck with one of these older devices, the solution can require compiling a driver from source code and installing it on your system.

That sounds drastic and complicated, but it's better than the alternative. When I moved from Windows 98 to XP, my lovely (and semi-expensive) webcam became electronic trash.

As DuckHook explained in this thread: http://ubuntuforums.org/showthread.php?t=2101512 the first things you need to know about are some new file types. If you go to a vendor site and download a Linux driver for your device, you will probably get some-long-name-with-version-info.gz where gz is short for GNU zip. If you're coming from Windows, you are probably familiar with zip files, which may contain one or several files. The gz, or the zip, is interesting only once you see what is inside.

Double-clicking on a .gz will generally open it in a program which can extract the contents. With any luck, there will be one or more .sh files, perhaps including install.sh

When you first look inside a .gz, you might see one or more files with readme in the name. Before you even extract the contents, you should see what they say. Sometimes they will bore you with a list of changes from the previous version, but sometimes they will contain information you really need to know. Then, you can extract the files.

A .sh is a shell script, similar to a .bat (batch) file in MS-DOS or Windows, but more powerful. It will probably compile the source code, but a default Ubuntu installation needs some enhancements to do this. The most basic is build-essential, so you should install that now. You might also need ubuntu-dev-tools; it never hurts to be prepared by installing that collection of programs. Once those are ready, you can run the script with these terminal commands:

cd the-folder-where-you-extracted-the-files

sudo sh install.sh

The gz probably contained some source code, but you don't need to know the file type, because the script looks after it. However, it might be useful to know what it produces: long-name-of-some-device-driver.ko where ko stands for kernel object. If you ever see instructions for installing a device driver, they may tell you to put a .ko file in a specific location.

The terminal command: lsmod will tell you what device drivers are in use. The results are normally short names which do not include version information.

DuckHook also explained that these commands:

sudo modprobe -r name_of_driver

sudo modprobe name_of_driver

will unload and reload a device driver.

And always, remember: when you run across stuff you don't understand, Google is your friend.

issue70/q_r.1369385649.txt.gz · Dernière modification : 2013/05/24 10:54 de auntiee