NamHuy

Linux tips and tricks

  • Home
  • About
    • Copyright
    • Privacy Policy
    • Links
  • Archives

HOWTO: Recording audio cds with K3b

By Huy Tran on March 9, 2009

k3b cannot deal with mp3 files by default in Ubuntu Edgy Eft.
If you need to produce an audio cd by adding mp3 files with k3b, you’ll need to install the following package:
sudo apt-get install libk3b2-mp3
and you are done!!

Posted in Linux, Open Source, Tips - Tricks, Ubuntu | Tagged k3b, mp3, Ubuntu | Leave a response

HowTo Ubuntu 8.10 64bit and Areca 6.2 (6.1) java Backup Utility

By Huy Tran on February 17, 2009

1) Go to Synaptic and install

libswt-cairo-gtk-3.4-jni
libswt-gnome-gtk-3.4-jni
libswt-gtk-3.4-java
libswt-gtk-3.4-jni
libswt-mozilla-gtk-3.4-jni

2) cd /usr/lib/jni

cp the files:

libswt-atk-gtk-3448.so
libswt-cairo-gtk-3448.so
libswt-gtk-3448.so
libswt-pi-gtk-3448.so
libswt-awt-gtk-3448.so
libswt-gnome-gtk-3448.so
libswt-mozilla-gtk-3448.so

to the areca/lib folder with names in order of appearance:

libswt-atk-gtk-3232.so
libswt-cairo-gtk-3232.so
libswt-gtk-3232.so
libswt-pi-gtk-3232.so
libswt-awt-gtk-3232.so
libswt-gnome-gtk-3232.so
libswt-mozilla-gtk-3232.so

overwriting the original ones ;) .

3) the files:

org.eclipse.swt.gtk.linux.x86_3.2.0.v3232m.jar
org.eclipse.jface_3.2.0.I20060605-1400.jar

come from an eclipse installation actually, so if you don’t have eclipse,
download it and:

cd eclipse/plugins

and cp the org.eclipse.swt.gtk.linux.x86_64_3.4.1.v3449c.jar
into areca/lib org.eclipse.swt.gtk.linux.x86_3.2.0.v3232m.jar

and cp org.eclipse.jface_3.4.1.M20080827-2000.jar to areca/lib
org.eclipse.jface_3.2.0.I20060605-1400.jar

overwriting the original ones.

Now, the file libarecafs.so surprise, surprise is a 32 bit one, so I compiled the 64bit one.
With the 32bit one, you’ll get a couple of warnings:

09-01-22 20:44 – WARNING – com.myJava.file.metadata.posix.jni.JNIMetaDataAccessor cannot be used on this system. Got the following error : “java.lang.UnsatisfiedLinkError : /home/jordilin/areca/lib/libarecafs.so: /home/jordilin/areca/lib/libarecafs.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)”
09-01-22 20:44 – WARNING – [com.myJava.file.metadata.posix.jni.JNIMetaDataAccessor] not validated. The default metadata accessor will be used instead.

4) ./areca.sh
5) done

Note. I tested this using 6.2 pre-release, but using 6.1 should be the same.

Posted in Linux, Open Source, Tips - Tricks, Ubuntu | Tagged areca, backup, java, Ubuntu | Leave a response

Ubuntu Linux: How to Install Flash Player for firefox

By Huy Tran on September 27, 2008

Install Flash Player For Ubuntu Linux

Type the following command to install flash player:

$ sudo apt-get install flashplugin-nonfree

Now flash player should be working. Visit youtube or any other site to view flash content.

Posted in Firefox, Linux, Open Source, Tips - Tricks, Ubuntu | Tagged flash player, install | Leave a response

add delete and switch user in ubuntu by command lines

By Huy Tran on April 20, 2008

First, I want to add a user. So how to do it?

+ To add user:

sudo adduser <username>

to add password for your user

sudo passwd <username>

+ How can i switch from one user to another one? In this example, i want to switch from one user to another one.

su <username>

and type in your password to login

after that, you will be at a ‘$’ prompt. type:

bash

to get to a normal prompt.

+ How can I delete a user?

sudo userdel <username>

Posted in Linux, Open Source, Tips - Tricks, Ubuntu | Tagged add, command, delete, sudo, switch, Ubuntu, user | Leave a response

Terminal or shell command to shutdown or reboot Ubuntu Linux

By Huy Tran on February 9, 2008

So how do you shutdown or reboot Ubuntu Linux from a terminal or a shell prompt? If GUI is working you can always click on a Quit button. If GUI is not working or if you are working remotely over ssh type the following command:


To shutdown / poweroff Ubuntu Linux

Type the command:

sudo halt

OR

sudo shutdown -h now

OR

sudo shutdown -r now

OR

sudo init 6

To reboot Ubuntu Linux

Type the command:

sudo reboot

More information can be found about these two commands by typing following commands (man page):

man reboot
man shutdown

Posted in Linux, Open Source, Software, Ubuntu | Tagged command, Linux, reboot, shell, shutdown, terminal, Ubuntu | Leave a response

« PreviousNext »

Search

Categories

  • Firefox
  • Open Source
    • Linux
      • Ubuntu
  • Security
  • Software
  • Tips – Tricks

Tags

add areca backup command computer cpu CVS server delete dvds firewall flash flash player Gutsy Gibbon howto install IP iptables java k3b Linux memory monitor mp3 network nmap player programs rar reboot Security server service shell shutdown sudo switch telnet terminal tips traceroute tricks Ubuntu upgrading usage user

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Copyright © 2010 NamHuy.

Powered by WordPress.