Tutorial: How To transfer your Linux system to a new hard drive...
Quote:Materials
- Old drive (duh)
- New drive
- Linux install disc (any live cd will do, I just happened to use that as it was the first bootable Linux CD I found)
- A bit of time
Procedure
1) Hook up new drive. I used secondary master, hdc.
2) Reboot into the live CD, this saves complications of dynamic directories and such.
3) Partition the drive with cfdisk or equivalent. Make sure you set up the same partition layout as previously. I had a 20GB drive to work with, so I created 1.5gb for / (partition 1), 256mb swap (partition 2), and 18gb for server data (partition 3).
This mirrored my existing setup, the only difference being that the new partitions were much larger.
4) Time to format (reiserfs, for example):
mkreiserfs /dev/hdc1
mkswap /dev/hdc2
mkreiserfs /dev/hdc3
5) Mount the root partitions:
mkdir /mnt/old
mount /dev/hda1 /mnt/old
mkdir /mnt/new
mount /dev/hdc1 /mnt/new
6) Copy the old partition onto the new one:
cp --recursive --verbose /mnt/old/bin /mnt/new/bin
7) Get a drink, take a walk, etc. This is going to take a while.
Repeat steps 5-7 as needed for other partitions. For example, to copy your /home on hda5 to hdb5:
mount /dev/hda1 /mnt/old/home
cp --recursive --verbose /mnt/old/home /mnt/new/home
9) Once it's finished, check out the new fstab:
vi /mnt/new/etc/fstab
10) Verify that all the partitions are still arranged how you want them set up.
11) Run lilo on the new drive to make it bootable (for Grub support, go here):
chroot /mnt/new
/sbin/lilo
exit
12) If all went well, you should be able to shut down, swap the new hard drive into the position of the old one, and boot into your much roomier new hard drive.
Source:
http://www.openaddict.com/page.php?4
Internet via Mobile GPRS & Bluetooth in Opensuse 10.2 (KDE)
1.Connect ur mobile to ur PC with kbluetoothd (BT obex server) using and pair it...
2.open KONSOLE and login as root (su)
3.Type
Code:
# sdptool search DUN
if it detects any DUN services than it means that ur fone is enabled to be connected thru BT DUN..
4.Type
Code:
# hcitool scan
This ll give u the device id of ur fone...
5.now bind the Device ID of ur fone wit the rfcomm device using
Code:
# rfcomm bind 0 <Device id of ur fone> 1
6.If u get any error in the above command or u dont hav a device rfcomm0 then u need to create one by
Code:
#mknod /dev/rfcomm0 c 216 0
7.next u need to edit ur /etc/wvdial.conf file to enter ur BT modem settings
Code:
# nano -w /etc/wvdial.conf
Edit ur Wvdial and copy the following in it...
Code:
[Modem0]
Modem = /dev/rfcomm0
Baud = 230400
SetVolume = 0
DialCommand = ATDT
FlowControl = Hardware(CRTSCTS)
[Dialer GPRS]
Username = 1
Password = 1
Phone = *99***1#
Mode = 1
Inherits = Modem0
[Dialer Defaults]
Modem = /dev/rfcomm0
Baud = 230400
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99***1#
Username = a
Password = b
8.Now run the command
Code:
# wvdial GPRS
instead of GPRS u can enter whatever dialer name u hav entered...
if u hav done evything correctly then u should get connected... if not then come back to this thread.
Internet via Mobile GPRS & USB Cable in Ubuntu 7.04 (GNOME) and Fedora 7(GNOME/ KDE)
Code:
# sudo wvdialconf /etc/wvdial.conf
You shd get some output like
Output:
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Nokia
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
This means that it has found a MODEM.. and the basic wvdial.conf has been written..
Now to edit wvdial.conf
Code:
sudo gedit /etc/wvdial.conf
Enter the Dialling number, Username , Passwd etc
My wvdial.conf :
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = *99#
Modem = /dev/ttyACM0
Username = b
Password = a
Baud = 460800
Now to connect
Code:
sudo wvdial
If all has gone right it shd show something like
--> WvDial: Internet dialer version 1.56
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> PPP negotiation detected.
--> Starting pppd at Fri Apr 27 16:34:47 2007
--> Pid of pppd: 8094
--> Using interface ppp0
--> pppd: p[08][06][08][08]
--> [06][08]
--> pppd: p[08][06][08][08]
--> [06][08]
--> pppd: p[08][06][08][08]
--> [06][08]
--> pppd: p[08][06][08][08]
--> [06][08]
--> local IP address 10.190.237.191
--> pppd: p[08][06][08][08]
--> [06][08]
--> remote IP address 10.6.6.6
--> pppd: p[08][06][08][08]
--> [06][08]
--> primary DNS address 202.56.230.5
--> pppd: p[08][06][08][08]
--> [06][08]
--> secondary DNS address 202.56.240.5
--> pppd: p[08][06][08][08]
--> [06][08]
This means that ur connection is complete... keep that terminal window open and surf..
a graphical way for this..
1>
Quote:# hcitool scan
U will get ur Phone's mac address which u will need to substitute in the following steps
2>
Quote:# nano /etc/bluetooth/rfcomm.conf
Paste this substituting ur mac add.
Quote:rfcomm0 {
# Automatically bind the device at startup
bind no;
# Bluetooth address of the device
device <mac address>;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "Hello";
}
3>
Quote:# rfcomm bind 0 <mac address> 1
Close terminal
4>open system-config-network
System>Administration>Network
5>Click 'New'>Modem Connection
There replace "Modem Device" box with
Quote:/dev/rfcomm0
and click 'Forward'
6>Specify ur provider information like phone no, Provider name, username, password etc
and keep on clicking 'Forward' button until u click 'Apply'
7>Highlight ur provider by a click and then click on the 'Activate' Button
Internet Connection in Linux via Mobile
1.Connect the mobile via USB cable.
2. Open terminal and type su to become root.
3. It will ask for the root password, type in there.
4. Then Issue this command
Code:
wvdialconf /etc/wvdial.conf
Phone wud b detected as Modem
5. Then to Edit this file, open it in a Text Editor
Code is
Code:
kwrite /etc/wvdial.conf
When we issued command in point 4, it showed the address of ur phone that in which USB port it has been connected. note it down from there.
"Modem = /dev/***"
6. When Text Editor opens the file, erase everything from there and Paste the following:
Code:
[Dialer Defaults]
Modem = /dev/ttyUSB0 # <-- Replace it with the reading you got
Phone = *99#
Username = aa
Password = bbc
Baud = 230400
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Carrier Check = No
The mOdem has been configured successfully.
To dial the internet conenction type
Code:
wvdial
If eerything goes fine it wud say that connected successfully.
Press Ctrl+C to disconnect.
install packages using apt get
u need internet
first get build essential
sudo apt-get install build-essential
then install package
sudo apt-get install <package>
to uninstall
sudo apt-get remove <name>
or sudo apt-get autoremove <name>
To mount and unmount ISOs, just follow the 'Nautilus Scripts' method under the following link:
http://www.ubuntugeek.com/mount-and-...ning-them.html
to open file/folder in terminal
sudo apt-get install nautilus-open-terminal