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.

701.

Solve : Why can't I see my bluetooth device??

Answer»

In my Ubuntu/ARM platform, I inserted a bluetooth card. I ADDED "passkey "1446";" at my /etc/bluetooth/hcid.conf. Then, I ran "/etc/init.d/bluetooth restart". It showed "bluetooth stopping" and "bluetooth starting". Then, I used command "sudo service bluetooth STATUS" to check and it showed "bluetooth is running".

When I used command "hcitooth DEV", I FOUND no devices was shown.
I used my mobile phone to check it. I found my phone can see other bluetooth NEIGHBORS except my platform stated above.

What's wrong with it?

702.

Solve : starting linux?

Answer»

i have created a directory with my first name sammy,standing @ my home directory and wants to CREATE a file with my second name adjiey into the directory with my first name.After MAKE a copy of the file with different name(naomi)........PLS someone shld help me do DIS plsWould this be homework by any chance?Based on my understanding, you have a directory under your home directory CALLED sammy, you wish to create a file called adjey with the content being 'Sammy', then make a copy of said file and call it naomi?

cd /home/username/sammy
echo 'Sammy' > adjiey
cp adjiey naomi

703.

Solve : different user accounts in ubuntu?

Answer»

please SUGGEST me how to create DIFFERENT USER accounts in UBUNTU 12.04https://www.digitalocean.com/community/articles/how-to-add-and-delete-users-on-ubuntu-12-04-and-centos-6

Easy processWithout a HOME directory

sudo useradd myuser

With home directory

sudo useradd -m myuser

Then set the password

sudo passwd myuser

Then set the shell

sudo usermod -s /bin/bash myuser

Thanks to all.

704.

Solve : Need a ping script?

Answer»

I need to write (or acquire) a script that continuously pings a site (google will do), and then execute a sound file if my internet CONNECTION drops out. The reason for this is that I have an application that needs to be constantly connected to the internet and if that connection drops out, which it does, I need to know immediately so that I can reset the connection. Is such a script difficult to write? Any insight would be greatly appreciated. Thanks in advance.I had a similar problem with the le DRIVER on Solaris 7 on my old SPARCstation-1

I WROTE a really simple cron job like this

Code: [Select]#!/bin/bash

ping -c 2 router || ping -c 2 laptop || reboot
which I called le-failed-reboot, and then ran every minute by sticking in crontab as
Code: [Select]* * * * * /root/le-failed-reboot 2>&1 1>/dev/null
To make a sound, you'd need to do something like
Code: [Select]cat file.mp3 > /dev/audioThank you, I'll try that.Yea writting a cron is the way to go.

705.

Solve : Thinking about replacing Windows with Linux?

Answer»

I have a machine that has a virus I can't get rid of and I might have to install. I'm thinking about installing Linux; I know that my C: drive will be wiped out, but I have a D: and E: drives on which I hope to backup all my important STUFF. My question:

If I install Linux on the C: drive, will Linux recognize the D: and E: drives automatically? They won't be formatted will they; I suspect not. I really don't want to lose that stuff. They are formatted the ONE that is not FAT32, the other one. Are the D: and E: drives different partitions on the same hdd, or are they separate HDDs? If they are separate, it's easy, just make sure you CHOOSE the right HDD in the linux setup. If they separate partitions on a single HDD, it's a little harder.They are completely separate hard drives, physicallyQuote from: zulubanshee on September 07, 2013, 11:07:35 PM

They are completely separate hard drives, physically
Recent versions of Linux will mount all drives on start up. And Linux now does a good job of reading and writing NTFS file system.

But you do not have to give up Windows. Wipe the drive, install Windows again, in stall a good AV software. Right now, Windows 7 64 bit is a hot performer.

And next time stay away form those **censored ** web sties.

PS dual boot of Linux and Windows works good when you have about 20 GB you can give Linux and maybe 80 GB for Withdraws.
I don't want to pay for windows, and the legit version running on my machine did not come with an installation disk. I could pirate I suppose, it's not really my thing though. Quote from: zulubanshee on September 07, 2013, 11:49:19 PM
I don't want to pay for windows, and the legit version running on my machine did not come with an installation disk. I could pirate I suppose, it's not really my thing though.
Either it has a restore partition or you can find a install disk. What MATTERS is the Windows product key. If it had one, you can legally install the OS again. Even if you do not have the original disk in your possession. It is the product key, not ownership of the disc, that makes you legal.
Which version of Windows was it? Microsoft has a trail version of Windows 7 that can be downloaded. You then burn it to a DVD.

t is legal to download Windows 7 from Microsoft. I do not lie. Take a look.

http://www.softpedia.com/get/System/OS-Enhancements/Windows-7.shtml




If you can, remove all the hard disks that you do not want to install linux on, just to be safe. Then you can just boot from the linux CD or flashdrive and the installer will take you from there. If you can't remove the extra HDDs, just be absolutely sure that you choose the right one. I've wiped the WRONG disk more than once when I was first starting out in the computer repair business.
706.

Solve : sudo: must be setuid root error?

Answer»

Hi, I am working on a server that I am remotely connecting to and recently made a mistake with file ownership. The sudo file was among the files that changed owner and now I am getting 'sudo: must be setuid root' anytime I try a sudo command. I had the administrator change the owner of this file back to root and now when I run 'ls -l sudo' on the sudo file I get

-rwxr-xr-x 1 root root 225800 Jan 5 2012 sudo.

These permissions seem right but I am still getting the error. I am trying to find a way to fix this without having to reboot, any help is much appreciated.

Thank youQuote

