[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Linux

65K

Solutions

33K

Contributors

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

Share tech news, updates, or what's on your mind.

Sign up to Post

Code in Python
In this article, we will see what are Tuple and how we use them in Python programming.
0
Determine the Perfect Price for Your IT Services
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

In this article we will see what is logical operator and how we use them in Python programming.
0
In this article we will see how to use Boolean in Python where it can be used to take any decisions if it is true or false , yes or no, 1 or 0.
0
Assume that as a role of System Administrator in SMB (or a startup group), you are requested to (re)design the IT infrastructure of the company. In this article, I will describe the steps of design, configure and operate the IT devices in a small business environment. (<50 users).
0
Write My Paper
Virtualization software lets you run different versions of Windows, Ubuntu Linux and other versions of Linux all at the same time, rather than running each one directly from your computer's hard drive.
0
Can you run Linux on a Windows system? Yep. Here's how.
1
MT Make It Better Grid
This installment of Make It Better gives Media Temple customers the latest news, plugins, and tutorials to make their Grid shared hosting experience that much smoother.
1
LVL 21

Expert Comment

by:Andrew Leniart
Comment Utility
Some great instructional articles available from those links..  Good post.
0
MT DV Rsync
This article explains how to use the rsync command to create backups and sync data across hosts. Rsync is a very useful command that is often used to copy data, make backups, migrate hosts, and bridge the gap between site staging and production environments.
0
MT DV Cron2
Welcome back to our beginners guide of the popular Unix tool, cron. If you missed part one where we introduced this tool, the link is below. We left off learning how to build a simple script to schedule automatic back ups. Now, we’ll learn how to set up our favorite type of notification.
0
MT DV Cron
Cron is one of the most popular and basic utilities found on Unix systems. Combined with other tools, cron makes it exceptionally easy to automate a broad range of tasks on your server.
0
Big Business Goals? Which KPIs Will Help You
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on any Linux virtual machine.
1
This article will show you step-by-step instructions to build your own NTP CentOS server. The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
0
Easy2Boot customized
I have written articles previously comparing SARDU and YUMI. I also included a couple of lines about Easy2boot (easy2boot.com). I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves an article all it's own.
1
LVL 31

Author Comment

by:Thomas Zucker-Scharff
Comment Utility
@Edi,

Do you have a link to that tool?  I might be missing something, but I finally went to your website (it needs a www in front of it to work) and could NOT find a pricing or purchase page.

@nobus,

I share a dropbox folder of my USB (https://www.dropbox.com/sh/4qh39iiwtgiq4qe/AAC7yzZsopQYDgqMuBYib8zMa?dl=0).  An iso would be too large (about 100-110gb).  Although this would be great - you do need your own serial numbers for the windows installs, and similar products.  Also most of my ISO images are for VLA only.  And the last problem would be going through my list to get rid of proprietary images (there are a few).  But feel free to use the above link to download my setup of easy2boot.
0

Expert Comment

by:Edi Sucipto
Comment Utility
@Thomas

Thank you for visiting my site :)
really, should use www to be able to open the site.
Unlike the Rescue Project version, in the Premium Project version, we do not generally distribute it by including the purchase page for some reason, but for those who really want to have it they can contact us by email :)
0
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
2
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
2
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give you a link to get 115 GB for free for two years.
1

Expert Comment

by:Michele Capobianco
Comment Utility
Great Tutorial!

One little question. Is it possible to upload into a certain google drive folder?
I checked the Docs, but i didn't find anything..

Thanks Capo
0
LVL 25

Author Comment

by:Ron Malmstead
Comment Utility
I believe you would need to use the option -p

-p, --parent <parent>     Parent id, used to upload file to a specific directory, can be specified multiple times to give many parents


To get the folder id you can use 'drive list'
1
Fine Tune your automatic Updates for Ubuntu / Debian
0
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
4
LVL 12

Expert Comment

by:William Nettmann
Comment Utility
The Quagga is on it's way back - maybe the password will survive as well!
0
LVL 7

Author Comment

by:Teksquisite
Comment Utility
Thank you all for your comments = passwords must die!
0
The purpose of this article is to demonstrate how we can use conditional statements using Python.
0
OWASP Proactive Controls
LVL 12
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

