Posts

Showing posts from February, 2016

How to Setup OpenVPN using Ubuntu Network Manager

Image
Click the network manager icon in the top menu bar and select "Edit Connections..." In the Network Connections box click "add". On the dropdown menu click "Import a saved VPN Configuration" and click create... Next, we need to select one of the openVPN configs (which you already have for example vpnbook.com)for the server you'd like to connect to.  In our example, we are connecting to IP.ovpn If you get error like  The file 'edunet.ovpn' could not be read or does not contain recognized VPN connection information Error: unknown PPTP file extension. 1) Execute the following commands in your Ubuntu terminal: sudo apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnome sudo apt-get install network-manager-vpnc sudo /etc/init.d/networking restart All the needed OpenVPN settings will now be imported. In the Username and Password area enter  the  VPN login info that you chosen on signup or you kn

condition for leap year with c programimg

if a year is divided by 400 then it is a leap year and if it is divided by 100 then it is not a leap year and if it is divided by 4 then it is a leap year else it is not a leap year some years are divisible by 4 but they are not leap year so we are dividing with both 400 and 4 ex-1700, 1800, 1900, 2100, 2200, 2300, 2500, 2600 This is because they are evenly divisible by 100 but not by 400. The following years are leap years: 1600, 2000, 2400 This is because they are evenly divisible by both 100 and 400. C programming code #include <stdio.h> int main() { int year; printf("Enter a year to check if it is a leap year\n"); scanf("%d", &year); if ( year%400 == 0) printf("%d is a leap year.\n", year); else if ( year%100 == 0) printf("%d is not a leap year.\n", year); else if ( year%4 == 0 ) printf("%d is a leap year.\n", year); else printf("%d is not a leap year.\n", year); ret

Software OR IDE required for computer science engineering(B.TEch)

1.For c programming Dev c++ in windows In linux you can use geany Or codeblocks 2.Microsoft visual studio(for vb.net) 3.Modelsim PE student edition 4.java programming for java programming you need to things one is JDK (java development kit) using this we can develop java programs and one is JRE(java runtime environment)which needs to run java program so we need both 1.Netbeans (sunmicrosystems acuqired by oracle so it is from craetor of java) having both jdk and jre http://www.oracle.com/technetwork/articles/javase/jdk-netbeans-jsp-142931.html https://www.jetbrains.com/products.html#lang=java https://www.eclipse.org/downloads/download.php?file=/oomph/epp/mars/R2/eclipse-inst-linux64.tar.gz you can simply search JDK and JRE here  https://java.com/  and download both and then install it. steps to install java in linux through PPA First, add Oracle's PPA, then update your package repository. sudo add-apt-repository ppa:webupd8team/java sudo apt-get upda

some usefull websites for linux users

1. http://sourcedigit.com 2. linux.softpedia.com 3. http://ubuntuhandbook.org/

Fix the MBR in Windows(any version of windows 7,8,10) windows not starting solution

windows not starting solution or boot error first of all make a windows bootable usb disk with the help of windows setup img file(win 7,8,10,any one) with the help of rufus then start with the usb boot your computer then start with installtion process click next there you will seee repair your computer click on that and then select troubleshoot then select command prompt and type one by one  bootrec /FixMbr bootrec /FixBoot bootrec /ScanOs bootrec /RebuildBcd remember - no data loss will happen

Convert GPT drive into MBR using Command Prompt (cmd) (GPT error solution)

Update:2019  Do not convert GPT partition scheme to  MBR  as GPT is better instead when you make bootable Pendrive select the option GPT and the installation will be done without error. Remember - all data will lose first of all make a windows bootable usb disk with the help of windows setup img file ( win 7,8,10 , any one) with the help of rufus then start with the usb boot your computer then start with installtion process click next there you will seee repair your computer click on that and then select troubleshoot then select command prompt Type Diskpart into cmd window. Type list disk. Make note of the disk number you want to delete or convert. Now type select disk DiskNumber. By using this command you select the drive in which you want to any operation Now type clean. Running the clean command will delete all partitions or volumes on the disk. Now the last step is : At the command prompt, type convert mbr . It will convert the selected drive into MBR .

how to solve unmet dependencies in ubuntu

open terminal and type sudo apt-get install -f