2007-12-17

Alias - how to

Definition (alias [ˈeiliəs] noun):
a false name

Example: What alias did the crook use this time?
Arabic: إسْم مُسْتَعَار
Chinese (Simplified): 化名
Chinese (Traditional): 化名
Czech: falešné jméno
Danish: alias; dæknavn
Dutch: alias
Estonian: valenimi
Finnish: peitenimi
French: faux nom
German: der Deckname
Greek: ψευδώνυμο
Hungarian: álnév
Icelandic: falskt nafn, tökuheiti
Indonesian: nama palsu, nama lain
Italian: pseudonimo

Japanese: 偽名, 通称
Korean: 별명
Latvian: pieņemts vārds
Lithuanian: slapyvardis, pravardė
Norwegian: dekknavn
Polish: pseudonim, fałszywe nazwisko
Portuguese (Brazil): pseudônimo
Portuguese (Portugal): pseudónimo
Romanian: supranume
Russian: кличка; прозвище
Slovak: falošné meno
Slovenian: lažno ime
Spanish: seudónimo
Swedish: alias
Turkish: sahte a
source: dictionary.com


Alias command definition:

Alias is a built-in shell command that allows you create shortcuts/synonyms for other shell commands.

How to make an alias:
  • Sintax
alias [name=['command']]
  • example - make an alias for clear command:
$ alias cl='clear'
  • description: now when you type cl at your terminal, is the same thing as type clear. This can be used for more and/or long stings..
  • other alias:
$ alias p='pwd'

$ alias x="exit"

$ alias folderx='cd /home/your_user/Desktop/folderx'


How to remove an alias:

  • Sintax
unalias [alias_name]
  • example - remove an alias for clear command:
$ unalias cl

Note:

When the computer is rebooted all alias will be lost.
How to prevent it? All alias must be added to .bashrc file located at your user folder (example: /home/uterrorista/.bashrc)
  • example:
$ gedit /home/uterrorista/.bashrc
  • paste:
alias cl='clear'
etc...
  • now you have to 'compile' your .bashrc file
$ source .bashrc
  • Now cl alias it's saved..
My tutorial:

Make an alias to create other alias..
  • Edit .bashrc
$ cd
$ gedit .bashrc

  • and paste (replace your_user_name with your nick session):
## Add new alias and compile i
alias aalias='gedit /home/
your_user_name/.bashrc && source /home/your_user_name/.bashrc'
  • compile
$ source .bashrc
  • Now you can add the alias you want just simple doing:
$ aalias
  • add (for example. you can make now your desired alias):
## One folder up
alias up='cd ..'

## Clear screen
alias cl='clear'

alias ff='find . -name $*'
alias untar='tar zxvf'
alias p='pwd'

alias ls="ls --color=auto"
alias ll="ls -l --color=auto"
alias la="ls -l -a --color=auto"

alias x="exit"

alias compilar='sudo ./configure && sudo make && sudo make install'

alias apti='sudo apt-get install'
alias aptud='sudo apt-get update'
alias aptug='sudo apt-get upgrade'

alias aptar='sudo apt-get autoremove'
alias aptr='sudo apt-get remove'

alias aptc='sudo apt-get clean'
alias aptac='sudo apt-get autoclean'


function today {
echo "Today's date is:"
date +"%A, %B %-d, %Y"
}


  • Note: you if have noticed i have a function on my .bashrc file - function today. To run it type: today.
  • to remove an alias: just edit the .bashrc file (aalias) and remove/delete the alias you don't need anymore..
Be free to submit a comment and post your alias..

2007-12-08

Bluetooth @ ubuntu - kdebluetooth/kbluetooth

I've some difficulties connecting my Nokia 6820 to the Laptop (maybe it was just my ignorance...)
And know i've a band new Sony Ericsson M600i.

The question survived : How to send files to my phone?

I was using the default gnome bluetooth manager... That was not enough..
I did some research and found out that Kde bluetooth manager was (much) better.

