Showing posts with label Debian. Show all posts
Showing posts with label Debian. Show all posts


Grub2 bootloader ျပန္ထည့္နည္း

Restore GRUB2 after installing Windows

How I Restored GRUB2 after a Windows 7 Install. GRUB2 (Grand Unified Bootloader)  is a universal bootloader used by Ubuntu and other Linux Distributions. If you have a Linux Distribution installed on a partition, and attempt to  install Windows alongside it, your GRUB bootloader will be overwritten by the Windows bootloader, and your computer will only boot into Windows.
Recovering the GRUB2 Bootloader after a Windows Install  is simple. When finished, your Bootloader should detect all installed Operating Systems and automatically add a bootable menu item for each of them.
Note: This GRUB2 Installation process assumes that a Linux Partition still exists. If you overwrote Linux with Windows, this tutorial will not work for you, as there is no Linux system to recover boot.
How to Restore GRUB2 after installing Windows:
  1. Boot from an Ubuntu Live CD or Live USB
  2. Once up and running, Open a Terminal Open a Terminal
  3. Type sudo su (press enter after typing each command)
  4. Type fdisk -l Type sudo su and then fdisk -l
  5. Note which device contains your Linux partition (IE: /dev/sda1) Locate your Linux Device
  6. Type mount /dev/sdx# /mnt (replacing x# with your actual device and partition number)
  7. Type mount --bind /dev /mnt/dev
  8. Type mount --bind /proc /mnt/proc
  9. Type cp /etc/resolv.conf /mnt/etc/resolv.conf
  10. Type chroot /mnt mount and chroot
  11. Type grub-install --recheck /dev/sdx (replacing x with your actual device)
  12. Type reboot (to reboot your PC) Install grub 2 and reboot
Make sure to remove your Live USB or CD. Upon reboot you should be presented with a GRUB2 menu. However, Windows is missing. Now, I show you how to fix that.
Making GRUB 2 detect Windows Installs:
  1. Proceed to boot into your Linux environment.
  2. Open a terminal and type sudo update-grub (enter your root password when prompted) sudo update-grub
If all went well, grub should have updated it's menu entries to reflect what it detected. Including existing Windows partitions.
http://www.lancelhoff.com


Linux စာေမးပြဲေျဖဆုိခ်င္သူမ်ားအတြက္ ေလ့က်င့္ခန္း Exam





၁. Visual Cert Exam ကို ေဒါင္းၿပီး Extract လုပ္ထားပါ။
၂. ေလ့က်င့္စာေမးပြဲကိုပါေဒါင္းပါ။
၃. Visual Cert Exam Folder ထဲမွ VCE manager ကို run လိုက္ပါ။












Add ကို ႏွိပ္ပါ။


 Start ကိုႏွိပ္ၿပီးေလ့က်င့္ေျဖဆုိႏုိင္သည္။


Debian အတြက္ NVIDIA Driver

မွတ္ခ်က္။ ။ /etc/apt/sources.list တြင္ contrib non-free

ေအက္ပါစာကို text file copy paste လုပ္ၿပီး ယင္းဖုိင္ကို  name.sh ျဖင့္သိမ္းပါ။

sudo sh name.sh ျဖင့္ထည့္ပါ။

################################
 
#!/bin/bash
# NVIDIA-Installer-Squeeze
# Enrique Molina
#
# GNU Public License V.3
if [ $USER != root ]; then
echo "¡Is necessary be root!"
exit 0
fi
echo "[Add Repository] [Please Wait]"
sleep 2
#echo "deb http://ftp.debian.org/debian/ wheezy main contrib non-free" >> /etc/apt/sources.list
echo "[Update Repository]"
sleep 2
#aptitude update
#aptitude safe-upgrade
echo "[Installing Nvidia-Kernel-Module]"
sleep 2
VERSION=`uname -r`
aptitude install nvidia-kernel-$VERSION nvidia-glx
aptitude install nvidia-xconfig
nvidia-xconfig
echo "[Installing Nvidia-Settings]"
sleep 2
aptitude install nvidia-settings
echo "[Is necessary reboot to apply the changes]"
echo -n "[Do you want reboot now {y/n}]: " ; read var
case $var in
y)
reboot
;;
n)
exit
esac
 
################################


Autostart Application Debian

cd .config cd autostart (မရွိပါက sudo mkdir autostart)sudo nano pidgin.desktop (Pidgin ေနရာတြင္တျခား application ရဲ႕နံမည္ကို ထည့္ရန္)
 [Desktop Entry]
Type=Application
Exec=/usr/bin/pidgin
Hidden=false
X-GNOME-Autostart-enabled=true
Name[en_US]=pidgin
Name=empathy
Comment[en_US]=Multi protocol Chat client
Comment=Multi protocol chat client


Apache2 php5 phpmyadmin install လုပ္နည္း

Apache2 ထည့္ရန္
sudo apt-get install apache2

php5 ကိုထည့္ရန္
sudo apt-get install php5 libapache2-mod-php5

sudo /etc/init.d/apache2 restart

ဖုိင္းကိုဖြင့္ၿပီးedit လုပ္ရန္
sudo gedit /var/www/phpinfo.php

ယင္းဖုိင္ထဲတြင္ ေရးၿပီးသိမ္းရန္။

Mysql ကိုထည့္ရန္။

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

Phpmyadmin ကိုထည့္ရန္

sudo apt-get install phpmyadmin

sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

sudo /etc/init.d/apache2 restart

sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf.d