Archive for the ‘Linux’ Category

Some tips about Ubuntu 11.04 Natty Narwhal

In April 28th, the Canonical released the version 11.04 (Natty Narwhal) of Ubuntu. On the same day I downloaded it to install on my workstation and I was surprised with Unity UI, the launcher and the dash.

In this post I gathered some tips to customize/adjust it. ;)

 

  • How to add terminal applications to launcher

For example, if you want to add the Eclipse IDE into your launcher, you need to create a file with “.desktop” extension and add the following content:

#Eclipse.desktop
[Desktop Entry]
Version=3.6
Name=Eclipse
Comment=
Exec=/home/rodrigo/Programs/eclipse/eclipse
StartupWMClass=
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/home/rodrigo/Programs/eclipse/icon.xpm
StartupNotify=true

Then, drag and drop this file into the launcher.

 

  • How to show all icons in the system tray

By default, only a few icons are displayed in the tray. To show all icons, you need to open your terminal and type:

gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

Then, restart Ubuntu.

 

  • How to remove the launcher auto-hide behavior

For it, you need to install the Advanced Desktop Effects Settings (ccsm)

sudo apt-get install compizconfig-settings-manager

Then, use Alt+F2 shortcut key to open the “Run a command” dialog, type about:config and run it, change the property Hide Launcher to Never.

 

  • How to change the launcher icon size

Here, you also need install the Advanced Desktop Effects Settings (ccsm).

In the same window you used above, change the property Laucher icon size to another value.

 

  • How to add a CPU/memory monitor int the system tray

Just type in your terminal:

sudo add-apt-repository ppa:alexeftimie/ppa
sudo apt-get update
sudo apt-get install indicator-sysmonitor
indicator-sysmonitor

You can put it (incidator-sysmonitor) in your Startup Application Preferences.

Linux Ubuntu 8.10 e notebook que não desliga/reinicia

Esse final de semana aproveitei para instalar a nova versão 8.10 do Ubuntu no meu notebook, eu já utilizava a versão 8.04 e estava muito satisfeito com ela, mas minha curiosidade foi maior e acabei não resistindo e instalando a nova versão.

Como não tive boas esperiências com atualização do S.O., resolvi fazer um backup dos meus arquivos e fazer uma instalação “do zero” no meu notebook. A Instalação ocorreu tranquilamente via interface gráfica e todo meu hardware foi detectado corretamente.

Ainda não tive muito tempo para avaliar todas as novidades e como esta versão está se comportando, mas por enquanto não tive grandes problemas.

Mas como nem tudo são flores uma coisa que me deixou um pouco preocupado foi que meu note demorava cerca de 7 minutos para desligar ou para reiniciar, contudo após algumas pesquisas acabei encontrando uma solução para este problema, na qual descrevo a seguir:

Edite o arquivo /etc/init.d/alsa-utils

sudo gedit /etc/init.d/alsa-utils

Após o texto “stop)” no arquivo (aproximadamente na linha 353), adicione:

ifconfig wlan0 down
ifconfig eth0 down

Então o arquivo deve ficar assim:
stop)
ifconfig wlan0 down
ifconfig eth0 down
EXITSTATUS=0

Com isso o problema foi resolvido e agora meu Ubuntu desliga e reinicia normalmente. :D

Controlando impressoras no Linux via web

Para quem está acostumado a utilizar o linux, provavelmente já deve conhecer o CUPS (Common Unix Printing System) o gerencinciador de impressão que pode ser controlado via web.

Na própria página inicial do gerenciador existe uma introdução, que é a seguinte:

CUPS provides a portable printing layer for UNIX®-based operating systems. It is developed and maintained by Apple Inc. to promote a standard printing solution. CUPS is the standard printing system used on MacOS® X and most Linux® distributions.

CUPS uses the Internet Printing Protocol (“IPP”) as the basis for managing print jobs and queues and adds network printer browsing and PostScript Printer Description (“PPD”) based printing options to support real-world printing.

Para acessar a interface de controle web do gerenciador de impressão, basta acessar o seguinte endereço de qualquer browser instalado no linux:

http://localhost:631/

Através desta interface web pode-se adicionar, alterar, configurar ou remover uma impressora, cancelar impressões entre outras configurações.