Ubuntu :: Simple Script Errors Out At Setup Commands
Mar 22, 2010
I am trying to make a simple script. The first part works to untar a file. When I try to CD from within my simple script.sh file to the new directory just untared and run the setup commands it just errors out and says something about having no directory or something and saying that it cant make without configuring or something.
#!/bin/bash
for file in *.tar.gz
do
tar -xvzf $file
done
cd some-directory
./configure
make
make install
View 1 Replies
ADVERTISEMENT
Jun 9, 2010
I'm interfacing with a device using putty and right now I have to use a reference document to dissect the data I'm sending and receiving. I'd like to build a program that can build packets according to user input and then dissect them upon receipt; basically an [ english <=> proprietary packet structure ] program that talks to the device via USB. The packets come in varying sizes, but are composed of well-defined fields and values.
View 6 Replies
View Related
Jun 14, 2010
I am running a simple script that I copied from slug.ceca.utc.edu/docs/2009-3-26-linux-server-health.pdf and edited with the names and paths of my own servers. I don't know much about scripting (re: nothing) but I wanted to try and be efficient in my new role as a Linux Sys Admin. The script was saved to root's home directory and runs as part of root's crontab once a week. The script runs with no problem, but it doesn't actually seem to run all of the commands contained within. It skips some in the middle and the end and I don't know why. The script itself is this:
Code:
#!/in/bash
uname -a > /tmp/server.txt
[code]...
View 5 Replies
View Related
Feb 21, 2010
First off, I'm completely new to bash scripting so forgive me if I make any egregious errors. I'm trying to make pop-up reminders for the simple calendar program when. This is what I have so far:
Code:
#!/bin/bash
# set the time format for when
#current="$(date +%I:%M %p)"
current="$(date +%-l%p)"
today=~/.when/today
[Code]....
When I run the script, gxmessage pops up and displays the correct information, but it does so for each line in "~/.when/today" that contains a time that matches the current system time (which would be three pop-ups at 10PM, according to the example). I want it to display the information only once. How can this be accomplished? Is a while loop even the right job for this?
View 8 Replies
View Related
May 23, 2010
I have a second HD in my computer for doing a backup onto. All I want is to select a couple of my documents folders and have them copied to it daily. I would like it to add new files and update newly modified ones. I don't want it encrypted or archived, just a basic copy.
View 4 Replies
View Related
Mar 1, 2010
All i really want to do is be able to ssh into my other linux system. I am not interested in internet sharing, or even file sharing.[linux laptop with unused ethernet port]-windows-mobile-ppc connected by usb for internet-tehtering [linux running on my wii accross the room]-nintendo lan adapter.I want to be able to ssh login to my wii, from my laptop. That is all i want. Do i need a router in between the two for this, or can i just connect them with ethernet cable?No samba, no nfs, no fancy stuff. Just want to be able issue commands from laptop to my wii.
View 9 Replies
View Related
Jun 10, 2010
I'm trying to set up a simple backup script with cron.
In "crontab -e" (and sudo crontab-e - I tried both) I enter "0 22 * * * /home/USERNAME/.backup.sh", with the hope that it will run the script at 10pm each day. The srcipt work fine if I run in a terminal. why it won't work? It's bound to be something obvious....
View 5 Replies
View Related
May 11, 2011
My plan is to set up a simple webpage using no-ip. I already made an account and downloaded and configures the client. Now I want to make the actual website (hosted on my local machine). How would I do that? I assume I would need a hosting software.
View 2 Replies
View Related
Feb 6, 2011
I have three PC's. PC-1 is a newish Dell Vostro 320 running Win 7 as the prime OS with Ubuntu Linux 10.10 dual boot under the control of EasyBCD. PC-2 is a Dell Inspiron 6400 running Ubuntu Linux (10.10). PC-3 is an oldish Dell Inspiron 6000 laptop dual booting Win 7 and Ubuntu 10.10. All three PC's share a DSL connection to our ISP and network using the wireless router capability of the DSL box (a Billion 7401 VGP-M). All three PC's can access the internet using the DSL box both wired and wirelessly under Windows or under Linux. PC-1 is the primary PC and runs Win 7.
PC-2 (Ubuntu 10.10) is running fantastically well and can access PC-1 running Win7 as a member of WORKGROUP for print sharing and for file sharing. The primary PC-1 can also see the files on PC-2 as a member of a Windows WORKGROUP. Simple home networking is working as it should with this setup (PC-1 under Win 7 and PC-2 under Ubuntu 10.10). This has been like this since the installation of Ubuntu on PC-2, which included setting up network printing from PC-1 (Win 7) under Samba.
The problem is thus: If I boot PC-1 or PC-3 up under Linux, I lose all networking capability between the three PC's including print and file sharing, but they can all access the internet through wireless or wired connection. I have configured Samba and done all the home networking troubleshooting especially:[URL]..All to no avail. As I said, my aim to ditch Windows and move all three PC's to Linux but I can't do this unless I can get Linux home networking working properly. By properly, I mean all PC's running Linux or two under Linux and one under Windows 7 and be able to share files and a printer attached to PC-1. I am a Linux virgin and am hoping that a knowledgeable person can tell me what's going wrong and point me to setting up a simple home network under Linux. It shouldn't be this hard.
View 7 Replies
View Related
May 19, 2009
I've got an F10 install on an old IBM machine. I am trying to repartition the hard-drive, but all my fdisk commands in terminal give me errors. I made a DOS boot floppy on another machine so I could do it that way, but when I try to go from A: to C: the computer says I have no hard drive installed.
View 4 Replies
View Related
Dec 7, 2010
I have two computers on my home lan I am trying to share files between...My desktop which is running Ubuntu Server 10.10 (x64) with a GUI, and my laptop which is running Ubuntu Desktop 10.04. I have tried a million different tutorials regarding SAMBA setup, but they never work.
In addition, most of those tutorials are geared towards hybrid Linux/Windows environment. I do not have any microsoft product in my home. I have created the share on my server, but I'm not sure how to connect to it from the laptop (once again at this point in the tutorials it explains how to access it from a Windows PC). I tried using the menu doing this:
Places-->Connect To Server-->Service Type-->Windows Share (for the server I tried my server hostname and IP) to no avail. Does anyone know of a recent step by step tutorial for setting up a complete Ubuntu environment? Is there a simpler method I can use since I do not particularly need to use SMB protocol?
All I want to do is share my music folder from my server so I can access it (from the same LAN) on my laptop...Arrrghhh frustrating.
View 8 Replies
View Related
Feb 26, 2010
I've installed Fedora 12 Desktop in order to develop a simple website, which is going to use some PHP.
I will need:code editor to write html/css/php local apache server running php browser how to get me up and running in no time with least extra configurations.
Bonus: I'm going to run all this in a virtual box on my company computer. I'd love to be able to stay undercover with this, so if one of you can tell me how to configure the apache server not to be too visible to the company network/domain, that'd be excellent.
View 7 Replies
View Related
Jan 5, 2011
I've decided to try and setup a simple home server with Debian. I can either install the OS on a compact flash card and use hard disks as storage, or just install everything on the hard disk. I'd also like to set up a software raid for mirroring. I've never done this before, and most recently updated documentation i've found is for ubuntu. Any advice or good links someone can point me to on how to set up raid? I'd like to encrypt my hard disks but I don't know what my options are. It seems like people point to truecrypt, but i'm wondering what else is out there or if people have any advice on this. Would it be feasible to do this if I install the OS on a compact flash card and?
View 3 Replies
View Related
May 11, 2010
I am trying to install faac codecs on ubuntu 9.10 karmic.after running the configure and make commands i get this errors:
View 7 Replies
View Related
Jun 7, 2011
Is the term a 'simple SMTP relay' a contradiction in terms?!I have an elderly Dell server on which I have just made a fresh install of 10.04 LTS server. I had 8.04 running on it for a long time, but I haven't tried an SMTP server before. It is a headless server with CLI (no GUI) and the latest version of Webmin installed.I have a basic LAMP server installed for a few websites using PHPbb and Joomla, and also I run a Mediatomb server for our household. When I installed I also chose to install mail services, but these remain masked behind NAT at the moment
I now want to set up an SMTP relay server so when I am working away and using different wifi points or my notoriously unreliable 3G dongle I can always send emails through the home server (from my iPhone and my laptop) rather than having to look up the SMTP server for each ISP of the place where I am working.
What I want is an authenticated server which takes my email and redirects it to my home ISP's SMTP server. I need only 3 authenticated users to have access (myself, my wife and my son). I don't need (or want) any incoming mail services at all.
Useful modules installed are: Dovecot, Postfix, Procmail mail filter, PAM - but how do I set them up?
Is there any simple setup that I could do, preferably through Webmin, but I can handle CLI if necessary?
I have looked at the Ubuntu help pages, but it looks so complicated to set up something that seems like it should be so simple to me.
View 9 Replies
View Related
Jun 28, 2009
I am having a time at trying to get a simple FTP setup to my Var/www/html folder for my canned Joomla website. I can log in anon with no write permissions, but it will not log in using any users I have setup on the server. I've googled a bunch, but nothing to correct my 530 authentication failure when I try to log in as one of my user accounts for the server.
View 2 Replies
View Related
Aug 17, 2010
I have just installed SSL certificate for my private domain (it runs on a private ip in a local network). I got the trial SSL from thawte. I have successfully installed the certificate.
View 1 Replies
View Related
Jan 24, 2010
i am useing a D-link wireless usb adapter .i put it in to the usb port and tryed installing useing the diskand when i click auto run or setup.exe file all i get is errorsi have been trying everything posable but no luck.i dont have a sweet clue about this OS lolmy first time useing ituseing a gigabit mobo8800 gforce vid card2.9 ghz prosesser cor 2 duo650 psu newest ubuntu OS i would like to add that its not picking up any think i plug in to the usb ports
View 3 Replies
View Related
Oct 7, 2010
i'm a college student studying pc programing, and i was given today a special work and i have to program using miranda... which i've never used it >.< can anyone give me a hand to where to download, how to compile, and a simple tutorial for making a simple program or something?
View 3 Replies
View Related
Jul 19, 2010
Gentlemen/Ladies; I checked the existing information on this site and found that it is pretty widespread and confusing to me. I am a Linux Newbie so please be patient. I use Mandriva Linux 10.0 and want to setup a simple file server. I also want to connect a Windows XP computer to access files on the Linux server. I have a spare router I can use. My ultimate goal is to learn MySQL and PHP programming; I am pursuing a Web Development curriculum at a local University but am just starting out.
Am I making sense and can I do it with the equipment I have? Can you point me to some resources,documents, etc. I can use to accomplish this?
View 1 Replies
View Related
Feb 22, 2010
I',m executing ping, but it didn't work, in order to find the mistake in my network I would like to know how to see the errors:
Code:
18 packets transmitted, 0 received, +12 errors, 100% packet loss, time 17038ms, pipe 4 I want to see this +12 errors. Could I do that?
View 2 Replies
View Related
Feb 26, 2010
I am running Valgrind on my program. It shows me two errors but mentions only addresses against them and not actual code even on a debug build.
The output is
==23002== Memcheck, a memory error detector.
==23002== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==23002== Using LibVEX rev 1575, a library for dynamic binary translation.
[code]....
View 1 Replies
View Related
Jul 22, 2010
Can anybody tell me what kind of fsck errors are found on a system?
View 5 Replies
View Related
Mar 14, 2010
I ended up setting up a basic linux file server as a pdc for that office. Our main office is a windows 2000 ads domain. The two offices are connected with a vpn. I only have two users at the new location so I simply have the linux and samba usernames/passwords setup manually. I would like to know if it is possible to setup a domain trust between the two sites so I don't have to create a username/password in the remote site for every user at the main office to access. I did some searching but came up empty.
View 5 Replies
View Related
Apr 24, 2011
I want to setup a FAI server for which I was looking for the best method of mirroring the Debian Lenny. I want to setup a local mirror with the best method available for mirroring. If it is ftpsync, please provide me some best ways of doing it. I tried ftpsync mirroring but that was not getting properly working due to insufficient I want this mirror to be accessible in my FAI setup so that I can start the installation on multiple machines and start the updates and package installation to be done from the same local mirror.
View 1 Replies
View Related
Jun 4, 2010
I've been all afternoon trying to install Ubuntu Lucid on my fakeRAID 0 configured (2) HDDs and am unable to set GRUB up. The fake RAID setup is provided by Intel Matrix Storage Manager, it is correctly enabled and the BIOS is also correctly set up -- in fact, I've managed to install Windows 7 with no significant hitch. After struggling with partioning the drives (had to follow advice I found on a very helpful guide online [0]), creating the filesystems AND getting Ubuntu's installer to actually do what it is supposed to do, I now cannot seem to set GRUB up. My system, as it stands, is unbootable at all; via live CD only.
This is how the RAID0 dev is partitioned:
Code:
# fdisk -l /dev/mapper/isw_ecdeiihbfi_Volume0
Disk /dev/mapper/isw_ecdeiihbfi_Volume0: 1000.2 GB, 1000210694144 bytes
255 heads, 63 sectors/track, 121602 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 262144 bytes
Disk identifier: 0x6634b2b5 .....
View 2 Replies
View Related
Jul 8, 2010
Im trying to set up my workflow to a terminal-based setup, so that accessing my computer through SSH will provide many of the things I need and use right off the bat. I have Mutt working great with my GMail account, so that's good. I do have a question though. Using the application Calcurse (featured on Lifehacker a few days ago, [URL] I am at a loss to figure out how to interface with Google Calendar. Is there a trick that Im missing, or does anyone know of another terminal app that plays better with Google Calendar?
Also, I was looking for a 'Digital Clock', essentially, again, a terminal/text based large print clock; similar to the one in the lower left corner on the attached pic. I was looking for a telnet server from the Atomic Clock, but no such luck so far.....
View 9 Replies
View Related
Apr 27, 2011
i am trying to install openbravo on my server.I have installed all the pre-requisites as ANT, JDK(though i installed JRE).
Everything goes fine untill the ant setup and then running the setup-prerequisites...file (don't remember the exact name).
As soon as i issue ant install.source it ends up with some errors..
View 2 Replies
View Related
Dec 15, 2010
So I didn't notice when I setup my CentOS 5.5 server that I left / as RAID 0 on md1. All the rest are RAID 1. Is there a way I can modify the array to RAID 1 without a risk of data loss? I'm glad I caught this before I setup any other services. I've only setup smb so far...
[root@ftpserver ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 16G 3.0G 13G 20% /
[code]....
View 1 Replies
View Related
Feb 4, 2010
Im trying to setup multiple domU through the default bridge setup. I am able to access only one of them through the network at a time. If you ping one of the domU it works perfectly but you cannot ping any of the others until you stop pinging the one and even then it takes a bit before you can. Ive looked around for a while and seen similar problems but nothing ever seems quite the same. Im probably missing something really stupid. Or is this the way the bridge is supposed to behave? Do i need to use a routed virtual network?
[Code]....
View 1 Replies
View Related