Tuesday, May 21, 2013

How can I safe a javascript generated page to an html file from a linux command line?

Q. Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

A. from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!

how do you access a remote computer from the linux command line?
Q. i know the sshusername@computername part, but how do i get to the point where i type that in the command line?

A. Take a look at the "ssh" command (manual page linked below from Duke University)

What is the windows equivalent of the Linux terminal's CTRL + D?
Q. I wrote and compiled a c program, and in the Linux command line, it allows me to enter text, then press CTRL + D to enter the next step of the program, if thats what you wanna call it. Ive recompiled the source for windows, and i notice that CTRL + D just types ^D... what key combo should I be using?

A. If the program is looking for end-of-file, use ctrl-Z.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Does Tiny Core Linux have support for USB drives?

Q. If I boot into Tiny Core Linux into a live CD environment, would it be able to read and write files from a USB drive?

A. it should support USB..

What are some self persistent forms of linux?
Q. I need a form of linux that is persistent, and preferably between 10-900 mb in size. Some examples are: Tiny Core, Slax, Ubuntu, and Damn Small Linux. (DSL)
Yeah sorry im using a FLASHDRIVE to do this

A. All versions of linux are persistent after they are installed on the hard drive.
This will let you install linux on a usb flash drive and provide some space to preserve the changes you make while using the flash drive.

Are these Linux distros useable as virtual hosts?
Q. Are there pre-built packages for, or guides to build, programs like Virtualbox on Damn Small Linux, Puppy Linux, or Tiny Core Linux? Or is there any low resource OS's that I haven't listed that would be better suited for the task of being a virtual host? I am wanting to try it out on my current pc before I build one specifically for virtualization.

Also, is it possible to stream a virtual OS from a server so that all the processing is done there and not on the client PC? ( kind of how certain rental companies stream a game to your computer, allowing you to play it, even if your computer doesn't meet the requirements.)

A. I presume you have a decent server so it can run big apps, so try Puppy, it's up to date and capable, unlike those others which might be missing things. Or try Bodhi, which is Ubuntu with a E17 desktop. Fast, and you've got all the Ubuntu repositories.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

How can you install windows 7 on a linux os computer?

Q. My brother has a linux os computer and he wants to install windows 7 using my disc. Any help?

A. Assuming his linux computer is i386 based processor computer (PC) then he must choose whether to install in natively, as dual boot, or as a guest operating system, in a virtual machine.

This of course, assuming that he owns the license for the windows 7.

Installing it natively allows you to install 2 operating systems on your PC, but allows you to only use one at any given time. Usually, upon boot, the os loader (grub or OS Loader) would ask which operating system you would like to use.

Installing in a virtual machine, on the other hand, creates a virtual computer within your Linux operating system, like VMWare or Xen. This virtual computer can then be installed the Windows7. You can use both operating system at the same time, and even communicate with the both machines as if they are physically separate computers.

Down side is that, since this is 1 machine running inside another, your guest operating system cannot get the full performance load running your host computer.

Are there any linux os that will run on an old laptop with a Linksys wireless card?
Q. I have a few Linux OS i have tried out and none of them worked with a Linksys wifi card. Can a Linksys wireless card work with Linux or is there another OS that will work with it and work on an old computer?
I am running on a very slow and old laptop Pentium 3 with original windows 98 installed on it.

A. Find what model card you have and see if it is supported, ie google ubuntu + card model. It may simply be a matter of installing the appropriate driver from the repository.

An alternative is to install ndiswrapper, if it isn't already installed, and use the .inf file from the XP drivers for the card, which you can download from the manufacturers website.

If the machine doesn't have at least 256 meg of ram then it won't be capable of web surfing.

The lightest full system to use would be puppy. Xpud is also worth a try, it is basically just a browser and a file manager. The best choice for a polished, configurable system would be lubuntu (ubuntu with the lxde desktop).

Cheers!

What Linux os is the best one to install on a computer?
Q. For people wanting to download media files on? And are all Linux os's free or atleast the good ones? Is there any point of me putting linux on my d drive so I can switch back and fourth from windows 7 to Linux?

A. Most Linux distributions aimed at home/office users are free.
There is no "best". This test will help you decide: http://www.zegeniestudios.net/ldc/
As you are probably a new linux user, I would recommend ubuntu or openSUSE. It can install and configure the GRUB loader for you, which is what you need to dual-boot windows and linux, and yes, you should definitely keep your windows installation.

BTW, All distros are able to download media files, most of them able to play them straight away (I would say all, but then there is Arch and Ubuntu Server ;)).

There's really no reason to think of which distro to choose for too much, most are quite similar. The only major differences between distros are the package managing systems and the pre-installed packages. Anotherdifference is, for example, that in Ubuntu, unlike Debian, you can not su root (=login as superuser) by default. (TTheoreticallyyou can make Debian look and behave exactly like Ubuntu with some configuration work, though.)



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

