Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

51.

Solve : help to delete remote directory?

Answer» HELLO,

I am not familiar much with linux and I generally use the tutorials to figure out commands to APPLY to my web SERVER. However, I need to delete directories on a remote server and I need help in how to point the command to the remote directories rather than the directories on the server I am logged into (the remote server is USED for rsync backup and I need to clean it up).

To delete a directory (example = backup), I would do this in the root:

chmod 777 -R backup
rm -rf backup

This will delete the directory on the server I am logged into, but how do I point the command to the remote server instead?

THANKS for any assistance.hello dear sir
52.

Solve : Unix Shell script?

Answer»
 I wrote this shell script as part of a homework assignment but having problems with it running, any insight on this would be welcomed.   

 This script is suppose to create a file called student.txt and then capture the names and grades of 5 students and then display the contents of the file.

#!/bin/bash
if [ -s $student.txt ]  #True if the file EXISTS and is not a directory
then rm student.txt #to remove file "to remove a file"
fi
count=1
while[ $count -le 5]
do ECHO Enter the first name # for displying string "Enter the first name"
read fname #read first name from KEY board
echo Enter the last name
read lname  #read last name from key board
flag=1
while [ $flag -ne 0 ] #if the grade is not properly entered(grade should be 0-100) , then again grade shold entered correctly
do echo Enter the Grade, Grade should be 0-100 read grade         
#read grade name from key board 
if [ `expr $grade` -ge 0 && `expr $grade` -le 100 ] #checks grade value
then
cat student.txt >> $fname $lname $grade #create student.txt file and then insert/append fname,lname,grade to that file
flag=0 #change the flag value for end the loop
fi done
done
cat student.txt #display the student.txt
#!/bin/bash
#----------------------------------------------------------------------#
# True if the file exists and is not a directory                       #
#----------------------------------------------------------------------#
if [ -s student.txt ]; then

#----------------------------------------------------------------------#
# remove file                                                          #
#----------------------------------------------------------------------#
  rm student.txt
fi



count=1
while [ $count -le 3 ]; do

#----------------------------------------------------------------------#
# for displying string "Enter the first name"                          #
#----------------------------------------------------------------------#
  echo Enter the first name
  read fname
  echo Enter the last name
  read lname
  flag=1

#----------------------------------------------------------------------#
# if the grade is not properly entered(grade should be 0-100),         #
# then again grade shold entered correctly                             #
#----------------------------------------------------------------------#
  while [ $flag -ne 0 ]; do

    echo Enter the Grade, Grade should be 0-100 read grade
    read grade

#----------------------------------------------------------------------#
# checks grade value                                                   #
#----------------------------------------------------------------------#
    if [ $grade -ge 0 -a $grade -le 100 ]; then

#----------------------------------------------------------------------#
# create student.txt file and then insert/append fname,lname,grade to  #
#----------------------------------------------------------------------#
      echo $fname $lname $grade >> student.txt

#----------------------------------------------------------------------#
# change the flag value for end the loop                               #
#----------------------------------------------------------------------#
      flag=0
    fi
  done

#----------------------------------------------------------------------#
# increment counter.                                                   #
#----------------------------------------------------------------------#
  (( count = count + 1 ))

done

#----------------------------------------------------------------------#
# display the student.txt                                              #
#----------------------------------------------------------------------#
cat student.txt






lots of minor mistakes.
modified your syntax to look more like other languages such as perl, C, awk, etc...
this'll make learning new languages easier in the long run.
Also, added the comment block style. The extra characters are nothing for today's COMPUTERS,
and hopefully you see how well the comments "pop" out of the programming text this way.

You may want to do a "diff your_script my_script" to see all the differences.
Some were subtle.


53.

Solve : ps -aux Server time value showing wrong?

Answer» DEAR,
I am using Amazon server with pv-grub build compile kernel (2.6.34). I have LOGIN the server and checked
ps -aux SERVICE it showing time value is wrong.

how to fix this issue. Given below the error report in BOLD LETTER & Under line the word

[email protected]:~#ps -aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
daemon    4095 3688751  0.0 184684 4456 ?             S    Apr12     21067849:44 /apache/sbin/httpd
daemon    4097  0.0  0.0 184684  4456 ?                    S    Apr12     0:00 /apache/sbin/httpd
root      1669  0.0  0.0  24176   580 ?                           S    Mar01     20:46 hald-addon-storage: polling /dev/sr
daemon    4098  0.0  0.0 184684  4140 ?                    S    Apr12     0:00 /apache/sbin/httpd
daemon    4115 3697201  0.0 184684 4456 ?             S    Apr12     21114581:29 /apache/sbin/httpd
root     22209  0.1  0.1  86556  1256 ?                         Sl   Mar26    55:30 /pkg/mysql.com/bin/mysql
daemon    4116  0.0  0.0 184692  4268 ?                    S    Apr12     0:00 /apache/sbin/httpd
daemon    4152  0.0  0.0 184692  4420 ?                   S    Apr12      0:00 /apache/sbin/httpd
daemon    4262 3713011  0.0 184560 3812 ?             S    Apr12     21067849:44 /apache/sbin/httpd
daemon   17818  0.0  0.0 184560  2880 ?                   S    02:58      0:00 /apache/sbin/httpd

mysql and other service running time correct, but apache and other service showing wrong time.....

[email protected]:~# date
Mon Apr 18 03:34:39 Local time zone must be set--see zic manual PAGE 2011
[email protected]:~#

THANKS for advance

MIKE
54.

Solve : Dual Booting on Apple PPC hardware. Debian and FreeBSD.?

Answer»

Dual booting these systems will give the user a chance to work with two different FOSS environments.





For this exercise, you will need the following:

Hardware.
Any Apple branded PPC based system which allows you to boot from the option menu.
The open firmware version will be 3.x and greater.
A single disk of 40G minimum size or two disks with a minimum size of 20G.
A processor of 400MHz or greater.
I recommend 374M RAM but you can do with 256M.
Keyboard, mouse, monitor, and the usual.

Software.
A Debian business card iso for the powerpc architecture. http://cdimage.debian.org/debian-cd/...owerpc/iso-cd/
A FreeBSD disk one iso for the powerpc architecture. ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/201102/



Information.
Monitor name, vendor, VertRefresh, HorizSync.
You will need an internet connection for the basic FreeBSD install.


This howto is based on information from kelsoo http://forums.debian.net/viewtopic.php?f=16&t=20481 ,
tingox http://sites.google.com/site/tingox/powermac_g4_freebsd ,
and myself http://forums.freebsd.org/showthread.php?t=13827 .

Let us begin.

Prepare the isos by burning each to a disk using your favorite program.
You are going to erase the entire contents of your drive(s) so be sure to upgrade and save whatever you want.
Reboot the machine and hold down the left option key. This will be the logo key on the keyboard.
Open the tray and place in the Debian CD. From the icon menu, choose the CD.
Click on it , click on the arrow.
Another way would be to place the CD in the drive and hold down the C key while rebooting.
The third way is:

Code: [Select] > setenv boot-device cd
Open the tray, place the cd, close.

Code: [Select] >mac-boot
Go through the menu as usual, setting up passwords and ftp servers. Remember, since this is the first step,
you will not be saving the accounts.

For a single disk system.

You will do a manual partition. Delete all entries.
Create a map with the following:
1024K New World Boot block
3G EXT3 mounted as /
512M swap
1G /var
2G /tmp
12G /usr
The rest of the disk dedicated to /HOME.

For a dual disk system.

Follow the above. Be sure that you have /(root file system without var or tmp) at a minimum of 3G.


Optional layout:

18G /
512M swap
The remaining for home.
This is good for the beginner or general use.




Finish by answering yes to accept scheme. Pick a minimal install. let it finish and reboot.
Hold down the option key, open the tray, place in the FreeBSD CD.
Follow the methods for booting from the option menu.

Installing FreeBSD.

This process will take some time. I will only cover the basics.

Let the CD boot and enter the information until you come to the main menu.
Hit F to GET to the fixit menu. Hit 5 to choose a shell.
Hit ALT+CTRL+F4 to get to the shell.

Single disk system.

Code: [Select]gpart show
Remember the disk number.

Code: [Select]  gpart modify -i<first apple-ufs partition> -t freebsd ad<disk number from gpartshow>
gpart modify -i<second apple-ufs partition> -t freebsd-swap ad<dsk number>
gpart modify -i<next apple-ufs partition> -t freebsd ad<disk number>
For a dual disk system.

Follow the above, using ad1 and ad0 after gpart show. The modding follows the same rules.

When finished, use ALT+CTRL+F1 to return to the menu.
Hit X and enter. Choose standard.
Select each, hit C, and do the following:
The first should be filesystem, /. The second should be swap.
The third should follow whichever scheme from previous you chose.
Hit Q.

Choose the minimum installation. X and enter.
Choose the CD as the media.
Yes, you want to start a new shell.

When it is finished, go through the menu. You can select yes for SSH.
Do you want to add a user? Yes.
For the group info, type wheel. You will need this for "su to root."
Do not add any packages from the ports collection.

Add root password.
Return to post installation menu. Select setup networking. Select devices.
If on a router, you can make up a domain. If not, it should automatically be filled in.
Exit. Return to the main menu. F for fixit, Enter. 5 for shell.
CTRL+ALT+F4
If it prompts for a new shell, choose yes.

Code: [Select] dd if=/boot/boot1.hfs of=/dev/ad<disk number>s2
CTRL+ALT+F1 to return to the main menu. Exit Install.


Setting up the base system.


Boot into the option menu.
Reinsert the FreeBSD CD. You will choose the hard disk as the boot device.
On a two disk system, choose the hard disk without an extra icon. This will be the FreeBSD install.
Select and arrow.

Let the system boot up.
Login as user.

  Code: [Select] mkdir cdrom
Su to root.

Code: [Select] mount -t cd9660 -o RO /dec/acd0 cdrom
cd cdrom/9*
ls
For each DIRECTORY.

Code: [Select]cd
sh install.sh
cd ..
You will not need the base or kernel.
Do not install the ports package from the disk.

For src, you can either do

Code: [Select] sh install.sh all
or


Code: [Select] sh install.sh <section>
Code: [Select] sh install.sh
by itself will give you the source list.

Code: [Select] cd /home/$USER && umount cdrom
Final system setup.

Follow
http://www.freebsd.org/doc/handbook/ports-using.html and
http://www.freebsd.org/doc/handbook/...-building.html

Be sure to reboot twice.

Installing Debian.

Reboot into the options menu. Load the Debian CD.

Do a normal install with the following exceptions on a single disk system.
All partitons dedicated to FreeBSD must be marked as do not use.

Be sure to setup a NewWorld Boot partition, at least one ext3 with /(root) as the minimum, and a swap partition.

I choose a minimal installation because you can control what goes in the environment for the most part.

The user, user password, and root password will be kept. Make them strong.

From here you can follow: http://forums.debian.net/viewtopic.php?f=16&t=20481
This is a very good guide for setting up the debian environment.

http://forums.freebsd.org/showthread.php?t=13827
For setting up the FreeBSD environment.

http://forums.debian.net/viewtopic.php?t=27227
For basic questions on setting up compatibility between the two.

Whenever you want to boot from either install, do the following:
Hold down the option key until the graphical menu appears.
The normal hard disk icon will be FreeBSD. Linux will be the one with the penguin.
Select then arrow to boot.

A) Gpart partitioning scheme.

In the FreeBSD install, the user can eliminate the /home directory. Such an action would allow /usr/(subdirectories) and /root/(subdirectories) to be more flexible.

Using gpart to partition can be done; however, it may be difficult to repair the partitions later. Gpart can be buggy at times. This is the reason for the Debian disk.
Here is the partitioning scheme that can be done with gpart:

Code: [Select]gpart add -s 800K -t '!Apple_Bootstrap' ad<disk number>
gpart add -s <size> -t freebsd-ufs ad<disk number>
gpart add -s <size> -t freebsd-swap ad<disk number>
gpart add -s <size> -t freebsd-ufs ad<disk number>
Resource: http://sites.google.com/site/tingox/powermac_g4_freebsd

B) Prebuilt packages.

http://code.google.com/p/powerpc-bits-and-pieces/downloads/list


Create a directory for packages.

Code: [Select]mkdir /usr/packages
You should have a space of 1G.

Code: [Select]cd /usr/packages
Every letter of the alphabet except y has set of packages.

Download all the gzipped directories.

Code: [Select]ftp http://powerpc-bits-and-pieces.googlecode.com/files/w-packages.tar.gz
Do the rest by replacing the w with another letter.

Code: [Select]tar xvf  <tar file.tar.gz>
or

Code: [Select]gunzip <tarfile.tar.gz> && tar xf <tarfile.tar>

Download the list

Code: [Select]ftp http://powerpc-bits-and-pieces.googlecode.com/files/AVAILABLE_PACKAGES.txt

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/packages-using.html

55.

Solve : Slitaz Captive Portal Problem?

Answer»

Hi guys, I just set up a SliTaz (the LATEST COOKWARE) install on an HP thin client machine. I'm a university STUDENT, and our internet in our hall of residence is cable but with a CAPTIVE portal (IE a browser log in page before it will let you surf). The built-in browser, Midori, doesn't seem to detect this and just 403's everything without redirecting me t the log in page. Any ideas?

Thanks.

56.

Solve : Best method of partitioning drive?

Answer»