Screenshots



How to use

  • Launch kbluetooh
    An icon will appear at Notification area.
  • Click and you'll get the window previously showed..
    Then the Computer will automatically scan for bluetooth devices(e.g: M600i.box). Remember to turn on your bluetooth's phone.
  • Click on M600i.box icon, then File transfer/Obex File Transfer.
  • Now check your mobile phone. A message asking permission to pair the phone with computer should pop up. Accept it. And enter 'pair code'. At your computer will pop up a window asking the same 'pair code'.
Now you have the two devices are paired. You can explore your mobile content. Copy/Drag files wherever you want to.
Note: depending your mobile phone model you'll still need to check your phone to accept the connection everytime you explore a different folder at your computer.


Install
  • Direct link:
install
  • or console:
sudo apt-get install kdebluetooth

  • Note: you will need to install konqueror and obexftp at least..
    Don't know if any more dependences are necessary because I've KDE installed on my computer.

2007-11-26

Microsoft True Type Core Fonts (aka ms truetype fonts)

About:

This package allows for easy installation of the Microsoft True Type Core Fonts for the Web including:

  • Andale Mono
  • Arial Black
  • Arial (Bold, Italic, Bold Italic)
  • Comic Sans MS (Bold)
  • Courier New (Bold, Italic, Bold Italic)
  • Georgia (Bold, Italic, Bold Italic)
  • Impact
  • Times New Roman (Bold, Italic, Bold Italic)
  • Trebuchet (Bold, Italic, Bold Italic)
  • Verdana (Bold, Italic, Bold Italic)
  • Webdings

Install: (2 methods)
  • (1) direct link using firefox:
click
  • (2) console method:
$ sudo apt-get install msttcorefonts

  • Then logout and login.
Note: there is the command '$sudo fc-cache -fv' that may skip 'relogin'.



2007-11-11

Gnome-art

Today I found a very simple way to personalize our Gnome.
I've discovered Gnome-art.

Screenshot:



Description:
This is the graphical frontend for art.gnome.org. Backgrounds and all themes can be downloaded and previewed. Backgrounds, icon themes and splash screens can be installed directly.

Under the menu Art we can find:
> Backgrounds
>> Gnome
>> Other
>> All

> Desktop theme
>> Application
>> Window Border
>> Icon

> Other Themes
>> Login Manager
>> Splash Screens
>> GTK + Engine


Instructions:
Just select one of the Art's categories. Then gnome-art starts caching thumbnail previews. Now we can choose, preview and install whet we want/like. Very simple to use.
Note: Caching thumbnails can take some minutes.

Installing (3 methods)
  • (1)direct link
install
  • (2)console
$ sudo apt-get install gnome-art
  • (3)synaptic package manager
gnome-art


2007-11-07

Netspeed & GFreqlet (applets)

These are the two Gnome applets i can't live without:


Netspeed


Netspeed is just a little GNOME-applet that shows how much traffic occurs on a specified network device (for example eth0). You get the best impression of it, if you look at the screenshots below.


some screenshots:




installation:
  • apt-get install netspeed
link:



GFreqlet

GFreqlet is a GNOME applet for Linux that not only monitors CPU frequency scaling, but also allows the end user to change the frequency or governor with just a click. It automatically detects which frequencies and governors your processor supports, so there is no configuration required. The applet itself is not run as root, nor required to modify to run with root ownership, but password prompts with gksudo if a super user action is required. GFreqlet is very straight forward and minimal.
some screenshots:

installation:
link:

2007-10-12

Open DNS

> Open DNS

The Domain Name System (DNS) is fundamental to the Internet. You use the DNS every time you do anything online including sending email and browsing the Web. Most networks use the DNS provided by their ISP or run their own small DNS server. OpenDNS is better.

"OpenDNS allows us to easily block unwanted sites and provide a safer, more productive environment. It has a smart interface that provides granularity of control across multiple connections, and the statistics are easy to use and provide insight into our DNS traffic."
Terrell Johnson , Network Administrator , Sunsweet