why is the UK version of yahoo home page defaulting to mobile in Linux versions of chrome?

Q. I'm using Ubuntu both i386 and 64bit and the latest version of chrome downloaded from Google its happening on several machines I'm using. Is there some kind of global account setting that would do this?

A. Does it happen when you are logged out or only when logged in?

Have you tried clearing your cache?

If it happens only when you login, it is an account setting.

If it goes away after clearing your cache, you may have visited a link to the mobile site and a cookie got set for it.

If it is happening when you are logged out and you have cleared your cache, it is probably related to your user agent.

You could use the following command to change your user agent to that of an IE9 browser:

google-chrome --user-agent="Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"

If this fixes it, which it should, you would want to check your current user-agent and see if there is anything weird about it. Changing your user agent should only be a temporary solution, it can cause problems long term.

How to make a terminal executable file?
Q. If I wanted to run a command on either Mac or Linux by the click of a button (opening a file), what would I do? I'm looking for a Mac/Linux version of a .bat file.

A. Linux has shell scripts which are typically written in SH files. Since Macintosh and Linux are both based on Unix, I suppose Macintosh probably has exactly the same thing.

How do I run a web browser from linux command line?
Q. I an VERY new to linux. I have installed Fedora 5 in text mode. I have a Linux book and am trying to slowly learn linux. So from the console, or command line, how do I run a web browser. Also how do I run the X Windows System?

A. If you installed in text mode, maybe you didn't install X. You probably have a text mode browser. Try lynx or elinks. If the startx command doesn't work, try "yum install x-window-system". By the way, Fedora 5 is old. The current version of Fedora is 9.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Is Linux System Administration worth trying in my case?

Q. I am trying to change career(unemployed) and I am a newbie in technology except that I did some html & CSS. I wonder if I study Linux for a year & maybe pass a linux+ certification I will be able to get an entry level position? Is it too old at 48 to try? Or maybe should I focus on something like PHP/Mysql? I am trying to decide what would be the easy road and the rewarding one as well. Thanks.

A. Try RHCE, Age wont be a problem.

what kind of hourly wage could i expect with a A+ certification?
Q. I plan on taking it this summer and was wondering where could i work and what kind of pay i would receive. I plan on taking my linux certification this winter any idea what that pays?

A. Really dont expect much. A+ is the basics of basics. Depending on your area and where you apply, you will probably start a few dollars ($2-4) over minimum wage, if you have no job experience. Linux certifications are only meaningful if the place you are apply has any Linux machines in the first place. Most of the business world runs Windows, and then if at all, they run Linux for task specific jobs, which are basically set and forget.

I installed Fedora 13 for a class, how do I get back to vista?
Q. I followed instructions in our book Linux+ Guide to Linux Certification 3rd edition in project 2. Please help I really don't know what's going on. Step by step instructions would be nice. Thanks.

A. If you did not allow the option for resizing the Windows drive and creating its' own partitons in the free space this creates during install, you have lost Vista. If you had ot would offer you the option to boot from Vista each time you start up. You would now need to re-install it from the original OS disk. You will need to use the advanced option to delete all partitions and create one new one to load on. All your data is gone.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

scp files from my school computer to my home computer?

Q. I just purchased an iMac for my home office and I want to copy files from my Linux machine at school to my iMac at home. My iMac is on a wireless router. I open up a terminal and use ssh, but I'm having issues copying files over. I tried scp filename username@home_ip_address:~ but it doesn't work. Any suggestions?

