Linuxtipstricks – Just another /linux/blog

July 4, 2009

Ho to reset Ubuntu password (Kubuntu, Xubuntu, gOS, Mint and other Ubuntu based OSs)

Filed under: user tipstricks — Antonio Portuesi @ 9:47 pm
Tags: , , , , , , , , , ,

What if you lost your account password?
Before you destroy your linux installation check this out:

switch on your computer, and as soon as you can, strike the Esc key on your keyboard to display GRUB menu;

highlight and select the recovery mode;

your distro will boot into a recovery shell and, after you get a console prompt, type:

user@pc:~$ passwd user

where the user is your username;

choose, enter and confirm a new password when prompted;

restart your machine:

user@pc:~$ reboot

and take a deep breath.

Advertisements

June 27, 2009

How to use Facebook chat in Ubuntu (Pidgin)

Filed under: user tipstricks — Antonio Portuesi @ 10:23 am
Tags: , , , , , , ,

If you want to enable Facebook Chat for Pidgin in Ubuntu you need to install Facebook Chat for Pidgin plugin that now is included in the official repositories.

This is a Facebook chat plugin for Pidgin, it simply connects to the new Facebook Chat IM service without the need for an API key as many other services require.

Currently the plugin can log into the Facebook servers, get the buddy list, send and receive messages, add and remove friends, receive notifications and search for Facebook friends.
Moreover you can set your Facebook status too.

Now open a console session and type:

sudo apt-get install pidgin-facebookchat

insert your root password and Ubuntu will make everything itself without asking you anything else.

Let’s get into it and enjoy your facebook world!

June 6, 2009

How to find my pc IP address – aka – what is my IP?

Filed under: user tipstricks — Antonio Portuesi @ 7:27 pm
Tags: , , , , , , , , , , , , , ,

Your computer (PC, MAC, handeld and so on…equipped with Windows, Linux, MacOS, every distro/release OS) has an Internal IP address and an External IP address.
It may have been set manually or it may have been set automatically. That doesn’t matter.
Regardless of how it was set there are times when you need to know what that IP address is.
In other words you ask to yourself: How can I find my pc IP?
The easiest way is to go to www.mypcip.net and check out the result in the top of page.
There you can also find some useful information about IT (IP, DNS, WHOIS, MAC, IPv4/6 and counting)

The easier, the better!

May 2, 2009

How to use a swap file to increase temporarily your swap memory

Filed under: user tipstricks — Antonio Portuesi @ 11:04 pm
Tags: , , , , ,

Sometimes, it can be very useful to increase the available swap memory using a file, so we could have a memory boost in a snap without prepare a dedicated swap partition.
Let’s do it!

The following line would create a swapfile of 4 gigabytes using a blocksize of a megabyte (1048576).
user@pc:~$ dd if=/dev/zero of=/swapfile bs=4194304 count=1000

Then make the file as a swapfile
user@pc:~$ mkswp /swapfile

Now we have to activate the swapfile…
user@pc:~$ swapon /swapfile

…and verify that the same has been activated.
user@pc:~$ swapon -s

That’s all!

April 18, 2009

How to boot from USB even if you don’t have BIOS support

Filed under: user tipstricks — Antonio Portuesi @ 11:48 am
Tags: , , , , , , , ,

If you like to try a new Linux distro (or any other OS with similar features) you can prepare a bootable USB device (stick, pen, thumb, disk and so on) and boot your system standing by for loading process completion.

Actually that is not ever easy because older PCs don’t have the proper updated BIOS support.

It doesn’t matter what kind of USB you have (1.0 or 2.0) Plop could be your ultimate solution.

That said, you can download and burn the .iso image so you won’t be in trouble if you get wrong in MBR hard drive setup.

Once the burning process has finished, just insert the cd and restart your PC then scroll down the green entry list menu and go on with USB booting process.

Now you can test any rescue USB system or live linux distro too.

Piece of cake!

April 4, 2009

How to permanently fix skype audio problem in Ubuntu

Filed under: user tipstricks — Antonio Portuesi @ 7:44 pm
Tags: , , , , , , , , , , ,

I just downloaded and tried the last Ubuntu beta release (9.04 – Jaunty Jackalope)
The first package I set up was skype 2.0, everything went great except for the audio call feature.
I adopted the same solution well known for the previous distro (8.04 – Intrepid Ibex) as well as you can do following the lines below:

user@pc:~$ killall pulseaudio

user@pc:~$ sudo apt-get remove pulseaudio

user@pc:~$ sudo apt-get install esound

user@pc:~$ sudo rm /etc/X11/Xsession.d/70pulseaudio

That’s all.

Reboot the system and get free calls with skype again.

March 7, 2009

How to add a user to the sudo list

Filed under: user tipstricks — Antonio Portuesi @ 11:16 pm
Tags: , , , , , , ,

