Linux.com

Home Linux Community Community Blogs

Community Blogs



Convert 3GP to AVI (from smartphone to PC or YouTube)

Now after my post on how to create a video and sending it to YouTube I'd like to show basic steps when dealing with videos generated from a Smartphone.

As you may already know nowadays smartphones are able to create .3GP files, don't matter about the platform (Android, iOS, BlackBerry OS, Symbian). And even better, if you need to upload your videos directly to YouTube you don't even need to worry about them or convert from .3GP to something else, YouTube converts your videos for you, you just need to wait a while before their processing queue takes your video off and translate it to the .ogv file.

But if you don't want to wait and you'd like to have your videos publicly available instantly you'd better upload an AVI file to YouTube, because when you upload an AVI to YouTube they'll process your video immediately. You can apply the same procedure if you'd like to download a video from your smartphone to your computer and play it with a common media player program (or send it by email, etc...)

If you've read my previous post you may notice the same conversion method, in fact here it is:

ffmpeg -threads 2 -i
filefromyourphone.3gp -f avi -r 29.97 -vcodec libxvid -vtag XVID -s
1024x768 -aspect 4:3 -maxrate 1800kb -b 1500kb -qmin 3 -qmax 5
-bufsize 4096 -mbd 2 -bf 2 -flags +4mv -trellis -aic -cmp 2 -subcmp 2
-g 300 -acodec libmp3lame -ar 48000 -ab 128kb -ac 2
fileonpc.avi


Just change output resolution (1024x768 in my case) to whatever you want and you'll have your new AVI (or free format) file on PC, just change filename and extension to convert it to whatever you like (OGV, MPG, …)

 

In the beginning I was against ffmpeg due to its surreal parameters and complexity but now I'm using it for everything

 

Hope it helps

Ben

 

 

Postgres 9.0.1 compile and install on Ubuntu 10.04 64 bit server

Postgres 9.0.1 compile and install on Ubuntu 10.04 64 bit server

That which we expected to be Postgres 8.5 is out and it is called Postgres 9.0. The odds are that it will be frequently used on Ubuntu 10.04 but there is no package in the repository. So, what would one bored programmer who is using Ubuntu at home do about it?

  1. Install RPM based distro since RPM's are available for download – no, I do not think so.

  2. Go to Martin Pitt's PPA (https://launchpad.net/~pitti/+archive/postgresql) and install his backports? Well, kind of OK for a lazy or not very ambitious Linux user.

  3. Point the browser to http://www.postgresql.org/ftp/source/v9.0.1/, download source and build your own Postgres 9.0.1. That sounds like fun.

Environment

Since we do not want to make Postgres 9.0.1 on our desktop which already has installed Postgres 8.4 with tons of important work in it, we will pull out one clean VM. I am using libvirt and virt-manager (what one can install from repository) and it allows me painless VM management.

virt-manager

All machine settings are default. During install we use defaults and select to install OpenSSH server. After fresh install we do the common stuff:



sudo apt-get update

sudo apt-get upgrade

sudo apt-get install landscape-common linux-headers-server linux-image-server linux-server

sudo reboot

sudo apt-get autoremove



Last instruction was to remove old boot images. Now we need a compiler and build environment:



sudo apt-get install build-essential libreadline6-dev zlib1g-dev



Build and test



Thanks to SSH we can connect to the remote server and simply copy and paste source to home folder. Since I downloaded postgresql-9.0.1.tar.bz2 I used:



tar xjvf postgresql-9.0.1.tar.bz2



Those who downloaded postgresql-9.0beta1.tar.gz will use different switches:



tar zxvf postgresql-9.0beta1.tar.gz



Now is a good time to cd into source folder and check what README and INSTALL say.

So, following instructions from INSTALL we cd to source folder, this time from terminal, and do the following:



./configure

make

sudo make install



This will take some time. I didn't encounter any problems during build and I do not think that anybody else will. Again, following suggestions from INSTALL we create postgres user and data directory:



sudo adduser postgres

sudo mkdir /usr/local/pgsql/data

sudo chown postgres /usr/local/pgsql/data