I'm looking for a consensus on the best configuration for a hard drive that will support both Win XP and Ubuntu. I have just installed a second drive on my PC and would like to have both OS's on this drive. I have attached a png. file that recommends a configuration for Win and Ubuntu on the same drive, but would like to have some THOUGHTS from this forum. If it matters, the drive in question is a Seagate 500GB.
Thanks,overthehill

[recovering disk space - old attachment deleted by admin]Looks good. But.. would this version of Linux benefit from having a swap file?
https://help.ubuntu.com/community/SwapFaq Quote from: Geek-9pm on March 04, 2011, 11:24:53 PM

Looks good. But.. would this version of Linux benefit from having a swap file?
https://help.ubuntu.com/community/SwapFaq

Thanks Geek but I'm a real novice at this. I can set up the PARTITION as is in the png. file, but after that I'm lost. overthehill Quote from: Geek-9pm on March 04, 2011, 11:24:53 PM
But.. would this version of Linux benefit from having a swap file?


overthehill, don't let Geek-9pm confuse you. Ubuntu will know what to do when you install it. The only time you have to worry about setting up your own swap drive is when you choose the "specify partitions manually (advanced)" option during the Ubuntu install. As long as you don't SELECT this option when you are installing, Ubuntu will configure it's own swap drive. Your setup looks good. Go for it.

If you go here:
http://www.ubuntu.com/desktop/get-ubuntu/download
and click on "show me how" at step four, it will show you how to install it step by step.

And Geek-9pm, if you take at the look the PIC, you will notice that the swap drive is included at the far right. Quote from: JJ 3000 on March 05, 2011, 12:11:07 AM
...
overthehill, don't let Geek-9pm confuse you.
...
And Geek-9pm, if you take at the look the pic, you will notice that the swap drive is included at the far right.
Thanks, didn't see that.  Thanks guys, much appreciated.  overthehill
57.

Solve : Would appreciate some help with Ubuntu Live CD?

Answer»

I downloaded Live CD quite some time back and it boots fine in the original PC that I loaded to without User Name and Password. What I'm WONDERING now is there anyway within Ubuntu to find what my user name and Password are?
I'm attempting load the Live CD into another PC that I have just purchased and when booting up I'm ASKED for User Name and Password. I know now I should have written them down but ??.
If not what are my options ? Thanks, overthehillDunno if this helps...

Quote

Sometimes a LiveCD MIGHT ask you for a user-name or password. Just leave these blank and press enter (or allow it to time-out).


Figure 4: Just press enter to get past this, or let it time-out

from https://help.ubuntu.com/community/LiveCD

Thanks Salmon Trout. After what you indicated I tried it again. For whatever REASON I tried it on two additional PC's  (other than the ONE I downloaded it to) and neither one asked for a User Name or Password this time.??.  But, if they do show up in the future I'll just let them time out. Much appreciated. overthehill
58.

Solve : system administrationy?

Answer»

hey everyone.i am the selftaught and i want to implement a fileserver and to learn how to make different servers
but i have only one computer so i want to use a SIMULATOR so to  be ABLE to TEST my computers on  my network if are access my server.i don't know exactly  which SOFTWARE i can use  to simulate many computers that are relying to on server on network .can anyone help me and tell me how can i do it or give me best link where i can find more INFORMATION about the issue?

59.

Solve : I can't connect to another host by SSH and nfs?

Answer»

I encounter the problem with the ssh CONNECTIVITY and NFS

1. Both of the hosts are already START the sshd daemon and test local successful. However, they can't connect each other by SFTP / SCP.

2. I can't MOUNT the remote host by nfs, I already start the nfs daemon nfsd, nfslockd, mountd, but it still can't mount the share folder from remote site

Who is the guy can help me to solve the problem 

Old post, but anyways.
I'm definitely not an expert to let you know.

Did you check your "hosts.allow" file?
Or or "hosts.deny" file?

Did you configure them?  A better question, did you configure them properly for the two computers?

60.

Solve : linux security?

Answer»

Why is Linux more secure than Windows ?  There are a couple of different reasons that I've read about such as the code being open source, ALLOWING security holes to be found/patched quicker, and because being logged in you're only logged in as a user without admin privileges, making malicious code more difficult to run.. I think I interpreted that correctly but I'm not sure.  But if any could shed some light on this it would be appreciated.Yes you are correct in your assumption of how linux is more secure.
Also linux isn't as widely used as Windows and therefore isn't targeted as often.
As I understand it there isn't any viruses in the wild at this time.

I have been using linux full time for the past 4 years and haven't had any problems.

Hope this helps ! Quote from: joy division on December 26, 2011, 10:51:43 PM

Why is Linux more secure than Windows ?
It's not.
Quote from: BC_Programmer on December 27, 2011, 01:52:19 PM
It's not.

Well, when I said "secure" I wasn't talking about security in a BROAD sense, only referring to its potential to get infected with a virus.

When I read discussions about Windows being infected I see remarks like,"thank god for linux"..  Which compels me to wonder why Linux it thought to be more secure and so I go find discussions on it.  The primary reasons for this belief seem to be primarily based on the two features of Linux that I gave.  But if you could expand on your statement, that would be appreciated.. 

  Quote from: joy division on December 27, 2011, 03:00:37 PM
Well, when I said "secure" I wasn't talking about security in a broad sense, only referring to its potential to get infected with a virus.

When I read discussions about Windows being infected I see remarks like,"thank god for linux"..  Which compels me to wonder why Linux it thought to be more secure and so I go find discussions on it.  The primary reasons for this belief seem to be primarily based on the two features of Linux that I gave.  But if you could expand on your statement, that would be appreciated.. 

 

OK.

Let's TAKE the first fallacy- that Linux is more secure because it's open source.

Let's think about that for a moment. The reason cited is basically that more people will be looking at the code, so bugs/issues are more likely to get fixed. But that doesn't really make a whole lot of sense, since most code, even in an open source project, has to go through a review process before it's merged into the main repository/build. More to the point, very few- to the point where I would go so far as to say no- people actually just sit around and browse the source for Open Source projects. the very idea is absurd. I'm a Linux user, I've used Slackware, Mint, Ubuntu (ech), Fedora and Arch, and you know how many times I've looked at the source? zero. Same for every single application I've run that is Open Source. Zero. The fact is, the only think an OS or piece of software being Open Source does is encourage developers to close bugs and issues, and basically say "fix it yourself" to the people reporting them.

Additionally, it assumes that those people who are browsing the source code are only interested in fixing problems, and not exploiting them, which is equally absurd. There are no doubt just as many unknown flaws in Red hat or CentOS as there are in Windows, the fact is that the Open Source nature makes it easier to find these flaws- like, for example, the backdoor into any red hat system that was in the OS for nearly 5 years. Obviously, somebody added that in, and who knows who it was, or whether they exploited the loophole they added in those 5 years before somebody stumbled upon it and reported it. That is an important point as well, since it was actually a user of the system that found this backdoor by accident, not one of the fictitious thousand-eyes that are supposedly poring over the source code.

As to the second notation:

"and because being logged in you're only logged in as a user without admin privileges, making malicious code more difficult to run"

Vista/7 no longer default to logging the user in with admin privileges. It might, if UAC is disabled, I think. But I wonder why Linux advocates can't seem to complain enough about UAC and yet have no problem with the graphical sudo/gksudo etc implementations, which are pretty much exactly the same (except they always prompt for a password, whereas the UAC prompt, depending on account settings, merely asks for confirmation).

What it comes down to is that Linux is more "secure" from malware simply because it's not a TARGET of malware. If you had to choose to run your piece of malware on a system that had over 80% coverage, or one with less than 3% market penetration, I think the common-sense choice would be the first one.
d
The fact is, regardless of the system, if you want it to be "secure" you are going to have to make changes to the default configuration, and those things you add and change, later on. The only possible exception I can see being FreeBSD and openBSD, which come fairly locked down.

However, you can't use a locked down box. you need to access the net, run applications, etc. So far, I've not seen any real protections on this linux machine I am using now (Mint 10) to prevent me from running malware beyond what windows provides. Of course because there is so little malware written that will run on linux (probably because writing software for linux is like trying to use a bow and arrow to hit a moving target while wearing goggles covered in ketchup, which is why so few games are available for it*), the CHANCES of getting infected are slim to none. Of course with careful browsing on any OS your chances are slim to none, but let's not cloud the issue with facts.

Other weird sayings that piss me off:

"Linux is good for programmers"

No. It's not. that's so stupid. people who say this obviously haven't had to write non-trivial applications for Linux. It's a bloody nightmare. It's a nightmare just getting half the programs you download to compile properly. Because god forbid they ever give you binaries to make installing their software easy. no, It's ./configure this, and make install this and check the pre-requisites that. And then when the ./configure shell script bombs trying to find all the requirements the error message doesn't tell you anything about what you need. "you need the package from python? but I just ran "apt-get install python" to make sure you had them. Then you search online to discover, OH IT was SO OBVIOUS that I needed to install python-dev rather than the normal peasant version of python. Basically, it's only for masochistic programmers. or programmers that keep all their code so that it doesn't import from any other library. I've also noticed that a lot of Linux desktop app programmers have never touched Windows development and yet still claim Linux is easier. As if they even have a barometer to measure.



Thanks for sharing those points.

Would you say there are some Distros of Linux that are more popular/used than other Distros...and would those more popular ones get more attention or "eyes" as to finding security holes?  I'd think if there are going to be eyes gazing on Linux source code it would be a distro that is more commonly used, obviously to improve it's usability and security. Quote from: joy division on December 27, 2011, 09:57:23 PM
Thanks for sharing those points.

Would you say there are some Distros of Linux that are more popular/used than other Distros...and would those more popular ones get more attention or "eyes" as to finding security holes?  I'd think if there are going to be eyes gazing on Linux source code it would be a distro that is more commonly used, obviously to improve it's usability and security.

You missed my point- even if more people were looking at the source code, that doesn't mean that they are:

1. knowledgeable enough to find and identify flaws
2. Capable of finding a way to fix it
3. willing to fix flaws
4. able to fix flaws

That last one is important. contributing to the code-base of most Open Source projects is bound in red tape and politics. If any one of the lead developers doesn't like your "coding style" or your user handle, or anything, they'll just veto it. It doesn't matter if the pull request was for a segment of code you wrote to fix a gaping security hole. Open Source is about hubris first, and functionality second about 80% of the time. But that is all pointless, because like  I said, nobody goes and browses the source to- anything.

Quote
I'd think if there are going to be eyes gazing on Linux source code it would be a distro that is more commonly used, obviously to improve it's usability and security.
Except there is no reason to say their cause is "obvious"- there is no reason to conclude that the source won't be perused to look for security holes to exploit, rather than fix, just as compiled closed-source application have their innards prodded via dissassembers and reverse-engineering for that purpose. Quote
You missed my point-


sorry

When I read the chatting about Linux it sounds good on the surface but you bring up some convicting points. 

I picked a good place to ask this question it seems.. thxyou can use clam antivirus and also get a firewall on linux it helps! look it up and see how it will work.
61.

Solve : Linux and the Freedom to Assemble.?

Answer»

Linux can give you  the FREEDOM to Assemble.
Anything that is in the library in Linux and be used in Assembly language. If you want. (Almost anything.) 
In this context the Intel(R) 64 and IA-32 Architectures.
Recommended:
NASM - The Netwide Assembler 2.09.08
Helpful:
Linux Assembly Tutorial
Oldies but Goodies:
Writing A Useful Program With NASM
HELLO World in Linux
Do you EXERCISE you RIGHT to assemble in Linux?

62.

Solve : Validating the size of file transferred from ftp server to the local system?

Answer»

Validating the size of FILE transferred from ftp server to the local system

File type: Text file/Flat file
Source System: Windows / Unix Systems
Target System is ALWAYS: Unix
Mode of Transfer : ASCII

We have GENERIC ftp shell script that transfers the files from different ftp servers.

Some TIME files are only getting transferred partially & doesn’t show any errors.
An example scenario is given below.
Example Scenario:
Souce System: Unix
Source File’s size: 4000 Kbytes.
Target System: Unix
Target File size: 2000 K bytes.
Reason for the difference in File size: As the target unix system is not having enough space, & the FTP utility doesn’t treat this kind of scenario as an error, the final outcome of the script was successful.

We WOULD like to handle this scenario with the addition of the logic to check the file sizes of the source & target system and decide the final outcome of the script. Please provide your thoughts/suggestions.

Options Tried:
We also tried one of the option that ftp log itself is capturing the file size while transferring. This size is not matching with actual file size got transferred to the local system due to difference in the OS of source and destination

63.

Solve : install neye?

Answer»

I want to INSTALL software on UBUNTU 10.10 neye
And LINKED with database
Please HELP me in DETAIL about that

64.

Solve : Tips on choosing a BSD version?

Answer»

Linux has been the latest word in alternative operating systems for a few years now; but, there are other options with a history that precedes both Linux and the GNU base. These systems are based on the Berkley Software Distribution, a direct DESCENDANT of AT&T's (Bell Labs) UNIX which was rewritten. There are four versions: FreeBSD, NetBSD, OpenBSD, and Dragonfly; but, I will only be concentrating on the first three. LET us begin with a simple set of questions.

1) Is your interest security?
2) Are you using non-standard hardware?
3) Are you a developer?
4) Do you like a challenge or want an easy start?

Give yourself a moment to think these questions through.

I will introduce and describe the options you have, including both the positive and negative of each.