A. on your imac:
scp your_school_account@ \
your_school_machine:/home/juan/filename .
(two lines because Yahoo Answers didn't display it right)

or Charlie Kelly's method:
sftp your_school_account@your_school_machine
get filename

another option is to use a GUI if you prefer:
download Cyberduck, a free FTP client for Macs

How would you go about this linux task?
Q. 1. I must grep through executable scripts, but they don't end in .doc or .exe tag

2. the grep signature will be "rcp" other remote commands so I can change them secure commands like "scp"

Is there any way I could do this in Linux and using Perl?

A. find . -type f -perm /u+x -exec grep -l -w rcp {} \;

Find regular files starting at the current directory which are executable by the owner. When found grep on whole words of "rcp", but display only the file names.

If you really want to replace "rcp" with "scp" in all cases (not recommended because that is too sweeping), then add a sed loop. Something like this:


find . -type f -perm /u+x -exec grep -l -w rcp {} \; | while read NAME; do cat $NAME | sed -e 's/rcp /scp /g' > .tmp.$$ ; mv .tmp.$$ $NAME; done

Be SURE to test that thoroughly before trying that last bit.

How do I turn my Ubuntu/Linux PC into a server for my Windows 7 PC?
Q. Is this a good idea? Will my Windows PC get extra protection since I will be going on the Internet using the Ubuntu as a server, as an intermediary? How difficult is it to do this?

A. This question is pretty poorly designed. There is no "Server for windows" in Linux. You can do several things with linux and connect/use them from windows though. You can make linux a firewall and router, connect it to your cable/dsl modem so you can have multiple computers use your internet connection at one time. You can run web, ftp, and other servers for files and web pages. You can also run Samba which allows you to access and store files on the linux hard driver over the network. linux also makes a GREAT extension to your windows environment using things like xdmcp, rdp, ssh, scp. if you do not know what any of these terms are, google is your buddy. You can also set up a web proxy using linux and this could definitely be used to increase your web browsing security in windows by blocking malicious web sites. Pretty much anything you want to do with Linux is limited by you and your willingness to learn.

Nothing is simple click and go in linux. You have to be willing to experiemnt, read, and learn.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

How can I remove Linux from my computer and restore the partition space to windows?

Q. I have both Linux Mint 11 and windows 7 on my computer and I no longer want it on my computer so... ya, pretty much says it all in the title.

A. (NOTE: A page titled "How to uninstall Fedora" was added to the project wiki after this blog was published, as noted in the comment section below in a post titled "Contribution is easy.")

Try "remove Fedora."

Nothing.

Go to Ubuntu's official documentation site and search for "uninstall Ubuntu."

You won't find anything in the "official" documentation but in the "community" section you find two entries that state "Wubi allows you to install and uninstall Ubuntu...."

In an installed Ubuntu distribution, clicking on Help and searching for uninstalling or removing Ubuntu finds nothing. A link ârepeat the search online at the Ubuntu help pagesâ brings up a 404 â page not found.

If you look hard enough on the real community support pages you'll find a post from July 2007 titled "HowTo: Remove Ubuntu (& Restore Windows)" .

Have a cow
The post starts out: "Okay, I know some people are going to have a cow because I'm posting this."

(No kidding. Just take a look at the excoriating flames that are sure to appear in the comments section of this blog.)

OpenSUSE does better. A search there finds the page titled SDB:How to Uninstall Linux from December 2006. The page includes more than 1,300 words to describe various processes.

Go to Google and search "install Linux" and you get about 1,450,000 hits. Try "uninstall Linux" and you get about 16,800. "Remove Linux" gets you about 53,300.

Why is it so hard to find instructions to remove Linux and then so hard to actually do it?

Why can't you just easily find the uninstall procedure in a help file, and click a button and follow the instructions?

Windows makes it easy
Opening the Windows XP Help and Support Center and searching for "uninstall Windows" brings up, first thing, "Uninstall Windows XP" and a 5-step process from the Control Center.

Did you know that in a dual-boot install Linux will partition your hard disk and if you remove the partitions without restoring the Master Boot Record on your boot-up disk, your computer won't start?

Did you know you'll likely need separate applications such as fixmbr or fdisk or partitioning software to get your system back the way it was, hopefully having not lost any data? Or you may need to change a BIOS setting to boot to a Windows CD and use its "Recovery Console?" These all depend on your version of Linux. Again, openSUSE seems to do the best job in automating the process, with the "YaST2 Control Center."

Oh, and if that dual installation included Windows, and partitions were resized, "Microsoft does not support Windows installed on partitions manipulated in this manner."

So it's just you and that Linux documentation. Good luck.

Now, I don't have any great love for Windows and I like Linux. I really do. I'm going to use it and learn a lot more about it.

But if you're a newbie like me, you'd best be warned. Searching various Linux forums finds a lot of users who have had problems uninstalling the OS and have lost data in the process.

Go back to Windoze? You're stupid
And while there are some helpful Linux aficionados who try to help these people out -- and others searching for uninstall help -- there are too many posters who take the attitude along the lines of: "Why would you want to uninstall Linux? That's crazy. You must be stupid to want to go back to Windoze."

If you want to try Linux out while keeping Windows, it's a real good idea to try it from a "live" Linux CD/DVD instead of installing it on a hard disk. Iâve tried several. The response is slower, of course, but you get an idea of how it works and donât risk losing anything. For Ubuntu the Wubi installer accomplishes the same thing by treating Ubuntu as a Windows application.

Do your homework
If you do install Linux on a disk, make sure you do a full system backup. And make sure you have a bootable "rescue" or "system" CD. And really do your homework. Read up on disk partitioning and logical volumes and extended partitions and mounts; and GRUB and LILO bootloaders; and NTFS, FAT 32 and ext3 file systems; and gparted and maybe the commercial app Partition Magic -- which supposedly merges/resizes partitions without destroying data -- and so on.

Then read it all again. And be careful our there.

What are the differences between UNIX and Linux, and what about all those choices within Linux?
Q. What are the operational differences between Linux and UNIX? Why would a programmer choose one over the other? What about software selection and ease of programming (with already basic knowledge of programming, and wanting to dive in to open source)?

In terms of Linux, what makes things like Red Hat cost money and things like Ubuntu not? Is pay-for OS based on Linux better quality than freely distributed OS? What is the best choice for Linux-or-Unix OS for a budding programmer?

A. What is Linux
http://www.linux.org/info/

What is UNIX
http://www.unix.org/what_is_unix.html

Why Linux is Better
http://www.whylinuxisbetter.net/

Linux is open source therefore in most cases free of charge with the exception of enterprise releases such as SUSE Linux and Red Hat
http://www.novell.com/linux/
http://www.redhat.com/
http://en.wikipedia.org/wiki/Open_source_software

What is Ubuntu

Ubuntu is a community developed operating system that is perfect for laptops, desktops and servers. Whether you use it at home, at school or at work Ubuntu contains all the applications you'll ever need, from word processing and email applications, to web server software and programming tools.

Ubuntu is and always will be free of charge. You do not pay any licensing fees. You can download, use and share Ubuntu with your friends, family, school or business for absolutely nothing.

We issue a new desktop and server release every six months. That means you'll always have the latest and greatest applications that the open source world has to offer.

Ubuntu is designed with security in mind. You get free security updates for at least 18 months on the desktop and server. With the Long Term Support (LTS) version you get three years support on the desktop, and five years on the server. There is no extra fee for the LTS version, we make our very best work available to everyone on the same free terms. Upgrades to new versions of Ubuntu are and always will be free of charge.
http://www.ubuntu.com/products/whatisubuntu

Here are some options for installing or trying out Linux

Option One (Full installation)

I thoroughly recommend Linux Mint 8 Main Edition which is built upon Ubuntu 9.10 Its easy to install and easy to use plus it comes with much of the software you are likely to need preinstalled

Linux Mint 8 Download
http://www.linuxmint.com/edition.php?id=44

The Perfect Desktop - Linux Mint 8 (Helena) Installation
http://www.howtoforge.com/the-perfect-desktop-linux-mint-8-helena

Linux Mint 8 Helena User Guide
http://www.scribd.com/doc/23787138/Linux-Mint-8-Helena-User-Guide

You download the ISO. image of Linux Mint 8 then you need to create a Bootable LiveCD for installation

Linux Mint 8 can also be run direct from the LiveCD from Booting up without touching your Hard Drive

Option Two (Install Linux inside Windows)

Installing Ubuntu as a dual-boot with Windows without partitioning
http://www.psychocats.net/ubuntu/wubi

You keep Windows as it is, Wubi only adds an extra option to boot into Ubuntu. Wubi does not require you to modify the partitions of your PC, or to use a different bootloader, and does not install special drivers. It works just like any other application.

Wubi keeps most of the files in one folder, and if you do not like it, you can simply uninstall it as any other application.

Boot in to windows insert the Ubuntu 9.10 LiveCD and you will offered the option of installing inside windows which is where the Wubi installer comes in, you will be asked how many gigabytes you wish to allocate to Ubuntu (I recommend 8gb) then you set a password for your installation then click install and thats it.

Once Ubuntu is fully installed upon starting your PC you will be given a choice of which operating system you want to use Windows or Ubuntu

Ubuntu 9.10 Download
http://releases.ubuntu.com/9.10/

Ubuntu 9.10 (Karmic Koala) User Guide
http://ubuntuguide.org/wiki/Ubuntu:Karmic

Linux Mint 7 has a similar feature called mint4win and the directions given above for Wubi can be followed (XP and Vista only)
http://duncsweb.com/2009/09/27/mint4win-a-wubi-based-installer-of-linux-mint/

Linux Mint 7 Download
http://www.linuxmint.com/edition.php?id=38

Linux Mint 7 Gloria User Guide
http://www.scribd.com/doc/15884753/Linux-Mint-7-Gloria-User-Guide

Ubuntu 9.10 and Linux Mint 7 can also be run straight from the LiveCD without touching your Hard drive

At present I do not recommend Ubuntu 10.04/Linux Mint 9 owing to multiple stability issues

Option Three (LiveCD)

Here the possibilities are endless as you can try out as many different Linux distros. until you find the one thats right for you DISTROWATCH.COM gives full listings (second lists the major distributions)
http://distrowatch.com/

Major Linux Distributions
http://distrowatch.com/dwres.php?resource=major


LUg.

How different is a Linux network compared to a Unix network?
Q. How different is a Linux network compared to a Unix network? I understand a Unix network has mainframes, etc.

What are the things a Unix network has but a Linux network does not have and can never have?

A. Uhm... nooo.... Unix networking has about zero to do with mainframes.

Actually, Unix networking and Linux networking are pretty darned close with little or no exceptions.

Where are you getting your information from? Where ever it is, its bad information. Don't go there any more.



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