All important Postgres configuration files, like postgresql.conf and pg_hba.conf will be in data folder. That is different from Postgres 8.4 where /etc/postgresql/8.4/main is the place where we find postgresql.conf.

Now we can impersonate postgres, create those config files and start the server:



sudo su postgres

/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

/usr/local/pgsql/bin/pg_ctl start -D /usr/local/pgsql/data

exit



Last line could be improved:



/usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 &



Back into postgres account, now we may add Postgres binaries to PATH variable:



PATH=$PATH:/usr/local/pgsql/bin

export PATH



We are ready to test:



psql postgres



and there we do our SQL statements



postgres=# create database mydb1;

CREATE DATABASE

postgres=# drop database mydb1;

DROP DATABASE

postgres=# q



to stop database we do:



/usr/local/pgsql/bin/pg_ctl stop -D /usr/local/pgsql/data



Still impersonating postgres, which concludes our test.

If you want to connect remotely to database, config files are in /usr/local/pgsql/data. In postgres.conf locate the following line:



#listen_addresses = 'localhost'# what IP address(es) to listen on;



and add what IP it should listen to, * is for all:



listen_addresses = '*'# what IP address(es) to listen on;



Do not forget to uncomment. Similarly, in pga_hb.conf append something like:



host all all 192.168.122.0 255.255.255.0 md5



Start postgres and you can connect using pgAdmin. The one that comes with Postgres 8.4 will complain that version 9 is not supported and report an error:



ERROR: column "datconfig" does not exist at character 76



Finally we are connected, but with limited usability.

pgAdmin

So to do something useful with pgAdmin we need to build one or use one from Martin's PPA.

Instead of conclusion

This was a simple and fulfilling task which didn't require some exceptional effort. Now, when we have Postgres 9.0.1 we may check pgpool II. Naturally, if and when I find time for it. Ishii-san published a nice tutorial here http://pgpool.projects.postgresql.org/contrib_docs/simple_sr_setting/index.html you may wish to take a look in the meantime.

 

 

 

 

If banking were more Open Source, we would need less Wikileaks

The world economic crisis is due for a good part to insufficient transparency in banks. Wikileaks next document drop may target banks. In the meantime, here is a FOSS project that's trying to solve those bank problems in a way that may make Wikileaks less necessary: OpenBank.

 

Linux Video - Part2 VGA Configuration

 

Explanation


In this article I am using VGA mode to reference to the command line graphic capabilities, when in fact the video system is called the Linux frame-buffer, the reason for this use of terms is to help new users since most configurations use the VGA flags to set the frame-buffer mode to use.
 
The frame-buffer system in Linux based systems is used to pass a video mode to your kernel on boot, which is generally used set your monitor's resolution for boot-loaders and CLI (Command Line interface) mode. Although the uses are limited, many users can find reasons to modify the frame-buffer mode and resolution including wanting to view more lines and character on the screen when in CLI Mode.
 
Your options for setting the VGA mode are limited because of the limited uses. You are limited to setting the mode in the configuration file for your chosen bootloader. In this post we will discuss the available modes and how to set them in lilo, grub legacy and grub2.

 

 

Supported Drivers