I. Introduction


There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension. This reminded me of questions that come up here at EE along the lines of, "How can I tell the type of file from its contents?", as well as, "What kind of file has the XXX extension?" Writing an article to address this has been on my to-do list for a long time — the group discussion has inspired me to do it.


II. Determine the type of file from its XXX extension


Here are four links that can help in determining what an XXX file is:


http://extension.nirsoft.net/XXX

http://www.fileinfo.com/extension/XXX

http://filext.com/file-extension/XXX

http://www.solvusoft.com/en/file-extensions/file-extension-XXX


Simply replace XXX with the file extension of interest. For example,


http://extension.nirsoft.net/TIFF

http://www.fileinfo.com/extension/AHK

http://filext.com/file-extension/xhtml

http://www.solvusoft.com/en/file-extensions/file-extension-opd


III. Determine the type of file from its contents


Now to the trickier question! An excellent file identifier application called TrID analyzes the contents of a file in an attempt to figure out what type of file it is. It comes in both a command line interface (CLI) version (for Windows and Linux) and a Graphical User Interface (GUI) version (Windows only) called TrIDNet. The downloads are at the links in the preceding sentence.


Both the CLI and GUI versions require a database/library of file definitions. This is a key feature of TrID and TrIDNet — the always increasing list of files that it recognizes. As of this article's submission date, the database contains 6,019 definitions (dated 13-August-2015). Note that there are separate downloads for the CLI definitions and the GUI definitions.


IV. More about TrID — the CLI version


After downloading the CLI version and its definitions, simply unpack the ZIP file with the program (trid.exe) and copy the definitions file (triddefs.trd) into the same folder as the program file. As mentioned above, using a database of definitions for file types is a really nice feature of TrID. Since file types are frequently added, the program author makes the definitions database available as a separate download, so you may go back to the website occasionally to get the latest definitions file.


Here's the syntax of the CLI version (v2.20):

 

Usage: TrID <[path]filespec(s)...> [-ae|-ce] [-d:file] [-ns] [-n:nn]
                                                                           [-@] [-v] [-w] [-?]
                                        
                                        Where: <filespec> Files to identify/analyze
                                               -ae        Add guessed extension to filename
                                               -ce        Change filename extension
                                               -d:file    Use the specified defs package
                                               -ns        Disable unique strings check
                                               -n:nn      Number of matches to show (default: 5)
                                               -@         Read file list from stdin
                                               -v         Verbose mode - display def name, author, etc.
                                               -w         Wait for a key before exiting
                                               -?         This help!


The program is free for personal use. Here's exactly what the license says (I took the liberty of correcting typos in it):


The program can be freely distributed and is freeware for non-commercial, personal, research and educational use. Contact the author for commercial use or commercialization of TrID or TrID's definitions and contained information.

I don't want to put the author's email address in this article, but you may find it in the Readme file that is part of the download.


V. More about TrIDNet — the GUI version


As stated earlier, the definitions for the GUI version are in a different format from the definitions for the command line version. The GUI definitions are in a large number of XML files, one for each file type — currently, 6,019 of them!


As with the CLI version, there's no installation needed — just unpack the ZIP file with the program (TrIDNet.exe) and copy the definitions (all of the XML files) into the same folder as the program file.


When running TrIDNet, here's the opening screen:


TrIDNet-opening-screen.jpg

V. Conclusion


To come full circle to the group discussion that prompted this article, I fed to both TrID and TrIDNet a file that has 40 characters in the file name but no file extension. Here's the TrID command line with its result (via copy/paste from the command prompt window):


trid "d:\0tempd\40 character file name without extension"


TrID/32 - File Identifier v2.20 - (C) 2003-15 By M.Pontello

Definitions found:  6019

Analyzing...


Collecting data from file: d:\0tempd\40 character file name without extension

100.0% (.PDF) Adobe Portable Document Format (5000/1)


Here's the TrID GUI result:



TrIDNet-sample-analyze.jpg