I) FreeBSD.
 FreeBSD is the most used of the BSD systems and comes with more support including work from iXSystems and the PC-BSD project. Community support can be seen on the mailing lists, at http://www.daemonforums.org , http://forums.freebsd.org, and at local groups in various parts of the world. Development is active as PORTS to the PS3 and the newer SPARC64 chips are improved. However, for a person without patience or willingness to learn something different, FreeBSD may present a few difficulties:
1) No graphical installer. The option available is to use PC-BSD fir such; but, what is the option if one doesn't have this type of hardware? Sysinstall and the newer bsdinstall are ncurses based installation METHODS. A person would also need to read on how to use gpart and maybe even use a Linux distribution to setup a disk beforehand.
2) Less support for hardware than in Linux or Windows. Your new equipment may not work "out of the box" or may even require configuring by hand.
3) No native support for flash and limited support for Java. There are options such as gnash and the FreeBSD project has its own version of Java. Be noted that it is limited to i386 and amd64 only.

II) OpenBSD
   OpenBSD is a security conscious operating system aimed at developers and those who want to follow a strict code base. Support covers more architectures than FreeBSD and the community is based on mailing lists with the only forum support at http://www.daemonforums,org. It is headed by a single person. OpenBSD is a great distribution but a few words of warning for the new user:
1) Follow the install documents exactly. There is no way around this.
2) Refer to the shared examples and manual pages on the system. This cannot be stressed enough.
3) Think before you ask a question and research the mailing lists archives. The different members of the OpenBSD CORE group, ports, packages, and side projects are developers deeply involved in their work.

III) NetBSD.
NetBSD is a more of a hobbyist operating system with support for more systems than most Linux distributions and the other two BSD systems. It is included as an option for single board and embedded computers. The community is loosely knit. Like OpenBSD, support only exists in mailing lists or at http://www.daemonforums.org . There are a few challenges one needs to overcome:
1) Like OpenBSD, you must read the installation documents.
2) Support from the mailing list may not come directly due to the smaller community size.
3) Your hardware may not have current support; so, you may need to build a kernel and userland yourself.


You may ask, "Why would one want to use such a system when Linux is available?"

1) Both the kernel and the userland or "base" of each system is developed. Linux is a kernel only. The base is GNU,
2) A user has more control of the package installation in FreeBSD. Neither Debian nor Fedora nor the systems based on these two allow you such control.
3) All three BSD systems have lower requirements for the hardware that is supported.
4) The user is not included in the wheel group in FreeBSD. All three allow the root user the ability to include or exclude the user in any group.
5) Licensing. The BSD license is more permissive.
6) Stability. All systems follow strict rules. The permissions are set by the root account.

"Okay, but, it seems difficult already."
Such a statement is only true if one does not follow the above suggestions.

"How do I get this or that to work?"

There are a handful of tutorials and howto's around the web. Support is available at the listed forums and on the mailing lists.

"Some of my hardware doesn't work but it does on Windows and Linux. Why?"

This may be due to the company and their unwillingness to help the BSD distributions. You may want to ask your questions on the mailing lists.

"I don't feel like any of this is for me."

You have the right to choose whatever you want. These are only suggestions from me and my personal opinion based on my experience.


65.

Solve : Ubuntu 10.10 - Terminal commands?????

Answer»

Hi there,

I'm new to Ubuntu and I'm trying to delete a file on the desktop using the terminal

The file is called Untitled 1.html

I've used:

rm Untitled 1.html
rm -- Untitled 1.html

Any help on this would be great.  Any help on installing themes on this OS would be great too

Thanks in advance ANYONE

B2you'll need to use quotes:

Code: [Select]rm "Untitled 1.html"

Quote from: Base2 on March 22, 2011, 03:15:49 PM

Any help on this would be great.  Any help on installing themes on this OS would be great too

In Appearance preferences you can install new  themes.

You could install a separate theme manager, as well. I've found Emerald to be awesome myself. Quote from: BC_Programmer on March 22, 2011, 03:28:48 PM
you'll need to use quotes:

Code: [Select]rm "Untitled 1.html"

I've looked at some references, such as http://linux.about.com/od/ubuntu_doc/a/ubudg24t7.htm, and none of them indicate quotes around the file name are NECESSARY.  Does this particular file, Untitled 1.html, require quotes for some reason?

Base2, are you sure you're in the right directory when you try to delete the file?  Quote from: soybean on March 23, 2011, 09:42:12 AM
Does this particular file, Untitled 1.html, require quotes for some reason?
Spaces. rm deletes each file that has been specified. arguments are separated with spaces. with the space it TRIES to delete a file called "Untitled" and "1.html" and reports no such file or directory for both.

OK.  Thanks for that info. you can either put quotes surrounding it, OR you can escape the spaces.
Code: [Select]rm Untitled\ 1.html
I USUALLY let bash HANDLE it by tabbing.Hi all,

Sorry I took so long to check back.  Thanks for the replies.

I tried it with another file and as you said BC it was looking for the two files, I didn't even think of that.  So thanks very much.

I tried with another file Untitled1 and the "rm" worked fine, tried with rm "Untitled 1" and this worked as well.

Thanks again!!
B2 Quote
In Appearance preferences you can install new  themes.

You could install a separate theme manager, as well. I've found Emerald to be awesome myself.


Forgot to say thanks for the info on the themes too! I'll give Emerald a check.

Thanks

B2
66.

Solve : No selecting new homepage in FireFox?

Answer» SYSTEM Linux Puppy 5.2
FireFox 3.6.15

Homepage is set and cannot change to anything other. I notice that under TOOLS PULLDOWN menu, OPTIONS is missing.
Would like iGoogle as homepage.

Thanks,
JohnNeva' mind.... it is EDIT>PREFERENCES>GENERAL>STARTUP. I now have 3 pages OPEN on startup.
67.

Solve : Disk space check?

Answer»

Hi all,

Can ANYONE please help me to CHECK the disk space availble on my UNIX Box. The command should return the TOTAL disk size, used size and availbale FREE space.

Thanks in advance.

Regards,
Thiru, Quote

man df
The manual page
Code: [Select]df --helpFor other options. Code: [Select]df -h

That will give the values in "human" format.
68.

Solve : Ubuntu (Total New Experience)?

Answer»

Hi Folks. Hoping someone here would GIVE me some help. Like you can gather from the title , I have very little knowledge of Ubuntu. I mean little. Anyway, I would like to add to the Grub menu and I'm a little intimidated even after reading about Grub either within CH or online. I was able though to change the boot order and the menu time but as far as knowing anything else about Grub, I don't.
Anyway, here's my story.
I started off with one HDD (250 GB) with WinXP installed. I added another HDD (750 GB) and cloned XP to it , and then  (with lots and lots of help) I was able to install Ubuntu as well on this larger drive. For a while I had the smaller drive disconnected and was using only the larger drive. Then because the smaller drive was not being used I decided to upgrade that drive from XP to Vista . When I purchased this system 4 yrs. back it had XP installed but came with a Vista upgrade. So I thought that I'd give Vista a shot and after a number of problems it appears that it's running OK now.
Currently I'm using only the smaller drive (Vista) and I'm a little anxious to get back to Ubuntu, which is on the other drive. Because I've found some pretty neat features in Vista I'll probably use that until I learn a lot, lot, more about Ubuntu. Connecting and disconnecting DRIVES just ain't cutting it .
So I'm sure that you've surmised this, but what I would like to do now is add Vista from the other drive to XP and Ubuntu in the Grub menu. This whole ordeal has been quite a chore for this old fella and I sure don't want to mess things up now. If you don't mind helping, please go very slowly.
And thanks, overthehill
Don you want the long answer or the simple answer?
Here is the simple answer.
Don't change anything.
You can use it "as is" with a feature in your BIOS that allows you to select  a drive at boot time. Also you can go into the BIOS and SPECIFY which is the first boot device.

Why?, you ask.
If you are new to Vista and Ubuntu , you want to avoid the long answer. Yeah, somebody will come along and tell how how easy it is. Ignore them. Quote from: Geek-9pm on March 26, 2011, 10:11:57 PM

Don you want the long answer or the simple answer?
Here is the simple answer.
Don't change anything.
You can use it "as is" with a feature in your BIOS that allows you to select  a drive at boot time. Also you can go into the BIOS and specify which is the first boot device.

Why?, you ask.
If you are new to Vista and Ubuntu , you want to avoid the long answer. Yeah, somebody will come along and tell how how easy it is. Ignore them.


Thanks Geek. Well the simpler the better. And I realize that I can specify the first boot device in the BIOS. But, I didn't know that I could choose which of the three O/S's that I want from there? And does the first boot device default after a period of time?. Right now it boots to the Grub and I thought that I would be adding Vista there? So if I understand you correctly, I really don't need the Grub?  And, what do I have to do in the BIOS to be able to choose which O/S I want at boot time.?  And, what happens to the Grub ?  Now I'm really lost     overthehill
GRUB is needed when you have two or more OS on one drive.
The BIOS can only select the drive. If the drive times out, it picks the next  in the chain.
One this laptop i have, the F12 keys selects which drive at boot time.
On my Desktop, the BIOS expects the F8 key. I have to be quick, because windows wants that for the safe mode. When the PC is turned on from a cold start, there should be a little message in top of bottom corner that says:
F2 for setup. F12 drive select
Or something like that.

Here is a possible configuration:

Drive 0 GRUB to select Ubuntu or Windows XP
Drive 1 Windows Vista.

If BIOS LOADS Drive 1, you never see the GRUB. But Vista can see the Windows XP partition and assign it a different drive letter. Maybe.

If BIOS loads Drive 0, you see the GRUB and can select Ubuntu or Windows XP. If you boot XP, it can see the stuff on the other drive.

Ubntu can mount any drive or partition.

Normally, Vista and XP consider the boot drive to be "C" and a partition can have a drive letter. But in Linux the drives and partitions are given more specific names that do not change when you boot from another drive or partition.
Quote from: Geek-9pm on March 26, 2011, 11:02:50 PM
GRUB is needed when you have two or more OS on one drive.

Thanks once more Geek. I'll have to digest all of this. But, I want to point out that I do have two OS's on one drive. XP and Ubuntu on one drive, and Vista on the other. overthehillNormally, Most Distros will see there is another OS and install GRUB automatically. I had to do nothing to my laptop after installing Mint to get the GRUB menu.

Geek's suggestion is that you only install GRUB on one of the drives. That's utterly pointless since it just complicates things. If you are going to install GRUB you may as well make it work with all drives. Particularly since his pretend scenario will still work. The Vista drive would still boot up on it's own. Quote from: BC_Programmer on March 27, 2011, 08:50:58 AM
Normally, Most Distros will see there is another OS and install GRUB automatically. I had to do nothing to my laptop after installing Mint to get the GRUB menu.

Geek's suggestion is that you only install GRUB on one of the drives. That's utterly pointless since it just complicates things. If you are going to install GRUB you may as well make it work with all drives. Particularly since his pretend scenario will still work. The Vista drive would still boot up on it's own.

Took me quite a while to get back. I thought before I got too comfortable with Vista that I'd better find out if I could download/install the Service Packs. It took forever (stalled a number of times) but finally (whew!)got it done.

Anyway, BC_ . You were right  . Vista was recognized in the Grub menu. Thanks.

But now people, I'm certainly not out of the woods yet.


Of the 3 OS's the only one that loads from Grub is Ubuntu?. XP attempts to load but reverts back to the screen with the BIOS option, and when I choose Vista, it immediately shows that it's going to load XP ?, but doesn't.
 
