Tuesday, May 21, 2013

How to capture C and CPP files in the linux operating system?

Q. I am new to linux and have been trying to figure this out forever for a homework assignment! I am supposed to use appropriate linux commands to capture all "C or CPP" files in the linux operating system and make a list of the files. I am using Xubuntu. I am a beginner and could use any advice! Thanks!

A. What does it mean to capture a file??

If you mean to find the files and list the results, use the 'find' command to search for *.c and *.cpp files in the whole system. You will get the result on the screen, and you can redirect the output to a file.

To find *.c files:
find / -name *.c

To find *.cpp files:
find / -name *.cpp

Explanation: the "/" means to start the search at the top of the file system, meaning that the search will include all the system. The "-name" means to search by name, and "*.c" is the file pattern you want to find.

To redirect the output, use "> output_file" for example:
find / -name *.cpp > output_file

Hope it helps. See the manual page 'man find' to learn more.

What's the difference between Linux operating systems?
Q. Linux has a lot of operating systems, I'm not even going to bother to list them. I was wondering, it there a difference between them? Does each type of Linux operating system hold a specific purpose? For example, Red Hat holds a different functionality to Ubuntu, or something like that.

A. Linux has many distros but all versions of Linux are the same OS.

Linux is extremely customizable. So much so that it'd be impossible for one person to do all the tweaks necessary to have what most people consider a polished and functional operating system. On top of that many Linux distros are heavily customized for specific purposes. Robotics, hardware appliance (routers for example), Real time OS (traffic lights, microwave ovens, unmanned aircraft), Music studios, Network security, Home theatre, Cash register, various industrial and scientific specialties, generic servers and so on.

There are also distros that are specialized to fit on a 1.44 floppy, thumb drives and a few distros specifically designed to run on CDs rather than be installed on a machine. There are distros that mimic other operating systems such as Mac OS and Windows so closely that at a glance you wouldn't know that you were not using those OS's. Other's are branded such as Dell's version of Ubuntu which is customized for Dell hardware.

There are also commercial versions of Linux. Red Hat Enterprise for example which is designed for high end servers and IBM's SUSE which has customizations for running on IBM virtual servers/being the host OS for the virtual servers, a desktop version which much of Europe's governments uses.

Distros often come with sub distros that are customized for various purposes. For example most major distros have a KDE and a Gnome version These are customized to people's favorite window managers and some distros support up to 5 or 6 window managers with sub-distros. Most support at least 2 or 3. Long term support, special purpose sub-distros like Ubuntu Studio which is geared for musicians are also common with widely used general distros.

The majority of distros however are shortcuts for Linux users to get what they want/need without spending the thousand of hours personally making those customizations. For example some like myself do too much customization and install too much software to upgrade a machine every 2 years. So long term support versions appeal heavily to me. I need and use a large variety of applications so it's important to have very large software repositories. Other people choose high performance bare bone distros. Some people want total control over their sytem and choose primitive distros that give you the bare min necessary, anything else the user installs themselves and customize as they see fit. (not recommended for anybody but an expert).

There are philosophical choices involved in choosing a distro. One big split for example is RH vrs Debian based systems. The RH fork (RHE, SUSE, Mandriva, CentOS) and Debian fork (Ubuntu, Debian) have some small differences in the way they are built. For example RH systems use YUM for software installation while Debian based systems use Apt-Get. You can install and use YUM on Debian systems and Apt-Get on RH systems. It's just a matter of defaults. Same with how root privileges are handled, and other minor details. The average user won't notice such subtle differences.

I've included a link to distro watch which gives details about specific distros as well as release cycles and where to download them.

How do I rescan for wireless connections when I've recently deleted them - Linux operating system?
Q. I recently purchased an Acer Netbook with Linpus Linux operating system. I stupidly deleted all of the wireless connections it found so that I wouldn't be inadvertently 'piggy backing'. However, I seem to have deleted even my own and it won't even scan for anything now, though I am following the correct procedures for it to do a re-scan. What have I done? Thank you for any guidance here!

A. Does Linpus have a package manager called synaptic? If it does you can probably reinstall what you have removed. I am not familiar with Linpus Linux.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Where can i download robin hood the legend of sherwood linux version for free?