> Intall
  • STEPS:
$ sudo cp /etc/resolv.conf /etc/resolv.conf.auto
$ sudo gedit /etc/dhcp3/dhclient.conf
# append the following line to the document
prepend domain-name-servers 208.67.222.222,208.67.220.220;
# save and exit
$ sudo ifconfig eth0 down && sudo ifconfig eth0 up
#note: in your system may not be
'eth0' for example in my PC it is eth1.

url: link


2007-10-11

Gusty Gibbons Bugs

This is a list of all bug that i caught in my Gusty Gibbons 7.10:

> Enormous Big Font's Size (@ tribe5)

The window border's title has grow up 10 times, why? Because the font size 10 look like 78 font size. Result: Damm big title windows.
  • Edit:
$ sudo gedit /etc/gdm/gdm.conf-custom
  • Add:
[server-Standard]
command=/usr/bin/X -br -audit 0 -dpi 86


url: link

> ...updating

2007-07-13

UbuntuGames.org


  • English:

Ubuntu Games is the result of efforts to create a place to gather articles, tutorials, screen pictures, and tips about games on Ubuntu. The Games are not necessarily free (as in beer nor as in speech); they can be closed source or proprietary. They may not be specifically for Ubuntu. If it works (even if emulated) on Ubuntu Linux, it's welcome!

Some people won't migrate to Linux from other OSs because they think Linux doesn't have good games. For the good of home desktop users, I'll try to convince you that there are many good games on Linux, and in Ubuntu, their installation is fairly simple.

Link: ubuntugames.org

  • Português:

O Ubuntu Games é fruto do esforço para criação de um lugar que contenha artigos, tutoriais, fotos de tela e dicas sobre jogos no Ubuntu. Eles não são necessariamente gratuitos ou de fonte livre (opensource), podendo ser proprietários, de código fechado, ou até mesmo não específicos para o Ubuntu. Nosso critério é: se roda (mesmo que emulado) no Ubuntu Linux, é bem-vindo!

Há quem não migrou de sistema operacional por causa de jogos que imaginam não haver para o Linux. Pelo bem dos usuários domésticos, tentarei convencer vocês de que existem muitos jogos bons no Linux, e que no Ubuntu, a instalação de jogos é simples.

Link: ubuntugames.org

2007-07-01

NetworkManager in systray

When NetworkManager's icon doesn't appear in systray (a.k.a Notification Area) you can add it yourself.
(I think it works on all desktop environments)
  • Go to:
Applications » Settings » Sessions
  • Click 'add' and type:
Name e.g: 'Networkmanager'
Command put: 'nm-applet –sm-disable &'
  • And now restart X (ctrl+alt+backspace)

2007-06-28

Touchpad - Configure it!

Feisty Fawn lacks the ability to personalize the Synaptics Touchpad. Here are a few tips. These can be also applied to other distros.

Backup xorg.conf
  • First of all, backup your xorg.conf
$ sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup


Enable/Disable Touchpad
  • Edit you xorg.conf
$ sudo gedit /etc/X11/xorg.conf
  • find «Identifier "Synaptics Touchpad"» and change it to: ("SHMConfig" "true")
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "true"
EndSection
  • Disable: (go to terminal and type:)
$ synclient TouchpadOff=1
  • Enable:
$ synclient TouchpadOff=0

Disable Touchpad while typing
It's annoying when a person is typing and touch accidentally in the touchpad. This tip disables the touchpad for 'x' seconds when you press a key. It needs the configuration(xorg.conf) carried through in the previous tip to work.
  • Go to terminal and type: (disables touchpad for 1 second)
$ syndaemon -i 1 -d

visit syndaemon page for more info

Gsynaptics
Gsynaptics allows to configure your Touchpad. It enables/disables touchpad/tapping and configure scroll movements.
(click on screenshot to enlarge)
  • Install:
