Install LaTeX on Ubuntu or Debian

12:55:00 PM
Mahesh Kumar Yadav
0
Comments

LaTeX is a document markup language and a text preparation system to create documents. LaTeX is recommended to create technical or scientific articles, papers, reports, books and other documents like PhDs.

1. OPEN YOUR TERMINAL

A terminal is a Command Line Interface (CLI) where you type commands to tell the computer what to do. Make sure you've opened the terminal, if so, continues in the next step.

2. INSTALL TEX LIVE

TeX Live is a TeX distribution to get up and running with the TeX document production system. To install it, once you're in the terminal, enter the following command:

sudo apt-get install texlive-full

Then, type your 'sudo' password and you'll have installed Tex Live. This operation may take a long time.

3. INSTALL TEXMAKER

Now you need a text editor. I recommend using a specific editor for LaTeX. There are many text editors for LaTeX on the Internet as Kile, TeXworks, JLatexEditor, Gedit LaTeX Plugin, etc. My favorite text editor for Latex is Texmaker. Texmaker is a cross-platform open source LaTeX editor. To install it, go to the Ubuntu or Debian terminal and enter the following command:

sudo apt-get install texmaker

In a few minutes you'll have installed Texmaker.

4. CREATE YOUR FIRST DOCUMENT

To check that everything is working properly, create a LaTeX blank document. Open Texmaker and click on File, New. Then write the following code:

\documentclass{article}
\begin{document}
Hello, world!
\end{document}

Now save the document as a 'tex' file going to File, Save. Finally, compile the document clicking on Tools, PDFLaTeX. Make sure the 'pdf' file has been created and it's working. And that's it! You've created your first LaTeX document!

0
comments
:

how to delete all commit history in github? [duplicate]

4:49:00 PM
Mahesh Kumar Yadav
1
Comments

Deleting the .git folder may cause problems in your git
repository. If you want to delete all your commit history but keep the
code in its current state, it is very safe to do it as in the following:

0
comments
:

Fix time differences between Ubuntu and Windows

1:53:00 PM
Mahesh Kumar Yadav
0
Comments

A. To fix the UTC / local time difference between Ubuntu and Windows from Ubuntu by making Ubuntu uses local time.

Before proceeding, note that according to the Ubuntu wiki, "the advantage of having the hardware clock as UTC is that you don't need to change the hardware clock when moving between timezones or when Daylight Savings Time (DST) begins or ends as UTC does not have DST or timezone offsets". So this is not recommended and if you can, you should use method B., and fix this from Windows.

For Ubuntu 16.04 and newer, run the following command (thanks to Erwinson Pagtalunan for the update!):

timedatectl set-local-rtc 1

You can then check if Ubuntu uses local time, you can then use the following command:

timedatectl

Which should display the following "RTC in local TZ: yes". A warning will also be displayed. Here's the full command output:

$ timedatectl
Local time: Lu 2016-04-25 12:18:22 EEST
Universal time: Lu 2016-04-25 09:18:22 UTC
RTC time: Lu 2016-04-25 12:18:22
Time zone: Europe/Bucharest (EEST, +0300)
Network time on: yes
NTP synchronized: no
RTC in local TZ: yes
Warning: The system is configured to read the RTC time in the local time zone.
This mode can not be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.

For Ubuntu versions older than 16.04: you must edit the /etc/default/rcS file and replace "UTC=yes" with "UTC=no" (both without the quotes). To do this automatically, simply copy/paste the following command in a terminal:

sudo sed -i 's/UTC=yes/UTC=no/' /etc/default/rcS

And then reboot.

B. To fix this from Windows (it should work with Vista SP2, Windows 7, Server 2008 R2 and Windows 8/8.1), by making it uses UTC instead of local time, download THIS Windows registry file and simply double click it.

Then, to disable the Windows Time service (which still writes local time to RTC regardless of the registry setting above, on shutdown), run Command Prompt as Administrator and paste this command:

sc config w32time start= disabled

And reboot.

How to revert the changes

A. From Ubuntu: reverting this change from Ubuntu is pretty easy.

Ubuntu 16.04 and newer: to revert the changes, simply run the following command:

timedatectl set-local-rtc 0

Ubuntu versions older than 16.04: all you have to do is replace "UTC=no" with "UTC=yes" in the/etc/default/rcS file. To do this automatically, copy/paste the command below in a terminal:

sudo sed -i 's/UTC=no/UTC=yes/' /etc/default/rcS