Both TrID and TrIDNet easily determined that it is a PDF file — and with 100% certainty. Of course, 100% certainty is not always the case, as shown in this real-life example of a file uploaded in a recent EE question. The file bumped into the 40-character file name limit and wound up with a .x file extension. Here are the TrID results on it:


TrID/32 - File Identifier v2.20 - (C) 2003-15 By M.Pontello

Definitions found:  6019

Analyzing...


Collecting data from file: d:\0tempD\Time-Interval-Frequency-calculationv51.x

 51.3% (.XLSM) Excel Microsoft Office Open XML Format document (with Macro) (57500/1/12)

 45.0% (.XLSX) Excel Microsoft Office Open XML Format document (50500/1/11)

  3.5% (.ZIP) ZIP compressed archive (4000/1)


It is, in fact, a .XLSM file, as predicted by TrID, although with only 51.3% certainty. After changing the file type from .x to .xlsm, it loaded perfectly into Excel.


If you find this article to be helpful, please click the thumbs-up icon below. This lets me know what is valuable for EE members and provides direction for future articles. Thanks very much! Regards, Joe

17
LVL 62

Author Comment

by:Joe Winograd, Fellow&MVE
Comment Utility
Hi Bill,
Thanks for the kind words and the upvote — much appreciated! I like your "Dealing With Unknown Files and File Extensions" title — it's better than the one I chose. Regards, Joe
0
LVL 36

Expert Comment

by:Duncan Roe
Comment Utility
The Linux file command gets the file type right every time (file extensions are a Windows thing I guess)
0
The Rasberry PI is a low cost piece of hardware that you can have a lot of fun with through experimenting and building/working on projects like media players, running a low cost computer, build data loggers etc. - see: https://www.raspberrypi.org
8
LVL 71

Expert Comment

by:Merete
Comment Utility
Thankyou Gerwin I've had my Rasp PI XBMC for about 5 years  and now understand  how to take it further than just a media device for mp4 on a SD card
XBMC is now Kodi.
0
LVL 38

Author Comment

by:Gerwin Jansen, EE MVE
Comment Utility
Thanks and you're welcome :)
0

Why snapshot as backup-strategy?

When working with large to huge databases it is critical to take a backup of the database for disaster recovery and data failures that application either cannot recover or regenerate corrected data. For a database of such size it is vital that backup time is as short as possible to minimize application downtime/disruption due to backups. Regular backups can take several hours or more to complete for very large to huge databases.
The fastest way today to take a database backup is using the snapshot technology (sometimes called FlashCopy) either on a filesystem level or if the database has such technology implemented.


ZFS filesystem and snapshots

ZFS uses copy-on-write transactional object model allowing old data to be retained as new data is written and allowing snapshot versions of the filesystem to be maintained.
Here I will demonstrate how you can use the Solaris zfs filesystem (ZFS on FUSE) to backup MySQL/MariaDB database in as short time as possible.


Preparing the VM

For this demonstration I'm using Centos 6.5 64 bit with zfs-fuse in a VirtualBox VM with 1 Core (2.3 MHz AMD A10 ) and 1GB RAM, even though recommended minimum for zfs-fuse is 2 GB.
The VM disks (VDI format) are as follows
  • 20 GB disk with the Centos 6.5 system installed.
  • Three empty 5 GB disks that will be under the zfs filesystem.  
First thing is to make sure the SELINUX is disabled and reboot the VM after editing the config file as root :

Open in new window

0
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once you download and install Linux Mint 17.2, Python software is installed by default. But the latest releases from Python are Python 2.7.10 and Python 3.4.3. I am using a 32 bit operating system as my host is 32 bit but you can still go ahead with 64 bit version which is preferred.

Log into the Mint operating system, and open terminal. Type "python" and hit enter or you can type "python --version" to check the existing version.
swadhin.ray-000036.pngTo download the latest version of Python, open https://www.python.org/downloads/ and click on "Download Python-2.7.10" as shown in below image.
swadhin.ray-000037.pngOpen the folder where the file is downloaded. In my system it's defaulted to "Downloads" folder.
swadhin.ray-000038.png
swadhin.ray-000039.pngIf you open the tar file from the archive manager you can see the files that were downloaded.
swadhin.ray-000040.pngNow extract all the files under the same folder or you can choose a specific directory. Click on Extract button as shown below.
swadhin.ray-000041.pngswadhin.ray-000042.pngWait till the file get extracted.
swadhin.ray-000043.pngNow from the above image we can we can see that file is successfully extracted.
swadhin.ray-000044.pngNow open terminal and locate the extracted installation files.