$ sudo apt-get install gsynaptics
  • Run at terminal:
$ gsynaptics
  • Or go to System » Preferences » Touchpad

Note: for KDE » ksynaptics

Add these tips to startup
If you like some of these tips, and you pretend to use it every time, just add it to start up.
  • Go to System » Preferences » Sessions:
Click New,
Name: 1sec touchpad
Code: syndaemon -i 1 -d

repeat procedure to any desire program..

2007-06-27

Games 4 Linux

Here i will post some cool games for Linux.
Note: this topic will be updated with more games.

  • Pang Zero

Download:
pangzero.deb | official page



i will update this post soon ;)

2007-06-22

Compiz + Beryl = Compiz Fusion (repository)

Note: Fusion is a new project merging Compiz with Beryl.
Screenshot:


(click to enlarge)

To install:

  1. First remove compiz and beryl.
$ sudo apt-get remove beryl*
$ sudo apt-get remove compiz*


  1. Open Terminal and edit sources.list:
$ sudo gedit /etc/apt/sources.list
  1. Add to file:
deb http://download.tuxfamily.org/3v1deb feisty eyecandy
deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy
  1. Save and get back to Terminal and type:
$ wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O- | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get install compiz-#gnome or kde
$ sudo apt-get install compizconfig-settings-manager
$ sudo apt-get install compizconfig-backend*
$ sudo apt-get install compiz-fusion-*
  1. Remove the existing directories
$ rm -fR ~/.beryl*
$ rm -fR ~/.emerald*
$ rm -fR ~/.compiz*
  1. Run Compiz
$ compiz --replace

Post update: 16.00 - 2007Jun25

Add Compiz Fusion to startup:
  1. Go to System » Preferences » Sessions and add:
compiz --replace

Edit: 22.00 - 2007Jun25

2007-06-10

TLS problems

TLS does not seem to work and I have tcl/tk 8.5. How can I fix it ?
  • Open Terminal and type:
$ sudo gedit /usr/lib/tls1.50/pkgIndex.tcl
  • and change the line :
"package ifneeded tls 1.5"
  • to
"package ifneeded tls 1.50"

2007-06-02

A Better Looking Firefox



  • Open the Terminal and type:
$ wget http://users.tkk.fi/~otsaloma/art/firefox-form-widgets.tar.gz

$ tar -xvzf firefox-form-widgets.tar.gz

$ sudo cp /usr/lib/mozilla-firefox/res/forms.css /usr/lib/mozilla-firefox/res/forms.css.bak

$ cat firefox-form-widgets/res/forms-extra.css | sudo tee --append /usr/lib/mozilla-firefox/res/forms.css > /dev/null

$ sudo cp -r firefox-form-widgets/res/form-widgets /usr/lib/mozilla-firefox/res

$ rm -rf firefox-form-widgets
  • Reboot Firefox if open..

2007-06-01

Fedora 7 is out

Fedora is a Linux-based operating system that showcases the latest in free and open source software. Fedora is always free for anyone to use, modify, and distribute. It is built by people across the globe who work together as a community: the Fedora Project. The Fedora Project is open and anyone is welcome to join.

The Fedora Project is out front for you, leading the advancement of free, open software and content.


Links:
Fedora official site | Release Notes |
Download:
Torrents | Download Mirrors | Get Media

2007-05-30

Tux in ASCII

