Anonymous

Changes

From Karnataka Open Educational Resources
no edit summary
Line 1: Line 1: −
='''NETWORK AND INTERNET'''=
+
=How to find out Your connection IP adress?=
==How to find out Your connection IP adress?==
   
Your IP address is something you probably rarely think about, but it's vitally important to your online lifestyle. Without an IP address, you wouldn't be able to get today's weather, check the latest news or look at videos online. Why? Because without your IP address, websites like whatismyipaddress.com, CNN or ESPN wouldn't know where to send the information you asked for. They wouldn't be able to get it to YOUR computer.<br>
 
Your IP address is something you probably rarely think about, but it's vitally important to your online lifestyle. Without an IP address, you wouldn't be able to get today's weather, check the latest news or look at videos online. Why? Because without your IP address, websites like whatismyipaddress.com, CNN or ESPN wouldn't know where to send the information you asked for. They wouldn't be able to get it to YOUR computer.<br>
 
Your web browser announces your IP address to any web site, so our website can find your IP address simply by listening for this announcement... So one very quick way how to find your IP address [http://www.howtofindmyipaddress.com Click here] or go to google search engine and just type "What is my IP".<br>
 
Your web browser announces your IP address to any web site, so our website can find your IP address simply by listening for this announcement... So one very quick way how to find your IP address [http://www.howtofindmyipaddress.com Click here] or go to google search engine and just type "What is my IP".<br>
 +
[[#top|Back to Top]]<br>
   −
[[#top|Back to Top]]<br>
+
=Turn off Bluetooth by default in Ubuntu 14.04=
 +
Bluetooth is always on at each boot in Ubuntu laptops. This is not good, from both power saving and security purpose. Moreover, we hardly use Bluetooth, so why should have Bluetooth enabled by default? While one can turn off Bluetooth in one click in Ubuntu, doing it in each session is a repetitive and frustrating task. Simpler solution is to deactivate Bluetooth at start up in Ubuntu.
 +
<br>
 +
* Open a terminal (Ctrl+Alt+T) and and use the following command
 +
'''sudo gedit /etc/rc.local'''<br>
 +
* enter password and press '''Enter'''.
 +
* It will open the rc.local file. Just add the following line just before exit 0.
 +
'''rfkill block bluetooth'''. <br>
 +
* Altogether, your rc.local file look like this:
 +
[[file:rfkill_Bluetooth.png | 500px]] <br>
 +
* '''Save''' the file by clicking on save icon on top.
 +
''Note:Restart the computer and you should see that Bluetooth has been disabled. Of course you can turn it on when required by the Bluetooth indicator on the top panel.
 +
''
   −
==How to Turn Your Ubuntu Laptop into a Wireless Access Point==
+
=How to Turn Your Ubuntu Laptop into a Wireless Access Point=
    
* To get started, click the gear icon on the panel and select System Settings.<br>
 
* To get started, click the gear icon on the panel and select System Settings.<br>
Line 21: Line 33:  
[[file:hotspot_6.png|500px]]
 
[[file:hotspot_6.png|500px]]
   −
[[#top|Back to Top]]
+
=Block Access to Unwanted Websites in Ubuntu=
 
  −
==Block Access to Unwanted Websites in Ubuntu==
   
Want to block access to certain websites from your machine running Ubuntu or Linux Mint? It’s easy to do it by editing the host file.<br/>
 
Want to block access to certain websites from your machine running Ubuntu or Linux Mint? It’s easy to do it by editing the host file.<br/>
 
With the hosts file, you can tell Ubuntu to redirect the specific websites to 127.0.0.1. So that the web browser returns below error: <br/>
 
With the hosts file, you can tell Ubuntu to redirect the specific websites to 127.0.0.1. So that the web browser returns below error: <br/>
Line 42: Line 52:  
[[#top|Back to Top]]
 
[[#top|Back to Top]]
   −
==How to fix your Internet connection in Ubuntu Linux==
+
=How do I setup Thin client in Phase-1 and phase-2 schools=
 +
 
 +
Note:below mentioned setup is only for the server
 +
 
 +
1.Go to the right top panel, Left click on network icon,
 +
select the Edit connection.<br>
 +
[[image:sc11.png |400px]]
 +
 
 +
2.Click on the Wired tab and there click on Edit button.<br>
 +
 
 +
[[image:sc2.png |400px]]
 +
 
 +
<li> Edit connection Window will opens, select IP4 settings and click on it.
 +
In methods, select manual. Now you can enter the address
 +
click on the address box below and press add and enter the information as mentioned below.
 +
<li>IP address - 192.168.0.1
 +
<li>Netmask - click on it and press add and enter 255.255.255.0
 +
<li>gateway - click on it and press add and enter 0.0.0.0(if it is there initially no need to enter)
 +
<li>DNS Servers - enter the IP address 192.168.0.1
 +
 
 +
 
 +
<li>now check mark the box below : require IP4 addressing for this connection to complete.
 +
<li>now check mark the box at the bottom : Available to all users click save
 +
 
 +
 
 +
[[image:sc3.png |400px]]
 +
 
 +
[[#top|Back to Top]]
 +
 
 +
=How to connect a printer in ubuntu?=
 +
#Applications=>> System tools=>> system settings
 +
#click on printer icon
 +
#"Add" then Select you Printer name then Printer model in the next page and by clicking Add button to complete this process.
 +
Not: After following this steps with HP printers and still not able to print, please follow the below steps.
 +
 
 +
[[#top|Back to Top]]
 +
 
 +
==How to set up Hp printers through hplip?==
 +
#Download hplip from [http://sourceforge.net/projects/hplip/files/hplip/3.14.10/hplip-3.14.10.run/download?use_mirror=softlayer-sng here]
 +
#Open a terminal(applications>> accessories>> terminal)
 +
#Type '''sh hplip-3.14.6.run''' command/copy+paste in terminal press Enter
 +
#If it asks for a password, please enter your Ubuntu login password
 +
#then follow as it shows.
 +
# Once it complete all the steps, follow the general printer setup steps.
 +
 
 +
[[#top|Back to Top]]
 +
 
 +
==How to connect Canon printers in Ubuntu==
 +
1. Download [http://gdlp01.c-wss.com/gds/6/0100004596/03/Linux_CAPT_PrinterDriver_V260_uk_EN.tar.gz Here].
 +
2. Right click on the downloaded .tar.gz folder and select "extract here" option.
 +
3. Open the extracted folder(Linux_CAPT_PrinterDriver_V260_uk_EN)
 +
4. Find the following folders
 +
<br>
 +
a. '''cndrvcups-common.deb'''<br>
 +
b. '''cndrvcups-capt.deb''' <br>
 +
<br>
 +
5. then, double click on each file and click on the "install". <br>
 +
6. Once you done with installation then restart your computer. <br>
 +
7. Connect your printer goto system setting (applications>system tools >system setting). <br>
 +
8. Click on '''Printers'''> click '''add''' > in the list find your printer > click add. <br>
 +
<br>
 +
[[#top|Back to Top]]
 +
 
 +
=How to fix your Internet connection in Ubuntu Linux=
 
'''Check the basics first'''<br>
 
'''Check the basics first'''<br>
 
Before you blame Ubuntu, try connecting to the Internet on other devices. If they're experiencing the same problem, it isn’t with Ubuntu—it’s with something else. For example, you may need to reboot your router, modem, or both. It’s always worth checking these fundamentals before delving into further troubleshooting.<br/>
 
Before you blame Ubuntu, try connecting to the Internet on other devices. If they're experiencing the same problem, it isn’t with Ubuntu—it’s with something else. For example, you may need to reboot your router, modem, or both. It’s always worth checking these fundamentals before delving into further troubleshooting.<br/>
Line 50: Line 123:  
[[#top|Back to Top]]
 
[[#top|Back to Top]]
   −
==Configure your connection settings in NetworkManager==
+
=Configure your connection settings in NetworkManager=
 
NetworkManager connects to Wi-Fi networks and automatically configures wired network connections when you plug in an ethernet cable. Before NetworkManager, you’d have to do this with terminal commands.<br/>
 
NetworkManager connects to Wi-Fi networks and automatically configures wired network connections when you plug in an ethernet cable. Before NetworkManager, you’d have to do this with terminal commands.<br/>
   Line 75: Line 148:  
For more information about this [http://www.pcworld.com/article/2455972/how-to-fix-your-internet-connection-in-ubuntu-linux.html Click here]
 
For more information about this [http://www.pcworld.com/article/2455972/how-to-fix-your-internet-connection-in-ubuntu-linux.html Click here]
   −
[[#top|Back to Top]]
+
=Still If Internet is not working=
 
  −
 
  −
==Still If Internet is not working==
   
follow below steps <br/>
 
follow below steps <br/>
 
# Open terminal (ctrl+Alt+t)
 
# Open terminal (ctrl+Alt+t)
Line 94: Line 164:       −
==How do I connect to a wireless network on Ubuntu?==
+
=How do I connect to a wireless network on Ubuntu?=
 
<ul>
 
<ul>
 
To connect to a wireless network:
 
To connect to a wireless network:
Line 106: Line 176:  
[[#top|Back to Top]]
 
[[#top|Back to Top]]
   −
==How do I connect to a wired (LAN) network on Ubuntu?==
+
=How do I connect to a wired (LAN) network on Ubuntu?=
 
<ul>
 
<ul>
 
You will be connected to a wired network automatically when you plug in the network cable.
 
You will be connected to a wired network automatically when you plug in the network cable.
Line 118: Line 188:  
[[#top|Back to Top]]
 
[[#top|Back to Top]]
   −
==How to connect Datacrds in ubuntu ==
+
=How to connect Datacrds in ubuntu =
 
This is by far the simplest way to configure a USB modem to connect to internet. No additional drivers or software are necessary.<br>
 
This is by far the simplest way to configure a USB modem to connect to internet. No additional drivers or software are necessary.<br>
   Line 140: Line 210:  
[[#top|Back to Top]]
 
[[#top|Back to Top]]
   −
==How to check dongle balance on UBUNTU==
+
=How to check dongle balance on UBUNTU=
 
#Check your data balance by following these steps after connecting your data card to your laptop.  
 
#Check your data balance by following these steps after connecting your data card to your laptop.  
 
#Go to Applications→System Tools → Modem Manager GUI
 
#Go to Applications→System Tools → Modem Manager GUI
Line 147: Line 217:  
#You will receive message with data balance and validity.  
 
#You will receive message with data balance and validity.  
   −
==How to setup MTS Data card on UBUNTU 12.04==
+
=How to setup MTS Data card on UBUNTU 12.04=
 
Follow the steps to configure the data card on UBUNTU 12.04
 
Follow the steps to configure the data card on UBUNTU 12.04
   Line 163: Line 233:  
[[#top|Back to Top]]
 
[[#top|Back to Top]]
   −
 
+
=Samsung/iPhone net connection=
==Samsung/iPhone net connection==
      
Note: We have required the following things to connect a Internet through Android/iPhones:
 
Note: We have required the following things to connect a Internet through Android/iPhones:
Line 179: Line 248:  
<li>[[#top|Back to Top]]
 
<li>[[#top|Back to Top]]
   −
==How do I setup Thin client in Phase-1 and phase-2 schools==
+
=How to make multiple Ubuntu copies Using K3B=
 
  −
Note:below mentioned setup is only for the server
  −
 
  −
1.Go to the right top panel, Left click on network icon,
  −
select the Edit connection.<br>
  −
[[image:sc11.png |400px]]
  −
 
  −
2.Click on the Wired tab and there click on Edit button.<br>
  −
 
  −
[[image:sc2.png |400px]]
  −
 
  −
<li> Edit connection Window will opens, select IP4 settings and click on it.
  −
In methods, select manual. Now you can enter the address
  −
click on the address box below and press add and enter the information as mentioned below.
  −
<li>IP address - 192.168.0.1
  −
<li>Netmask - click on it and press add and enter 255.255.255.0
  −
<li>gateway - click on it and press add and enter 0.0.0.0(if it is there initially no need to enter)
  −
<li>DNS Servers - enter the IP address 192.168.0.1
  −
 
  −
 
  −
<li>now check mark the box below : require IP4 addressing for this connection to complete.
  −
<li>now check mark the box at the bottom : Available to all users click save
  −
 
  −
 
  −
[[image:sc3.png |400px]]
  −
 
  −
[[#top|Back to Top]]
  −
 
  −
='''PRINTERS'''=
  −
 
  −
==How to connect a printer in ubuntu?==
  −
#Applications==>> System tools==>> system settings
  −
#click on printer icon
  −
#"Add" then Select you Printer name then Printer model in the next page and by clicking Add button to complete this process.
  −
Not: After following this steps with HP printers and still not able to print, please follow the below steps.
  −
 
  −
[[#top|Back to Top]]
  −
 
  −
====How to set up Hp printers through hplip?====
  −
#Download hplip from [http://sourceforge.net/projects/hplip/files/hplip/3.14.10/hplip-3.14.10.run/download?use_mirror==softlayer-sng here]
  −
#Open a terminal(applications>> accessories>> terminal)
  −
#Type '''sh hplip-3.14.6.run''' command/copy+paste in terminal press Enter
  −
#If it asks for a password, please enter your Ubuntu login password
  −
#then follow as it shows.
  −
# Once it complete all the steps, follow the general printer setup steps.
  −
 
  −
[[#top|Back to Top]]
  −
 
  −
====How to connect Canon printers in Ubuntu====
  −
1. Download [http://gdlp01.c-wss.com/gds/6/0100004596/03/Linux_CAPT_PrinterDriver_V260_uk_EN.tar.gz Here].
  −
2. Right click on the downloaded .tar.gz folder and select "extract here" option.
  −
3. Open the extracted folder(Linux_CAPT_PrinterDriver_V260_uk_EN)
  −
4. Find the following folders
  −
<br>
  −
a. '''cndrvcups-common.deb'''<br>
  −
b. '''cndrvcups-capt.deb''' <br>
  −
<br>
  −
5. then, double click on each file and click on the "install". <br>
  −
6. Once you done with installation then restart your computer. <br>
  −
7. Connect your printer goto system setting (applications>system tools >system setting). <br>
  −
8. Click on '''Printers'''> click '''add''' > in the list find your printer > click add. <br>
  −
<br>
  −
[[#top|Back to Top]]
  −
 
  −
 
  −
==How to make multiple Ubuntu copies Using K3B==
      
Please follow the steps to make multiple Ubuntu dvd'S
 
Please follow the steps to make multiple Ubuntu dvd'S
Line 263: Line 266:  
[[#top|Back to Top]]
 
[[#top|Back to Top]]
   −
==How to make a pen drive bootable==
+
=How to make a pen drive bootable=
 
<ul>
 
<ul>
 
Note: In order to make a pen drive as ubuntu bootable pen drive, requires the following items:
 
Note: In order to make a pen drive as ubuntu bootable pen drive, requires the following items:
Line 290: Line 293:  
[[#top|Back to Top]]
 
[[#top|Back to Top]]
   −
==Turn off Bluetooth by default in Ubuntu 14.04==
+
=How do I connect to the Internet via a Wireless Data Card (Mobile Broadband)?=
Bluetooth is always on at each boot in Ubuntu laptops. This is not good, from both power saving and security purpose. Moreover, we hardly use Bluetooth, so why should have Bluetooth enabled by default? While one can turn off Bluetooth in one click in Ubuntu, doing it in each session is a repetitive and frustrating task. Simpler solution is to deactivate Bluetooth at start up in Ubuntu.
+
<ul>
<br>
+
'''''Mobile Broadband''''' means any kind of high speed Internet connection which is provided by an external device such as a 3G USB stick or mobile phone with built-in HSPA/UMTS/GPRS data connection.
* Open a terminal (Ctrl+Alt+T) and and use the following command
+
Most mobile broadband devices should be recognized automatically when you connect them to your computer. Ubuntu will prompt you to configure the device:
'''sudo gedit /etc/rc.local'''<br>
+
<li>The '''''New Mobile Broadband Connection''''' wizard will open automatically when you connect the device.</li>
* enter password and press '''Enter'''.
+
<li>Click ''Forward'' and insert your details, including the country where your Mobile Broadband device was issued, the network provider and type of connection.</li>
* It will open the rc.local file. Just add the following line just before exit 0.
+
<li>Give your connection a name (it is up to you what name you choose) and click ''Apply''.</li>
'''rfkill block bluetooth'''. <br>
+
<li>Your connection is now ready to use. To connect, click the '''''Network Manager''''' icon in the top right of the panel and select your new connection.</li>
* Altogether, your rc.local file look like this:
+
<li>To disconnect, left click the Network Manager icon in the top right of the panel and click '''Disconnect'''.</li>
[[file:rfkill_Bluetooth.png | 500px]] <br>
+
</ul>
* '''Save''' the file by clicking on save icon on top.
+
<ul>
''Note:Restart the computer and you should see that Bluetooth has been disabled. Of course you can turn it on when required by the Bluetooth indicator on the top panel.
+
If you are not prompted to configure the device when you connect it, it may still be recognized by Ubuntu. In such cases you can add the connection manually:
''
+
<li>Right-click the '''''Network Manager''''' icon in the system notification area and click ''Edit Connections''.</li>
 +
<li>Select the ''Mobile Broadband'' tab. </li>
 +
<li>Click '''Add'''. </li>
 +
<li>This should open the '''New Mobile Broadband Connection''' wizard. Enter your details as described above. </li>
 +
</ul>
 +
 
 +
OR
 +
 
 +
Most of the data cards available in the market are designed to work on windows and mac computers. Few have drivers (software) to work on GNU/Linux too! However for the data cards that do not have GNU/Linux drivers, here is the most generic and simple solution..
 +
 
 +
1. Connect the data card to the USB port.
 +
 
 +
2. Open the 'Terminal' (Application → Accessories → Terminal)
 +
 
 +
3. Two additional software are required for this activity. So use internet (may be wifi or cable) to download these software packages. In the terminal window, at the $ sign, type sudo apt-get install wvdial and when prompted for a password, type in your login password (you will not see a thing on the screen, don't worry just key in your password)
 +
 
 +
4. The next software package that we have to install is call usb-modeswitch. This package is very important because most of the datacards when plugged in acts like storage devices and not datacards and this package switches the devices' mode from storage device to a datacard. You can download this package from http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.2.0.tar.bz2 and you'll need another file which can be downloaded from here http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20111023.tar.bz2. A supporting package called libusb is required too. This can be downloaded by typing sudo apt-get install libusb at the $ symbol in the terminal.
 +
 
 +
5. The two files downloaded needs to be unzipped (uncompressed). If you are not sure of where the files are, check your Downloads folder under the home folder. Right-click on the downloaded files and select extract here. Once this is done, go back to the terminal and type the following commands
 +
 
 +
cd ~/Downloads/usb-modeswitch-1.2.0
 +
 
 +
sudo make install (you'll have to enter your login password after this)
 +
 
 +
cd ~/Downloads/usb-modeswitch-data-20111023
 +
 
 +
sudo make install
 +
 
 +
sudo apt-get install libusb-dev
 +
 
 +
 
 +
6. Now we need to configure wvdial. In the terminal at the $ symbol type sudo gedit /etc/wvdial.conf. This will open a text editor which might have some text in it. Replace the text with the following
 +
 
 +
[Dialer Defaults]
 +
 
 +
Init1 = ATZ
 +
 
 +
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
 +
 
 +
Modem Type = Analog Modem
 +
 
 +
Baud = 9600
 +
 
 +
New PPPD = yes
 +
 
 +
Modem = /dev/ttyUSB0
 +
 
 +
ISDN = 0
 +
 
 +
Username = <type your reliance number here> or internet (if it is a tata photon datacard)
 +
 
 +
Password = <type your reliance number here> or internet (if it is a tata photon datacard)
 +
 
 +
Phone = #777
 +
 
 +
Stupid Mode = 1
 +
 
 +
7.  Once this is done, at the $ type sudo wvdial to connect to the internet
 +
 
 +
–> WvDial: Internet dialer version 1.60
 +
 
 +
–> 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#777
 +
 
 +
–> Waiting for carrier.
 +
 
 +
ATDT#777
 +
 
 +
CONNECT
 +
 
 +
–> Carrier detected.  Starting PPP immediately.
 +
 
 +
–> Starting pppd at Thu Nov  5 15:45:26 2009
 +
 
 +
–> Pid of pppd: 3205
 +
 
 +
–> Using interface ppp0
 +
 
 +
–> pppd: 0$P
 +
 
 +
–> pppd: 0$P
 +
 
 +
–> pppd: 0$P
 +
 
 +
–> pppd: 0$P
 +
 
 +
–> pppd: 0$P
 +
 
 +
–> local  IP address 115.184.194.33
 +
 
 +
–> pppd: 0$P
 +
 
 +
–> remote IP address 220.224.141.145
 +
 
 +
–> pppd: 0$P
 +
 
 +
–> primary  DNS address 202.138.103.100
 +
 
 +
–> pppd: 0$P
 +
 
 +
–> secondary DNS address 202.138.96.2
 +
 
 +
–> pppd: 0$P
 +
 
 +
You are now connected to the internet
 +
 
 +
8. You can start browsing now and remember not to close the terminal window. To disconnect you'll have to press Ctrl C.
 
[[#top|Back to Top]]
 
[[#top|Back to Top]]