And then reboot your computer.

B. From Windows: reverting this change is a bit more complicated from Windows.

Firstly, open the .reg file downloaded when applying the fix for Windows (see download link above) with a text editor and change the "RealTimeIsUniversal" value from "dword:00000001" to "-" (without the quotes). Here's how the file should look like after making this change:

0
comments
:

Accesing mutlple users to Read/Write and Execute on same File/Folder in linux

10:05:00 PM
Mahesh Kumar Yadav
0
Comments

Open Terminal:

1. Create a group

sudo addgroup linux-data

2. Add users to group

sudo adduser mahesh linux-data

sudo adduser kumar linux-data

3. Change group ownership

sudo chgrp -R linux-data /media/mahesh/Linux-drive

4. Assign Read/Write and Execute permission to group

sudo chmod -R g+rwx /media/mahesh/Linux-drive

sudo chmod -R g+s /media/mahesh/Linux-drive

0
comments
:

How to get sudo to prompt you for a password each time in linux

10:44:00 AM
Mahesh Kumar Yadav
0
Comments

Open Terminal and type:

sudo visudo

Then scroll down to the line that reads:

Defaults env_reset

And change it to:

Defaults env_reset,timestamp_timeout=0

You can change 0 to any values (time in minutes). Setting it to 0 will ask for your password every time and -1 will make it never ask. The default is 15 according to man sudo 8, but some manuals say the default is 5. Have a look at the RootSudoTimeout wiki for more information.
Press CTRL + X to finish editing, Y to save changes, and ENTER to exit.

0
comments
:

How to change disk checking (fsck) frequency at boot?

10:11:00 PM
Mahesh Kumar Yadav
0
Comments

Ubuntu checks the root partition at about every 30th boot. If you
have a desktop machine/laptop that you switch off every day, this number
may be too small. In this case you can safely increase this number to
50 at least.
First, figure out where your root partition is using the df command which produces this result in my case:

To disable file system integrity check for forever. Type following command

sudo tune2fs -c -1 /dev/sda6

To check after 1 month. Type following command

sudo tune2fs -i 1m /dev/sda6

List the contents of the filesystem superblock, including the current values of the parameters that can be set via this pro‐gram.

sudo tune2fs -l /dev/sda6

Where, again, you might need to replace /dev/sda6.

0
comments
:

How To Stop Wi-Fi Stealing And Catch That Person

11:00:00 AM
Mahesh Kumar Yadav
0
Comments

Often
we are unable to locate an uninvited user who uses our Wi-Fi. If
someone uses our Wi-Fi without our knowledge, that would be termed as
Wi-Fi stealing.Whatever be the case, to be on the safer side,
we must know who is using my Wi-Fi without my permission and how can we
stop them. So, here are the steps

Login to your router

Different
routers support different login styles. So, I am listing a few of the
logging in style, out of these, one might work for you:

1. Punch in the IP address of your router in your browser address bar directly like 192.168.0.1 or 192.168.1.1

2. If the above address does not work, you can also try routerlogin.com and it will redirect to your router admin panel.

3. Enter the administrator username and password.

4. nce you are inside the admin panel, look for menu options like ‘Connected devices’ or ‘Attached devices’.

5. If
you are able to find that menu, you can see the MAC Address, IP Address
and Device name of all the devices which are connected to your network.
This is how my Attached devices looks like.

6. If you see some
extra person’s name or some extra device then they are the one who might
be using your Wi-Fi without your permission. Read on to know the steps
to stop Wi-Fi stealing.

How to stop someone from Wi-Fi stealing?

Once you come to a conclusion that someone else is making use of your Wi-Fi
resources, you can simply change the password of your Wi-Fi to a
stronger password. You can also switch off your SSID broadcast.
If you want a stricter action, you can set up a filter based on the MAC address of the devices.

0
comments
:

How To Hack WiFi Using Wps Wpa tester...?

12:53:00 AM
Mahesh Kumar Yadav
3
Comments

Want to take advantage of your neighbor’s super fast Wi-Fi connection? If they’re smart, they probably have it password protected (otherwise you wouldn’t be reading this, would you?). But if you have an Android phone, you can get back at them for always parking in your spot and slamming the door when they get home at 2 a.m.—by stealing…er, borrowing, their connection.

So Today i am posting how to hack Wi-Fi password in less than 1 min with App Name WiFi Wps Wpa tester .

Requirements:

1. Rooted Android Device (4.0+ recommend).