I'll give you an idea of what the Grub menu consists of, to see if that looks OK. Now I understand, menuentry 'Ubuntu', Windows Vista and Win MCE ,the ones that I require. But I don't understand the two that read, Windows NT/2000/ XP etc.?
 
 menuentry 'Ubuntu' with Linux
 menuentry 'Ubuntu'Recovery
 Memory Test (memtest 86+)
 Memory Test (memtest 86+, serial console  115200.
 Windows Vista (loader) on/dev/sda1
 Windows NT/2000/XP (on/dev/sda2)
 Windows XP Media Center Edition (on/dev/sdb1)
 Windows NT/2000/XP (on/dev/sdb2)


One observation.
When both drives are connected Vista becomes Drive (I:). And,before I changed the boot order,when it defaulted to Vista Drive (I:), none of my desktop shortscuts would work and neither would my sound. Don't know what's going to happen with that if I ever get this whole thing straightened out? I'm guessing that the shortcuts were looking for Drive (C:) or ?
One last thing. It appears that I have four drive connects on the mobo. Don't suppose it does, but could the choice of the two possibly matter?

Thank you, overthehill


Boot to Ubuntu. Go to Applications > Accessories > Terminal. Type sudo update-grub at the prompt and press enter. Let grub update. reboot the computer and see if you can choose the other OSs from the grub menu.

Quote
One observation.
When both drives are connected Vista becomes Drive (I:). And,before I changed the boot order,when it defaulted to Vista Drive (I:), none of my desktop shortscuts would work and neither would my sound. Don't know what's going to happen with that if I ever get this whole thing straightened out?

Are you saying that when you boot into vista, It's drive letter is I? Or do you mean it shows up as I: when you look at it in XP? Did the Vista installation ever work right? Did you ever have sound?

Also, were you ever able to boot into XP after you installed Ubuntu? Did the problem start after you connected the drive with vista or have you not been able to use XP since you installed Ubuntu?

 

Quote from: JJ 3000 on March 28, 2011, 01:05:21 AM
Boot to Ubuntu. Go to Applications > Accessories > Terminal. Type sudo update-grub at the prompt and press enter. Let grub update. reboot the computer and see if you can choose the other OSs from the grub menu.

Are you saying that when you boot into vista, It's drive letter is I? Or do you mean it shows up as I: when you look at it in XP? Did the Vista installation ever work right? Did you ever have sound?

Also, were you ever able to boot into XP after you installed Ubuntu? Did the problem start after you connected the drive with vista or have you not been able to use XP since you installed Ubuntu?
 

Firstly JJ thanks for responding to my plea. I followed your instructions and updated grub.

Sorry for confusing you with the info. that I provided. I'll attempt to be more precise.

Are you saying that when you boot into vista, It's drive letter is I? Or do you mean it shows up as I: when you look at it in XP? Did the Vista installation ever work right? Did you ever have sound?

JJ, what I meant by this is; when I had both drives connected at first(when Vista was first in the boot order as you'll see below) (when I couldn't access shortcuts or sound) I looked at the drives in "Computer" it showed Drive (C:) and Drive (I:) Vista. But,as I've explained below, the shortcuts and the sound problems no longer exist,(at least for now) and yes, everything was working fine as long as the drives were connected , but only one at a time.

Also, were you ever able to boot into XP after you installed Ubuntu? Did the problem start after you connected the drive with vista or have you not been able to use XP since you installed Ubuntu?

Yes I had no problem booting into XP after I installed Ubuntu. And yes again, my problems all started when when I connected the two drives to be able to run the 3 OS's., I haven't seen XP since.


I'm undoubtedly repeating myself below, but after writing this I decided to go back and make an attempt to specifically answer your questions.

XP was running fine on the(250GB)drive before I installed the (500 GB )drive
I installed the (500 GB) drive and cloned XP to it from the (250 GB) drive.
Once I had cloned XP to the(500 GB) I disconnected the(250 GB) and checked out the (500 GB) drive to make sure that everything had copied properly. Once I was satisfied that it was OK I installed Ubuntu on the (500 GB) drive and left the (250 GB) drive disconnected. I ran XP and Ubuntu for days with no problems.
Because the (250 GB) drive was just gathering dust and because I had a Vista Upgrade disk I got the brainwave to upgrade to Vista on the(250 GB). Before the upgrade, the(500 GB) drive was disconnected. And, just prior to the disconnect both OS's (XP and Ubuntu) were running fine on the (500 GB) drive. Then, for some time with the (500 GB) drive disconnected I worked on Vista. It took some time but finally got Vista running fine too on the (250 GB) drive. 
But, here's where the fun starts. .
Thinking that all was well because individually the OS's were running fine on both drives, I connected both drives. But I'm thinking now that I should have changed the boot order first, because it defaulted to the (250 GB) drive where Vista is installed.  This is when I encountered the problem of not being able to access the desktop shortcuts and I had no sound. At this point I didn't know how to get Vista into the Grub.I didn't expect that Vista would be added to the Grub even if I would have had the correct boot order. I posted in the forum and took BC_ 's advice. With both drives connected I booted up and like he said Vista was indeed in the grub.This time I had the boot order having the (500 GB) drive boot before the (250 GB) drive.  But although the 3 OS's were in the Grub the only OS that I could access was Ubuntu. Actually the same is true today even after updating the grub. The same scenario. Ubuntu loads fine. Vista almost immediately goes to XP start up, then goes back to the BIOS screen.This very same thing happens when XP is selected. It attempts to run and then it too goes back to the BIOS screen.
 
Now all of a sudden what is different is; with both drives connected (which it is right now), I'm having no problems at all with Vista as long as it is selected first in the boot order. Shortcuts are fine, sound is working, the whole shebang.
That wasn't the case previously as I stated above?
But, no way now can I access XP, even with the (250 GB) drive disconnected.

Hope this makes sense and sure appreciate any help.  Thks, overthehill
 
if xp wasnt found automatically or installed after you installed ubuntu try

Code: [Select]update-grub
which should automatically detect your bootable parts and allow you to select them in grub loader. failing that , manually define them , google it cos i dont wanna get it wrong XD
69.

Solve : Can't choose Ubuntu at start?

Answer»

I just installed Ubuntu last night and tried to start it, from what I had heard once you install it you are presented with a menu at the start that lets you choose which OS you want to use, currently it just starts Windows. Does anyone know how to change it to start Ubuntu? Thankyou.Which version of Windows?
Which version of Ubuntu?


This IMAGE is from Linux-Mint, but Ubuntu has this same feature. You can install it to a directory and it will use the Windows boot loader. Some reduction in disk performance. But I like this windows friendly install. So do a lot of people.
just reconfigure grub

Code: [Select]update-grub
This will autodetect bootable partitions. There is a WAY you can manually do it too but its a BIT risky so id SUGGEST a full backup of the hard drive before you attempt it. Through the manual way you can also configure what option is selected automatically , the time that the loader will wait for you to change selection as well as being able to set the message on the grub entry , colour , apparently there is an option to enable the tux icon at the top RIGHT too!

either way it should be no problem!

edit - youll have to use a live cd to install and update it , or try reinstalling linux , it could be that you didnt let it install grub

70.

Solve : Ubuntu 10.04 LTS ,Better??

Answer»

I just tried version 10.10 and can not get it to work for me. Most likely is it Operator Error. But I found this on Wikipedia.
List of Ubuntu releases
Based on that llist, it would seem that the TLS would be a better choice. Have yet to get it. My ATT&T DSL is not very friendly with long downloads.

But my question is: Will the TLS version be more reliable and easier to maintain? 
You could try Linux Mint.

I've found Mint (IMO) superior to Ubuntu in every imaginable way.

I'd say slackware as well but if you can't even get Ubuntu working it would be like fighting a dragon unarmed.Thanks for the tip.
http://www.linuxmint.com/download.php
Well, the site sure looks nice. Even a PDF user guide.

Meanwhile, I got the Ubuntu 10.04 laptop to install with the help of a dragon trainer.
To answer you original question Geek-9pm, Yes Ubuntu LTS 10.04 will be much more reliable. The LTS releases are designed to be very STABLE so people can run them for 3 years without upgrading.

Ubuntu 10.10 is especially buggy (the buggiest since 9.10), in fact on one computer I've even seen it completely crash and would not boot afterwards. It gave an error about missing system files.

Ubuntu 11.04 for is due out NEXT month (http://ubuntu4beginners.wordpress.com/2010/11/10/ubuntu-1104/) and it should be a good release, although it is still in Alpha and last time I tested it I found it to be quite buggy.

As a GENERAL rule of thumb, the .04 Ubuntu releases are better (less buggy, more stable) than the .10 releases. Ubuntu 8.04 LTS, 9.04 & 10.04 LTS were all very good releases. 8.10 & 9.10 were very buggy releases and 10.10 is also fairly buggy.

And LinuxMint will not be any better than Ubuntu because it based on Ubuntu, most of the problems and bugs that Ubuntu has will also be in LinuxMint. The latest version of Mint is based off Ubuntu 10.10.

And Ubuntu has a PDF user guide too, it's probably not just found as easy as LinuxMint's one. I haven't seen the LinuxMint Manual, but I know the Ubuntu one is very good. It's available here: http://ubuntu-manual.org/Cityscape, Thank you.  Quote from: Cityscape on March 29, 2011, 01:24:20 PM

And LinuxMint will not be any better than Ubuntu because it based on Ubuntu, most of the problems and bugs that Ubuntu has will also be in LinuxMint. The latest version of Mint is based off Ubuntu 10.10.
I never said it wasn't. I've had very few problems with Mint. Thus the recommendation. Linux isn't about what distro is better. It's about choice.


Either way, Ubuntu or Mint are to Linux what a Plush Bear is to a grizzly; An overly optimistic rendition of SOMETHING that should be dealt with carefully. Now, don't misunderstand me; they are excellent, that is why I use mint- it works; but, unlike, say, slackware, you aren't so much encouraged to learn anything. You have to do that yourself. I learned a heck of a lot more about Linux in general just by getting slackware installed then I probably have using Mint (with the exception of the time my package manager broke and I had to purge some corrupted libraries).

What you've basically said is "Ubuntu can beat up Mint". Linux is not about why my distro can beat up yours. and it's very disheartening to read posts from people such as yourself that do not truly understand what Linux is about.

Geek-9pm: Whatever happened to that "MEPIS" distro you posted about here? Have you given that a shot?

As for the LTS versions; there is no particularly special difference between it and the normal versions- that I can FIND- aside from having Long Term Support, I really don't think they would do extra bug-fixing and then throw it out for the next non-LTS release, which seems to be the implication.

Quote
Geek-9pm: Whatever happened to that "MEPIS" distro you posted about here? Have you given that a shot
It was very good.
But it was like having an Apple instead of a PC.
Nothing went wrong.
I got bored.

For the moment I will play with Ubuntu 10.04 LTS  until next time.APPARENTLY ubuntu are experimenting with their very own windows manager and it is causing a LOT of problems. Some people report that the system is buggy , slow , some , just like you , cant even get it to boot properly. 10.04 seems best for now but hopefully they get it sorted , it all sounds very interesting!
71.

Solve : mount usb port with memory drive?

Answer» USING RedHat had MOUNT setup running for years with mounting usb memory DRIVE: 'mount /dev/sda1 /mnt/usbflash' and importing/exporting files. Suddenly can't mount usb port with error '/dev/sda1 not valid'. Any suggestions? TRIED to mount to /dev/sda2 instead but not allowed.
dbhertscan you see it using

Code: [Select]fdisk -l
if you cant idk whats up with it. do you have superuser privelages? use sudo while using a sudoer's login. failing that its probably hardware related.
72.

Solve : USB Drive sounds (Linux Mint 10)?

Answer»

So I googled my head off trying to find out if there is a way to make it so that Linux can play a short sound file when a USB drive/device is added or removed. I couldn't find anything, so I figured I'd write a python script to do it.

It uses the apparently deprecated DBUS api, because I couldn't figure ut how to install half the crap the "new" method wanted (pynotify's installation scripts had broken shebangs and crashed seemingly randomly when I tried to install it, and I have no idea how to get libnotify WORKING). Also, so far it only seems to work for adding volumes, since dbus won't let me inspect the removed device in the remove hook to determine if it's a volume, and I got weird behaviour when I just played the removal sound for any removal without inspecting.

For sound, I tried about a dozen different APIs and packages, which either refused to install, had issues during ./configure that I couldn't resolve (particularly the one where it complained that I didn't have the header to compile python extensions which made sense except it was integrated into the CORE python includes and thus was extraneous and I wasn't able to find the part in the shell script to remove so I gave up). I had luck with pygame, mostly because I was able to simply apt-get it, but it crashed with audio errors when I tried to use pygame.mixer.init(). the Python-standard ossaudiodev was promising but OSS is outdated and I couldn't get it to even pretend to work.

I basically ended up just shelling out to mplayer to play the sound. Which works, I guess.

Anyway, here is the script. I now have it running off in another desktop so I get the standard windows USB add sound whenever I plug in a USB drive, heh.

Code: [Select]#!/usr/bin/python
#by BC_Programming
import dbus
import gobject
import time
import subprocess

print "BASeCamp 'USBSounds' Simple USB Volume notification sound."

#playsound merely shells out to mplayer. I would have preferred an integrated solution but... meh.
def playsound(soundfile):

    subprocess.call(["mplayer", "hardwareinsert.wav"], stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
   
class DeviceAddedListener:
    def __init__(self):
        #get the system bus...
        self.bus = dbus.SystemBus()
        #get the manager
        self.hal_manager_obj = self.bus.get_object(
                                                  'org.freedesktop.Hal',
                                                  '/org/freedesktop/Hal/Manager')
        #get the interface for the manager                                         
        self.hal_manager = dbus.Interface(self.hal_manager_obj,'org.freedesktop.Hal.Manager')
        #connect to the appropriate signals.
        self.hal_manager.connect_to_signal('DeviceAdded', self._filteradd)
        self.hal_manager.connect_to_signal("DeviceRemoved",self._filterremove)
#note: I couldn't get DeviceRemoval sounds to work since it doesn't let you     #inspect whether the removed device is a volume via "QueryCapability"... since it's gone.
    def _filteradd(self, udi):
        device_obj = self.bus.get_object ('org.freedesktop.Hal', udi)
        device = dbus.Interface(device_obj, 'org.freedesktop.Hal.Device')
        #if it is a volume, call the do_add function...
        if device.QueryCapability("volume"):
            return self.do_add(device)
           
    def _filterremove(self,udi):
        try:
            #device_obj = self.bus.get_object('org.freedesktop.Hal',udi)
            #device = dbus.Interface(device_obj,'org.freedesktop.Hal.Device')

            #if device.QueryCapability("volume"):
            #    return self.do_remove(device)
        except:
            return
    #unused....
    def do_remove(self,volume):

        playsound("hardwareremove.wav")       
        #displays some info about the added device to the console (maybe future changes can pop stuff like volume label, device file, size, etc into a Notification box?)
    def do_add(self, volume):
        device_file = volume.GetProperty("block.device")
        label = volume.GetProperty("volume.label")
        fstype = volume.GetProperty("volume.fstype")
        mounted = volume.GetProperty("volume.is_mounted")
        mount_point = volume.GetProperty("volume.mount_point")
        try:
            size = volume.GetProperty("volume.size")
        except:
            size = 0

        print "New storage device detected:"
        print "  device_file: %s" % device_file
        print "  label: %s" % label
        print "  fstype: %s" % fstype
        if mounted:
            print "  mount_point: %s" % mount_point
        else:
            print "  not mounted"
        print "  size: %s (%.2fGB)" % (size, FLOAT(size) / 1024**3)
        #and play a sound.
        playsound("hardwareinsert.wav")

#main loop...
if __name__ == '__main__':
    from dbus.mainloop.glib import DBusGMainLoop
    DBusGMainLoop(set_as_default=True)
    loop = gobject.MainLoop()
    print "in __main__..."
    DeviceAddedListener()
    loop.run()
You'd think there'd be some kind of hook out of automount, wouldn't you?  Probably introducing such a feature into the code and recompiling would be the most elegant solution.  Heave you heard of inotifyincron builds on inotify and there's even an example of playing a sound on the basis of a change within the file system.I wanted a solution that I could share easily, most of the others, even assuming I was able to get them working, would generally need somebody to go off and download some other package (for example, pyinotify). I might explore that for a more robust solution, at least for myself, but this script has been working well enough for me.Ah, I see.  In that case, well done!Why do you need a sound for that? Quote from: Raptor on January 08, 2012, 05:44:23 PM

Why do you need a sound for that?

So that I know the drive was detected. Quote from: BC_Programmer on January 08, 2012, 06:50:57 PM
So that I know the drive was detected.

Can't you just look?

If I recall correctly, the default behavior for Linux Mint is to auto-mount usb drives and show an icon on the desktop.

By the way, good job on the script!  Quote from: JJ 3000 on January 08, 2012, 07:00:56 PM
Can't you just look?
If I recall correctly, the default behavior for Linux Mint is to auto-mount usb drives and show an icon on the desktop.
It doesn't always show up and OPENING nautilus or showing the desktop is a big pain in the *censored* compared to just being able to hear a sound.
It's pretty cool that you wrote an entire script for that. I still think Firefox is the best browser, though. Quote from: Raptor on January 09, 2012, 08:13:55 AM
It's pretty cool that you wrote an entire script for that. I still think Firefox is the best browser, though.
What does firefox have to do with any of this? Quote from: BC_Programmer on January 09, 2012, 11:19:44 PM
What does firefox have to do with any of this?

At least it's not "or alternatively you could just install Windows, which plays the USB-add sound". Quote from: Veltas on January 10, 2012, 04:05:57 AM
At least it's not "or alternatively you could just install Windows, which plays the USB-add sound".

Windows is installed in a dual boot with it, so I can properly test my programs installers without fiddling with a VM

the Apache/MySQL/PHP stack  is a lot easier to install & administer via on Linux, and it is the primary role of the laptop. Quote from: BC_Programmer on January 10, 2012, 04:14:38 AM
the Apache/MySQL/PHP stack  is a lot easier to install & administer via on Linux, and it is the primary role of the laptop.

Is it running a website? Quote from: BC_Programmer on January 09, 2012, 11:19:44 PM
What does firefox have to do with any of this?

Nothing. Just trolling! Quote from: Raptor on January 10, 2012, 04:31:47 AM
Nothing. Just trolling!

Oh Raptor...
73.

Solve : wil not boot from cd drive?

Answer»

I am unable to boot any x86 bootable cd that will boot on other x86 computers. The bios is set to boot from: 1st)cd-rom 2ND)removable_device 3rd)Hard_Drive 4TH)Network.There are 4 reasons your system will not boot from a cd:

1) The cd is not the first device in the boot ORDER or
2) The cd is no good or not bootable or
3) The cd drive is SHOT or
4) The mobo battery needs to be replacedIs your CD is a downloaded ISO file or you bought your cd? what is on the cd?

74.

Solve : Mailx -U?

Answer»

Hi all,

I have a uuencoded LIST of EMAIL addresses called list.uue and WOULD LIKE to sent an email out
to all the addresses in the list using the mailx -U operator.

I don't know how to tell mailx to read the addresses from this file though

I've tried mailx -s "Hi" -U list.uue < attchnt.txt

but it ALWAYS puts list.uue as the address? I know I'm missing something small here. ANy help much much appreciated

thanks

75.

Solve : UNIX freeBSD installation cd?

Answer»

Hi! I've downloaded freeBSD on the net. I've put it on a CD and it won"t boot at the next start of the computer.
So, what do I have to do?this may help:

http://www.freebsd.org/doc/handbook/install.htmlCheck that your computer is set to boot from CD - While the computer is starting (Usually on the screen with the manufacturer's logo or white text) you should see something that says something like "Press XX to enter boot SELECTION menu" Press that key, you should then be able to select to boot the PC from the CD.It is already setted to boot from the cd.
And the WEBSITE doesn't help.Does the CD boot in another PC - Might be a BAD discI tried 3 differents discs.I found my error. I didn't burn the files... I was just extracting and putting them on the CD without burning (Just writting normally). I hope that this reply may help OTHERS!

76.

Solve : how to run GNOME?

Answer»

Does somebody knows how to run GNOME with a COMMAND?You're running FREEBSD right?

SEE here  http://www.freebsd.org/doc/handbook/x11-wm.htmlIndeed, I'm running freeBSD.It works! I am able to run GNOME!
But I have ANOTHER problem...
My cursor won't move in GNOME mode.
Even if it works in the command prompt!

77.

Solve : Linux Mint Julia install?

Answer»

I am GETTING ready to download and install the above noted O/S on a Compaq Presario desktop with win xp HOME currently on it. I note from research that if one desires to install Linux (Ubuntu specifically) on an external HDD it will require a formatting of the HDD with the resultant loss of all previous material on the drive. This would be my 1st choice of location for the install however i do NOT want to TRANSFER (backup) or lose the material already on the drive. Is this also a limitation with Mint Julia? If i were to install it on the internal HDD would similar issues arise with the data already there? I note that there are many VERSIONS of Mint Julia 32bit/64bit/etc. Why would i want one version over another and what would be the most desirable version to download/install? thank you,truenorthA picture is worth...


The second option will install it in a windows directory. My owon experience indicates that performance is still good.
The advantage of this is that you can be sure all you data is PRESERVED and there is no need to adjust partitions. Unless you just want to.

78.

Solve : Linux will be the most popular system?

Answer»

Soon Linux will be the most popular system software . When?
Quote

Preston Gralla
July 9, 2010 - 2:35 P.M.
Could Linux become the world's most popular operating system?
Linux has no chance of catching Windows on the desktop, but that may not stop it from becoming more ubiquitous than Windows. One day, you'll most likely be running Linux, and there's a good chance you won't even know it. In that way, you'll be like millions of other people....
Preston Gralla
Actually he is right. He wrote that last year.
This year nobody can argue because it is already a fact.
So there is no more to say.

But, if you want to talk about non -facts - please do!
Examples:
Does Linux make you happy?
Will Linux do your homework?
Can Toyota switch ton Linux?
Might Linux make the world safer?
Are Linux games better?
Curious minds need to know! Quote from: Geek-9pm on April 25, 2011, 09:08:42 PM
This year nobody can argue because it is already a fact.
Depends on the context. UNIX based, and more recently, Linux based operating systems have almost always held the Lion's share in the Server market. The fact that the Server-oriented Windows Operating Systems were able to become as popular as they are speaks volumes about perceived deficiencies in current Open Source offerings in the way of servers.

On the average consumer PC, though- Windows is still far more popular then any other operating system. By popular I mean purely by the numbers.

Some would like to say that Linux is more  "popular" because it's more well-regarded. I say such a concept is more deeply rooted in politics then anything else. The fact is that everybody loves to hate a Hegemony, and Microsoft currently has a hegemony on software. This is the same psychological mechanic that makes people "hate" the US for no reason, and before that (pre WW2) Britain. So in that sense, yes, it's more popular. But popularity is absolutely meaningless, it's only perceived value; additionally, it forces an unfair comparison; even if Windows does something a million times better then a "popular" Linux environment, die-hard evangelists will stop at nothing to PRETEND otherwise.

Pretending something is or is not true does not make make it that way. Quote from: Geek-9pm on April 25, 2011, 09:08:42 PM
But, if you want to talk about non -facts - please do!
Examples:
Does Linux make you happy?

Yes it does. I personally enjoy using it to a great degree (most of the time )

Quote from: Geek-9pm on April 25, 2011, 09:08:42 PM
Will Linux do your homework?

I can use it to do homework. In fact, Linux can and does do a lot of work in the real world.

Quote from: Geek-9pm on April 25, 2011, 09:08:42 PM
Can Toyota switch ton Linux?

I'm not sure what that means...

Quote from: Geek-9pm on April 25, 2011, 09:08:42 PM
Might Linux make the world safer?

I'm not really sure in what context you are using the word "safer" here. I can't imagine how Linux would make the world any more dangerous, if that's what you're getting at.

Quote from: Geek-9pm on April 25, 2011, 09:08:42 PM
Are Linux games better?

Linux has games ? ?
But seriously, Linux was designed for getting actual work done, not just dicking around. There are a some games for Linux, but I have to admit that the only game I ever play on my Linux box is chess. I am far from an authority on whether or not games that are designed to run on Linux are better than others.



Posted from a computer running Microsoft Windows®

Quote from: JJ 3000 on April 25, 2011, 11:52:04 PM
But seriously, Linux was designed for getting actual work done, not just dicking around.

Incorrect. Linus created Linux because he wanted to be able to "*censored* around" with UNIX-like operating system on his shiny 386. Whether it can or cannot now is another matter, but it certainly wasn't originally designed for "getting work done", except in the broadest sense that the end result would be able to do that.

In fact that definition is sort of broad. Since when is an Operating System not designed for getting work done? Quote
Since when is an Operating System not designed for getting work done?

Windows ME   I love linux personally , i have a desktop running 9.04 ubuntu with compiz and ut 2003 , i have a home fileserver running ubuntu samba fileserver  , i have 2 laptops , one dual boots PUPPY linux and puppy arcade and the other uses live cds since it doesent have a hard drive , we use a flash drive for any storage.

i guess puppy arcade shows that any linux distro could be made for "dicking around" , puppy arcade is a linux os based on the lucid puppy os. it is modified so that it has console emulators built into the os , the whole os is designed around that fact. Theres emulators for around 20 consoles i believe from ataris and commodores to ps1 (psx in us)  and gameboys. puppy linux is also very lightweight , the system specs are extremely low and the core os files take up something like 300MB. I also had the laptop tri booting puppy linux , puppy arcade and a stripped down version of ubuntu to see if it worked. I basically installed minimal install of ubuntu (just text based) then installed a windows manager (i think it was lxde) and a login manager you can find out more about that sorta thing if you google. it worked absolutely fine but it just wasnt the kind of thing i needed so i moved on to linux and arcade only.

The ubuntu fileserver is very well known in the server world for its HIGH security and its programability , if you need the server to do something you can add code onto the os to do it or you can download a package to do it for you using aptitude , a well known package manager for linux.

The compiz fusion addon for linux is very impressive. It allows your ubuntu or debian pc to have an extra degree of awesomeness. you can make windows behave like jelly (when you move them they will wobble) , you can make minimise and maximaise effects (fire can "burn" a window down when you minimise it) you can draw with fire on the screen , its very good for parties But it is just a plaything.