Q. Please give me links to download robin hood the legend of sherwood linux version, i checked out torrents but there were no seeds, if not robin hood then any other good game but give.

A. Try movieadobo.com

what is the best full linux/semi full linux version to use on an old machine?
Q. what is the best full linux and or semi full linux version to use on an old machine? specs are as follows:
4 GB HD.
100 MB memory
pentium II

any help would be appreciated thanks. i plan to use it just to learn linux as well as LAMP (Linux Apache mysql php)

A. Puppy Linux:

http://www.puppylinux.org/

Damn Small Linux:

http://www.damnsmalllinux.org

It's been a while but either Mepis or PCLinuxOS is good with small dmachines. I forget which. Linux Mint is supposed to be and I've seen some roll-your-own fubuntus which were out on CD. Xubuntu has actually gotten pretty big and feature laden.

what does the gnu require software developers to do when modifying linux version?
Q. What does the GNU General Public License require software developers to do when modifying Linux version?
distribute? Huh? I'm an idiot when it comes to this stuff can someone elaborate for me please... I have a 6 page paper and 4 midterms to study for. Help me out pa pa pa please!

A. The GNU License only requires that you license your modified work under the same GNU license. This is known as attribution. Beyond that you have no other legal obligations. As for distributing your work, I have two suggestions for you.
1. Google Code ( http://code.google.com )
2. Source Forge ( http://www.sourceforge.net )
Both are great for getting your project out there.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

How can I tell if my Linux install is in its own partition?

Q. I have a Gateway netbook with Windows 7 starter. I installed the Ubuntu 10 version of Linux. But I don't think it installed on it's its own partition, because it never asked me about the size or anything of a partition or which partition to use. So, I followed some instructions on the internet to put Linux on its own partition, but how do I know its really on there?

A. It did, but if it will make you feel better, do this:

Boot into Linux.
Open a console shell
Type 'df -h'

The partitions will be displayed. The information on the right will tell you the mount point. The one marked '/host' will be the windows partition. On the left the host partition will be /dev/sda1. All the rest are you Linux partitions.

If you want to know more about /dev/sda1, type 'fdisk -l' (be careful with fdisk).

How do you determine what Linux file system your using?
Q. When you log onto a Linux system and get to the command prompt, how can you determine which of the many file systems supported in Linux you are using? Is there a command that will identify it?

A. Use fsck with the N option which just show what would have been done, but also show you what type of filesystem it is.

fsck -N /dev/(device-name)

e.g.

fsck -N /dev/hdc2

The 'mount' command wont help if the filesystem isn't mounted, and looking in /etc/fstab wont help because you cant be sure that information can be trusted.

How can i access a RAID partition from Linux?
Q. I am playing around with Mandriva, a distribution of Linux. I have windows installed on a separate RAID 0+1 setup and i want to access my files from Mandriva. How can i do this? I'm reading about samba shares but i'm not so sure I understand. Is there a directory i can just type in to access my windows partition?

A. Just mount the partition.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

What distro of linux works best with world of warcraft? also kde vs gnome which one?

Q. I've tried playing wow on ubuntu through wine, and the graphics are all chopy at low settings. But when I play in windows 7 the graphics are fine? Is there a better distro that will not make the game so choppy? (Like emulate windows drivers) also is arch linux, gentoo, or saybian good for this game or 3d drivers in general?

A. The choice of distro does not really affect performance to that degree; the presence of suitable drivers does. You may wish to try installing the proprietary drivers for the video cards.

https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia
https://help.ubuntu.com/community/BinaryDriverHowto/ATI

The choice of KDE or GNOME should not really impact gaming, though you may need to disable Compiz or compositing in KDE temporarily. Arch Linux and Gentoo do not ship proprietary drivers by default. Sabayon does include them, but that is because of a difference in opinion / politics, not technical.

What is the best lightweight Linux distro for my computer?
Q. I have a Compaq Deskpro EP/SB with Pentium II 333MHz processor (256MB RAM). I need a lightweight Linux operating system that is fast and reliable. I have tired Peppermint OS but it is too slow on this computer. I don't like Puppy Linux, nor Macpup. I need something different.

Thanks :)

A. Hi
With your processor and amount of ram you have to go with a puppy derivative. Puplets
http://puppylinux.org/main/Puplet%20for%20special%20features.htm

DSL (Dam small Linux)
http://www.damnsmalllinux.org/

Tinycore.
Tinycore requires alot of work.
http://distro.ibiblio.org/tinycorelinux/

Bodhi Linux
http://www.bodhilinux.com/

Gentoo Linux
http://www.gentoo.org/

Lubuntu.
http://lubuntu.net/

Look on distrowatch and do a search for small linux distros.

To be frank puppy has the best support of all the medium Linux distros via the murga forums.
http://www.murga-linux.com/puppy/

you wont get a snazzy desktop to run with those computer specs.

What linux distribution do you recommend?
Q. If you want to learn how to adminster Linux systems properly, not simply for use as a Windows replacement?

A. This are the most common distros. I DON'T RECOMMEND ANY OF THIS to learning linux at sysadmin level:
Red hat (or centos or fedora)
Ubuntu (or Mint)
Suse

All those distros are designed to be user friendly and easy.

You need a distro that keeps configuration plain and simple, instead of trying to hide it with a nice gui.
I RECOMMEND YOU:
Arch Linux
Gentoo
linux from scratch

I have used archlinux myself, and I can tell you is really easy to learn AND does not hide any of its configuration using guis.

Archlinux has a GREAT wiki, so, even if you are going to configure all by yourself, you'll have great step-by-step guides.
I don't recommend you archbang or sabayon, since they hide their configuration, and its not what you want (You want to learn!)

And that's it. I'll leave you with this from the arch linux wiki:

Whereas many GNU/Linux distributions attempt to be more user-friendly, Arch Linux has always been, and shall always remain user-centric.
Arch Linux targets and accommodates competent GNU/Linux users by giving them complete control and responsibility over the system.
Arch Linux users fully manage the system on their own. The system itself will offer little assistance, except for a simple set of maintenance tools that are designed to perfectly relay the user's commands to the system. Arch developers do not expend energy re-inventing GUI system tools; Arch is founded upon sensible design and excellent documentation.
This user-centric design necessarily implies a certain "do-it-yourself" approach to using the Arch distribution. Rather than pursuing assistance or requesting a new feature to be implemented by developers, Arch Linux users have a tendency to solve problems themselves and share the results with the community and development team â a "do first, then ask" philosophy. This is especially true for user-contributed packages found in the Arch User Repository â the official Arch Linux repository for community-maintained packages.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Can anyone help me with installing programs on Linux?

Q. I dont have internet on the computer i have linux on, am i screwed or is there still a way?

A. Some software is distributed in "Source form". This means you download a file containing all the source code for the application you want to install, unpack it, and compile it on your system. Compiling is the process of turning the source code into an executable binary. It is a fairly straight forward process.

Typically applications you must compile from source will come as a ".tar.gz", ".tar.bz2", or ".zip" file.

You'll probably want to operate from inside your home directory. If your user is (for example) username, your home directory will be /home/username/. Downloaded your zip file containing install files to /home/username/src. If you do not have a src directory, you can create it with the following "mkdir" (make directory) command:


Code:
mkdir /home/username/src/
So, we have our source package in /home/username/src/.

Change to the /home/username/src/ directory with the "cd" (change directory) command like so:


Code:
cd /home/username/src/
Use the "ls" (list directory contents) command, to see the file is present:


Code:
ls

We now need to unzip the zipped file, this is done differently depending on the file extension.

for files ending in .tar.gz, use:

Code:
tar -zxvf <filename>
(replacing <filename> with the name of the file).

for files ending in .tar.bz2, use:

Code:
tar -jxvf <filename>
for files ending in .zip, use:

Code:
unzip <filename>
You should now have a new directory, containing all of the source files. To confirm it exists, and to get its name, use the "ls" command again.

Code:
ls
we now need to go into the new directory, so use the cd command:

Code:
cd <directory>



This is where things will differ. Some packages will have an INSTALL or README file which will contain installation instructions. use "ls" to see if the software has an install or readme file. If it does have one, you can use the "more" command to read it, like so:

Code:
more INSTALL
Generally, the final 3 stages are as follows:
- Configure the installation
- Compile the software
- Install the binaries

The pre-installation configuration is done by executing ./configure:

Code:
./configure
This will perform some requirements testing on your system, and create a "Makefile" which will explain to the "make" utility how the software should be compiled.

The next stage is to compile the software, this is done using "make". When you run "make" it will read the instructions in the Makefile and build the application binaries.

Code:
make

The final stage is to install these binaries, ie, copy them to a more permanent location. Typically only the "root" user can do this, so you will need to swich to the root user with the "su" command:

Code:
su
Once you are root, install the binaries using the "make" command, followed by "install", like so:

Code:
make install

How can I open a zip file on a Linux OS?
Q. I reaceently installed the LInux Fedora OS in my PC and now the sound is not working, does anybody know what can I used and or do to open a zip file?
Thanks in advance

A. There is a program called zip or unzip. Do a yum install zip or yum search zip from the command line (as root) then unzip the file using that.

http://www.cyberciti.biz/tips/how-can-i-zipping-and-unzipping-files-under-linux.html

Why wont my downloaded version of wordpress work?
Q. I downloaded wordpress from wordpress.org and it downloaded it as a zipped folder, I unzipped it but it is still just alot of documents and folders and files and I have no idea how to set it up. I know other people have had this problem, any advice?

A. you need a running server (apache/php/mysql). [apache is reccommended, but not required)
It might be easier to sign up for a free hosting plan, so you don't have to think about the server-part

However if you'd prefer to have wordpress on your own computer:
http://php.net/manual/en/install.php
http://httpd.apache.org/docs/1.3/windows.html
http://dev.mysql.com/doc/refman/5.1/en/windows-installation.html

I took it that you're a windows user, if you have a linux distribution on you computer, you should be able to find these software packages in the repositories



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Possible to permanently delete a file from a pen drive in linux, without unmounting?

Q. I deleted a file using 'rm ' . Result: the file disappeared , but no freespace was recovered, so i cldn't add any files to the pen drive , without remounting..
wtf?

A. my computer > right click it > props > tools > defrag and scan for errors


i think

How can I fully format a pen drive stick?
Q. I downloaded a software called USB secure , this mainly consists in protecting my usb with a password .It requires to be installed on the usb so the program is on the pen drive . I deleted the software from the pc (regular delete from control panel) and formatted my pen drive , it still tells me that I cannot excess it .
Someone with the same experience or that knows the solution please help . Thanks in advance .

A. I am not sure that it will help or not,but try in any linux OS.First try to delete,if that won't possible,then go for formatting.
You can format the pen drive by using DOS also.

1.Open the DOS prompt (Start >> Run >> cmd)
2.Type:FORMAT X: /FS:FAT32 /Q /V:PenDrive

This will reformat the Pen drive, using the FAT32 file system, and label the drive PenDrive.
3. Replace X: with the actual drive letter of your Pen Drive.
4.For more help on this command, type:
FORMAT /?
at the command prompt.

How to keep my pen drive that I use in Ubuntu safe from Windows viruses?
Q. I use Ubuntu on my computer, but none of my friends do. How do I make sure my pen drive doesn't catch a virus on a Windows PC and transmit it to another Windows PC? Is there any way I can see, on my Ubuntu, if the pen drive has Windows viruses in it?

A. Windows viruses won't recognize the Linux programs, or how to attach to them. Even if they did, Linux would not run the virus, as it will not simply run that Windows code...
With ClamAV, you may be able to scan the pen drive.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

How to install a Unix operating system while still having windows?

Q. I want to be able to go in between a windows and Unix operating system. What is the best way to do this?? Are there any really good examples on the web that could help me with this?

Thanks

A. Big Ubuntu fan here too. Unix rules. You don't HAVE to have another partition, if you don't want to mess with your Windows partition you can get another hard drive, like a little 160gb one for $40 should be plenty. then you can install Unix on that and dual-boot. Dual-booting is where you turn on the computer and it will give you a menu of which operating system you want to boot into. you can even set a default and a timer so if you haven't made a selection in 5, 10, 20 or so seconds it will automatically go to the default.

If you only want to play around a little bit with different versions before jumping in and doing surgery, look into LiveCD's. Many Linux/Unix versions have LiveCD versions now. A LiveCD is a CD disk with a work install of that OS on it, you just insert the CD and boot up the computer and if the computer is set to check the CD for bootable content it will pop up a menu saying "boot from CD without modifying hard drive?" and you hit enter and it will boot up that OS. Everything it does just runs in RAM so you can't save anything to the hard drive, but it lets you get a feel for the interface, surf the web if it was able to detect your internet connection, play some games etc... LiveCD's are a great tool too because you can make them get into your hard drive if you want, so if a virus has ruined your Windows installation and you want to get your important files out before formatting it, you can use a LiveCD to copy all your files to thumbdrive or to an internet server or email them to yourself etc... Ubuntu is my favorite version for computers built in the last 5 years. Computers older than that run better on Xubuntu, which is a scaled-down version of Ubuntu. In fact I'm on Xubuntu now on an old 700mhz computer.

for a little bit on versions, Ubuntu seems to be the best for home use, like if you want your kids to have a computer to play games on where they can't just errantly delete files and ruin the computer, and they can't click on a popup and get a virus it is great. Xubuntu is about the same but for Older computers. Also Edubuntu is good for kids because it is Ubuntu with a lot more kids games installed. Another one I liked was Fedora. Fedora is based on Redhat and gets the very latest in app updates, so you get the latest and greatest cutting edge stuff, though it can be a little buggy due to being so cutting edge. Centos is also based on redhat, but updates go through more testing before being released for Centos. Centos is very closely related to Redhat Enterprise Edition, so it is sort of the go-to OS for companies looking for a stable and free server operating system. I know a few people that run Centos on their home computers as well, it has a similar interface to Ubuntu so it is very usable as a home machine too, just not quite as ready-to-go as far as games and music and movies, but still can do all that stuff if you google how-to sites. The last one I'll mention is Mint. Mint Linux is supposed to be great at home computing and server computing but I haven't tried it yet, I've heard great reviews about it from several people so it's probably worth a try.

Oh one more, I heard they released Solaris for free for x86 cpu's, Solaris is "real Unix" so if you need to study real Unix in a way that Linux won't cover then that could be worth a try.

Oh one more, Slackware, it is the "open hood" version of Linux/Unix that is geared toward programming, so if you are looking to get into coding and computer science then slackware may be the way to go.

What's the best version to of UNIX Operating System to use with Dell 4100?
Q. I am new to UNIX Operating System and am interested to know what version of it is the best one to use on a Dell 4100?

Whats the difference from Linux and UNIX?

Is one any better then the other? If so why?

What are the links to the best web sights to down load Linux of UNIX?

Any other info regarding this topic would be fine.

A. UNIX is a specification. There are many "UNIX" operating systems, such as Solaris, HP-UX, AIX, and Mac OS X. Linux is an operating system kernel that implements most or all of the features of UNIX but is not certified as such.

When it comes to running UNIX on generic hardware, you're pretty much limited to Solaris. All other forms of UNIX have specific hardware platforms. Solaris may run on your system if you have maxed out the RAM, although it may still be slow.

Linux supports a wider variety of hardware, is free, and can be tailored to almost any systems specs. As such, I would generally say it is "better", unless there is some specific application that won't run on Linux, or your goal specifically is to learn UNIX administration. The command line tools provided with most Linux distros aren't strictly POSIX compliant and will work slightly differently than the standard UNIX ones.

Downloads:

http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html?ssSourceSiteId=ocomen - Solaris
http://www.ubuntu.com/ - Ubuntu
http://xubuntu.org/ - Xubuntu (may run faster on your system)
http://www.centos.org/ - CentOS (based on Red Hat Enterprise Linux, an Enterprise-grade Linux distro)
http://www.debian.org/ - Debian (my personal favorite)

What unix operating system should I install on my macbook?
Q. I saw here a list of some unix operating systems: http://www.tech-faq.com/download-unix.shtml

Which would be recommended to be installed on my macbook? (Please tell me whether the operating system is known to work without problems on a mac.) I am a comp. sci. student.

A. I don't think you need to install Unix on MAC since MAC OS X is itself built on Unix OS.

All functionality of unix is present in OS X.
Search for origin of OSX on wikipedia.

If you would still like to try another flavour of linux try Ubuntu since it is easy to install and you can first try it using Live CD.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Newer Posts Older Posts Home