2. Wpa Wps Tester Premium 2.3.7 Cracked APK or later.

3. Busybox Installed.

4. Terminal Emulator installed. (no needed ).

5. Recommended to use on high signal -60 or less.

HACK WiFi using WiFi Wps Wpa tester:

1. Just download and Install Wpa Wps Tester Premium.

2. Make Sure You Have Enabled The Unknown Sources In Settings/

3. Open app and press refresh.

4. Then the list of Wi-Fi networks available will be shown.

5. If you see a green Lock Icon click on it

6. Press Connect Automatic Pin

7. Copy the password and connect free hack Wi-Fi connection.

3
comments
:

How to Unlock Android Phone Pattern Lock

9:59:00 AM
Mahesh Kumar Yadav
0
Comments

The pattern lock tool that is built-in
Android smart-phones is very useful in adding extra security to such
devices. But when you by chance forgot the security pattern and can’t
unlock the device, it can be very frustrating. Having such security
measures is very important in protecting sensitive data in android
devices.

Forgotten Security Pattern

Though this security tool is fairly easy
to use, several wrong attempts may lock the device permanently. This is
certainly a big problem, especially if you rely on your device in
getting through your life’s busy schedule. Fortunately, if ever you
forget the needed security pattern there is a way to reset and unlock
your android device’s lock pattern as long as you can access your Gmail
account.

Unlocking Pattern Without Google Account

Knowing how to properly reset and unlock
your android device’s lock pattern is essential in assuring continuous
use. If ever you did use up your allowed chances in unlocking the
device, and really forgotten the lock pattern, just simply follow these
steps:

1. The first step is to turn off your android device, and wait for a couple of seconds before proceeding to the next step. 2. The next step is to press and hold the Home Key, Volume up, and the
Power Button buttons together and wait until the device boots up. If in
case your device does not have any home button, hold the power key and
volume up key together. 3. A DOS like screen will appear with different options and by using
the volume key in order to select up and down, depending on your
device’s settings, scroll down and select “Delete all User Data” or “Restore Factory Defaults”4. After selecting the above settings, scroll down and select “Reboot
System Now”, this will reboot the device and will allow you to set a new
security pattern.

Unlocking Pattern with Google Account

If you don’t want to do a device reboot
and you already tried different patterns and still can’t unlock your
device, usually five attempts, the following steps will guide you how to
access your locked device:

1. After several attempts a message will pop-up which will allow you to
choose from two buttons, either “next” or “try again”. Select the
“next” button and two ways in unlocking the device will be shown
(“security question” and “provide Google account details”).
2. If you were able to set your security question in your Google
account, select this option and simply provide the correct answer and
unlock the device quickly.
3. If you didn’t set a security question, or forgotten the correct
answer also, select the Google account button and then click “next”.
After providing the Google account details (username and password) that
are attached to the device, select “sign in”.
4. You will be then directed to reset and choose a new security pattern and unlock the device with it.

0
comments
:

How do I find out BIOS version using a Linux command line option?

10:50:00 PM
Mahesh Kumar Yadav
2
Comments

To find out BIOS version under Linux operating systems use the dmidecode
command which is a tool to analyse BIOS data. I have tested on 'Dell 3542 i5 4th Gen'. You must login as admin to
run dmidecode command:

dmidecode is a tool for dumping a computer's DMI (some say SMBIOS)
table contents in a human-readable format. This table contains a
description of the system's hardware components, as well as other
useful pieces of information such as serial numbers and BIOS revision.
Thanks to this table, you can retrieve this information without having
to probe for the actual hardware. While this is a good point in terms
of report speed and safeness, this also makes the presented information
possibly unreliable.
The DMI table doesn't only describe what the system is currently made
of, it also can report the possible evolutions (such as the fastest
supported CPU or the maximal amount of memory supported).
SMBIOS stands for System Management BIOS, while DMI stands for Desktop
Management Interface. Both standards are tightly related and developed
by the DMTF (Desktop Management Task Force).
As you run it, dmidecode will try to locate the DMI table. If it
succeeds, it will then parse this table and display a list of records

2
comments
:

How to view saved password of wifi on android device?

3:53:00 PM
Mahesh Kumar Yadav
0
Comments

Install ES File Explorer then navigate to data/misc/wifi folder and you will find a file named wpa_supplicant.conf. Tap on the file to open it up and make sure you use ES File Explorer 's built-in text/HTML viewer for the task. In the file you should be able to see the network SSID and their passwords next to it.