In most cases the vesafb driver is used in the kernel for frame-buffer support, but in rare cases on specific video cards and chipsets, you may need to use another frame-buffer driver. The alternate drivers will not be covered here, but if you need assistance with those you can visit the tldp.prg page on frame-buffer drivers (http://tldp.org/HOWTO/frame-buffer-HOWTO/x168.html) or ask on the Linux.com forum.

 

 

Frame-Buffer Modes

When choosing a frame-buffer mode to use, you will have values to consider, the color depth, and the resolution. You will need to choose the correct value to correspond with your desired parameters and to support your video card and monitor.
Listed below are the VGA values as they correspond to the color depth and resolution:

  • 8 bit - 256 colors
    • 1024x768 = 773
    • 1152x864 = 353
    • 1280x1024 = 775
    • 1600x1200 = 796
  • 16-bit - 65,536
    • 1024x768 = 791
    • 1152x864 = 355
    • 1280x1024 = 794
    • 1600x1200 = 798
  • 32-bit - 16.8 million colors
    • 1024x768 = 792
    • 1152x864 = 356
    • 1280x1024 = 795
    • 1600x1200 = 799
  • 64-bit
    • 800x600 = ?
    • 1024x768 = 791
    • 1152x864 = ?
    • 1280x1024 = ?
    • 1600x1200 = ?

As you may have noticed I left some designations out because I have seen references to the modes being used, but could not locate the specific values necessary for the bootloaders to use, if you know of any missing values please share them in the comments.

 

 

Configuring lilo


The legacy lilo bootloader is not used by many distros anymore, but it very simple to configure and fast, so it still has a place in modern distros.
 
It is very simple to set the frame-buffer modes in Lilo, to pass the chosen frame-buffer mode to the kernels in all installed Linux/Unix-like operating systems, or you can choose specific values to pass to specific installed operating systems.
 
To set the frame-buffer mode for lilo to use and to pass to your OS kernels you need to do the following:

  1. Open the file /etc/lilo.conf with admin rights in yli>our favorite text editor
  2. Find the OS you wish to pass the option to, for example OS configuration set would be:
    image = /boot/vmlinuz
      root = /dev/sda6
      label = Slackware-safe
      read-only
  3. In the image line, which identified the kernel to use, add vga={chosen mode} on the end of the line, such as:
    image = /boot/vmlinuz vga=791
      root = /dev/sda6
      label = Slackware-safe
      read-only
  4. Don't forget to run the command lilo from the command line once the modifications are complete to write the modified bootloader configuration to the MBR.

You can find additional information pertaining to lilo options at http://linux.die.net/man/5/lilo.conf.

 

 

Configuring grub(legacy)


Grub(legacy) is not being used by many distros anymore because a new version (grub2) has been released which caused development to stop on the old version, but for those that prefer the old configuration method it is still an available option.
 
To set the frame-buffer mode for grub to use and pass to your OS kernels you need to do the following:

  1. Open /boot/grub/menu.lst as the admin user in your favorite text editor
  2. Locate the OS which you would like to modify, an example from one of my configurations is below:
      title Slack64-current
      root (hd0,1)
      kernel /boot/s64-c/vmlinuz-generic root=/dev/sdb6 ro
      initrd /boot/s64-c/initrd.gz
  3. Add the vga={chosen mode} option to the end of the kernel line of the chosen operating system, such as:
      title Slack64-current
      root (hd0,1)
      kernel /boot/s64-c/vmlinuz-generic root=/dev/sdb6 ro vga=791
      initrd /boot/s64-c/initrd.gz
  4. Save the menu.lst file

 

 

Configuring Grub2


Grub2 is the current version of the grub bootloader and is quickly obtaining approval from several distros. Grub2 is currently under development in which your distro will be receiving regular updates which may risk overwriting your custom configuration file, so be careful.
 
To set the frame-buffer mode for grub2 to use and pass to your OS kernels you need to do the following:

  1. Open the file /etc/default/grub with admin rights in your favorite text editor.
  2. In any line before _?_ add the line "GRUB_GFXMODE={resolution}x{color depth}", the color depth is optional, so to set grub to 1024x768 you can enter "GRUB_GFXMODE=1024x768" or to set it to 32-bit mode (16.8 million colors) you can enter "GRUB_GFXMODE=1024x768x32". You can also enter multitple modes separated by a comma.
  3. Optional: Enter "GRUB_GFXPAYLOAD_LINUX=keep" in the configuration file to tell the bootloader to push the chosen setting to the operating system kernels.
  4. Save the file and run the command update-grub to append the changes to the bootloader.

To set the frame-buffer mode for grub2 to pass to a specific OS kernel you need to do the following:

  1. Open the file /etc/lilo.conf with admin rights in your favorite text editor ind the OS you wish to pass the option to, an example of an OS configuration set would be:
    title     Start BackTrack frame-buffer (1024x768)
    kernel    /boot/vmlinuz BOOT=casper boot=casper rw quiet
    initrd    /boot/initrd.gz
  2. In the image line, which identified the kernel to use, add vga={chosen mode} on the end of the line, such as:
    title     Start BackTrack frame-buffer (1024x768)
    kernel    /boot/vmlinuz BOOT=casper boot=casper rw quiet vga=791
    initrd    /boot/initrd.gz

If you have any issues implementing any of the instructions above please post your issues as a comment and I will try to assist you through your issues.

 

Save as WWF? No thanks, I already use Linux

A few days ago WWF launched a new file format that should help save the environment... but doesn't support Linux, the most environment-friendly OS there is. Please boycott that format!

 

Useful Mysql Commands

To login (from unix shell) use -h only if needed.

# [mysql dir]/bin/mysql -h hostname -u root -p

Create a database on the sql server.

mysql> create database [databasename];

List all databases on the sql server.

mysql> show databases;

Switch to a database.

mysql> use [db name];

To see all the tables in the db.

mysql> show tables;

To see database's field formats.

mysql> describe [table name];

To delete a db.

mysql> drop database [database name];

To delete a table.

mysql> drop table [table name];

Show all data in a table.

mysql> SELECT * FROM [table name];

Returns the columns and column information pertaining to the designated table.

mysql> show columns from [table name];

Show certain selected rows with the value "whatever".

mysql> SELECT * FROM [table name] WHERE [field name] = "whatever";

Show all records containing the name "Bob" AND the phone number '3444444'.

mysql> SELECT * FROM [table name] WHERE name = "Bob" AND phone_number = '3444444';

Show all records not containing the name "Bob" AND the phone number '3444444' order by the phone_number field.

mysql> SELECT * FROM [table name] WHERE name != "Bob" AND phone_number = '3444444' order by phone_number;

Show all records starting with the letters 'bob' AND the phone number '3444444'.

mysql> SELECT * FROM [table name] WHERE name like "Bob%" AND phone_number = '3444444';

Show all records starting with the letters 'bob' AND the phone number '3444444' limit to records 1 through 5.

mysql> SELECT * FROM [table name] WHERE name like "Bob%" AND phone_number = '3444444' limit 1,5;

Use a regular expression to find records. Use "REGEXP BINARY" to force case-sensitivity. This finds any record beginning with a.

mysql> SELECT * FROM [table name] WHERE rec RLIKE "^a";

Show unique records.

mysql> SELECT DISTINCT [column name] FROM [table name];

Show selected records sorted in an ascending (asc) or descending (desc).

mysql> SELECT [col1],[col2] FROM [table name] ORDER BY [col2] DESC;

Return number of rows.

mysql> SELECT COUNT(*) FROM [table name];

Sum column.

mysql> SELECT SUM(*) FROM [table name];

Join tables on common columns.

mysql> select lookup.illustrationid, lookup.personid,person.birthday from lookup left join person on lookup.personid=person.personid=statement to join birthday in person table with primary illustration id;

Creating a new user. Login as root. Switch to the MySQL db. Make the user. Update privs.

# mysql -u root -p
mysql> use mysql;
mysql> INSERT INTO user (Host,User,Password) VALUES('%','username',PASSWORD('password'));
mysql> flush privileges;

Change a users password from unix shell.

# [mysql dir]/bin/mysqladmin -u username -h hostname.blah.org -p password 'new-password'

Change a users password from MySQL prompt. Login as root. Set the password. Update privs.

# mysql -u root -p
mysql> SET PASSWORD FOR 'user'@'hostname' = PASSWORD('passwordhere');
mysql> flush privileges;

Recover a MySQL root password. Stop the MySQL server process. Start again with no grant tables. Login to MySQL as root. Set new password. Exit MySQL and restart MySQL server.

# /etc/init.d/mysql stop
# mysqld_safe --skip-grant-tables &
# mysql -u root
mysql> use mysql;
mysql> update user set password=PASSWORD("newrootpassword") where User='root';
mysql> flush privileges;
mysql> quit
# /etc/init.d/mysql stop
# /etc/init.d/mysql start

Set a root password if there is on root password.

# mysqladmin -u root password newpassword

Update a root password.

# mysqladmin -u root -p oldpassword newpassword

Allow the user "bob" to connect to the server from localhost using the password "passwd". Login as root. Switch to the MySQL db. Give privs. Update privs.

# mysql -u root -p
mysql> use mysql;
mysql> grant usage on *.* to bob@localhost identified by 'passwd';
mysql> flush privileges;

Give user privilages for a db. Login as root. Switch to the MySQL db. Grant privs. Update privs.

# mysql -u root -p
mysql> use mysql;
mysql> INSERT INTO db (Host,Db,User,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Drop_priv) VALUES ('%','databasename','username','Y','Y','Y','Y','Y','N');
mysql> flush privileges;
or
mysql> grant all privileges on databasename.* to username@localhost;
mysql> flush privileges;

To update info already in a table.

mysql> UPDATE [table name] SET Select_priv = 'Y',Insert_priv = 'Y',Update_priv = 'Y' where [field name] = 'user';

Delete a row(s) from a table.

mysql> DELETE from [table name] where [field name] = 'whatever';

Update database permissions/privilages.

mysql> flush privileges;

Delete a column.

mysql> alter table [table name] drop column [column name];

Add a new column to db.

mysql> alter table [table name] add column [new column name] varchar (20);

Change column name.

mysql> alter table [table name] change [old column name] [new column name] varchar (50);

Make a unique column so you get no dupes.

mysql> alter table [table name] add unique ([column name]);

Make a column bigger.

mysql> alter table [table name] modify [column name] VARCHAR(3);

Delete unique from table.

mysql> alter table [table name] drop index [colmn name];

Load a CSV file into a table.

mysql> LOAD DATA INFILE '/tmp/filename.csv' replace INTO TABLE [table name] FIELDS TERMINATED BY ',' LINES TERMINATED BY ' ' (field1,field2,field3);

Dump all databases for backup. Backup file is sql commands to recreate all db's.

# [mysql dir]/bin/mysqldump -u root -ppassword --opt >/tmp/alldatabases.sql

Dump one database for backup.

# [mysql dir]/bin/mysqldump -u username -ppassword --databases databasename >/tmp/databasename.sql

Dump a table from a database.

# [mysql dir]/bin/mysqldump -c -u username -ppassword databasename tablename > /tmp/databasename.tablename.sql

Restore database (or database table) from backup.

# [mysql dir]/bin/mysql -u username -ppassword databasename < /tmp/databasename.sql

Create Table Example 1.

mysql> CREATE TABLE [table name] (firstname VARCHAR(20), middleinitial VARCHAR(3), lastname VARCHAR(35),suffix VARCHAR(3),officeid VARCHAR(10),userid VARCHAR(15),username VARCHAR(8),email VARCHAR(35),phone VARCHAR(25), groups VARCHAR(15),datestamp DATE,timestamp time,pgpemail VARCHAR(255));

Create Table Example 2.

mysql> create table [table name] (personid int(50) not null auto_increment primary key,firstname varchar(35),middlename varchar(50),lastnamevarchar(50) default 'bato');

 

FTP file transfer with an automated bash script

This is a really quick blog post, I don't wanna bother you with a complete article related to FTP, this morning I've had to automate a batch job, this job needs to transfer local data to a remote FTP server here's what I've done:

#!/bin/bash
HOST='your.ftp.site'
USER='remoteusername'
PASSWD='remotepasswd'

ftp -n -v $HOST << EOT
ascii
user $USER $PASSWD
prompt
cd upload
ls -la
bye
EOT

The script automatically connects to a remote server "your.ftp.site" with a defined username/password pair (remoteusername, remotepasswd) and execute some commands in the middle, in my case :

cd upload
ls -la

but of course you can customize with your own commands

This is not a tech article and not even something cool, just useful as a quick tip for a newbie, hope it helps..

 

Ben

 

How should we manage the Vendola-Puglia-Microsoft deal? | Stop

The same Italian Region that last week signed an official partnership with Microsoft will issue a law about Open Source this week. Thoughs and suggestion on how to do damage control are very welcome

 

Installing Adobe Flashplayer 10.2 for 32bit/64bit Maveric Meerkat 10.10

Ok, as 10.10 officially made its way to the public, excitement is high in anticipation to see what the gurus at canonical have cooked up this time. 10.10, delivers improvement to 10.04. However we don't know what did 10.10 improve. Could it be that they did mention it and we missed the intell, or canonical letf it up to us to find out. Questions, assumptions, my conclusion, lets just see what it can do.

First off I am anxious  to how well 10.10 plays online media and its ability to decode media files, like .wma and .mp3. My first attempt, install adobe 10.2.

I did some google search( should try to use bing more often ), and quickly found some information on adobe flashplayer installation. It was quit easy.

In the CLI type:

sudo add-apt-repository ppa:sevenmachines/flash

after that repository addition, which completed rather quickly, type

sudo apt-get update

Once that is complete, type

sudo apt-get install flashplugin64-nonfree

Once this is completed, flash should be installed. However, I ran into a problem, Flashplugin64-nonfree could not be found. A few hacks were performed, and I realized flash had been install after the update. This was brought to my attention after the system recommended I install flashplugin-installer.

sudo apt-get install flashplugin-installer

The procedure was attempted, and that's when I noticed ubuntu already installed flash. Next, went to youtube and played one of my favorite songs. Everything worked like a charm.

Reference link: http://tutorial.downloadatoz.com/ubuntu-10-10-guide-how-to-install-adobe-flash-10-2-preview-version.html

 

 

HOWTO MySQL: Reset root password

Few days ago I've had in front of me a Gentoo installation with a MySQL Daemon, no documentation provided with the machine and absolutely no root password for the DB. I've tried to obtain the root password for MySQL and that's what I've done. These instructions are valid for every linux distro, no matter about the release or flavor.

First of all, you need to stop mysql daemon and all running instances of mysql, something like that:

~# /etc/init.d/mysql stop
* Stopping mysql ...
* Stopping mysqld (0)                                                    [ ok ]

Starting/stopping services may vary according to your linux distribution documentation, make a double check to remove even zombie processes or mysql opened instances (ps aex|grep mysql) and kill them if any

Now you can run this command to start the daemon with full privileges and no authentication:

mysqld_safe --skip-grant-tables &

Even if not reported in the man page or not documented with:

~# mysqld_safe --help
Usage: /usr/bin/mysqld_safe [OPTIONS]
  --no-defaults              Don't read the system defaults file
  --defaults-file=FILE       Use the specified defaults file
  --defaults-extra-file=FILE Also use defaults from the specified file
  --ledir=DIRECTORY          Look for mysqld in the specified directory
  --open-files-limit=LIMIT   Limit the number of open files
  --core-file-size=LIMIT     Limit core files to the specified size
  --timezone=TZ              Set the system timezone
  --mysqld=FILE              Use the specified file as mysqld
  --mysqld-version=VERSION   Use "mysqld-VERSION" as mysqld
  --nice=NICE                Set the scheduling priority of mysqld
  --skip-kill-mysqld         Don't try to kill stray mysqld processes
  --syslog                   Log messages to syslog with 'logger'
  --skip-syslog              Log messages to error log (default)
  --syslog-tag=TAG           Pass -t "mysqld-TAG" to 'logger'

All other options are passed to the mysqld program.

you can find more info on it at http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html (wish to have this link or just read the doc before doing it...)

Now enter in the DB with root privileges:

mysql -u root

and locate mysql default schema

use mysql;

"user" table is where you can find/reset/update information related to mysql users (not that strange...)

mysql> show columns from user;
+-----------------------+-----------------------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------------+-----------------------------------+------+-----+---------+-------+
| Host | char(60) | NO | PRI | | |
| User | char(16) | NO | PRI | | |
| Password | char(41) | NO | | | |
| Select_priv | enum('N','Y') | NO | | N | |
| Insert_priv | enum('N','Y') | NO | | N | |
| Update_priv | enum('N','Y') | NO | | N | |
| Delete_priv | enum('N','Y') | NO | | N | |
| Create_priv | enum('N','Y') | NO | | N | |
| Drop_priv | enum('N','Y') | NO | | N | |
| Reload_priv | enum('N','Y') | NO | | N | |
| Shutdown_priv | enum('N','Y') | NO | | N | |
| Process_priv | enum('N','Y') | NO | | N | |
| File_priv | enum('N','Y') | NO | | N | |
| Grant_priv | enum('N','Y') | NO | | N | |
| References_priv | enum('N','Y') | NO | | N | |
| Index_priv | enum('N','Y') | NO | | N | |
| Alter_priv | enum('N','Y') | NO | | N | |
| Show_db_priv | enum('N','Y') | NO | | N | |
| Super_priv | enum('N','Y') | NO | | N | |
| Create_tmp_table_priv | enum('N','Y') | NO | | N | |
| Lock_tables_priv | enum('N','Y') | NO | | N | |
| Execute_priv | enum('N','Y') | NO | | N | |
| Repl_slave_priv | enum('N','Y') | NO | | N | |
| Repl_client_priv | enum('N','Y') | NO | | N | |
| Create_view_priv | enum('N','Y') | NO | | N | |
| Show_view_priv | enum('N','Y') | NO | | N | |
| Create_routine_priv | enum('N','Y') | NO | | N | |
| Alter_routine_priv | enum('N','Y') | NO | | N | |
| Create_user_priv | enum('N','Y') | NO | | N | |
| ssl_type | enum('','ANY','X509','SPECIFIED') | NO | | | |
| ssl_cipher | blob | NO | | NULL | |
| x509_issuer | blob | NO | | NULL | |
| x509_subject | blob | NO | | NULL | |
| max_questions | int(11) unsigned | NO | | 0 | |
| max_updates | int(11) unsigned | NO | | 0 | |
| max_connections | int(11) unsigned | NO | | 0 | |
| max_user_connections | int(11) unsigned | NO | | 0 | |
+-----------------------+-----------------------------------+------+-----+---------+-------+
37 rows in set (0.00 sec)

Now update your password with something like that:

update user set password=PASSWORD("rememberyournewpassword") where User='root';

And don't forget to flush privileges to have everything updated

flush privileges;

and quit from DB

quit;

then stop/kill the running daemon and restart it in "normal" mode

/etc/init.d/mysql stop
## Even stop running daemons if any
ps aex |grep mysqld # to find sockets
kill -SIGKILL <pid> # to kill running mysqld pid's

Now test your new password with something like that

mysql --host=127.0.0.1 --user=root -p

and insert your new password

 

that's it

Ben

 

 

Acer Aspire 4745 is not getting configured with Ubuntu 10.04

Acer Aspire 4745        AcerDear friends,

I did a grave mistake, by purchasing Acer Aspire 4745 with out primary investigation. I am Linux user especially with Ubuntu. I have been using this for the past 4 years. I installed it many laptops like Compaq, Dell, Acer, and etc. I was having Acer Aspire 5920Ubuntu was configured excellently and there was no problem at anytime. In fact, it was my Linux laboratory. But I am suffering a lot with the present model. The problems are;

  • the battery is not properly configured, the applet at top-panel is missing, even if I add it from 'add to panel' option it appears but not responding to the battery changes.
  •  the gnome-sound-recorder is not working, I could not record any thing with the help of default sound recorder. But I could record sound with the help of microphone in Windows 7 (which came factory loaded) with my laptop.

other than above two all remaining things are good. But you know these two are very much important, and very most is the batter, I don't know when my laptop shutdown, this is the highest insult to me.

You know it is not Acer mistake, it is purely my mistake, I must have done little research before purchasing it.

 
Page 18 of 122

Upcoming Training Courses

  1. LF411 Embedded Linux Development
    24 Jun » 28 Jun - Silicon Valley
    Details
  2. LF331 Developing Linux Device Drivers
    05 Aug » 09 Aug - Virtual
    Details
  3. LF320 Linux Kernel Internals and Debugging
    12 Aug » 16 Aug - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board