sudo is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user (normally the superuser ...
Some here may not understand what you are doing. You are using sudo on a remote server. Is it some recent version of a Linux server? Is it Fedora?
Quote
There are two ways to run administrative applications in Linux. You can either switch to the super user (root) with the su command, or you can take advantage of sudo. How you do this will depend upon which distribution you use. Some distributions enable the root user (such as Fedora, Red Hat, openSuSE), while some do not (such as Ubuntu and Debian). There are pros and cons for each.
It looks like I'm running SUSE Linux Enterprise Server (using the 'lsb_release -a' command) and I am on a windows machine using an ftp tool to remotely connect to the linux server. I am trying to use 'sudo su' to log in as root but I get that error.I want to help, if I can.
First of all, I am not a current IT professional. Requirement CAME many years ago. What I know about serves and Linux is only has a personal computer user.
Never have I been able ton control anything with a FTP client other that list files in directories, change directories and upload and download files.

Servers for domain names often allow limited control of the remote system. For security reasons. Some of the old loopholes in Linux have been closed. A domain owner on a shared server can only get into his 'root' and nothing higher. The 'root' for a domain is really a user space on the Linux system.

Also, a FTP account can be, is some cases, limited to a sub directory and cannot more up in the directory of the domain.

My only experience of server control is via some KIND of control panel that is a server-side graphical interface. The most common is called cpanel.
When I setup a new domain on a server, it does not get full use of the server. INSTEAD, the user must use the cpanel to make changes.
https://cpanel.net/demo/
Above is a demo of cpanel. Does your server offer this kind of thing?
Where about is this 'sudo' file located on the disk?

What actually happened when you 'made a mistake with file ownership' - If this has taken a large number of files with it the problems could run a lot deeper than not being able to use sudo in which case a full reinstall may be a better option?I had run a recursive command changing the owner of all of the files in the home directory to a specific non-root user (yes this is a very bad thing). It got about halfway through before I STOPPED it. Now the admin has changed all of the home files so that each user owns its own files.To answer your specific question ...

The error states that sudo must be setuid, and this is not so:
Code: [Select]-rwxr-xr-x 1 root root 225800 Jan 5 2012 sudo
To just fix that, you need to execute
Code: [Select]chmod u+s sudo
However ...

You did say that you only ran chown and not chmod and this affected many files on the system, so I would strongly recommend that you should restore the whole system from backup.

BTW, many times at this point I hear people say, but I haven't got a backup. To which my response is the same as Captain Mainwaring says to Pike "stupid boy"
NB: A mirror is not a backup. If you run the wrong command and destroy your data, then a mirror will give you 2 copies of garbage.
707.

Solve : How to add n/w printer in sco 5.0.7??

Answer»

Hai,

I am recently installed sco server 5.0.7.

Now I am TRYING to install n/w PRINTER i.e printronix,
How to add or install? I varified that it is pinging & its showing Online also
But its not printing,
what ould be the mistake.
i tried in #scoadmin command



What's the full make and model of that printer?its Wipro printronix n/w printerThat's not a full model number; it'd be something LIKE P7000, T5000, L7032, SLPA8000, etc.Oo HAA, yes its P7000

708.

Solve : backtrack 5?

Answer»
does backtrack 5 SUPPORTS my MTS device automatically?HELLO, WELCOME to the forum.
Please give more details. Are your making reference to Backtrack Linux/
Did you already look on http://www.backtrack-linux.org/

And what does MTS mean?
You don't mean 24 bit ADDRESSING?
709.

Solve : How to determine the platform in such Makefile?

Answer»

I got a Wi-Fi MODULE and source files of its driver. Its driver is only verified on X86 platform. My target board is on ARM. So, I must build it for ARM processor. I found there are lots of platforms of ARM. Each platform has its own compilation tool kits. How can I determine one for building for my target ARM platform? How come each ARM platform needs its own compilation tool kits?
I renamed the MAKE files by adding .txt suffix.

[recovering DISK space, attachment deleted by ADMIN]

710.

Solve : linux and ADSL?

Answer»

hi, i have got a knoppix live cd but for some reason my adsl dosent work with it why?
i was told maybe to use a different verson if so what one?What version do you have? Are you connected through a cable to the router or wirelessly? Have you tried any other LiveCD's?I'm not sure what verson i have it will be the lastest verson. i am conected through cable to MODEM, i have not tryed any other live cd's coz i DONT no if they will work whats the best one to try again?Knoppix is EXCELLENT at HARDWARE detection, but you may give Linspire LiveCD a try:

http://iso.linuxquestions.org/distro.php?distro=58

711.

Solve : Cat Command?

Answer»

Hi,

After executing the following command, will the CONTENTS of the file called inside be the same as the contents of the file called outside?

cat > inside < outside


Thank you
Quote from: dgigga on October 22, 2013, 01:50:11 PM

Hi,

After executing the following command, will the contents of the file called inside be the same as the contents of the file called outside?

cat > inside < outside


Thank you

Don't understand what you are asking, but when you cat a file it just DISPLAYS whats in it.

For example if you cat helloworld.txt

it will display

HELLO WORLD!

And that is what you will see.bash-3.2# echo hello > outside
bash-3.2# cat outside
hello
bash-3.2# cat > inside < outside
bash-3.2# cat inside
hello

Quote from: jormeno on October 31, 2013, 12:25:23 PM
Don't understand what you are asking, but when you cat a file it just displays whats in it.

Why didn't you just try it? (Do you know what redirection is?)

Quote from: Salmon Trout on October 31, 2013, 01:56:48 PM
Why didn't you just try it?

You should follow your own signature...

Quote
You won't know unless you try.
bash-3.2# cat > test < client-control.sh
bash-3.2# DIFF --report-identical-files test client-control.sh
Files test and client-control.sh are identical
712.

Solve : Questions in using Ubuntu?

Answer»

I've installed an UBUNTU on VirtualBox at my PC. I created a folder, linux-share, at my PC as communication area between PC & Ubuntu over VirtualBox. I found a folder sh_linux-share under Ubuntu's /media folder. sf_linux-share is obviously mirror of linux-share. I copied Linux kernel source folder into linux-share and then I found it inside Ubuntu's /media/sf_linux-share.
Then I found some phenomenon strange at LEAST for a Ubuntu's new COMER like me. I get used to Linux distributions other than Ubuntu.
I tried to 'cd' to sh_linux-share from /media. I replied me 'permission denied'. When I prefixed the command by 'sudo', it replied me "sudo: cd: command not found". I tried to copy a folder L3.0.0.35.* under /media/sf_linux-share to another place. It replied me 'cp: omitting directory 'sf_linux-share/L3.0.0.35.*'.
Please see attached file to see the dialog process more clearly.
How come? Could anyone tell me? BTW, any way to get used to Ubuntu quickly for a experienced non-Ubuntu user? Thanks.

[recovering disk space, attachment DELETED by admin]You need to be a member of the vboxsf group. I had this problem and fixed it using system settings to add myself to the group. Reboot afterwards so that the computer re-reads the group members.I worked it by using 'su -' to CHANGE myself to 'root' and then execute that 'cp' again.

713.

Solve : What's wrong with printing to a usb printer??

Answer»

I installed usblp.ko from Linux KERNEL source into my Ubuntu. I checked attribute of /dev/usb/lp0 is 'crw-rw-r--'. I used command 'echo hello > /dev/usb/lp0' to test a printer which was verified successfully at Windows. I got message "bash: /dev/usb/lp0: permission denied". What's wrong with it? What should I do to print to a usb printer?Did you read the documentation?
https://help.ubuntu.com/community/Printers
Think about it. USB is used for a lot of stuff.
Suppose a mouse was in the port INSTEAD of the printer?
In that case, would you expect a squeakily title voice say 'Hello World' ?
Its been quite a while since I printed anything through Linux since I create PDFs of anything important to save money, and what little printing I do is through Windows OS, however way BACK when I needed to get my system to print to the Epson C60 Stylus USB printer, I had to install and configure CUPS to make it work. Have you configured CUPS?

http://en.wikipedia.org/wiki/CUPS

714.

Solve : Pippy Linux compatible with Slackware.?

Answer»

Pippy Linux compatible with Slackware.
It was released in March of this year, 2013.
Quote

Barry Kauler has ANNOUNCED the RELEASE of PUPPY Linux 5.5 "Slacko" EDITION, a small and fast distribution built from and compatible with Slackware's binary packages.
...
Source:
http://distrowatch.com/?newsid=07741

What his MEANS is you could put Puppy and Slackware programs on a small USB stick and have room left over. Puppy itself is under 200MB.
715.

Solve : chkconfig [service name] not displaying any return values.?

Answer»

In the chkconfig man page --> " When chkconfig is run with only a service name, it CHECKS to see if the service is configured to be STARTED in the current runlevel. If it is, chkconfig returns true; OTHERWISE it returns false. "

But when I execute chkconfig HTTPD , there is no output.

https://access.redhat.com/site/documentation//en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s2-services-chkconfig.html

chkconfig --list httpd should WORK if httpd service is installed to enable/disable on/off

716.

Solve : Linux Mint 15 KDE and XFCE on Dell Inspiron 1100 problems?

Answer»

Trying to get Linux Mint 15 on a Dell Inspiron 1100 laptop.

Specs are:

Intel CELERON 2.4 Ghz
Intel 845 Integrated Graphics
640MB RAM
20GB IDE HDD

Laptop linked below for more spec info. It can also max out at 1GB RAM even though other stats on google claim 512MB Max memory. It has 640MB of DDR 266Mhz RAM sticks installed a 512MB + 128MB stick ( It came originally with 2 x 128MB sticks and the owner before me added a 512MB stick in place of one of the 128MB sticks bringing it to 640MB. It supports 2 x 512MB sticks for a max of 1GB with BIOS A32):

http://www.rakuten.com/prod/dell-inspiron-1100-inspiron-11002gcel256-20dvd14-1nic/209382848.html?listingId=270590745

First attempted Linux Mint 15 KDE and it installed, but after reboot the screen was black. So I thought that maybe Linux Mint 15 KDE requires more than 640MB RAM, so lets try XFCE instead. XFCE can run on as little as 384MB RAM.

Performed clean install of Linux Mint 15 XFCE and got to the reboot and the screen was black again after the post screen displayed no Linux boot display. If you hit CTRL + ALT + Delete and press the right arrow 2x and hit enter you can get it to shutdown, but no display, so the OS is running, but no display is shown.

Did google search and found some people with similar issues with Linux and this laptop model and someone said try flashing the BIOS to A32. My BIOS was A25, so ok... dig out my USB floppy drive and a 1.44MB disk and format it as a bootable floppy with windows 7 and add the BIOS flash EXE to the floppy, boot off of that and then execute the EXE and flash it forward to A32. Performed the flash and problem still remained.

Trying to figure out why the display driver is having issues between the Live Boot off the DVD which works fine and why after its installed to the local hard drive the display driver doesnt work properly. It should be using the same driver it used for the install process to apply to the build to the hard drive, but it APPEARS to be using an alternate driver.

Is there a way to specifiy it to use a specific driver through the build process? Only options I see during installation are Region Settings, Keyboard Setting - English etc, options for installation type ( in which I chose to format and use the entire HDD for the install ), and then create user name and password and select auto logon or require password etc, and then it just chugs away at the install and then when its done you perform the reboot and remove the DVD, and it is then at this point that it has issues.

One last attempt at trying to figure this out is that maybe the data being written to the HDD was getting corrupt, so I swapped out the 20GB HDD with a 12GB HDD that I had and after the install and config, still the same results, you get the post screen of the Dell Laptop, and then the screen goes black and nothing displayed, but Linux is booting correctly although without a display.

* Also FYI, this laptop ran perfectly fine on Windows XP Home that was on it prior to this attemped Linux install.Something like KDE is probably too heavy for that laptop (Not saying that that is the problem but XFCE would be a better choice anyway).

That said, it would help if you could share the X11 log file - This is located at /var/log/ (Probably called Xorg.0.log). You'll need to get into a command line to do this so to do that press Ctrl+Alt+F* when you are on the black screen (Where F* is one of the function keys, you may need to try a few). This will bring up a login prompt which should allow you to access the system via the terminal in order to view the log file.Thanks for response to this issue... I will try it out when I get home from work tonight. I may have to boot off knoppix or the live version of the install DVD and then go to term from there to navigate to the log file on the HDD, since I doubt I will be able to get to command prompt in its existing state where nothing is displayed except for black screen.You should be able to get to the terminal directly as the issue most likely lies with X11, the alternative text terminals (Ctrl+Alt+F*) do not use X11 so should work. Of course if this doesn't work you can always boot off of the Knoppix CD as you said.Quote from: DaveLembke on November 05, 2013, 01:36:36 PM

Trying to figure out why the display driver is having issues between the Live Boot off the DVD which works fine and why after its installed to the local hard drive the display driver doesnt work properly.
Ahhh yes, this issue. I've had it before. Unfortunately I can't remember if I solved it or how I did.
Quote from: DaveLembke on November 05, 2013, 01:36:36 PM
Is there a way to specifiy it to use a specific driver through the build process?
Not to my knowledge. I think you could with Debian but not Ubuntu or Mint.
717.

Solve : How can I know Qt or GNOME installed in my Ubuntu??

Answer»

I've got a board with Ubuntu platform. Now my question is how I can know Qt or GNOME is supported in this system.Can look up and compare system requirement of them against the system you are to run them on and if its a match you should be all set -or- INSTALL them and see what happens.Quote from: Stan Huang on SEPTEMBER 09, 2013, 11:43:10 PM

I've got a board with Ubuntu platform. Now my question is how I can know Qt or GNOME is supported in this system.

Qt and GNOME are not mutually EXCLUSIVE. GNOME is a desktop environment. Qt is not, it's a development framework.
718.

Solve : ubuntu 13.04 question in moving?

Answer»

dear sirs
I have a question, can I "move" my ubuntu setup that I have on my laptop to another laptop, keeping all programs and files and settings the same? and if so how do I do this? thanks What are the specs of each laptop Make/Model? If they are same or like model in hardware specs then its really easy, but if one is AMD CPU and the other is INTEL CPU then its more involved. I am assuming that you want both laptops to be a clone of the other for everything?

More info needed to point you in correct direction.both are dell laptops inspiron the one I have the ubuntu setup on is 64 bit intel as is the other one, yes I want the ubuntu setup to be the same on the other one. what I am trying to do is move the win 7 setup on the other one over to the one that has the ubuntu setup because my other laptop doesn't have bluetooth and is slower and move this one (with ubuntu on it) to the other one, that is the game plan anyway. the ubuntu setup was put on a win 8 computer I got on sale, anyway that is what I plan on doing....My ANSWER is not the best. It is, maybe, a last resort.
You will need a router to tie the TWO machines with Ethernet.

First, usu would install both Windows and Ubuntu again on both PCs.
Windows has a feature to transport data and settings between to computers. It does not install programs, it only transfers user data.

As for Linux, again you have to install it. And the programs also. Then you can use a program that transfers user data and settings.

There are programs that claim to do everything, but they deliver title.
In Windows you use the Transfer Wizard.

Here is a link that covers settings transfer in Linux systems.

http://eggsonbread.com/2010/01/28/move-ubuntu-to-another-computer-in-3-simple-steps/
Author claims it only TAKES a few minutes .
Hope that is of some help.

that seems like a good idea, might use it , can you help getting bluetooth running ubuntu13.04 I have tried blueman, and other ideas but can't get it to pair with phone.My use of Bluetooth is very, very limited. Wish I could help.
When doing Bluetooth the first time, make sure other things are either off or FAR away. The 802.11 devices interfere with Bluetooth, the the Bluetooth wins if it is close. Some laptops have a way of turning offs the Wi-Fi and USING only the Bluetooth. Once the Bluetooth bis working, you can have both on at the same time. The Bluetooth finds another frequency.
On my Dell is is the Fn + F2 keys. In the BIOS I can set the action for that key combo.
That is everything I know! The Ubuntu Software Center has a feature for synchronising applications between computers. It's available from the File menu. I understand its purpose is to set up the first machine with all the apps/programs you want and then synchronise subsequent machines with the same apps.
Transferring apps settings from the first to others is not straightforward. Most settings will be in the /etc folder, but quite often, settings for an individual user will be in their own account.
Transferring your own files: you could use the backup tool to save your own files and settings from the first and then restore them to the second machine.

719.

Solve : Which Linux Distro is best for a Apache Web Server?

Answer»

I am looking for suggestions on the best upgrade for my current setup, most secure and reliable, FREE distro of Linux which will be used primarily as an Apache Web Server and a remote file server through SFTP or VSFTP?

My current system is a HP Invent Celeron 700Mhz, 384MB Ram, 160GB IDE HD, running a dual boot of Windows 2000 Pro SP4 and Fedora Core 5 with latest patches etc, CONFIGURED as an Apache web server and a SFTP server at my IP address:port.

I've been tempted to replace the Celeron 700Mhz 128k Cache Socket 370 CPU with a Pentium III 1Ghz 256k Cache, but not sure if there is going to be much of a performance gain other than extra clock cycles and twice as much Cache for the application as a web/ftp server.

I am a newbie when it comes to Linux. I took a course in it over last summer and my final project was this Web Server / FTP server. I would like to build a better web server for FREE if at all possible, so I will have to stick with a FREE Distro. I am also going to get about 8 Pentium II and III computers soon, that I would like to recycle into redundant web servers / ftp servers that are Linux based. The slower CPU's amd Ram will probably limit my ability to build anything really nice from it all, but Linux is so powerful and not as much of a resource hog as Microsoft OS, so maybe the PII's would be fine for the builds. I have no doubt that the PIII's would work well for the applicaton. Oh, BTW the PII's are all PII 400 - 450 Mhz CPUs and all HP Series 7 tower systems.

I have placed my Knoppix Live-CD into them and written down the drivers that are used already in case I run into any driver issues with a different build not detecting the correct driver.

Should I stick with Fedora Core 5 Linux Distro or go with a different distro.... All suggestions welcome... Thanks!! Dave :-?How much RAM do the P2s and P3s have?The PII's have between 128MB and 256MB, and Max out at 512MB for the motherboards. They have three PC-100 SDRAM slots, so I can take say two 128 sticks and a 256 stick to max out one of the PII's if need be.

The PIII's have 256MB to 512MB, and Max out at 512MB or 1GB. They have two PC-100/133 SDRAM slots

***Also the PII's all have 8.4 GB Maxtor Hard Drives, and the PIII's both have 20GB Seagate IDE 5400 RPM Drives.Personally I would go for a server-centric distro, from an active team, and install it minus any X fripperies. CentOS, WhiteBox Linux and TinySofa are all good choices (in that order of preference). They all have options for "hardening" - i.e. making them more secure. Consider using the SELinux option at install time, if you can get it working. Thanks...I will look those distros up to see which one to venture into.... Also I have played with SELinux and have had some problems with trying to get it to work correctly for Fedora Core 5. I probably GAVE up too early on trying to get it to work, but it seemed like I'd get the Apache Web Server working fine and SFTP wouldn't work. I'd make another modificaton to the settings to add an exception and suddenly the web server was down and SFTP was up.... The web server was using port 8080 and my SFTP was on port 22. I ran out of time before the project was due, so I shut off SELinux and presented for my A+ to show both Apache and SFTP working correctly between my home and college.The difference is that this time you'll have lots of help (if you need it). By the way, I forgot to mention Trustix. From their website:

Quote

Trustix Secure Linux is a distribution for servers with a heavy focus on security and stability. One of the main features of Trustix is its small size which combined with easy updating by the automated secure software updater swup, makes it a smooth and inviting system to administer.

EnGarde also looks promising.I'm with Rob on CentOS.
720.

Solve : How to add a startup program at ubuntu??

Answer»

I hope my program to be launched RIGHT after system INITIALIZATION and it should be run as a foreground process. I inserted a command at end of /etc/rc.local to invoke my program. My trouble is that my program was run as a background task. Running at foreground is very important for me because I would like to have INTERACTION with it.
How can I do? My platform is UBUNTU. Inittab doesn't exist any longer at Ubuntu.There is a lot of Google search results that COULD've helped you fine. Here's how I do it: http://askubuntu.com/questions/48321/how-do-i-start-applications-automatically-on-login
Instead of putting the command in manually you can browse for the program. A lot of the programs are in /usr/bin

721.

Solve : SuSe Linux broadband?

Answer»

I have Windows XP plus Suse linux on a 20gig partition. I have broadband on windows with a Speedtouch ADSL modem. I cannot get linux to connect to the modem. Any solutionsDo you know if the SuSE install detected the modem?SuSE detected the modem but will not connect to the server. I think the problem has something to do with the USB connection.I gave up on the modem. An expert friend has installed a router INSTEAD. This connected OK with windows.
However, there is still a problem with Linux. Despite the modem being discarded. it still trys to connect through the USB. My friend cannot find the particular script which is doing this. However connection can be made by going into Yast2 and telling Linux to IGNORE the USB. When this is done connection works OK. He is going to teach me how to do it Thanks. FALLSCHIRM

722.

Solve : How can I know my Linux is running 32-bit or 64-bit??

Answer»

As title. Is there any command to know it? Can UNAME satisfy this question?My computer is running 64 bit UBUNTU. Here is the result of executing uname:
[emailprotected]:~$ uname -p
x86_64
[emailprotected]:~$

Notice x86_64. I'm not certain, but I think a 32bit machine will display i386. uname -p SHOWS processor TYPE. Any terminal you can open should be able to execute uname. The command arch will achieve the same.
Executing MAN uname will display all the options, spacebar will move on a page.

723.

Solve : The most popular end-user Linux distributions...?

Answer»

That is the title of a story on Znet three months ago. It is a trick question. The answer will make you laugh or scream.
Quote

Take a second and THINK about end-user LINUX. Now guess: Which is the most POPULAR of all?
If you're a long time Linux user, chances are you guessed Ubuntu, MINT, Debian, or Fedora.
You'd be wrong.
From http://www.zdnet.com/the-most-popular-end-user-linux-distributions-are-7000017223/

Don't look until you make a guess. They don't mean people who use Linux as a learning experience. They mean end-users who use it for other things, like watching Netflick or doing e-mail. Think about it. Hint :if a phone does not have the Apple OS, what does it have?
724.

Solve : Detecting android-x86?

Answer»

Hello
I'm currently trying to install Android 4.3 x86 on a old Acer Aspire 3003WLCi, but it stuck at
Code: [Select]DETECTING android-x86....... (INFINITE number of dots...)What should I do?

Info about the PC: Windows XP was installed on it and I formated the HDD (it's a IDE).

Thanks in advance!
Hi HP2,

What you can try doing burning the cd or DVD at a slower speed, i have experienced many problems as i burnt the cd or dvd at high speeds and it got stuck one spot or just didn't work.

Let me know how you go,

725.

Solve : make ntfs partition in Linux SUSE?

Answer»

im using an HP 4520s, i have a recovery disk for the laptop,but its operating system is Linux SUSE, and im not familliar with it, and still want to use windows 7, i've tried to make a NEW PARTITION using linux but YAST partitioner does not have an option to make a new partition with ntfs format. im in need of assistance regarding this, cannot use windows CD's to make partition because im having issues with the harddisk.Hi Wagpofafi,

What you can do is download a SOFTWARE from google called GPART and you can insert it and boot it as a installation when you RESTART the computer.
Make sure you have your bios set to boot from cd first, or if you want to do it within Windows use Easus partition manager home edition i believe to set up the paritions as NFTS.

Be careful when you use these programs as you can actual partition out your current Windows if your unsure email or just post here.

If your looking to have a specific boot loader layout download EasyBCD and set up the software to boot to your likings if you want Windows or Linux first.

Thanks,

726.

Solve : I have dual boot on my machine, Linux and Winndows 7, how do i change the boot o?

Answer»

I had a friend install Linux on my machine which already had Windows 7. The machine now BOOTS with Linux as the first and default choice. I would like to change it so that Windows 7 is the first choice and the default. I don't know how to do that. Can anyone help? Thank you.1. Open the Control Panel (icons view) and click on the System icon.

2. In the left blue pane, click on the Advanced system settings link.

3. Under the Advanced tab, click on the Settings button under Startup and Recovery.

4. Under System Startup, select a operating system from the drop down menu to be the new default operating system, then click on OK.

5. Click on OK.You can also leave it as is.
Not a joke. Changing the boot loader options is like pulling teeth.Rookie: Well I followed your suggestion until I GOT to "System Startup and recovery" And I find the default is already listed as windows 7. As a m atter of fact Windows 7 is the only OS listed there. Of course, I have to be already in windows 7 to go to Control Panel. ETC. So I was unable to go further.

GEEK: Yeah I see what you mean. Still there must be a way to do it. Sorry, Please look at this:
http://answers.microsoft.com/en-us/windows/forum/windows_7-system/windows-7-repair-on-a-dual-boot-machine/ccccb896-d1ea-4b2c-9bcb-59d300d160c8
If that does not help, come back here and tell what happened.

EDIT: I won't wait. Look up EasyBCD on Bing. There is a free version out there.


GEEK: Thank you for the comeback. I really appreciate you r help. I tried the link that you sent and could not make anu sense from it so i WENT to EasyBCD on Bing as you suggested. It downloaded ok when i went to it using Windows 7 Internet Explorer. But when i tried to arrange the boot order, it only recognized the existence of Windows 7. So i went to Linux > Firefox > Google > Bing, > Easy BCD. and it downloaded ok but could not run it due to "ERROR OCCURRED WHILE LOADING ARCHIVE". Meanwhile "WOT" is telling me that this may not be a safe site. (which I ignored) Any ideas about what to do next? Thanks again JIMIf you remember your Linux training, ,there is a way of starting Linux using the CD that installed it. But your risk wiping out the Windows boot manager.

Here is, IMO, a safe way to get into the Linux when you need to. Prepare a stand alone Linux USB boot device. From the console there is a command that will restart toot from another location. It is somewhere in the Linux documentation.

http://www.dedoimedo.com/computers/linux-data-recovery.html

Try to visit the Ubuntu chat room. You shroud find a quick answer there.

EDIT: For the past week I have been working non a quad boot system busing one hard drive. The Linux part has me freaked out. I am not going to try it now. After a full backup I will.
Quote

...
Running Linux on a Windows PC: Your getting started guide
It used to be easy to run Linux on any PC. That changed with Windows 8 and Secure Boot, but it's still doable. Here's how...
By Steven J. Vaughan-Nichols, ITworld | Software, Linux 11

August 12, 2013, 9:12 AM — So, you're finally considering giving Linux a try. It's about time! And it's really not as scary (or different) as you may think. The myth that you had to be some kind of computer guru to use Linux is utterly untrue. Today's top desktop Linux distributions, such as Mint, OPENSUSE, and Ubuntu are easier to use than Windows 8.

Indeed, Mint's Cinnamon interface will be a heck of a lot more familiar to XP and Windows 7 users than Windows 8's "Metro" interface. And, while Linux power users may turn up their nose at Ubuntu's Unity desktop, pretty much anyone can sit down and start using Linux with Ubuntu. Don't believe me? Ask my 80+ year-old mother-in-law who uses Ubuntu every day.
....
Read more from IT World.
click here. <--





I am actually surprised that your not using Linux Boot manager such as GRUB. http://www.dedoimedo.com/computers/grub-2.htmlQuote from: Geek-9pm on September 13, 2013, 02:40:05 PM
If you remember your Linux training, ,there is a way of starting Linux using the CD that installed it. But your risk wiping out the Windows boot manager.

I have had no Linux training nor do I have an installation CD. A neighbor came in a nd installed Linux off of a flash drive that he had. Then he left the state for awhlle.

I have decided that I am dabbling (or babbling) in an area where I have no business being. (dangle a few preposition's) so I will stop messing around with it. Everything is working well, I just thought that I could simply change the boot order. Thank you all for your time and efforts. I really appreciate it.

P.S. I have Linux Mint Cinnamon (what ever that is) and I do not understand the differences of the others.

Anyway, thanks again. JIMQuote
P.S. I have Linux Mint Cinnamon (what ever that is) and I do not understand the differences of the others.
There is also Linux Lime, I think. Could Be.e.e.e.
727.

Solve : Moving versus copying files and directories?

Answer»

Still playing AROUND with SSH.

I have some directories and files I'd like to move.

I figure I can either copy (cp) or move (mv) them.

Which is more practical?

I think moving would work better. But I am concerned about loosing files. So if I copy then delete afterwards.....

I get the cp command syntax. But am a bit murky on the mv syntax.

Comments?

Les

Use mv: there is no chance of losing files on the way, trust me. It is far quicker to mv a directory than to do a recusrive cp then delete - it's one file operation (changing the file index) rather than many. The only time mv will take longer is when you're moving between filesystems - i.e. if the files will end up on a different PHYSICAL disk, then a full recursive copy will be done behind the scenes. Even then, files will only be deleted once a succesful copy has TAKEN place.Quote

Use mv: there is no chance of losing files on the way, trust me. It is far quicker to mv a directory than to do a recusrive cp then delete - it's one file operation (changing the file index) rather than many. The only time mv will take longer is when you're moving between filesystems - i.e. if the files will end up on a different physical disk, then a full recursive copy will be done behind the scenes. Even then, files will only be deleted once a succesful copy has taken place.

Hi Rob - Okay that makes sense.

So for instance the directories I want to move are actually in the directory I want to move them to.... DUH! I want to move them up 1 level. Let me explain ---- My host's structure is /domains/sitename/html. I erroneously decompressed my archive so that all my files (2.5 gigs worth) are in /domains/sitename/html/public_html. In other words all the directories and files in /domains/sitename/html/public_html need to get moved into /domains/sitename/html (back on level). Can this be done?

Les

PS Still chuckling about your tar & feather quip.
Yep: cd /domains/sitename/html/public_html
mv * ..

".." means the directory above the current working directory.Quote
Yep: cd /domains/sitename/html/public_html
mv * ..

".." means the directory above the current working directory.

Hi Rob - So basically the "*" captures all files and directories and the ".." indicates a step back? Wow, this is simply too cool.

I still remember having to learn UNIX back in 1988 when I WORKED at AT&T. Pipes - it was all about pipes.

I appreciate the tutelage. You are prodding me into exploring and learning more.

Les
Yep, that's it. At a shell prompt, "*" represents any number of any characters (including zero characters), whereas "?" represents any single character. E.g. "*cat*" would match all of the following:

cat
cathode
fatcat
escatologyQuote
Yep, that's it. At a shell prompt, "*" represents any number of any characters (including zero characters), whereas "?" represents any single character. E.g. "*cat*" would match all of the following:

cat
cathode
fatcat
escatology

Perfect! I followed your instructions and it worked purrrrrfectly!

Les

PS Thanks again Rob!No PROBLEM. I hope you continue to enjoy working with Linux. Quote
No problem. I hope you continue to enjoy working with Linux.

I will - Linux is just Unix with a nice change of clothes!

Les Quote
Yep, that's it. At a shell prompt, "*" represents any number of any characters (including zero characters), whereas "?" represents any single character. E.g. "*cat*" would match all of the following:

cat
cathode
fatcat
escatology

I know that this solved your problem, but for completeness I thought you might like to know about the hidden files ...

Sometimes directories contain hidden files which start with a dot, such as .mozilla or .bash_history (find them with ls -a).

A simple * won't match those files but don't ever use .* [/tt]because that matches the current and parent directories, and you can seriously screw up the whole machine by accidently deleting the root directory! I've never seen anyone use a single-letter dot file, so use .??* to match your dot files.

e.g.
Code: [Select]mv * .??* ..
Quote
Quote
Yep, that's it. At a shell prompt, "*" represents any number of any characters (including zero characters), whereas "?" represents any single character. E.g. "*cat*" would match all of the following:

cat
cathode
fatcat
escatology

I know that this solved your problem, but for completeness I thought you might like to know about the hidden files ...

Sometimes directories contain hidden files which start with a dot, such as .mozilla or .bash_history (find them with ls -a).

A simple * won't match those files but don't ever use .* [/tt]because that matches the current and parent directories, and you can seriously screw up the whole machine by accidently deleting the root directory! I've never seen anyone use a single-letter dot file, so use .??* to match your dot files.

e.g.
Code: [Select]mv * .??* ..

Thanks a bunch as a fellow like me would sooner or later try exactly what you mention!

Les
728.

Solve : fedora wont recognize wireless card?

Answer»

my newly installed fedora wont RECOGNIZE wireless CARD.. how can i fix this



TIA
unlovedwarriorQuote

my newly installed fedora wont recognize wireless card.. how can i fix this



TIA
unlovedwarrior

what kind of card do you have and fedora core ??
there's not enough information.Didn't you try it in Ubuntu as well? Did you ever get that to work?ubuntu didnt like me.... it the 5th i think


the card is a dell builtin g/b card intelUbuntu didn't like you?Use one of the software INFO progs (see the FAQ) and get some real specs on that wireless. You can't hope to proceed manually otherwise; the same would be true in Windows if you didn't have the drivers.It takes Linux a bit to catch up with "cutting edge" products like this as Linus drivers usually have to be reverse engineered. Unfortunately, Dell is so strongly in the Windows camp this may take a LONG while. If NDISwrapper does not work, then perhaps disabling the onboard NIC and using a more widely ACCEPTED add on card may be the way to go.Quote
Use one of the software info progs (see the FAQ) and get some real specs on that wireless. You can't hope to proceed manually otherwise; the same would be true in Windows if you didn't have the drivers.
im confused where at in the faqThe software FAQ. Follow the link in my SIGNATURE. Surely you've heard me bleating on about that?
729.

Solve : What Linux do you like??

Answer» I want to find out what version of Linux people like....All of the above except for Linspire. Also like the look of White Box Linux and VectorLinux (see other threads). I am currently using TinySofa on three of my servers. And I WOULD use other Linux distibutions according to my specific need (e.g. a hardware firewall).I know only Red HAT...So voted for it. Unkown is your enemy... tHere is a use for all of them. I personally like and recommend Linspire for newbies who want a SAFE operating system but don't want to be a linux guru. I also like plain Debian, Slackware and Vector.It's been a while for me but my last and also my most enjoyable foray into the world of linux was with Mandrake 7.2 running the KDE 2.0 Desktop. To tell the truth I don't know if that stuff is still around now.
Before that I tried slackware & redhat but getting them installed & running was a pain.
They could be better now as that was about 10 years ago.yeah, ive only used ubuntu so I sided with cappici, or whatever his name is.Quote
Before that I tried slackware & redhat but getting them installed & running was a pain.
They could be better now as that was about 10 years ago.

They are all MUCH better now. Linspire GET a full operating system and all apps up and running in 9 MINUTES!Debian, of course ! and all the distros which are based on Debian (Ubuntu, Knoppix, ...)

secondly Red Hat and SUse (very proffesional )
In the third, Mandriva (make everything so easy )

|
|
|
|
|
|
|
|
\ /

[smiley=thumbdown.gif] [smiley=thumbdown.gif] [smiley=thumbdown.gif] [smiley=thumbdown.gif] [smiley=thumbdown.gif] [smiley=thumbdown.gif] [smiley=thumbdown.gif] [smiley=thumbdown.gif] The last position for SCO [smiley=thumbdown.gif] [smiley=thumbdown.gif] [smiley=thumbdown.gif] [smiley=thumbdown.gif] [smiley=thumbdown.gif] [smiley=thumbdown.gif] [smiley=thumbdown.gif] [smiley=thumbdown.gif]
730.

Solve : Performance Monitoring?

Answer»

Hi There,

I need to know what performance monitoring tools are available through Linux SEVERS,

I need something to monitor disk space and CPU utilization

Are there any add-ons/plugs-ins/commands that would enable me to do this?Hi Sam_Parrington,

http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html

In the link above it will SHOW you how to install and run the cpu utilization PROGRAM, if you would like to run it web BASED you can use PHPSYSINFO which you need to run a webserver such as apache or search up XAMPP.

Any QUESTIONS ask.

Thanks,For disk space you can run the command "df -h" to show a fairly basic summary.

For CPU and memory utilisation I'm a big fan of "htop" - http://htop.sourceforge.net/

731.

Solve : ifconfig to set up ethernet interface for router and computer?

Answer»

hi, i need to configure the ethernet interface for the router and computer in a network. i understand we can use the ifconfig command. i read online that we can use ifconfig eth0 <ip address> up to activate the ethernet interface. we also can use ifconfig eth0 <ip address> netmask <netmask> to ASSIGN the IP address and netmask to the network adapter. so if i wanna config the router and each computer in the network, i have to do those set of COMMANDS for all??Some linux distributions have GUIs which do it all for you but underneath the covers they all use ifconfig route and /etc/resolv.conf, some also use /etc/defaultrouter /etc/gateways and /etc/nsswitch.conf

To get everything you need to contact the internet, you need to configure the NIC with your local LAN address, configure a route from your LAN to the internet, and be able to resolve addresses.

Configure the NIC with ifconfig and set your IP address and netmask for your LAN, and configure it up. On most distros there's a dhcp option to ifconfig so you can get everything you need from the your broadband modem. You'll need to find some way of making the computer remember this after a reboot. Some Unix distros will want you to put the address into a /etc/hostname.eth0 file and add the netmasks to /etc/natmasks, but most will want you to put all the information into a file such as /etc/sysconfig/network/ifcfg-eth0

Next, you need to configure a route to the internet. If you're configuring a system which is going to be a router then you'll need to know about routing protocols such as RIP, and will probably need to run a routing daemon such in.routed or in.rdisc. If your just setting up a computer which isn't a router itself, some Unix distros will let you run in.routed or in.rdisc to discover your route to the internet automatically, but they will DEPEND on your broadband modem supplying the information using something like RIP.

If your computer is not going to be a router itself then you can setup a default route to the internet with the route command, but your computer will forget it next TIME you reboot, some of them let you put the address of the default router in the /etc/defaultrouter file, but most will want you to put it int the /etc/sysconfig/network/routes file as above. To add a route manually use something like route add -net default gw 192.168.0.1, but check the syntax for your linux as it varies.

Finally to convert a web address into an IP address that your computer can talk to you need to configure DNS. Some unix distro's will require you to edit the hosts line in /etc/nsswitch.conf so it contains the keyword dns, but for most of them using DNS will be the default anyway. Then, all you will need to do is put a/some line(s) into /etc/resolv.conf which contain the keyword nameserver: and the address of your DNS server. You could either use your broadband modem's address here or you could use the DNS servers which your ISP provide.

E.g. for Solaris
Code: [Select]# ifconfig hme0 192.168.0.2 netmask 255.255.0.0 broadcast 192.168.255.255 -TRAILERS up
# route add -net default 192.168.0.1
# cat > /etc/resolv.conf
nameserver 192.168.0.1
nameserver 194.106.33.42
^D
#
and to remember for next reboot
# echo 192.168.0.2 > /etc/hostname.hme0
# echo 192.168.0.1 > /etc/defaultrouter

E.g. for SuSE 9.3
Code: [Select]# ifconfig eth0 192.168.0.2 netmask 255.255.0.0 up
# route add -net default gw 192.168.0.1
# cat > /etc/resolv.conf
nameserver 192.168.0.1
nameserver 194.106.33.42
^D
#
and to remember for next reboot
# cat > /etc/sysconfig/network/ifcfg-eth0
BOOTPROTO='static'
BROADCAST='192.168.255.255'
IFPLUGD_PRIORITY='20'
IPADDR='192.168.0.2'
MTU=''
NAME='ASUSTeK CK8S Ethernet Controller'
NETMASK='255.255.255.0'
NETWORK='192.168.0.0'
REMOTE_IPADDR=''
STARTMODE='ifplugd'
UNIQUE='rBUF.lA1Zt0RGIZE'
USERCONTROL='no'
_nm_name='bus-pci-0000:00:05.0'
^D
# cat > /etc/sysconfig/network/routes
default 192.168.0.1 - -
^D
#

732.

Solve : Need help with "Screen Resolution" within Ubuntu 8.04!?

Answer» Hi Guys!

I have installed Ubuntu 8.04 within Windows via Wubi. The "DEFAULT Screen Resolution" it comes up with is 1440X900 & as soon I try to change the same to say 1024X768 or 800X600, my Screen starts "Flickering" at an enormous rate & eventually I need to SHUT my system forcefully to get rid of that 'awful state'!

What could be the reason? & why am I not able to change the "Screen Resolution" ?
Try uninstalling the program that you download and see what happens.What program, KingPincer?

Saurabhdua, are you using the most recent version of Wubi?
Why don't you use Ubuntu 8.10 instead of 8.04?

We need more info on your computer SPECS too please.That program that he is saying.Wubi? Uninstalling Wubi would mean uninstalling Ubuntu. heh Quote from: KingPincer on April 26, 2009, 04:23:30 AM
Try uninstalling the program that you download and see what happens.

That is not exactly helpful! Hi Guys!

Iam not sure of the Wubi Version, its just the one that is shipped within their "FREE CD"!

AS far as 8.10 version is concerned, I have run post-to-pillar to get that installed within Windows, but in vain!

Both Ubuntu & Kubuntu 8.10s neither run as "Live CD" nor as a separate program (Wubi) through my PC!!???

Specs. goes: Intel Pentium 4, 1GB RAM, 40GB Hard drive, not sure of the graphics card( please do TELL me on how to check the same), OS-Windows XP Home Edition(SP3)

Tip: Have a look at Wubi's website.

As for your video card, go to Start --> Run --> type DXDIAG and press Enter. Then hit the Display tab.Hello again!

Here's what I got in Display :

[attachment deleted by admin]That is some pretty low VRAM. Is this a desktop or laptop?Ah OK. Its a pretty OLD Desktop, 2002 make, branded Compaq PC!

Never been fond of playing Games or 2nd Life kind of Gimmick! so probably never paid a heed to Graphics Card!

What you say..?I am unfamiliar with Wubi, but it is possible your graphics card/chipset cannot support what you are trying to do.

I still suggest trying an updated version of Wubi.
733.

Solve : save file in rtf format?

Answer»

how to save file in rich text format (.rtf ) in linux like we do in windows with the HELP of wordpad ? please tell me any SOFTWARE or trick to save file in rtf format in linux ?you MIGHT want to CONSIDER LEARNING to program in a scripting language such as Perl or Python that comes with Rich text libraries for you to do RTF processing. eg in Perl, we can use RTF::Writer
Code: [Select]use RTF::Writer;
local $/=undef; #slurp whole file
my $rtf = RTF::Writer->new_to_file("test.rtf");
open(FH,"<","file") or die "Cannot open file:$!\n";
$string = <FH>;
close(FH);
$rtf->paragraph($string);
$rtf->close;
Just use OpenOffice which you can download for FREE from www.openoffice.org it allows you to read and write most of the Unix, Microsoft and MAC formats.

734.

Solve : Hide folders and files ??

Answer»

How to HIDE FOLDERS & FILES in linux mint ?

735.

Solve : What's difference between echo and fwrite to a virtual file??

Answer»

I used command "echo 171 > /sys/class/gpio/export" to create a folder "/sys/class/gpio/gpio171/" and some files inside it. For some reason, I must do the same thing in C language. I used
fd = fopen ("/sys/class/gpio/export", "wb");
fwrite ("171\n", 1, 4, fd)
fclose (fd)

to try to do the same thing done by 'echo' command. But it doesn't work. That's the statements above didn't achieve the result as 'echo' command did.

What's wrong with it?Well, for starters, each is a separate language.

There are many forums that provide examples.
http://en.allexperts.com/q/C-1587/use-fwrite.htm

Did you try to use an example from a tutorial?
Like hiss:
Code: [SELECT]#include<stdio.h>
void main()
{
FILE *fp = NULL;
short x[10] = {1,2,3,4,5,6,5000,6,-10,11};
short result[10];
fp=fopen("c:\\temp.bin", "wb");
if(fp != NULL)
{
fwrite(x, 2 /*sizeof(short)*/, 10 /*20/2*/, fp);
REWIND(fp);
fread(result, 2 /*sizeof(short)*/, 10 /*20/2*/, fp);
}
else
exit(0);
That is not a FULL program, just a fragment that shows use of fwrite and fread.
Does that help any?I did it but didn't work. So, why does driver for /sys/class/gpio/export have different behavior to "echo command" and "c functions"?As I said, different languages. But ignore the rest of my post. You just don't get it.
An echo is a part pf the bash thing.
Here is a bash tutorial.
http://www.hypexr.org/bash_tutorial.php

C is C. It is not bash. Nor is one a subset of the other. Trying to learn C while you are playing with bash is like learning Japanese and working on Spanish.

Before you try binary files in C, you need to understand the basic nI/O methods.

C File I/O and Binary File I/O


With simple file I/O, you must first open a file for write, then write and then close the file. Next open the file for read and read it, then close. That is s basic file I/O is most languages.

Stop comparing bash to C - unless you think hot dogs grow on trees.

736.

Solve : servers?

Answer»

hi........
what should i do to install "FTP" SERVER in my linux(REDHAT) operated pc......It's almost certainly already installed. I'm not sure which FTP server ships as default with RedHat, but if you go to /etc/init.d, you'll find all the startup/shutdown scripts, and probably one is for the ftp server. Do: "ls /etc/init.d/*ftp*" and you'll find it. vsftpd is a GOOD safe bet which I recommend INSTALLING if it's not already there.

737.

Solve : SUSE Linux clock way out?

Answer»

I'm using SUSE LINUX 9.1, Kernel 2.6.4-52
on an Intel P2 233Mhz with MMX support (whatever that means...)
motherboard is X364 (Fujitsu ErgoPro X)
the clock is driving me mad!
I set it one day, next day it is 5 or 6 hours fast, but not entirely predictable
What can I do??Are you leaving this machine on permanently? Did the clock work correctly before you installed SuSE?

Investigate the ntp package; you can synchronise to a time server and all your troubles will be over. Not on permanently. Not on broadband.
Clock appeared to run OK for a couple of months after installing Suse. (I ran Red Hat before that, don't think the clock was an issue, but can't REMEMBER now.)
Where does the ntp package sit? I presume this would be "root"-work, yes?
How do I add a script to run under dialup?
Will dig around for ntp in the meantime. Thanks.You have a flat battery.Quote

You have a flat battery.

I concur.

That's not fatal; you can overcome this problem with ntp as I mentioned. Load up YaST and search the packages for ntp. You'll find what you need. Then check the man pages for configuration details. The config files are usually at /etc/ntpd.conf, /etc/ntp.d/ or somewhere like that.

ntpd can be configured to connect to a time server whenever an INTERNET connection is available, and will keep your clock pretty much up to date. Without an internet connection though, this will be of no help to you. In either event, you may WANT to change your CMOS battery. They're not expensive.

Re the dialup script; there are standard things that can be added to wvdial.conf, I think (if that's what you're using) or pppd.conf; SuSE's documentation has always been good on this kind of thing. It's been such a long time since I used dialup with Linux that I can't really talk you through it, but the info is all on SuSE's website and elsewhere.
738.

Solve : xargs and xargs: unmatched single quote error?

Answer»

1. OS:
LINUX 2.4.20-6

2. cd to /home/username

3. issue COMMAND:
find . -type f | xargs -n1 ls -al | awk ' NF==9 { print $3 } ' | sort -u

4. Get the results back with this error:
xargs: unmatched single quote
username

Note: username = a valid user id.
This should return the other user ids in that directory.

Can anyone assist?
Is this becouse there is a funky file name within the directory/sub directories that xargs does not like?

Thank you,
Mike

Found this to work:

find ./ -maxdepth 0 -type f | xargs ls -al | awk ' NF==9 { print $3 } ' | sort -u
it will produce the owner of the files and sort on the id.

I found this at: http://www.pixelbeat.org/cmdline.html
Under "File seaching" section.

Still though if anyone has a answer regarding the original error and how to PREVENT it.
I MUST have some subdirectoy that contains a file with charactors that xarg does not like.

Thanks,
Mike

739.

Solve : Why can't I sleep correct time using gettimeofday()??

Answer»

Below is a function from my coworker. It runs well at X86. I ran it at iMX6 and it didn't work because the program usually slept just HALF or twice the time as I expected. The INACCURACY is too large. How come?

inline VOID uusleep(INT usecs) {
struct timeval tpstart,tpend;

gettimeofday(&tpstart,NULL);
long ss = tpstart.tv_sec*1000000 + tpstart.tv_usec + usecs;

while(1) {
gettimeofday(&tpend,NULL);
if( (tpend.tv_sec*1000000 + tpend.tv_usec) >= ss) break;
}
}

740.

Solve : How to access GPIO pin in ARM using low-level functions like inb()/outb()??

Answer»

In x86 platforms, inb()/outb() can be used to access GPIO pins efficiently. I am programming on ARM platform. I would like to access GPIO pins. It can be done by accessing virtual files under /sys/class/gpio, but this method is too slow.
I wonder if there is any low-level functions like inb()/outb() to access GPIO pins in user mode application on ARM platform.
You refer to low level functions found in C++ for Intel CPUs. Your ARM C libary is likely very different. Few here, if any, do work on ARM.

Maybe you could provide some SPECIFIC details?
Is this on a product that s widely used?
Is it an Android platform?

Without details, I am groping in the dark.
Here is a recent tutorial no low-level Android stuff.

Low Level Android Programming with AIDL, NDK and JNI — A 5 day course

Does this even come close?

This kind of stuff has a very narrow market, so the authors do not want to give away the material until they get some compensation for a lot of hard work.



The platform is Ubuntu.Quote from: Stan Huang on DECEMBER 05, 2013, 09:21:32 PM

The platform is Ubuntu.
OK. Thee are a number of sites that are involved with Ubuntu on ARM
https://wiki.ubuntu.com/ARM
The above is one. Or just Google:
Ubuntu on ARM
You can port Ubuntu onto a Chrome book. (Video)
https://www.youtube.com/watch?v=vpDtD4eKBB4
Somewhere out there are people doing what your want.
Hope that helps a little bit.
Quote
ARM Processor
ARM is a processor architecture used in a variety of APPLICATIONS, such as:
Handheld Computers (Nokia n900, n95, etc.)
Network Devices (Genesi Efika MX Nettop, Wyse T50, CompuLab TrimSlice, etc.)
Project development boards (Beagleboard, Pandaboard, Quickstart, etc.)
Subnotebooks (SHARP Netwalker, etc.)
Netbook/Notebooks (Genesi Efika MX Smartbook, Toshiba AC100, etc.)
Ubuntu targets the ARMv7 and above Application Processor family (Cortex A8, A9 and above). Currently the archive supports ARM EABI, with an expectation of minimum compliance with the ARMv7+VFP ISA. Where possible Ubuntu targets the Thumb2 instruction set.
As to your original question. Input and Output instructions in the Intel instruction set a peculiar to Intel designs. Intel CPUs used in PCs are CISC designs, where as the ARM is a RISC design. So don't expect a similar tool for the ARM.
Further reading:
ARM Assembly Language Programming
The ARM is memory mapped.
741.

Solve : Is there Any way that I can install Linux ??

Answer»

I have ubuntulinux burned to a CD and ready to go but I have heard that I need to set my bios to BOOT from the cd but I don't have that option. I am running windows 98. I want to dual boot with windows. Is there anyway for me to install linux ?What is your computer make/model or motherboard? This has been available since the Pentium I days on VIRTUALLY all machines.Quote

What is your computer make/model or motherboard? This has been available since the Pentium I days on virtually all machines.


It's a Compaq Presarion 5630,Win 98, 128 Ram, 400 Mhz Processor, Ati graphics card, compaq makes my motherboard, and that's virtually all the info that I have + Bios = Compaq.Whether or not your BIOS has a boot from CDROM option hidden somewhere, you can always use the indispensible Smart BootManager. >Get it here<.Well, that's the problem. Ubuntu has a built in dual booting thing but if I put the disc in then it will overwrite windows and it would possibly not work. I need to be able to keep windows and install ubuntu.ok, I see what you mean. I just get an error when I try to use it. Could you GUIDE me through this step by step ? It would be very much appreciated.

Edit: Pray for me this is the Tutorial that I am going to use. I hope it works '_'You're also going to either need some free space on the hard drive to CREATE linux PARTITIONS, or add a second hard drive to install linux to.
742.

Solve : Renaming or Chown, on Ubuntu6.06?

Answer»

:-?
HI, can anyone help please?

This may be more of a Unix/Linux admin issue than Ubuntu, but on Ubuntu6.06,
I am having trouble renaming the directory (note . & _):
xyz/j2re.1.4.2_08 to the name: xyz/jre.
(the operation has to be carried out by a specific user eg. XYZAdmin)
It can't get done as XYZAdmin: permission denied;
I tried even as root, but the operation is not allowed.
Can't remember the exact message,... but for some reason it can't be modified.

Also is there some way to change the autocompletion?
Normally the ESCKey gives a list of all possible way to complete the command line argument,
on Ubuntu it has to be pressed at least 3 times to get the list and when continuing to complete
some of the last typed characters get erased (eg. the _08 above);
and then to select a choice, the enter key has to be pressed twice... ¿?
:-?

Thanks a lot, for the advice...
Quote

I am having trouble renaming the directory (note . & _):
xyz/j2re.1.4.2_08 to the name: xyz/jre.
Check the permissions, by doing ls -l xyz from the folder that contains xyz. Chances are, no one has permission to change the folder. But root can of COURSE grant permssion to itself.

Quote
Also is there some way to change the autocompletion?
Absolutely, but there are many different ways to change it. You need to read the bash manual: info bash Then you can set it up the way you want it.Hi Rob,
Thanks for the reply.
even with chmod 777, Root can't change this EITHER. The error message is:
Bareword "j2re" not allowed while "strict subs" in use at (eval 1) line 1.
Any idea what it means??
I've found "strict subs" in vcs1, but can't read this,
it's a "c" not a file of directory...
:-?

will look at info bash.

thanks a lot
Puzzling. Are you changing this from a file EXPLORER or from the shell?Hi Roy,

I'm changing it from a shell.
It seems 'strict subs' has to do with some pragma settings...
I'm trying the options of using a symbolic link, or
moving the contents into a dir root creates,
but the mv takes the entire j2xxx... directory into the jre dir...
Any suggestions?
do you know what the c in crwxrwxrwx is?
:-?

thnx a lotQuote
Hi Roy,
Who's 'Roy'? :-?

Quote
do you know what the c in crwxrwxrwx is?
It's a "character special" file, not a normal file, and not a directory. Can you tell me: why do you want to rename this file? Something somewhere in the Java installation will be dependent on this file, so you can't just rename it willy-nilly.I am sorry ROB!... your name has roy at the end, and I must have written it because of that.

The installation requires the name that way.
I got it right with some trick moves, but I think it works with a symbolic link too.

For anyone wanting to use the fast auto-completion: the tab key has to only be touched once to get the completed file name.

Thanks ROB!

For the info of all, Ubuntu installs well on an Acer 5601, maybe only the sound doesn't work. But WIfi is done automatically.


Have a good day wherever you are.
743.

Solve : Telnet issues?

Answer»

Just installed a new REDHAT 9 box and all is well but I cannot telnet to it. I can access it with ssh, but not telnet. I have it setup in the SYSTEM firewall and also my main firewall to allow telnet but no go. Also I have ANGRY IP scanner and when I scan my NETWORK I get the IPs, Host name, and mac of all computers/network gear on my network but not this box. I can get the IP only, it can access the net and ping any box on the network or intenet. Any ideas out there? :-/OK guys found the issue, In Redhat 9 the "telnet" client is installed by default; the telntd daemon is not. Thats why it will not respond to the telnet request. SSH is a better way to access and admin the box anyway. Do not under any circumstance run a telnet server. Never!

744.

Solve : HDD size for Linux file system?

Answer»

I am thinking of building a PC that I can use as a file server. OS of CHOICE would be Ubuntu.

Are there any limitations when it comes to HDD size or interface?I know that some people have struggled to get SATA drives to work on certain Linux installations. Size limitations? None that I know of, although BIOS limitations will obviously apply.

Suggest you use the LVM (logical volume manage) so you can keep adding hard drives until you run out of interfaces...Much OBLIGED. More questions to follow soon. Excellent. Another victim convert.No, no convert! I used to use Ubuntu Linux on a daily basis for well over 6 months but I used to have two PC's and now I moved back to one. I created a dual boot which worked perfectly fine (WINDOWS XP + Ubuntu Linix) but the only problem was that I couldn't get my SAMSUNG 930BF 19" LCD monitor to work properly with Linux Ubuntu and I just stopped using it.

745.

Solve : converting to Linux?

Answer»

I would like to try out Linux..
though I am no coder

Tried several Live Cds..
Ubuntu
SUSE 10(DVD)
KNOPIX 4.02

How do I get the Audio to work?
I am using the onboard audio
my DETAILS
SPECS:

AMD SEMPRON 2600 CPU
ASUS A7S8X-MX MOTHERBOARD
384 MB RAM DDR400
SMBIOS VERSION 2.3
20 GB HDD
DVD ROM/CDRW

the hdd and dvd drive are on the same IDE channel as I SEEMED to have blown the secondary IDE..!!
works fine as I use this Pc
to watch DVDS AND various cds,play MP3s and Audio CDs.
send emails,browse the net and stream RADIO

I will be getting a new Motherboard next year Feb
(ECS K8M800-M2 Skt 754 (Sou/Vid/LAN))

PLEASE HELP!!
english mickiiee..I am IN the UK..
The Knoppix should have picked it up. What audio chip is it? You may also want to burn and boot Linspire Live 5.0 CD:

http://iso.linuxquestions.org/distro.php?distro=58
the audio chip is an AC 97

THANKS
english mickiiee That is so common it should work out of the box with all of those.i tried with all the others but no sound

MY SPEAKERS ARE MONITER MOUNTED
i dont know enuff about code to fix it

i will try to get LINSPIRE!!!
MCQuote

i will try to get LINSPIRE!!!
MC
Nooooooooooooooooooooooooooooo!Suse has occasional problems with sound, but again that AC97 chip is SO common that most distros should work out of the box. Make sure your speakers are on and connected.

Did Windows work OK with this arrangement?

Linspire is a GREAT way for a noobie to start. LET us know how it goes.Quote
Linspire is a GREAT way for a noobie to start. Let us know how it goes.
Eek! It's wrapped up in so much cotton wool that it's barely Linux any more! JMO...it's less SCARY that way for a NEWBIE.
746.

Solve : Can you turn a Blackberry 8330 phone into an android device??

Answer»

Or anything but the UGLY BLACKBERRY 4.5.0.186 (platform 3.4.0.59)
I just want to use it as a MUSIC device. I dont CARE for phones.No you can't. Your best bet is to sell it and use the money to put towards a cheap ANDROID device.

747.

Solve : uncompressing?

Answer»

how can i uncompress the compressed .zip, .rm, .mpeg, .jpg files in linux & in windows..........zip can be uncompressed in Linux at the command line: "unzip filename.zip". Many distributions include desktop uncompression software too. For Windows, I RECOMMEND the freeware ZipGenius (I've used most of the main freeware compression programs out there).

.rm is a proprietary format used by RealMedia. You NEED their RealPlayer to deal with these.

.mpeg indicates either compressed audio or compressed video. You require a PROGRAM that can handle this. There are too many possibilities to mention them all. Google for MPEG player.

.jpg files are image files compressed with a lossy algorithm. Open them in your FAVOURITE image viewer/editor.

748.

Solve : link to a file on other machine local disk?

Answer»

Hi,
I WOULD like to KNOW if there is any option in Unix to LINK to a file on other machine LOCAL disk?

thx.

749.

Solve : accessing?

Answer»

if i have both linux & WINDOWS installed in my pc................how can i ACCESS my files in windows 4m logging in as linux user......What linux? What Windows? What file system?Linux can read Windows partitions; it involves editing your /etc/fstab file. Do "man mount" to find out more about mounting different file systems.hey..........
REDHAT linux and windows XP n any filesystem (either .dat, .exe or any others).....Please copy and paste here the output of the following two COMMANDS: "sfdisk -l" and "cat /etc/fstab".

750.

Solve : insmod: error inserting 'rtl8192cu.ko': -1 Unknown symbol in module?

Answer»

I built rtl8192cu.ko successfully in Freescale's SDK. The SDK was approved correct for I built other drivers in it and the drivers were approved functional. Now, I tried to load it but got error message:
[emailprotected]# insmod rtl8192cu.ko
insmod: error inserting 'rtl8192cu.ko': -1 Unknown symbol in module

I used 'dmesg' and got lots of unknown symbol message. In my opinion, since I built it successfully, how come there is "Unknown symbol" issue at loading time? Anyone helps me? Thanks.


[emailprotected]# dmesg | tail -n 50
=====> rtl8192c_free_hal_data =====
<===== rtl8192c_free_hal_data =====
usb attached..., try to reset usb device
usb 1-1.2: reset high speed USB device number 3 using fsl-ehci
-r871xu_dev_remove, done
-rtw_drv_halt
rtl8192cu: Unknown symbol rtl92c_phy_sw_chnl (err 0)
rtl8192cu: Unknown symbol rtl92c_fill_h2c_cmd (err 0)
rtl8192cu: Unknown symbol _rtl92c_phy_bb8192c_config_parafile (err 0)
rtl8192cu: Unknown symbol efuse_read_1byte (err 0)
rtl8192cu: Unknown symbol rtl_cam_reset_all_entry (err 0)
rtl8192cu: Unknown symbol _rtl92c_store_pwrIndex_diffrate_offset (err 0)
rtl8192cu: Unknown symbol rtl92c_phy_query_bb_reg (err 0)
rtl8192cu: Unknown symbol rtl92ce_phy_set_rf_on (err 0)
rtl8192cu: Unknown symbol rtl8192_phy_check_is_legal_rfpath (err 0)
rtl8192cu: Unknown symbol rtl_cam_empty_entry (err 0)
rtl8192cu: Unknown symbol rtl92c_phy_scan_operation_backup (err 0)
rtl8192cu: Unknown symbol rtl92c_phy_rf_config (err 0)
rtl8192cu: Unknown symbol rtl_cam_mark_invalid (err 0)
rtl8192cu: Unknown symbol rtl92c_phy_set_io_cmd (err 0)
rtl8192cu: Unknown symbol rtl92c_download_fw (err 0)
rtl8192cu: Unknown symbol rtl92c_set_fw_joinbss_report_cmd (err 0)
rtl8192cu: Unknown symbol _rtl92c_phy_set_rf_sleep (err 0)
rtl8192cu: Unknown symbol _rtl92c_phy_fw_rf_serial_write (err 0)
rtl8192cu: Unknown symbol rtl92c_set_fw_pwrmode_cmd (err 0)
rtl8192cu: Unknown symbol rtl92c_dm_rf_saving (err 0)
rtl8192cu: Unknown symbol rtl_ps_enable_nic (err 0)
rtl8192cu: Unknown symbol rtl92c_phy_set_bb_reg (err 0)
rtl8192cu: Unknown symbol rtl_usb_probe (err 0)
rtl8192cu: Unknown symbol rtl92c_dm_init (err 0)
rtl8192cu: Unknown symbol rtl92c_phy_iq_calibrate (err 0)
rtl8192cu: Unknown symbol rtl92c_dm_init_edca_turbo (err 0)
rtl8192cu: Unknown symbol rtl_cam_add_one_entry (err 0)
rtl8192cu: Unknown symbol rtl_efuse_shadow_map_update (err 0)
rtl8192cu: Unknown symbol _rtl92c_phy_calculate_bit_shift (err 0)
rtl8192cu: Unknown symbol rtl92c_phy_lc_calibrate (err 0)
rtl8192cu: Unknown symbol rtl92c_phy_set_bw_mode (err 0)
rtl8192cu: Unknown symbol _rtl92c_phy_rf_serial_read (err 0)
rtl8192cu: Unknown symbol rtl_get_tcb_desc (err 0)
rtl8192cu: Unknown symbol _rtl92c_phy_rf_serial_write (err 0)
rtl8192cu: Unknown symbol _rtl92c_phy_init_bb_rf_register_definit ion (err 0)
rtl8192cu: Unknown symbol rtl92c_dm_watchdog (err 0)
rtl8192cu: Unknown symbol rtl_ps_disable_nic (err 0)
rtl8192cu: Unknown symbol rtl92c_dm_check_txpower_tracking (err 0)
rtl8192cu: Unknown symbol rtl92c_set_fw_rsvdpagepkt (err 0)
rtl8192cu: Unknown symbol rtl92c_phy_set_txpower_level (err 0)
rtl8192cu: Unknown symbol _rtl92c_phy_fw_rf_serial_read (err 0)
rtl8192cu: Unknown symbol rtl_usb_disconnect (err 0)
rtl8192cu: Unknown symbol rtl92c_phy_set_rfpath_switch (err 0)
rtl8192cu: Unknown symbol rtl_cam_delete_one_entry (err 0)Hello, Some more info pleas.
you posted in Linux/Unix AREA.
But you list Windows 7 as your OS. Please CLARIFY what OS toy used for your build.
Also, is the first time your tried anything like this?
Did you forget to link the library?
Is this a link to the material you are using?
http://www.freescale.com/webapp/sps/site/overview.jsp?code=QORIQSDK_1.2

My OS is Ubuntu. I don't know why my posting is labelled as Windows 7. I don't know how to update it EITHER. Could you help me?Well, IO would really like to help. Looking at your errors, it seems you have left pout a library. Apparently there was some other code that has to in maybe LINKED or in some kin d of include file.
I think the best thing to visit the Ubuntu forums for more help.
http://ubuntuforums.org/
The Ubuntu forums are vary popular and you should find somebody that will point you in the right direction.

Again, the only thing I can see is that you did not link a library. Bat I don't have more specific information.