When you set up Ubuntu or Kubuntu or some other Ubuntu-like distro, during the installation process it automatically will add the first user to the sudo group, allowing that user to make changes as the super user (aka root aka administrator if you come from Windows environment) by typing in the related password.
However, if you want to give someone else superuser privileges (please think on it) on your Linux system, you’ll have to give it a specific sudo access.

That is very easy to do. Just run:

user@pc:~$ sudo usermod -G admin username

That’s all!

If you prefer the graphic way of doing things, open System -> Administration -> Users and Groups.
Select the user you want to add to sudo, and click Properties.
Under the User privileges area, check the box “Executing system administration tasks” and you’ll be done.

December 13, 2008

How to find out who has a file open in Linux

Filed under: user tipstricks — Antonio Portuesi @ 1:28 pm
Tags: , , , , , , , , ,

How often do mounts and umounts operations fail because you cannot determine who or what is using that device? How many times can you not eject a DVD because someone or something has it still open? How many times have you experienced a file manager that keeps a directory open even after you have navigated out of that directory and clicked the refresh button several times?

Let’s use the fuser tool to find out soething useful for our purpose.

Example 1:

user@pc:~$ fuser -mu /home

/home:                5525c(user)  5601m(user)  5607c(user)  5614c(user)  5685c(user)  5739c(user)  5740c(user)  5742c(user)  5743cm(user)  5744cm(user)  5766m(user)  5778m(user)  5789c(user)  5795c(user)  5799c(user)  5801c(user)  5803cm(user)  5805cm(user)  5806m(user)  5921m(user)  6001cm(user)  6005cm(user)  6076(user)  9391cm(user)  9395c(user)

Example 2:

user@pc:~$ fuser -mu /media

/media:               5514rce(user)  5525re(user)  5586rce(user)  5587rce(user)  5593rce(user)  5595rce(user)  5601rce(user)  5604rce(user)  5607re(user)  5613rce(user)  5614re(user)  5617rce(user)  5685re(user)  5738rce(user)  5739re(user)  5740re(user)  5742re(user)  5743re(user)  5744re(user)  5747rce(user)  5757rce(user)  5759rce(user)  5762rce(user)  5766rce(user)  5772rce(user)  5778rce(user)  5789re(user)  5795re(user)  5799re(user)  5801re(user)  5803re(user)  5805re(user)  5806rce(user)  5811rce(user)  5921rce(user)  6001re(user)  6005re(user)  6032rce(user)  6071rce(user)  6076rce(user)  8712rce(user)  9391re(user)  9395re(user)

Now you get the owner and the related process id. For rurther information about a listed process you can research deeper using ps ax.

November 29, 2008

How to open files with gedit using the right click menu in Ubuntu

Filed under: user tipstricks — Antonio Portuesi @ 3:55 pm
Tags: , , , , , , , ,

Many times it could be useful to open and edit a file in a straightforward way with a mouse click without any further action.

Let’s open a terminal window and type in the following command, which will create a new script file in our nautilus scripts directory

user@pc:~$ gedit ~/.gnome2/nautilus-scripts/Open\ file\ with\ gedit

Write the following script lines:

filesall=””
while [ $# -gt 0 ]
do
files=`echo “$1″ | sed ‘s/ /\?/g’`
filesall=”$files $filesall”
shift
done
gedit $filesall&

Save the script and close gedit, then execute the already known command to make the script executable:

chmod u+x ~/.gnome2/nautilus-scripts/Open\ file\ with\ gedit

Now when you right click a file in gnome environment, you should see the related context menu item “Open file with gedit”

November 15, 2008

How to handle e2dk links with Firefox easily

Filed under: user tipstricks — Antonio Portuesi @ 5:29 pm
Tags: , , , , , ,

In most Linux systems, self-compiled aMule will install the ed2k utility in /usr/local/bin/ed2k, while package-installed aMule version will install it in /usr/bin/ed2k. SuSE packages put it in /usr/local/bin/ed2k.

Even if you installed Debian or Ubuntu distros you have to get “amule-utils” package to allow everything working properly.

Handling ED2k links in Firefox can be configured in two different ways: for an individual user or for all computer users as well.

Configuration for Firefox 2

  1. Open up your browser
  2. Write about:config in the address bar
  3. Right click on the list, select New, then Boolean
  4. Insert network.protocol-handler.external.ed2k as Preference Name and set Value to true
  5. Right click again, select New and String
  6. Insert network.protocol-handler.app.ed2k as Preference Name and set Value as /path/to/ed2k (path to where the file is installed on your linux box)

Configuration for Firefox 3

Follow the above todo list and:

7.  Right click on the list, select New, then Boolean, insert network.protocol-handler.expose.ed2k as Preference Name and set Value to false

After those steps, click an ed2k link, and Firefox should ask which application you want to use to open the same link. Choose /usr/local/bin/ed2k and it should work fine.

Next Page »

Create a free website or blog at WordPress.com.