01001100001000011101001001001011111101010110100100100001111011011101001111100011
01100100101010010000011110110011011001111011011111001101011111000011001000011111
01110001010111011000001101000000010010101011110010101000011011110101001100011001
11111111001001010110010010000010011010110101001011011100000010111001010101011111
01001000101100010010001100010110011110011101010000000111100100000110000011101000
00101011010011000001101000001010100010111001001111011101100000011111001011000010
11100010000111010000011001100011101000000110100011011000101010100000011110001100
11010100100100110111110100111010101111100010111001001011010110011011100001011011
10011010110001101010011100001011100110011011011110100100000001101111101011101110
11011111000111111101000010000100010100011000001100101101001111010101100111011001
00110111110101000101011111101001101110100010111101010100110011110000110110001101
11101100111101100011101110011001101001110100000111000110110100100010011101000100
00110001010010101111000010110001110010111000110110000001011110101111001011001000
10110001001111101100000111111101110000101011010011001111001111011011010111101010
00111101011011010000010011111111010101100100011010001110001010001010001010101110
00001001001100111110101011101010101101011001010101010101110111010001100100010001
00010010101100111010010101111000101011101011010110111001011001100000111001001011
00000111110100100000110111110011100101010110111000110010100000011010100001111110
11011111001011010101100100101100000011011000000110100100100111000001011110111100
00000101111110101101111001000100100110000111101110011000011000011000001001100110
00111001111001000111010100110011010010000111011011011001011110110010000011010101
01000100011111110101100001011001001110000000111101010000001001011110000000111001
01100001101001110001011110111001010010100000100101111010111111001011000011101111
01110010100001010101111000011100101001101101011010100001101100010111001011111100
11010111101001100011011010010111001110010001000110010101110010011110011100101000
10100101100110111111110100011111001110100110010010101100000000010010010111011000
11111101000011100100011001110101101101011001000010001001010011010111100011101111
11000000100101100000111011000001001100000100111001100000110111100110110111011000
00000010111001111101000001001101010101101110011100110110001101101111100001011011
10110111111001110110010110011000010100010111011010101001100110010101001100000010
11000001111110011000111101011111010101101000101011001100100100110100000101100111
10011010101100111011001111011010110001100110011010010011101011011101010110000001
00100111000001100001001100001000001111111000011000110101100001101001010100000010
101101101100101100100110101011110000010110100000000110000000001100000000001100


I tought that was cool to see Tux in ascii.. Bahhh.

To convert any image to ascii » text-image.com

2007-05-29

Change your mouse cursor

Ubuntu comes by default with a 'classic' white cursor.
After a while it becomes boring. Let's change it!

Go to Gnome-Look and e.g. download the FedoraCore6 cursor.

Install mouse cursor:
  • Extract the zip/tar.gz content to the folder /home/'your username'/.icons
  • Then go to System » Preferences » Mouse
  • Go to Pointers tab (just like the picture) and select the new pointer/cursor.
If you know more cool cursors, please submit a comment.

2007-05-26

The goodies of Firefox's Add-ons

Mozilla Firefox is a wonderful browser, and one of the most values are the Add-ons.
There are Add-ons that goes from radio to download manager.
So, I'm gonna introduce you to some of the best and needed Add-ons:

  1. Foxmarks - The Bookmark Synchronizer - Saves your bookmarks online and allow to synchronize them with another computers..
  2. Adblock Plus - Add and banner blocker - Blocks adds and banner by filter subscription or user request
  3. FlashGot - Download Manager - "Download one link, selected links or all the links of a page together at the maximum speed with a single click.."
  4. Download Statusbar - Download statusbar info - "View and manage downloads from a tidy statusbar.."
  5. NoScript - Script Enable/Disable - "It allows JavaScript, Java and other executable content to run only from trusted domains of your choice.."
  6. VideoDownloader - Saves *.vlc, etc videos - "Download videos from Youtube, Google, Metacafe, iFilm, Dailymotion, Pornotube..."
  7. Forecastfox - Weather report - "Get international weather forecasts from AccuWeather.com"
  8. PDF Download - PDF downloader helper - "Allows to choose if you want to view a PDF file inside the browser (as PDF or HTML)..."
  9. Fasterfox -Maximize you Firefox's speed - "Performance and network tweaks for Firefox."
  10. RefControl - HPPT referer controller - "Control what gets sent as the HTTP Referer on a per-site basis."
  11. You you have/know another great add-on please submit a comment..