Some Linux distribution, such as Ubuntu for instance, offer a specific boot menu entry where it is stated “Recovery Mode” or “Single-User Mode“. If this is your case, selecting this menu entry will boot your machine into single user mode, you can carry on with the next part. If not, you might want to read this part.
Using GRUB, you can manually edit the proposed menu entry at boot time. To do so, when GRUB is presenting the menu list (you might need to press ESC first), follow those instructions:
- use the arrows to select the boot entry you want to modify.
- press e to edit the entry
- use the arrows to go to kernel line
- press e to edit this entry
- at the end of the line add the word single
- press ESC to go back to the parent menu
- press b to boot this kernel
Step # 1 : Stop mysql service
#/etc/init.d/mysql stop
Output:
Stopping MySQL database server: mysqld.
Step # 2: Start to MySQL server w/o password:
#mysqld_safe --skip-grant-tables &
Output:
[1] 5988
Starting mysqld daemon with databases from /var/lib/mysql
mysqld_safe[6025]: started
Step # 3: Connect to mysql server using mysql client:
#mysql -u root
Output:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.15-Debian_1-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
Step # 4: Setup new MySQL root user password
mysql> use mysql;
mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit
Berikut lokasi Boot Grub pada Ubuntu LTS 10.04 Lucid Lynx
/boot/grub/grub.cfg
Check software version and the release number of your device:
*#0000#
See WLAN MAC address:
*#62209526#
See Bluetooth MAC address:
*#2820#
To hard reset and restore to factory settings:
*#7370# (default lock code is 12345)
See IMEI (International Mobile Equipment Identity) number:
*#06#
Check number where calls are diverted:
*#61#
Secara sederhana untuk setting squid proxy di ubuntu sebagai berikut:
Asumsi
LAN: eth1 dengan ip : 192.168.1.0/24
WAN: eth0 dengan ip: dari ISP
- Login sebagai root/sudoers
root@proxy:#
atau jika user sudah diset sbg sudoers
adnan@proxy:$ sudo -s
password: [passwd user adnan]
- Install squid
#apt-get install squid
- Buat direktori cache1 dan cache2 untuk menyimpan cache squid
langkah ini bisa ditiadakan jika anda menggunakan folder default dari squid
/var/spool/squid
(more..)