Open in new window

1

Expert Comment

by:MeganDS
Comment Utility
When I executed "./configure", you said it shouldn't have any errors, but mine did. When I did that, I got this output:

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking for --without-gcc... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/sara/Downloads/Python-2.7.10':
configure: error: C compiler cannot create executables
See `config.log' for more details

Open in new window


What can I do to fix this?
0
LVL 17

Author Comment

by:Swadhin Ray
Comment Utility
what is your OS version seems you are installing 64/bit on 32 .
0
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additional drivers, for example Nvidia or ATI cards.
I am using a Minti OS on virtual machine, but when I tried to change the resolution I am not able to select anything.

Here are the steps to identify if the problem exist on your operating system.
swadhin.ray-000024.pngType Display on the search and click on the Display options as shown in above screen. Now if we try to select the drop down option from Resolution attribute then I am not able to select anything other than 640 x 480. It also has the same problem on other attributes like Refresh rate and Rotation. Finally when clicked on Detect monitors nothing happens: still shows the same problem.
swadhin.ray-000025.pngWe might see the "Unknow " message under Monitor attribute.
swadhin.ray-000026.pngTo fix this let's open terminal.
swadhin.ray-000027.pngType "sudo apt-get install mesa-utils" and provide your root password or if your existing user is a super user then use the same password.
swadhin.ray-000028.pngThis will install the mesa-utils package. Restart or reboot your OS.
swadhin.ray-000029.pngTo verify the installtion type " glxinfo | grep render " once your system is restarted:
swadhin.ray-000030.pngProvide the password to login.

swadhin.ray-000032.pngOnce restarted open terminal and type "glxinfo | grep render " and then type "glxgears".
swadhin.ray-000031.pngOnce done check the display again to verify if the issue is fixed or not.
swadhin.ray-000035.png
1
LVL 17

Author Comment

by:Swadhin Ray
Comment Utility
@Ivan: Try to repeat the same process and also check if VGA output is disabled from the BIOS.  In my case, I was able to fix it by using the steps mentioned.
0

Expert Comment

by:Ivan Derzhanski
Comment Utility
@Swadhin: Thanks for the hint; unfortunately the BIOS setup utility of this computer (Eee PC 1001HA) doesn't have such a setting.  I gave up on Linux Mint and installed Linux Lite instead.
0
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see a download option at the right side of the page, go to the download page from the menu :

pic-2.pngYou can download 32 bit or 63 bit image and I am using 32 bit as my system is with 32 bit OS . I have downloaded and kept it on my specific directory where I can map to my Virtual Box while installing it.
Now open the VMBox and click on New to create virtual machine and map the ISO image to proceed with installing.  Once you set up all the necessary settings on memory space and disk space you will see the screen like below and then you can click on start button to start the installation.

Follow below steps shown with screen shot to start the virtual machine creation: 
2015-07-05-19-21-31-.jpgCick on New and proceed next :
2015-07-05-19-19-08-Oracle-VM-VirtualBoxGive any name to the virtual machine and select the type and version , click Next:
 
2015-07-05-19-19-26-.jpgSelect the memory size you want the VM to have -  I am using 1GB of RAM i.e. 1024 MB approximately. 

2015-07-05-19-19-46-Oracle-VM-VirtualBox
Click on Create button.
2015-07-05-19-20-52-.jpgClick Next. 

2015-07-05-19-21-00-Oracle-VM-VirtualBoxI am trying all default setting for installing the OS but you can choose as per your need. 
2015-07-05-19-21-18-.jpgHere we can set the size of the virtual hard drive . Once filled click on Create button. 

2015-07-05-19-21-31-.jpg Now set the ISO file which was downloaded from Linux Mint website. 
sloba-000006.jpg
1

Linux

65K

Solutions

33K

Contributors

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.