The only game ive played on linux is ut2003 and a handful of linux games (tuxkart , gl117 , a tux platformer game,gbrainy,minesweeper,bombic,doom) all of which play exceptionally well on my system. I believe that linux handles ram much better than ANY windows system thus far (
Linux is already kinda taking over the world just like micro$oft and Sapple did. Some mobile phones are now coming with the android os which is a google modified linux os (largely modified but linux nonetheless) and one of the smallest computers in the world uses a linux os. Quote from: jimbo8098 on May 07, 2011, 04:23:43 PM
I love linux personally ...
Linux is already kinda taking over the world just like micro$oft and Sapple did. Some mobile phones are now coming with the android os which is a google modified linux
You got the idea right. It is already everywhere. Yes, you Laptop has Windows, but your router, your wireless printer, your cell phone and your digital camera rely more on either Linux or other Open Source code. Even your automobile.

And in many other devices that are not called computers. The starter of Linux, Linus Torvalds, had predicted the future was in embedded systems, not just the desktop.
http://en.wikipedia.org/wiki/Linus_Torvalds
Quote
Where does Linus live?
He's now resident in Portland, Oregon, having moved to the U.S. from Helsinki in early 1997. He lived in Santa Clara and San Jose before going to work for OSDL
What is OSDL?
http://en.wikipedia.org/wiki/Open_Source_Development_Labs
One argument against Linux and Open Source is that you can not make money ding it. Wrong!
History has shown that he more open a technology becomes the faster it propagates. And whoever can stay on top of the wave is the winner. Linux is a significant part of the Open Source concept.The last time I used Windows was on a friend's computer; not really used, but was trying to fix it. Somehow, some sort of malware had managed to infect chkdsk.exe or whatever they call it on Windows 7 and formatted C:/ . There wasn't much to fix so I installed Debian from my flash drive onto his box. He's happy today.

Is there anything more tiresome in this life than a Linux fanboi? Sorry, "advocate" 


Quote
Hello, My name is Trojan, and I was a Linux user for 11 years.
I've used Linux through tick and thin, I've hated, loved and used it since 1997.

I'm sorry to say that I've lost my taste for anything to do with Linux. Was it the lack of hardware support that made me leave? Was it the lack of video games? Was it the lack of the commercial software? Nope.

I've been a spectator in the Linux community for most of the time I used Linux. I've also witnessed the downfall of it, I've watched it turn into an evil, lying, uneducated, uninformed bunch of users, who have turned something I once loved into a die hard fanatical religion. One can say that it was always like this, but, I would disagree. The Linux user base I knew used to be mostly made up of elitists and computer gurus who kept quiet about what they used, and didn't push it on to anyone.

Not everything has changed though, the user base still has some of the old characteristics, like the fact they aren't normal users by any stretch of the imagination. Linux today is nothing more than a group of Zealots who have no understanding of what they're worshiping. I've seen one too many "I converted my grandmother to Ubuntu" stories, I've seen one too many "Year of the Linux desktop", I've seen too many "Linux is just as easy to use as Windows" articles. It makes me very bitter to see how uninformed people are about Linux, and how completely retarded they've become.

My tipping point was a thread over at Ubuntu FORUMS, where someone posted our site (linsux.org):

Within two days, I had about 3 death threats, 10 hacking threats and tons of half thought replies to our articles. I began thinking, is this really what I'm part of? Am I part of a community that preaches love and sharing while threatens murder and to hurt anyone whom disagrees? Yes, and it makes me sick to the very pit of my stomach to know that.

I can never get back the time I wasted using Linux, but I can put the skill to use in other ways I guess.
I've learned one thing though, and that's no matter how great an idea is, it doesn't take much for it to be ruined. All it takes is one uninformed, retarded community.

I say this to the people who are considering trying Linux: Don't bother, don't try it, do NOT have anything to do with it. It's nothing more than a cult full of hatred and denial.

I backed up my data, and removed Slackware, Fedora 8, OpenSuse and Debian from my computer today. I've kept my copy of FreeBSD and Windows on there, I haven't figured out what I will move to, though.

Good Bye Linux, and F*** You to the community. You're not worth my time.

I bolded the curiously relevant bit, since it's just such a "OMG Linux on the desktop is right around the corner!" type article that it was started for.

source

Also, it's interesting to note how well diehard linux advocates sucking on RMS's teat ignored this.


returning to the Original Post:

Quote
This year nobody can argue because it is already a fact.
Citation needed. *censored* the majority of freaking slashdot visitors are running windows. As I said, if you want to include desktops, tablets, servers, and any other system that requires programmable firmware/software in the form of an operating system, of course Linux will come out ahead; but that's fudging the numbers, and it's not even worth exploring, because Server's have been predominantly NIX-based for years. This isn't a new development. This hasn't been worth reporting on ever, or writing an article about. It's would be like writing an article about "will QWERTY become the most popular layout"?

The article is just a case of Moving the Goal posts. "It's not on the desktop but it's used in other places!" Yes, and it's been used in other places for years. This isn't news, this isn't article worthy, it never was. It's only article worthy to those "freedom FIGHTERS" who are convinced that they are fighting some kind of war. This is exactly the reason why I avoid reading ANY articles like that. Particularly since almost any article about Linux by these "magazines" is basically just a load of FUD. take this for example. it's notable because it doesn't directly compare Linux to Windows, instead it is about 5 things that Linux does better then Mac OSX. That should raise red flags for any critical thinker; any article that fits the pattern "# things that OS A does/doesn't do that OS A can" or something to that effect is practically guaranteed to be filled with nonsense and bias. In fact they do that in the third paragraph: they state outright "as an outspoken fan of Linux", as if that qualifies them in the eyes of the world as anything other than a raving maniac.

I particularly enjoy posts and opinions of the form of SgrA's, that isn't to say they are wrong, but aside from being purely subjective, state outright "I have no idea how windows works but I feel I am in a position to tell people when the OS is hosed". I mean, seriously, malware  that formats the drive? Really, I'm pretty sure those Ebola-type computer viruses and malware stopped being created in the early nineties because they were absolutely useless to the virus writer. Nowadays malware is about the writers trying to make money of their product by packaging in adware and other crap and offering to "install" applications on the machines they have control over. There is no reason to become intensely destructive in that case (such as via formatting the drive). In fact in my experience I found early on that a lot of what I did to try to stop an infection would often cause problems worse than the infection. When fixing other peoples machines, it's never occured to me to use gparted, delete the system drive, blame windows malware and then conveniently-and totally not on purpose- happen to have a thumb drive with an alternative Operating System on it. Linux is supposed to be about choice and freedom (supposedly, although I'd hardly classify the GPL as "freedom" but that's another topic altogether), I'd estimate- judging from a number of posts from members here seeking to get Windows back, as well as posts seen elsewhere and having to "fix" the machines that some helpful zealot already "fixed", that a lot of the people using Ubuntu or various other Linux distro's weren't really offered the choice, and instead were basically "forced" into it. If somebody asks "hey, can you fix my PC" you don't see malware, give up and install a Linux distro. That's not fixing the computer, that's being a self-serving douche. They asked you to fix it, not use it as a Soapbox. Now that said, if they express interest in actually running it, then you could engage your zealotry overdrive, but other than that, most people just don't want to hear it. I mean, really, I use Linux, but if somebody asks me "What Operating System do you use" I'll say windows, because that is the one I use more often. I know far too many self-proclaimed "Linux users" who spend their time using mIRC in Windows XP complaining about how behind the times Windows is compared to Linux... and it's just sad. This is another "subset" of Linux zealots that ironically don't even use Linux. Many of them use windows and just complain. I find it difficult to understand how somebody can recommend an Operating System they have never used, but apparently a screenshot with two translucent console windows where one is  tailing a syslog and the other is running a python script is enough to convince them.

If you really want a "free" OS, use FreeBSD; just compare their licenses. The BSD/MIT License is more "free" then the GPL. But that is a horse of a different colour.

Quote from: SgrA on May 19, 2011, 02:43:21 AM
Somehow, some sort of malware had managed to infect chkdsk.exe or whatever they call it on Windows 7 and formatted C:/ .

That seems highly unlikely...

By the way, welcome to the forum.  Quote from: SgrA on May 19, 2011, 02:43:21 AM
The last time I used Windows was on a friend's computer; not really used, but was trying to fix it. Somehow, some sort of malware had managed to infect chkdsk.exe or whatever they call it on Windows 7 and formatted C:/ . There wasn't much to fix so I installed Debian from my flash drive onto his box. He's happy today.

The last time I used Windows was at work. I work in a bank. I was working on their server, trying to nail down an issue with their server unexpectedly rebooting. There really wasn't much I could do, so I installed opensuse on all of the computers in the building. They're happy today. Quote from: JJ 3000 on May 19, 2011, 06:02:30 PM
The last time I used Windows was at work. I work in a bank. I was working on their server, trying to nail down an issue with their server unexpectedly rebooting. There really wasn't much I could do, so I installed opensuse on all of the computers in the building. They're happy today.

Wait... they were having a problem on their server (whose operating system you don't even mention) and you decide to install OpenSUSE on every machine in the building?

Oh... are you being facetious because if so, well-played.JJ 3000 is very credible... just look at that face!   Linux, Javascript edition (a PC emulator written in Javascript)
79.

Solve : Nautilus, root and the access properties?

Answer»

I have another problem with GNOME... I want to edit the system, but ROOT cannot work in GNOME (nautilus won't start because it cannot create a CERTAIN FILE in the root's folder). I already know that this problem is about  the access's properties but this program won't let root apply CHANGES. What is the problem???Code: [Select]startx -- :1 using xinitrc from the handbook to run Quote

exec gnome-session

You can run this from tty1- Unless you are on non-standard hardware.
80.

Solve : Floppy Drive(setting permissions)?

Answer»

I am currently RUNNING ubuntu 11.4 alongside windows xp pro on a Dell Optiplex GX620 with a DVD/CD-RW and a FLOPPY Drive.After mounting the floppy,it FAILS to COPY or MOVE flies(reading or writing)because it is unable to determine the permissions.How might I SET the permissions.There is nothing wrong with the hardware in itself,it works excellent under windows.See here regarding editing fstab

http://ubuntuforums.org/showthread.php?t=67987

81.

Solve : Dont have the first clue about linux, help putting xp back please!?

Answer»

I had a virus on my laptop, so I took it to someone to fix. Well when I got it back it had LINUS on it. I have never EVEN heard of Linux before. The guy said because I didn't have my xp cd or restore cd that is all he could do. He gave me some websites to visit for new Linux users. Way over my heard I just want XP back. Is it to late? Can I just uninstal Linux and reinstall XP. Please help!

Thank you!if you have not got a Windows install CD or a recovery CD from your laptop maker you will have to buy one. Unless the laptop has a recovery partition. What make and model is it?

Either what SalmonTrout suggested or you'll have to learn Linux. I use Linux all the time, it isn't too hard to learn at all if your using Ubuntu or something like it.

But still it does take some learning, and it depends whether you'd rather take the time to learn Linux or pay ROUGHLY $100 dollars to get a new copy of Windows XP.  you can do one thing get a bootable disk from friend and you can make bootable flash drive from it.

You will need windows computer and Win to flash software and XP bootable Cd. That's all.

Run the software make bootable flash drive. And connect the flash drive and restart your computer in USB harddisk. and it will install it for you.Laptops are almost always sold with a Microsoft Operation system. Look under the laptop and find the Microsoft sticker. If it has it, you are entailed to the Windows XP that works on that machine and you do not need to pay anything for it. The technician who fixed your PC should have done that for you. What he did puts Linux in a bad light.

Does the Linux work good enough to do a down load from the Internet? You can download a ISO of the original CD used to install XP on that brand of laptop. Was it a Dell? The product key on the bottom of the laptop makes it legal.

dell windows xp sp3 oem iso

The above exact phrase will bring seven or more  sites in a Google search for exact phrase with keyword download also in context.

Note: It is not legal if you do not have a product key or if it is not a Dell.
In fact, it will only work on a Dell.

EDIT: Only one of the seven work. Alter the search parameters and find more.
Quote from: Geek-9pm on April 18, 2011, 07:29:19 AM

Note: It is not legal if you do not have a product key or if it is not a Dell.
In fact, it will only work on a Dell.

the only "legal" way of getting a windows XP install cd is to buy one, downloading ISO's is a violation of MS's distribution policy. Either way, the PRACTICE of downloading iso's is looked down upon because most of them are modded/preactivated with cracks and patches and are used by pirates to illegally install and activate windows.

Better solution would be to contact dell and get the appropriate Recovery disks for the machine. And no, isohunt, torrentz, thepiratebay, and most of the other results from the google query you provide for some reason are what anybody would call a reliable source. For this.Right.
Your point is more that valid, BC_Programmer.
It is morally correct.
And piratical.

I don't need to get a reputation for being a pirate. In fact, I have more OEM license than I have working computers. But I can not use them unless I locate an original motherboard for the bad PCs laying in my shop.

Anyway, the OP should contact the manufacture before ever resorting to of-track methods. Like the repair shops that lay on the other side of the tracks, so to speak.

Some of the major MAKERS supply older OEM CDs to user who can supply the computer serial number. For a modest fee. Quote from: BC_Programmer on April 18, 2011, 10:25:17 AM
the only "legal" way of getting a windows XP install cd is to buy one, downloading ISO's is a violation of MS's distribution policy. Either way, the practice of downloading iso's is looked down upon because most of them are modded/preactivated with cracks and patches and are used by pirates to illegally install and activate windows.

Better solution would be to contact dell and get the appropriate Recovery disks for the machine. And no, isohunt, torrentz, thepiratebay, and most of the other results from the google query you provide for some reason are what anybody would call a reliable source. For this.

actually it is legal to download certain OEM isos , at least it was when i checked, but there are only a couple and you have to specify details before you can download Quote from: jimbo8098 on May 07, 2011, 04:13:13 PM
actually it is legal to download certain OEM isos , at least it was when i checked, but there are only a couple and you have to specify details before you can download
Right. Dell may charge $25 for a disk.
If you have a slow connection, it is better to just buy the disk. I have bought 3 Dell OEM's and one HP.
Some helpful information.
http://www.infocellar.com/winxp/oem-recover-retail.htm
82.

Solve : can anyone xplain bsod's to me??

Answer» OK i know what a bsod is and what the stop error is but can anyone explain what the PARAMETERS following the stop error mean?i feel understanding that more will help me diagnose future problemsI didn't think you COULD get BSODs in LINUX? The blue screen that tells of a catastrophic error is a Microsoft Windows thing.

http://aumha.org/a/stop.htm
83.

Solve : Can Netflix be made to work with Linux Mint??

Answer»

I just started Netflix and I was told that they don't support Linux Mint. They did have me down load some thing like Silver light that works with Linux. My question, is their a patch or some thing I can do to make Netflix work with Linux Mint? I don't want to have to start back with Windows. Thank you much for your time.Yeah.. Hard to believe.
Here is one workaround. Tell us if it works for you.
http://www.youtube.com/watch?v=ZuyPJFhVTxQI came up with a work around that uses TWO hard drives and a switch. I have Linux Mint on one and XP on the other. The switch will power the hard drive I want to use. Not ideal though it works. I can play on the net with Linux and use xp to watch Netflix. The switch is one that was used on an AC to Heat unit. It is a 4 pole double throw with a center off. The set up works great. I just wish I could have DUN it all on Linux. I hate Windows. Quote from: I Shooter on May 16, 2011, 10:10:12 AM

I came up with a work around that uses two hard drives and a switch.

1. I hope you only operate the switch with the system powered right down. Otherwise, watch out for switching transients which might shorten (perhaps drastically!) the life of your drives, power supply, and in fact the whole computer.

2. What's wrong with a normal dual-boot configuration?
Try this Google search
Netflix News
There are some new things that have showed up in just the last few days. Netflix says they have a android version. That would imply some portable code that does not require windows.There is hope.
Quote from: I Shooter on May 16, 2011, 10:10:12 AM
I came up with a work around that uses two hard drives and a switch. I have Linux Mint on one and XP on the other. The switch will power the hard drive I want to use. Not ideal though it works. I can play on the net with Linux and use xp to watch Netflix. The switch is one that was used on an AC to Heat unit. It is a 4 pole double throw with a center off. The set up works great. I just wish I could have dun it all on Linux. I hate Windows.

I'm interested...
How does that work exactly? Can you explain it in further detail? Can you upload a photo of the setup?I could take some pictures. I just don't know how to post them on this site. As for what I did I had Windows XP on a drive for this computer for the grand kids with some very old games on it for them to play. Some time back I got interested in Linux and decided to put Linux Mint on this computer so I could us it. I added a hard drive for the Linux OS and unhooked the XP drive and hooked up the Linux one. When the kids would come over I would just change drives for them so they could play the old games. As I said above because of Netflix not being workable with Linux I put in a 4pole switch with double throw. That means that where you hook up the wires it has 12 connectors, 3 rows of 4. The center row is where you hook up the four lines from the power supply, red, black, black and yellow. Then Hook up the power lines that go to the hard drives to the outside connectors.Just be very care full not to cross any lines. You know like yellow to black or such. Drill a hole in the front of the case and slide the switch through it. I used the extra BAY for a DVD player for the switch. The sata cables are hooked up like always. Pick what OS you want with the switch then turn on the computer. To change OS turn off the computer and switch to the other OS and turn the computer back on.

I had a dual boot system and didn't like it. I had some problems with the hard drive and lost every thing. It is my understanding that you can dual boot with two drives. For me not being a computer tek person this was the easy way to go for me. Thank you all much for your time. I still think it is unreal that Netflix can't work with Linux. Any way that is my fix and it works great.
 if i understand I Shooter correctly, he has two sata hard drives.  both have data cables connected, but the switch chooses which hard drive gets power.  He powers down, then flips the switch.  Do I have this right?

Well it seems to me that netflix doesn't feel it is necessary to do business with linux users.  This is not showing much ambition in netflix's behalf.  Is netflix a subsidiary of microsoft?

Just a suggestion (wishful thinking), but have you tried WINE?  There is probably a reason why it won't work or Geek-9pm would have suggested it.  WINE has worked less than half the time for me, and I don't know if it works with mint, but it should.  It just might not work with netflix.

As for posting your pictures, there is an 'Additional Options' below.  click on it and click on 'browse' to your attachment (you have to save a screenshot first).  I actually use a hosting site like imageshack or tinypic myself, but you could try posting an attachment.  it may work for you. Quote from: ejames82 on May 17, 2011, 05:46:51 AM
Well it seems to me that netflix doesn't feel it is necessary to do business with linux users.  This is not showing much ambition in netflix's behalf.  Is netflix a subsidiary of microsoft?
No, they're a business and apparently have decided that the loss of revenue from trying to support the 1% to 2% of users running Linux, OPENBSD, or FreeBSD isn't worth the cost of switching to something other than silverlight, particularly since they would have to find an alternate technology that supports a form of DRM. (Without a form of DRM they simply aren't going to get any content providers willing to allow their content to be streamed). That said, Microsoft is actually moving away from the desktop as a platform fore Silverlight and aiming more for the mobile market. The "ideal" method for netflix to use would be HTML5, but again, without a form of DRM no content providers are going to be willing to provide content for them to stream. There is already Moonlight, but it's not quite "good enough" an implementation to run NetFlix, particularly since it doesn't have the "PlaysForSure" DRM implementations that Netflix requires (again, without which they probably wouldn't have any content to stream to begin with). Same issue with an HTML5 implementation.

Quote
Just a suggestion (wishful thinking), but have you tried WINE?  There is probably a reason why it won't work or Geek-9pm would have suggested it.  WINE has worked less than half the time for me, and I don't know if it works with mint, but it should.  It just might not work with netflix.
The closest you can get with WINE is to install WINE, install Firefox for windows under WINE, change the useragent string in it to "Mozilla/5.0 (X11; U; Windows NT 6.0; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6", close and relaunch, Browse to netflix.com, log in, and go to the watch instantly page. Magically, you'll be transported beyond the "OS not supported" page you're used to, and you'll be given the option to install the Silverlight plugin. Do so. Then you can happily crash. You'll be able to get garbled display for a few seconds before it does so. Since Netflix works fine on the netflix boxes that get connected to televisions and those boxes themselves run a form of embedded linux I'm not sure why either netflix or some enterprising Linux user hasn't found a way to get the same stuff from one of those boxes running on a desktop linux distro.

In either case, it's not like netflix is the only option; there are a few other video streaming sites, that support *nix OS's, such as Amazon Video On Demand for Linux. The fact is if most people are going to set up a dual boot or a similar configuration just to run netflix they (netflix) aren't going to even notice that small percentage of users who are using Linux, since they have set up a dual boot or something to use netflix anyway.


ejames82, yes you have it just how it is.

I was wandering the same thing about if there was a Microsoft connection. I don't know if Netflix works out side the U.S. or not. It is my understanding that out side the U.S. that Linux is used more than Microsoft. I don't know if that is true or not.

If any one wants pictures of what I did I would be glad to e-mail them to you. Just PM me and I will send them to you. I didn't take any pictures of it but I can if some one wants them.

If I was young and more in to computers I might try some other of the ways to go about getting Netflix to work. What I did works for me and I am going to stick with it. Thank you much for your time. You all have a nice day. Quote from: I Shooter on May 17, 2011, 09:18:13 AM
ejames82, yes you have it just how it is.

I was wandering the same thing about if there was a Microsoft connection.
I love it. "It doesn't work on Linux, it must be a conspiracy by microsoft!"

The reason you can't get Netflix working is because it's going to be difficult to get the appropriate DRM stuff on Linux, and that has nothing to do with Microsoft and everything to do with GNU, the GPL, and the FSF. In fact if they had their way no Linux distro would even be able to play MP3s. And the reason you can't get something like netflix without said DRM is because no content provider is going to want to give content to a streaming service where anybody can rip them, and it's not sensible for netflix to do so anyway because Windows and OSX comprise a vast majority of the OS environment. Why should they bust their asses so that a tiny percentage of people interested in using NetFlix on Linux-based machines can use it? That wouldn't be "ambition" it would be BAD business sense. Linux users ought to understand that just because your Operating System is Open Source doesn't suddenly mean that every single corporation is going to turn a blind eye to the extra costs of developing solutions on that platform.


Quote
I don't know if Netflix works out side the U.S. or not. It is my understanding that out side the U.S. that Linux is used more than Microsoft. I don't know if that is true or not.

It's not true. The difference between Windows usage inside and outside North America is well within the margin of error. Don't worry though, Apparently Linux will take over the desktop market any year now. BC_Programmer. I don't know what you are talking about as far as the DRM and such. I do know that I can watch HULU on the net and all the TV station programs on my Linux machaine. Knowing that I had no idea that I woudn't be able to get Netflix. To put it an other way. Netflix is the only one I can't use on Linux That I have tried and if the wife hadn't set it up for me I would have gone with Hulu and wouldn't have been bothered with any of this. Thank you much for your time. You have a great day. Quote from: I Shooter on May 17, 2011, 11:25:13 AM
BC_Programmer. I don't know what you are talking about as far as the DRM and such.
PlayReady.Netflix does not let you copy the stream. This makes it good for a media company to get a royalty for every time a movie is viewed. Even if you watch is several times, that is not the same as making a copy that will go on forever. Anyway, Netflix is winning. At least that is what somebody said today.
Quote
Have you noticed lately how many hours you've been spending ogling at the endless catalog of movie choices on Netflix Instant View? Did you smile a little yesterday at the news that Miramax movies will soon be available to subscribers--and maybe you even started planning your streaming Pulp Fiction party complete with Photoshopped boxes of Frute Brute cereal to munch? You're not the only one. According to a new report by Sandvine, Netflix now accounts for one third of all internet bandwidth in North America during primetime hours.
Netflix Is Winning the Internet
So that's why I lost my bandwidth!
Netflix will run on my Virtual box
XP
looks about as bad as it does on a straight XP box
Netflix works ok at my neighbors house through a WII
I'm not sure what the difference is
84.

Solve : Problem php +apache +svn?

Answer»

Hi
I am a linux newbie
and got into a major problem of setting up svn with php and apache
I have the following softwares in my systems

1. FEDORA 13
2. Php version 5.2.17
3. Apache Version 2.2
4. svn client version 1.6.16 i can see them in phpinfo.php
5. svn extension version 1.0.1
6. https installed on apache working fine

Php and apache are working fine there are no issues in that as a project is working

Just Now i have installed svn version 1.6 but when i run a command svn info https://www.someurl.com from command line it works fine i get a message of the revision and its working fine but when the same thing i run from php file or php webpage it gives me the following error

Username: svn: OPTIONS of 'https://someurl/svn/something/something/trunk-new': authorization failed: Could not authenticate to server: rejected Basic challenge (https://someurl.net)Array
(

  • => Authentication realm: Subversion LOGIN
  • [1] => Username: svn: OPTIONS of '
https://someurl.net/svn/something/something/trunk-new': authorization failed: Could not authenticate to server: rejected Basic challenge (https://someurl.net)
)
1
The php code is here
$cmd = exec("svn info https://someurl.net/svn/someurl/something/trunk-new |GREP Revision: |cut -c11- 2>&1", $output, $status);
echo " ";
print_r($value);
print_r($output);
print_r($status);
echo "";
?>

i have followed the following
http://vengatctech.wordpress.com/200...svn-on-fedora/
and also googled enough but its not working in php web page

Can somebody help me
You've posted the same question twice, in the same section.  Is just creates confusion when people attempt to answer. ONE POST is enough.

Can a mod lock this one.
85.

Solve : help adding grub2 windows 7 boot entry??

Answer»

the title is somwhat self-explanatory, but when i boot into grub, there is no windows option.
i went into terminal and did the following:
Code: [Select]sudo fdisk -l /dev/sdai then found that my windows partition is /dev/sda1.
i then did the following:
Code: [Select]sudo nano /etc/grub.d/11_windows


echo "adding windows" >&2
cat<< EOF
menuentry Windows 7 {
set root=(hd0,1)
chainloader +1
}
EOF

after that i put in
Code: [Select]sudo chmod a+x /etc/grub.d/11_windows
all of this went off normally, but then when i input
Code: [Select]sudo update-grubit returns: "/usr/sbin/grub-probe: error: cannot stat 'aufs' "
how do i fix this?

i am multi-booting ubuntu with windows 7 x64
I am running ubuntu off of the LIVE disc b/c the usb drive that it should be on isn't working for the moment,and Win7 is running off a RAID-0  600GB array on the first partition.
Quote from: special.ed711 on July 02, 2011, 03:08:07 PM


i am multi-booting ubuntu with windows 7 x64
I am running ubuntu off of the live disc b/c the usb drive that it should be on isn't working for the moment,and Win7 is running off a RAID-0  600GB array on the first partition.

I'm confused. Do you have Ubuntu installed on an internal hard drive? Are you talking about the grub menu on the live cd?ubuntu is not installed for all intents and purposes, therefore I am running off the live cd.
how would i GO about editing the grub menu on the internal hard drive so there is a windows entry?There are dozens of articles on different forums about how to DUAL boot different versions of Linux with different versions of Windows. Most of these articles will indicate that there are potential problems. Few of them ever tell you there's an easy way to do it and avoid the problems. Here's a method that works very well, is very simple, the not very elegant or attractive.
Most computers, desktops or laptops, have an option in the BIOS to boot either the first or second hard drive in the system, or even the CD-ROM. What you can do is set this up so that Windows Is on the first drive, which is PROBABLY called dry zero. The other operating system you want can be set up on the next try, which issued a call drive one.
Both installations are done absolutely independently of each other, without one being aware of the other. Thereafter they restructure machine it will automatically start up Windows unless you the option to have a boot menu , set option on my laptop is the F12 key. There I can select either the first or the second drive or even the CD-ROM. So when I want to play with Linux I remember to do that. If I'm not thinking about Linux, I'll just go ahead and let the thing go into Windows.
Now what is disappointing about this incident does not have a nice attractive menu that you can get either from Windows or from grub. It is just an ugly little boot menu that is part of the built-in BIOS of your system. Use it and your life will be boring. Nothing will go wrong. You have two separate operating systems on two separate drives.
Of course, many people don't like that. That's why we have forums like this so we can tell people how to do it the hard way. But I thought you or somebody  might like to know there is an easy way.

And yes, I do not how to do it the hard way.  Been thee, done that.


Quote from: Geek-9pm on July 03, 2011, 12:25:06 AM
Been thee, done that.

You've been me and "done that"? That's scary! Why wasn't I informed? Should I call the FBI?
Quote from: special.ed711 on July 02, 2011, 11:37:48 PM
ubuntu is not installed for all intents and purposes, therefore I am running off the live cd.
how would i go about editing the grub menu on the internal hard drive so there is a windows entry?

You can't. You will need to have some flavor of Linux installed to edit grub.

Do you just want to restore the Windows boot loader? Quote from: SALMON Trout on July 03, 2011, 12:57:48 AM
You've been me and "done that"? That's scary! Why wasn't I informed? Should I call the FBI?
Won't matter. I an on the FBI's 'least wanted' list. 

Back to topic. EASUS Partition Manger is now free.   Sorry about the late post, but long story short, I took your advice. I just restored the windows boot loader and from here I'll either get another internal hdd or just run ubuntu in a VM on windows
Anyhow, thanks a million for all the help, guys. Quote
ubuntu in a VM on windows
Lately, I do that now on the laptop. Much easier. Fun, too.
86.

Solve : High account (*)?

Answer»

I've heard that the higher account on freeBSD was "*". But, how to log in as it? I've never set a password for it.
So, I want to know its account name and where is the password.I think the username is EITHER "ROOT" or "*" and the password either "root" or nothing (just hit enter)it's root, just as with all UNIX based systems.

When FreeBSD is first installed, you are offered the option, during installation, to specify a root password.    If that was done, then that is it.   If not, there is no root password.   You could log in to root without a password - a dangerous situation which should not be LEFT that way.

But, the system is also set up by default to disallow a root log-in from a remote host.   So, you would have to be at the console in order to log in as root unless that has been modified.

If you are at the console, you will need to do a boot to single user mode, do an fsck and then mount needed file systems.  Then you can set the root password and any config stuff to allow logins as needed.
But with root, I can't edit the /usr/ directory.BC_Programmer was RIGHT with the suggestion given.

After booting into single user and creating the root password, you exit then log in as root.
It isn't a wise choice to edit an entire directory as a beginner. Learn the system first.

87.

Solve : one quick question?

Answer»

will boot-flagging my windows partition affect any files or put them in danger at all?
everything's backed up, but m backup drive has been on the FRITZ lately...You should not need to do such. Booting will be TAKEN care of by grub and the Windows chain loader.The OP did not say what OS he has. With XP there should not be any problem with GRUB.

If he has Vista as he MAIN system, he should do a SEARCH on this forum for the keywords: GRUB Vista
There are a number of posts about users who had problems.

88.

Solve : what happened to visual effects in ubuntu 11.04??

Answer»

just a curiosity question, i liked 10.10 going BOOING! it was FUN Quote from: zeealice on June 28, 2011, 10:05:06 AM

just a curiosity question, i liked 10.10 going BOOING! it was fun
Don't throw away your older Ubuntu CDs. Ubuntu is a work in progress. Some older version are more stable and have live-term support.
Quote
Our long-term support (LTS) releases are supported for three YEARS on the desktop and five years on the server. PERFECT for organisations that need more stability for business deployments...
http://www.ubuntu.com/business/desktop/long-term-support
i have the old 10.10 live disk so, all good
thanks for the information. Quote from: zeealice on June 28, 2011, 10:05:06 AM
just a curiosity question, i liked 10.10 going BOOING! it was fun

Are you REFERRING to compiz effects?

http://www.howtoforge.com/enabling-compiz-fusion-on-an-ubuntu-10.10-desktop-nvidia-geforce-8200thanks i'll take a look
Unity isn't very user friendly for some
we shall see what 12.04lts brings
89.

Solve : Debian Squeeze automatic mount fat?

Answer»

How do I get a fat partitioned hdd to MOUNT in squeeze? It is SET as primary slave and /etc/fstab is set for type FAT but it is unrecognized.Have you already posted this on the DEBIAN FORUMS?
Here is a post that might PROVIDE some clue. 
http://forums.debian.net/viewtopic.php?f=5&t=59495

90.

Solve : Fedora 14 not working?

Answer»

i am trying to put fedora 14 on my Dell Dimeson 2400.
it says boot: _ .  pls help
Hi there,
I bet that your CD/DVD Drive won't read the Disc at all, thus the Live CD will not boot. You should try to download the ISO once again, then verify the MD5 sum (there are instructions at http://fedoraproject.org) to ensure that the ISO was downloaded without errors and of course go and  burn it at a very low speed (1-4x at maximum) afterwards.

By the way, there is Fedora 15 out there already. IF your laptop has LESS than 640MB RAM, you can still install it by using the Installation DVD instead of the Live CD. Quote from: kennyawinner on August 11, 2011, 06:58:56 PM

i am trying to put fedora 14 on my Dell Dimeson 2400.
it says boot: _ .  pls help

)Please explain the problem in more detailI am booting from a USB stick.
It is bootable and it is a kingston DT101 G2 4GB.
Any help?
Quote from: kennyawinner on August 12, 2011, 08:03:48 AM
I am booting from a USB stick.
It is bootable and it is a kingston DT101 G2 4GB.
Any help?
[/It Just Runs Programs]
It is done!!!! I fixed it!!!!  I am glad you did, but next time could you be more specific please?
So, If you were trying to boot Fedora from a USB stick, you either didn't CHANGE the BIOS boot sequence correctly, or the "Fedora Live USB Installer" didn't extract the ISO to your USB stick successfuly (It happens sometimes).

Can you please mention how your problem was fixed(so if other users encounter the same problem, they MIGHT find the possible solution)? it was actually  13 beta.
14 is the most stable Fedora ever!!!LOL. I love fedora.
91.

Solve : linux task bar?

Answer»

I cant FIND the task bar on my machine am using openSUSE 11.4. How do I re-eneble it?http://forums.opensuse.org/get-help-here/applications/435350-taskbar-missing.htmlHello,
Which Desktop Environment are you CURRENTLY using? I guess it should be KDE (SINCE you won't find taskbars in GNOME3 by default), right? KDE isn't pretty must STABLE lately; there are many users who have reported their taskbars missing for no reason.

You will find many similar problems by typing opensuse taskbar disappeared on Google. Good luck.

92.

Solve : I need to run a program written in BASIC?

Answer»

I need to run a program written in BASIC and I am not sure how to compile/interpret it in linux through the terminal.  Can it be done without downloading specific programs?  If it can I would need to know all of the commands.  I know how to write the program, other than that I am completely stumped.  Thanks in advance for any help.Knowing which version of BASIC can make a difference.
There are three, if not four, POPULAT versions of BASIC for Linux.Is there a version that works for linux without downloading any additional software?Well, we don't know what version of Linux you use. Most of the popular DISTROS do not alwasy have a BASIC included. A popular version of BASIC that runs on  Linux is called 'Chipmunk Basic'. It has DOWNLOADS for MAC, Linux and WINDOWS. It is a QUICK and easy ndownload.
http://www.nicholson.com/rhn/basic/
It runs in the console mode, or terminal mode.

93.

Solve : Ubuntu 10.04 No sound?

Answer» HEY,
i recently updated my ubuntu 10.04, recomended & security updates.
The problem now is d sound cannot b heard, it was previously wrkin FINE bt now, it isnt...
No prblms with d sound card as I run dual boot witn Win 7 & sound runs jst fine with it...
PLZ help...No one to help, eh ?Hi!
What model is your sound card? Please open a terminal, type "lspci" and post the results here. I bet that the newer kernel doesn't support your sound card by default, so you will need to download and compile the right driver to GET your sound card working again. It ain't that hard, and I can help you step-by-step once you post the results of the "lspci" cmd.
94.

Solve : calendar problem?

Answer»

Develop a calendar PROGRAM such that it, will give you the appointments that you have on a particular day. You should be ABLE to update your appointment (i.e. CRUD, Create, Read, Update, and Delete). The time-table input will be such that given once it will create the same appointments in the WORKING days of the SEMESTER from the start to the end of the semester.  At a particular time of day (SAY at 7:00 AM) the program will display the appointments to you announcing the display with the ring of the bell.You really should try to do your own homework.get outlook express!!!!!!!Google it!    Quote from: kennyawinner on August 12, 2011, 10:54:18 AM

get outlook express!!!!!!!

In the Linux forum?  Flog that poster!!!
95.

Solve : Svn + php Web page +apache?

Answer»

Hi
I am a linux newbie
and got into a major problem of setting up svn with php and apache
I have the following softwares in my systems

1. Fedora 13
2. Php version 5.2.17
3. Apache Version 2.2
4. svn client version 1.6.16 i can see them in phpinfo.php
5. svn extension version 1.0.1
6. https installed on apache working fine

Php and apache are working fine there are no issues in that as a project is working

Just Now i have installed svn version 1.6 but when i run a command svn info https://www.someurl.com from command line it works fine i GET a message of the revision and its working fine but when the same thing i run from php file or php webpage it gives me the following error

Username: svn: OPTIONS of 'https://someurl/svn/something/something/trunk-new': authorization failed: Could not authenticate to server: rejected Basic challenge (https://someurl.net)Array
(

  • => Authentication realm: Subversion LOGIN
  • [1] => Username: svn: OPTIONS of '
https://someurl.net/svn/something/something/trunk-new': authorization failed: Could not authenticate to server: rejected Basic challenge (https://someurl.net)
)
1
The php CODE is here
$cmd = exec("svn info https://someurl.net/svn/someurl/something/trunk-new |grep Revision: |cut -c11- 2>&1", $output, $status);
echo " ";
print_r($value);
print_r($output);
print_r($status);
echo "";
?>

i have followed the following
http://vengatctech.wordpress.com/200...svn-on-fedora/
and also googled enough but its not working in php web page

Can somebody help meGo to the Fedora forums and POST this question there. One thing that will be suggested is upgrading your system to the most recent release.
You may also want to join a mailing list dealing with subversion and the use thereof.
96.

Solve : Need help noob @linux?

Answer»

I just bought a dedicated server and i want to know how to limit users to their own home directory.

Example :
User andrew
DIR   home/andrew
Can't browse to root/ or usr Dir but can only browse within home directory only

For Ftp and ssh Please help !

O.s Centos 32 bityou will have to modify the permissions-root, user, etc. etc.


http://www.cyberciti.biz/tips/vsftp-chroot-users-limit-to-only-their-home-directory.html
http://www.cyberciti.biz/faq/restrict-linux-users-to-their-home-directories-only/For FTP, it DEPENDS on which FTP server you're using (you don't specify).  For SSH, it's a little more complicated.  You still want your users to be able to access certain BINARIES - and they're always stored outside the user's home directory.  Anyway, you can try rbash as suggested above, or go down the chroot ssh route (my PREFERENCE).  Read more at >this HowTo<.The service I have uses a program called cpanel  which is a graphical interface that does the work for me. I don't even think about setting THINGS my hand.

For more information, Google cpanel demo

97.

Solve : broadcom bcm4313 driver?

Answer»

hi ive just installed ubuntu and carnt GET my wifi card 2 work??

does anyone know how to get it to workSearching the Ubuntu forums for a solution- or EVEN GOOGLE- would be your best bet.http://www.vsritual.com/posts/view/4c460854-5c5c-49b7-8172-686ed8e3dc57

98.

Solve : Remote Desktop viewer troubleshooting help?

Answer»

I'm trying to view my mageia http://www.mageia.org/en/ mandriva FORK
[m1] machine from a Ubun 10.10 boxes[u1,U2] on my home network
my other 2 machines detect each other & connect fine
I have the permissions set up the same on all 3
m1 won't detect or be detected by u1 or u2
I suspect I need to sign into the KEYRING on m1
how would I do that, since I've never been PROMPTED?
all 3 are gnome desktopsYou should try setting up ssh with X-forwarding.

99.

Solve : dual boot (open suse - windows xp) - windows fail to start up?

Answer»

I had dual boot in my computer suse - windows xp. In the BEGINING everything was ok, until one day, windows never started again... I have MANY PRECIOUS data in the windows partiion and I'm desperate.... I don't want to lose them... I would appreciate any help and many thanks in advance...

AfroHello,
before PROCEEDING or attempting to do anything, I would advise you to take backups of your data. You can do this while in openSUSE; browse your PARTITION which contains your Windows installation and copy all your valuable data in CDs/USB HDDs/Flash Drives/whatever.

I bet that there might be some issues with the boot manager, but your Windows installation along with your files should still exist. Can you copy and paste the contents of /etc/grub.conf here please? Because your problem might just be solved by editing the Grub Configuration File (Grub should be your boot manager).

100.

Solve : cron.daily problem/question.?

Answer»

What is the difference between running a shell script (say in bash) and running it through cron.daily (or adding it to crontab)? I had thought that there would be no difference but (through experiment) have found that there must be one.
I have a script that finds the PID of a Konsole shell running a tail of a log, kills the PID, and then restarts the Konsole window with the tail of the new DAYS log. I set this up to happen at 12:01 am every day (to switch the DISPLAY to the new days log after the logs are rotated). The script works great when run from a separate Konsole shell, however, when run through cron.daily or crontab (I tried both) it will kill the present Konsole shell but will not start the new one.
The script is as follows (with commenting removed for brevity):

#!/bin/sh
SHUT=`ps aux | grep "konsole --vt_sz" | grep -v grep | awk '{print $2}'`
kill -9 $SHUT
konsole --vt_sz 132x15 -geometry +175+650 -e sh -c /path/to/script &

The computer in question is running Redhat 2.4.20 - rthal5.
Other bits...When run from the Konsole shell it is run as root. Crontab was edited as root. Killing the old shell requires root permissions but STARTING the new shell MAY be carried out by any user.

Thanks for any help.