Ubuntu :: Set Up An Alias For Update, Upgrade And Clean By Putting Line Into .bach.rc File?

Aug 3, 2010

I tried to set up an alias for update, upgrade and clean by putting this line into my .bach.rc file

Code:
#alias ud= 'aptitude update && sudo aptitude upgrade && sudo aptitude dist-upgrade && sudo aptitude autoclean' but when I type ud I get this error message, by the way I tried the bash.rc entry both commented and uncommented with the same result.

[Code]..

View 4 Replies


ADVERTISEMENT

Programming :: Reading In A Outside Text File And Putting In The String On That Line Into A Char Array That Is Already Allocated?

Mar 29, 2011

Here is the issue. I am reading in a outside text file and putting in the string on that line into a char array that is already allocated.

Code:
int main(int argc, char *argv[])
{

[code]....

View 1 Replies View Related

Programming :: Open Two Text Files - Read Them Line By Line And Update Parameters Of The 3rd File ?

Oct 18, 2010

I have two txt files containing x and y coordinates: xcoord.txt & ycoord.txt. I need to open them; read them line by line to get each coordinate; then each time I need to update Xs and Ys parameters inside another file called "dc.in" with the grabbed values.

Finally each time I need to run two exe files ( dc_2002 and st_vac) and produce corresponding output for each Xs and Ys ( dc.in is an input file for this exe files)

I have written the following code but it does not work:

View 14 Replies View Related

Ubuntu :: Bashrc Ls Alias Not Working Same As Command Line

Oct 25, 2010

I have a few alias' in my .bashrc to save some typing, mostly ls type variants.

I wanted to add the following:
- give me a Long listing of ALL in Reverse Time order, (don't recurse directory)

Code:

But it doesn't work anything like the way it does on the command line

When I use the alias I get the following:

Code:

No Time, No Permissions, no group/owner ... , Why?

View 2 Replies View Related

Ubuntu :: Downloading (Flash Player) Update / Upgrade On Command Line

Mar 12, 2011

how do you download an update or an upgrade (or whatever it's called) on a command line. for chromium internet browser. opened the computer and couldn't watch videos. i tried all the downloads available on adobe's website and all of them are on my "downloads" folder and when i click on any i just get stuff i don't understand and i simply find it easier to download through terminal.

View 9 Replies View Related

Ubuntu :: Error: Line 29137: Bad Flag Alias Index: 0

May 9, 2010

I am getting the following errors continuously whenever I update/save a config file in /etc/

Code:

error: line 29136: bad flag vector alias
error: line 29137: bad flag alias index: 0

The config file got updated though. I am just worried that this may be something bad.I update the files using the command sudo gedit <config_file>. I haven't encountered this before in Karmic. Has anyone encountered the same error messages? This might be a problem with gedit. I tried doing the following and the error messages also came up:

1. In terminal, gedit foo.txt

2. In gedit, type anything and save

3. Terminal will show the following:

Code:

...
...
error: line 19234: bad flag vector alias

[code]....

Running artha from the terminal also causes the error.I've managed to get the top-most line of the error:

error: line 15: bad flag alias index: 0
error: line 15: bad flag vector alias

The hardest thing about this is I have no idea what's causing it. I thought it was gedit but running artha (from the terminal) also causes the error.Sigh. This is a clean install of Lucid, which again makes it even harder to know what causes it.

View 9 Replies View Related

CentOS 5 :: Segmentation Fault Error When Trying 'yum Update' Or 'yum Check-update' After Running 'yum Clean'

Jul 26, 2011

On two Centos5 servers, yum gives a segmentation fault error when trying 'yum update' or 'yum check-update' after running 'yum clean' :

[Code]....

The error is the same for the other computer except while attempting to update the rpmforge repository. Nothing has really changed on the servers in some time and 'yum update' worked fine on each yesterday and I have no idea why they would both suddenly fail!

View 3 Replies View Related

Ubuntu :: Bash - Putting String In File?

May 28, 2011

OK I have a simple script that does:

Code:
# Create temporary file:
pwFile="~/Tmp/temp.cnf"
echo "$password" > "$pwFile"

But I get an error message:

Code:
~/Tmp/temp.cnf: No such file or directory

View 3 Replies View Related

General :: Putting A Remote Syslog Into Its Own File?

Aug 11, 2010

I have a Tomato router and it has the capability to have its logs go to a external server. syslog is the obvious choice for this. So I enabled remote logging on my linux server's syslogd (syslogd -r) and I can see all of the logs in /var/log/syslog. What I want to do is take everything that comes from the IP of my router (10.0.0.1) and divert it to its own file like /var/log/tomato to avoid polluting my syslog with external logs.

I can't find any examples of someone doing this. My only solution is to get a script together that strips out any line in /var/log/syslog with 10.0.0.1 in it and puts the line into /var/log/tomato and have the script run as a cron job, but that seems unnecessarily messy.

Unless someone knows that there is a solution, I'm 95% sure that syslog doesn't support this after reading more in-depth of the man page. So I need to migrate to syslog-ng or make a crazy script that runs with cron.

View 3 Replies View Related

General :: Putting Function Key Chars In A File?

Sep 18, 2010

Years ago on AIX I used to create a file of key strokes, including function keys (mainly F3 and F12) into a file, and used that file as input to an INFORMIX program, to automated tasks, something like this:
fglgo myprogram.fgo <keystrokefile.txt

Now, I'm using Aubit language on GNU/Linux, and I'd like to do the same kind of thing, but I can't recall how I worked out the chars for the function keys, I'm using a different emulation (xterm), and I can't work out what characters to put in the key stroke file. My $TERM variable contains "xterm". If I type "infocmp", I get this:

Code:
# Reconstructed via infocmp from file: /usr/share/terminfo/x/xterm
xterm|xterm terminal emulator (X Window System),
am, bce, km, mc5i, mir, msgr, npc, xenl,
colors#8, cols#80, it#8, lines#24, pairs#64,
acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,

[Code]....

1. Is the above infocmp output the place I should get the information I need?

2. What chars do I need to put into my file to simulate me pressing F3 and F12?

3. Is there a way for me to put such chars in a file by just pressing those function keys (I tried a here document, but that doesn't work (it's as if the function keys are not even pressed)).

View 5 Replies View Related

General :: Script After Putting The File In Bashrc?

Oct 23, 2010

I have a problem with my script. The problem is the system keeps rebooting after I put the directory file in .bashrc. The intentional for putting the file in .bashrc is to run the script automatically after login as root, I don know why is this happen. It was working fine for the first time without putting the file in bashrc. I could break the loop after hitting the "ESC" key. would it be the script problems?

Here is my script
count=20
while [ $count -gt 0 ];do
sleep 1
echo Press ESC to break the operation
((count=count-1))

[Code]...

View 11 Replies View Related

Fedora :: Putting Kickstart File Onto USB Flash Drive

Dec 1, 2009

Here is a way to prepare a USB flash drive to save your kickstart file to it, and then read the kickstart file from the USB drive during a new Fedora installation.A USB flash drive is recognised by the Linux kernel as just another hard drive.This is how I set up my USB flash drive to use it to store my kickstart file on.You will need a working Linux system to set up the USB drive.

View 2 Replies View Related

Server :: Putting IP Blocking In A Separate Conf File?

Jan 1, 2010

Running Red Hat (not sure of the build atm) and I need to be able to put all of the IP blocking in a separate file. It will eventually be uploaded to a large number of hosting accounts, and modified from time to time...so it isn't feasible to modify that many httpd.conf files each time we need to add an IP to be blocked. In httpd.conf I can add the "Deny from" line to the following directive and blocks it just fine:

Code:

<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

[code]....

There is an include to pick up all *conf files in ../conf.d, and everything else in there is working just fine. I created a file called robots.conf; it currently has a set of mod_rewrite rules which work. So I added this to that file:

Code:

<Directory "/var/www/html">
Order allow,deny
Allow from all
Deny from 123.456.789.098
</Directory>

It is not blocking access from the IP with it in there.I've done all of the usual things; restarted Apache, cleared browser cache etc. I can also block it using that same directive in a local .htaccess.

View 2 Replies View Related

Ubuntu :: Alias - SCP File From Folder To Network

Dec 17, 2010

I know this is a relatively simple problem but no matter what combination I try for my alias, I don't seem to be able to get it right! All I want to do is scp a file from my current folder to a location on the network:
Code:
scp filename username@computername:/folder1/folder2

This is the usual layout of the command that I use, so I thought that to save time, I would create an alias or even a function which did this for me, so all I had to type was
Code:
scp101 filename
and it would copy it to the set folder on the remote computer...

My attempt at an alias looks like:
Code:
alias scp101='scp !* username@computername:/folder1/folder2'
and I have also attempted a function:
Code:
scp101()
{
scp "$1" username@computername:/folder1/folder2
}

The alias tells me that filename is not a directory, which I assume means that I have some of the syntax wrong in the alias but I did a google search and I can't seem to find a decent example of what I'm trying to do. When I load up a terminal, I get an error message about the "(" of the scp101 function - so I've obviously can't get the syntax of that right either...

View 2 Replies View Related

Programming :: Access A File Line By Line, And Check The Length Of Each Line.

Feb 13, 2011

I want to access a file, and check the length of every line.After, i want to check and replace all lines with length over 10 characters, with a message.Does anyone have a clue on that?

View 1 Replies View Related

Ubuntu :: Upgrade Or Clean Install?

Apr 25, 2011

I have 10.10 Desktop right now.. and was considering the 11.04 beta 2 upgrade. However, when 11.04 comes out.. first.. will I be able to update to 11.04 final from 11.04 beta (if so is that automatic.. or do I need to do clean install)? Second, will the 11.04 beta 2 upgrade.. as well as the 11.04 final release.. remove/replace old 10.10 stuff.. or is an upgrade going to leave a lot of stuff around and thus a clean install is the best way to go?

I have a lot of stuff.. bookmarks, tools, data, etc on my linux box.. and while I do have a 2nd drive that I can move stuff to, if the upgrade path is as clean (or almost as clean) as a clean install, I am fine with that. I recall from Windows upgrades, there is generally a lot of remnants left behind that can slow things down or just sit around taking up space for no good reason. So I want to avoid anything like that if possible.

View 9 Replies View Related

Ubuntu :: Clean Up After Update-initramfs -u?

Jun 21, 2010

I'm working on a custom Ubuntu 10.04 live cd, and I've found updating the Plymouth splash uses up a lot more disk space. The culprit seems to be the command update-initramfs -u, which is needed to apply the new splash image. I'm guessing it's making a new intrd image or something.

View 3 Replies View Related

Software :: Putting Drdflash.img Flash Utility And Bios File Onto A Bootable Floppy?

Mar 24, 2009

I'm looking for a way to make a bootable floppy that has drdflash.img, my flash utility and my bios file on it for a bios recovery disk. This is on a board that has a failed bios, so everything is pretty much dead (except for the humble floppy drive). I don't have a screen to work with so this floppy needs to be able to run the utility and automatically flash the chip for me. I've heard this is possible, but am unable to find clear instructions on how to do any of this. I know the basics of it is to copy the bios file and flash utility to a floppy along with a bootdisk that will run these things (sometimes the .bat file needs to be modified in order to do this automatically). So I've downloaded drdflash but it came as a .img and I don't think it can be 'just' copied to disk. I came across the 'dd' command but have also heard its nicknamed 'data destroyer' or words to that effect.

View 4 Replies View Related

Ubuntu Installation :: Clean Install Or Upgrade From Within

Mar 18, 2010

I had 8.4 hardy heron and I've been upgrading from within up to the most recent upgrade to 9.10.Was it better to do a clean install from the cd

View 1 Replies View Related

Ubuntu Installation :: Upgrade Vs Clean-sheet Install

Feb 4, 2010

I'm currently using Ubuntu Jaunty, and am considering upgrading to Karmic. Is there any advantage to backing up my data and clean-sheet installing a newer version, or is the upgrade path through the update manager sufficient? Would a clean install carry less baggage coding-wise?

View 9 Replies View Related

Ubuntu Installation :: How To Do Partial Clean Install Rather Than Upgrade

Apr 14, 2010

I have a compaq nx7010. It started out with 8.04 or perhaps 8.10. I upgraded it through to 9.04 when that became available. I have not upgraded to 9.10 year, because I recall it took me a fair amount of time to get my system working correctly after the 9.04 upgrade. At a guess, audio went down, wifi broke, and that sort of thing. I am now finding that apps I use are not releasing new versions compatible with 9.04. And I see 10.04 is on its way, and I understand it is best to go from one upgrade to the next rather than jump a release.

Here's my question:
I get the impression it is cleaner and more stable to do a clean install as opposed to an upgrade. I've also seen many people expressing that view. I've always just gone with upgrading because I didn't like the thought of having to set my whole computer up the way I like it, again. Is there a way to do a clean install that will keep my system the way I like it? For instance, to not have to reconfigure every application?

I have my partitions set up like this:
ext3 /home
ext3 /
linuxswap

Just how much config related stuff is stored in the /home folder? Or is this purely user files? What is the consensus? Is it better to upgrade or to do a clean install? My intention is to have a stable system that does not require hours of my time to get sound and wifi working, with the latest release on it (so that I can run the latest apps).

View 4 Replies View Related

Ubuntu Installation :: Did Not Do Upgrade Just Requested Clean Install

Dec 7, 2010

I have tried to do a clean install of 10.10 on a system that previously had 9.4 on it. Did not do an upgrade just requested a clean install of UBUNTU. Install proceeds to create user name/password page then just stops. Install line below says ready when you are but I do not get a forward to come up on the screen, it just sits there. I have used different hard drives and a different cdrom drive and 2 different installation disks and it does the same thing.

View 2 Replies View Related

Fedora Installation :: F14 Upgrade Went Very Clean?

Nov 2, 2010

I upgraded from F13 to F14 Final i386 off the i386 DVD this AM and just wanted to say the upgrade went very smooth and I've yet to come across any issues. I have nvidia video but I do not use nvidia 3rd party drivers so I cannot say how an upgrade with those drivers would go.

View 11 Replies View Related

Ubuntu Installation :: Difference Between Installing 9.10 With Upgrade To 10.4 And Clean 10.4 Install

Apr 4, 2010

1. I want to revert back to Ubuntu (I currently am running Dual Slackware/Vista). However, given that at the end of this month 10.4 will be out, is there much advantage to installing 9.10 now and upgrading later?

2. Another way to ask this might be: Suppose you already had 9.10 (which many of you do), and suppose you also have a safe /home (so that in a fresh install you wont loose /home), what is the advantage of a fresh install as compared to Upgrade.

View 3 Replies View Related

Ubuntu Installation :: 10.04 - Upgrade Vs Clean Install Regarding Development Tools

Apr 29, 2010

I currently run 9.10 and have / and /home mounted on different partitions. From what I understand, I can do a fresh install of 10.04 on / while preserving my settings on /home. What about the development tools? I currently have Apache web server, Tomcat, MySQL, PostgreSQL installed. I presume I will have to reinstall them if I do a fresh install right? So if I want to preserve these dev tools as they are I should only do an upgrade from the update manager? Are there any major advantages to a clean install over an upgrade?

View 1 Replies View Related

Ubuntu Installation :: Lost Access To Home After Clean Upgrade?

Oct 25, 2010

I used to use Ubuntu 9.10 for a year. I had my home path on different partition (19Gb) than the system partition (12Gb). Before I upgraded, the free space on Home partition (19Gb) was 6.3Gb. I knew that the direct upgrade is not good, so, I format the system partition (12Gb). Then, I install clean version of Ubuntu 10.04 on it. every thing is great. except that, I can not find my files in the old home path. In same time, Ubuntu is telling me that the Home partition (19Gb) (which I have not touch at all) has free space of 6.3Gb and used space of 11.3Gb. It means it can recognize that there is something but it can not open it at all.

system information:

Ubuntu 10.04 (lucid)
Gnome 2.30.2
2.6.32-25-generic

View 1 Replies View Related

Ubuntu Installation :: 9.10 Upgrade Needs More Space / App That Results From Sudo Apt-get Clean?

Jan 27, 2011

forgive me for raising a common problem again, but I cannot find a fix in the other threads.
I am trying to catch up on upgrades. Step 1 is to get up to 9.10 from 9.04
Doing so however I am being told I don't have enough disk space
I present have my 35-odd GB HDD partitioned:
6GB for Ubuntu
28 for Data
and 1. or so for swap

evidently I underestimated my Ubuntu partition.

what can I do now?

I have run Computer Janitor (is that the application that results from Sudo apt-get clean? I did that but couldn't figure out how to "clean"?)

I have Gparted installed but I don't see how to use the Move/Resize option.

View 6 Replies View Related

Fedora :: Yum Is Broken - Clean Up Packages After An Upgrade ?

Jun 13, 2010

I was trying to clean up packages after an upgrade and I broke yum.

Quote:

There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:

Please install a package which provides this module, or verify that the module is installed correctly.

It's possible that the above module doesn't match the current version of Python, which is:

Go to the yum faq at:[url]

I tried to download the RPM and install manually but I was getitng digest mismatch errors.

View 2 Replies View Related

Ubuntu Installation :: Is There Proper Way To Clean Off Older Update Options?

Mar 29, 2011

With the updates received with Ubuntu 10.10 my grub splash screen has become very busy. Is there a proper way to clean off the older update options?My dual boot for Windows 7 has now been pushed off to a second screen.

View 9 Replies View Related

Ubuntu Installation :: Dell Laptop Lock Up After Update From 04 To 10 Or Clean Install

Mar 17, 2010

I have a Dell Laptop C640 Latitude that locks up with in a min or two of booting up after I update from 09.04 to 09.10 or if I do a clean install of 04.10. I do not know if it is the laptop or the 09.10 that is doing it.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved