in grub press "e" and again press "e" on the kernel boot line.
add to the end of the line : "init=/bin/bash"
Thursday, April 30, 2009
boot ubuntu into single user resque mode
Friday, April 24, 2009
Ubuntu 9.04 : enable Ctrl+Alt+Backspace
sudo apt-get install dontzap
sudo dontzap --disable
edit :
ubuntu 9.10 -
http://jasonmiazga.com/wordpress/?p=14
Tuesday, April 21, 2009
Configuring Novatel U530 in Ubuntu
follow the instructions in :
http://www.timberwolf.ukfsn.org/debian-orange-3g.html
Notes :
* The scripts are not left justified after copy paste - fix it
* Change the dialed number in the last script from :
OK-AT-OK 'ATD*99***3#'
To
OK-AT-OK 'ATD*99#'
* Disconnect the wifi before doing pon orange
Sunday, April 19, 2009
Fix Ubuntu Synaptic dosent display theme
http://tombuntu.com/index.php/2007/09/18/theme-applications-running-as-root-in-ubuntu/sudo ln -s ~/.themes /root/.themes
sudo ln -s ~/.icons /root/.icons
sudo ln -s ~/.fonts /root/.fonts
Friday, April 10, 2009
restore / repair / reset mysql root privileges
cat > restore_root_privileges.sql
update mysql.user set Super_priv='y' where user='root';
update mysql.user set Select_priv='y' where user='root';
update mysql.user set Insert_priv='y' where user='root';
update mysql.user set Update_priv='y' where user='root';
update mysql.user set Delete_priv='y' where user='root';
update mysql.user set Create_priv='y' where user='root';
update mysql.user set Drop_priv='y' where user='root';
update mysql.user set Reload_priv='y' where user='root';
update mysql.user set Shutdown_priv='y' where user='root';
update mysql.user set Process_priv='y' where user='root';
update mysql.user set File_priv='y' where user='root';
update mysql.user set Grant_priv='y' where user='root';
update mysql.user set References_priv='y' where user='root';
update mysql.user set Index_priv='y' where user='root';
update mysql.user set Alter_priv='y' where user='root';
update mysql.user set Show_db_priv='y' where user='root';
update mysql.user set Super_priv='y' where user='root';
update mysql.user set Create_tmp_table_priv='y' where user='root';
update mysql.user set Lock_tables_priv='y' where user='root';
update mysql.user set Execute_priv='y' where user='root';
update mysql.user set Repl_slave_priv='y' where user='root';
update mysql.user set Repl_client_priv='y' where user='root';
update mysql.user set Create_view_priv='y' where user='root';
update mysql.user set Show_view_priv='y' where user='root';
update mysql.user set Create_routine_priv='y' where user='root';
update mysql.user set Alter_routine_priv='y' where user='root';
update mysql.user set Create_user_priv='y' where user='root';
----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< -----
sudo /etc/init.d/mysql stop
sudo mysqld --skip-grant-tables &
mysql -vv < restore_root_privileges.sql
sudo /etc/init.d/mysql restart
mysql -u root -p
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;
mysql> quit;
(The password of the "debian-sys-maint" user is : sudo cat /etc/mysql/debian.cnf )
Thursday, April 9, 2009
Installing Ruby On Rails on Centos 4.5
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz
tar -zxvf ruby-1.8.7-p72.tar.gz
cd ruby-1.8.7-p72
./configure
make install
ruby -version
wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
tar -zxvf rubygems-1.3.1.tgz
cd rubygems-1.3.1
ruby setup.rb
gem install rails
cd /tmp
rails test
cd test
ruby script/server
lynx localhost:3000
gem install mysql -- --with-mysql-include=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql --with-mysql-config
wget http://dag.wieers.com/rpm/packages/libevent/libevent-1.3b-1.el4.rf.i386.rpm
rpm -ivh libevent-1.3b-1.el4.rf.i386.rpm
wget http://dag.wieers.com/rpm/packages/memcached/memcached-1.1.13-4.el4.rf.i386.rpm
rpm -ivh memcached-1.1.13-4.el4.rf.i386.rpm
/sbin/chkconfig --level 345 memcached on
/etc/init.d/memcached start
gem install memcache-client
Tuesday, April 7, 2009
Thursday, April 2, 2009
Grant mysql privileges to remote
mysql -u root -pmypass
mysql> grant all privileges on *.* to 'root'@'192.168.0.1' identified by 'mypass';
mysql> flush privileges;