General :: .bashrc Ubuntu Eee Easy Peasy The Specifics Of An Alias?

Oct 21, 2010

I successfully edited the .bashrc file to get ruby version manager (rvm) working. Now I would like to turn that setting into an alias so that if i type the word 'ruby' into the terminal it not only goes to the rvm settup but also defaults to my webdev folder which is in my user home directory and also exicutes a command that will open up gedit ready to be used as the text editor for editing the .rb files. Can this be done i would settle for some added code for the 'if then' statement: so far it looks like this:

[Code]...

I don't want to mess with the default setup on this system too much and think things could get out of hand if i am not careful. So am cautious about doing anything at this stage. I wonder if it is possibel thought to setup that whole 'if then' statement as an 'alias'. I read a few referances to alias and looked in the manual like any good newby should but am needing your help please. getting out of the MSwindows mind set and into the linux logic is not so easy but is a great experience

View 13 Replies


ADVERTISEMENT

Ubuntu :: Difference Between 10.04 NBE And Easy Peasy?

Apr 26, 2010

I'm using NBE on 10.04RC, I've just seen Easy Peasy 1.6 on Distro Watch so ran the live CD out of curiosity. Apart from Gimp I cannot see any difference between Ubuntu 10.04 NBE and Easy Peasy, have I missed something? Menu etc looks the same.. don't look at menu on their website as that's the one based on 9.04 [URL]

This is part of the release note:"Features: new boot system and new boot artwork (uses Plymouth); sports full removal of the HAL package, making EasyPeasy faster to boot and faster to resume from suspend; brand-new interface; built-in integration with Twitter, identi.ca, Facebook and other social networks with the MeMenu in the panel; the likewise-open package, which provides Active Directory authentication and server support for Linux, has been updated to version 5.4; new default open-source driver for NVIDIA hardware; improved support for NVIDIA proprietary graphics drivers".

View 4 Replies View Related

Ubuntu :: Cannot Install Wine - Easy Peasy 9.04?

Apr 13, 2010

I am running Easy Peasy 9.04 on an EeePC 901. I am trying to run Wine in order to install a wireless client for my university- they blocked Linux from ALL wireless because they have no one to support Linux (I.E only a windows client, no iPod or iPhone support, as they used to have). I want Wine to get me on the network while being able to work using Easy Peasy.

1. Will Wine allow me to use the wireless network in this way? When I try to install Wine, using the WineHQ guide [URL]...I have tried to "trust the repository", install Wine with sudo apt-get update and all other instructions. I just keep getting:

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://us.archive.ubuntu.com jaunty Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

[Code]...

View 3 Replies View Related

Ubuntu :: Easy Peasy - Add A Bottom Panel?

May 9, 2010

I'm running easy peasy 1.6 on my laptop, Loving it, Only problem is there is no bottom panel and i can't handle everything bunched up the top panel. How do i add a bottom panel, Is there a terminal command that will put one at the bottom or something?

View 1 Replies View Related

General :: Escape Commands In A Bashrc Alias?

Sep 17, 2010

I need to occasionally touch a file with the current timestamp as the filename. I would do so this way:

touch `date "+%Y-%m-%d_%H-%M"`.txt

However, I'd like to define an alias for this. When I try adding to the bashrc this:

alias td="touch `date "+%Y-%m-%d_%H-%M"`.txt"

the result is that the filename is the same during the entire session, since the `date ..` gets calculated just once during login...

How can I get the command to expand only when I call the alias? Or must I use a function for this?

View 1 Replies View Related

Red Hat / Fedora :: Adding Alias To .bashrc?

Feb 9, 2011

I have a script that I run using ./dom example.com.

I want to add an alias to .bashrc so that I can run it using "d example.com".

I have tried adding each of the lines below in turn but I still receive the error:
-bash: d: command not found

alias d="/bin/bash /home/user/dom"
alias d="./home/user/dom"
alias d="sh /home/user/dom"

View 3 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 Installation :: Unr Installation Instead Of Easy Peasy

Mar 7, 2011

I'm using an EEEpc 1000HE with Easy Peasy (Intrepid) that a friend installed for me (no Windows). Since as far as I understand the Intrepid servers are down, I want to update to UNR. I have never installed Linux before and don't really know anyone who can actually show me how. This is the computer I use for my studies and it is extremely important that my files will stay on through the upgrade (I have a separate partition where my important files are saved).

View 1 Replies View Related

Fedora Security :: Sudo NOPASSWD To BashRC Alias?

Aug 25, 2011

I've set up an alias in .bashrc (let's call it alias1), and am trying to set up a sudo NOPASSWD rule for that particular command. So far, I've attempted:
user ALL = NOPASSWD: alias1
user ALL=(ALL) NOPASSWD: alias1
But keep getting told I have a syntax error - presumably this is because visudo doesn't recognise alias1? I've already checked that alias1 works correctly, so I assume I'm just referring to it incorrectly.

View 6 Replies View Related

Ubuntu Networking :: Looking For Vpn Client With Specifics?

Oct 22, 2010

Is there a vpn client out there that:

1) doesn't require a group password

2) doesn't require a cert

3) can work with cisco any connect

the vpn server admin is being pretty obstinate and uncommunicative

is there such a program?

View 4 Replies View Related

Red Hat :: Regarding The Specifics Of RHEL 6 Licensing?

Apr 5, 2011

[As RHEL licensing has changed over time, please don't attempt to answer these questions unless either you are confident of the answer, or you have recent experience with these items.]

We are virtualizing our data center. We have a total of 23 HP blade units (2-sockets each) that will have hundreds of potential RHEL 6 virtual machines running on them within VMWare. All of these VMs (Set 'X') will need to have rhn_register run on them so that patches and updates can be routinely applied. A subset of X - call it set 'A' - of these VMs will require 12x5 support (Standard Support) from Redhat. Another subset of X - call it set B - which is mutually exclusive from set A, will require 24x7 support. For any given server, we can not yet identify which will be in Set A, Set B, or just in X alone.

If we decided we had no need for phone or web support, but wanted to be able to use RHN for patches, would purchasing one Self-Support entitlement for each VM suffice? We are probably looking at the Unlimited-number-of-guest-OS subscriptions. Is there any way to purchase Premium (24x7) support for some VMs and Standard (12x5) for others? Does the count have to be decided ahead of time, or can we decide on the fly?

In other words, can we wait until a VM crashes over the weekend to call Redhat and say "We need this VM on premium support" ? The motivation for this inquiry is that we don't have the budget to put 23 blade units' worth of VMs under premium, or even standard support. I'm curious how Redhat manages this, since subscriptions are done per physical server, not per VM. (When you're dealing with the unlimited-number-of-VM pricing.)

View 2 Replies View Related

Fedora :: Add Path In .bashrc By Commenting Out Old Path And Adding New One - Command Source ~/bashrc

Jun 14, 2011

When I add some path in .bashrc by commenting out old path and adding new one like this:

#EXPORT HOME_PLAY=/home/gem/old_play
EXPORT HOME_PLAY=/home/gem/play
EXPORT PATH=$PATH:HOME_PLAY

After saving above changes, I enter the command: source ~/.bashrc Now if I do echo $PATH, the path shows both the old PLAY_HOME and new PLAY_HOME. This is really bad and messes up a lot of things in my project. This problem only goes away if I logout or reboot, a rather very long process. What is happening is that the old path is added to new path element and the old path includes the old path element you want to remove.

View 10 Replies View Related

General :: How To Edit The .bashrc

Feb 27, 2011

I want something like

Code:

export ROS_PACKAGE_PATH=~/ros:$ROS_PACKAGE_PATH

to be done already for me when I open a new terminal. How do I edit the .bashrc so that this variable is always set already?

View 3 Replies View Related

Ubuntu :: .Bashrc File - General Guide To Customizing It?

Mar 3, 2011

I want to play around my .bashrc file, but I can't seem to find a general guide to customizing it. I just want a guide that will show me examples and explain them in-depth.

Does anyone where to find one?

View 2 Replies View Related

General :: Modify My PATH In Ubuntu Bashrc For A Software

Jan 25, 2011

I was installing a software in my Ubuntu 9.10 and after installation completed it prompted the following warning:

Warning: Your PATH does not point to your newly installed /home/pc/Reflex/software/bin/esorex.

To ensure execution of the newly installed software you should modify your PATH.

Note that "esorex" is the executable file and by typing its name in the Terminal the program starts.

What should I write in my "bashrc" as PATH to that program?

View 3 Replies View Related

General :: Appending To PROMPT_COMMAND In .bashrc

Sep 29, 2010

I have the following as my $PROMPT_COMMAND in .bashrc:

Code:
PROMPT_COMMAND='
if [ $TERM = "screen" ]; then
MYPWD="${PWD/#$HOME/~}"
[ ${#MYPWD} -gt 20 ] && MYPWD=..${MYPWD:${#MYPWD}-18}
echo -n -e "33k$MYPWD33\"
fi
'

I am trying to append items to my PROMPT_COMMAND in another script/on command line. If I do the following:

[Code]....

I get no error. I've echoed the value of $PROMPT_COMMAND in both cases and their output is exactly the same.

View 4 Replies View Related

General :: Echo Function In .bashrc?

Feb 25, 2010

I'd like a function in my .bashrc file that would allow me to pass text to it and echo the text to a specified file. I know it's simple as "echo 'text' >> file," but ideally, I would want to alias the function so I execute something like:

Code:
user~ $ write 'this is a test' with "write" being the function, and 'this is a test' being echoed to the file. I hope I explained that well enough.

View 3 Replies View Related

General :: .profile/.bashrc Not Being Read?

Apr 5, 2010

A cluster with a head node and compute nodes. An application with a couple of env variables (App_HOME, PATH) set in .profile (default shell sh). If I login to the head node/compute nodes on a terminal everything works fine. The correct env variables are set and the application works. However, when my application tries to do it, say ssh <compute node1> <application>, it appears the environment variables are not available. It only looks in the minimal /bin, /usr/bin type PATH. This tells that the .profile is not being read

View 2 Replies View Related

General :: Automate Sourcing .bashrc When Su - To Root

Oct 16, 2010

I need to source the my /home/me/.bashrc file every time I "su -" to root. Is there any way to automate this? I cannot edit any thing in the root's environment as it is shared by people.

View 7 Replies View Related

General :: Variable Expansion In .bashrc Not Working?

Feb 21, 2011

In my .bashrc file, I am attempting to set JAVA_PATH to a local path, using the HOME environment variable or '~' symbol as shown in the following examples.Using ${HOME}

export JAVA_PATH='${HOME}/Software/java/jdk1.6.0_24'

When I attempt to use ${JAVA_HOME} in a my ${PATH} javec is not found. To debug it, I tried a simple ls command:

ls ${JAVA_HOME}

and get the following error:

ls: ${HOME}/Software/java/jdk1.6.0_24/: No such file or directory

Using '~': Trying to use '~' symbol as follows:

export JAVA_PATH='~/Software/java/jdk1.6.0_24'

the ls command results in the same error, however javac is found.I prefer the '~' symbol anyway, but would like to understand why the ls command does not work for either, and why it seems as though ${HOME} is not being expanded.

View 2 Replies View Related

General :: Deleted .bashrc File Accidently

Apr 11, 2010

I accidently deleted my .bashrc file. I am a Debian user.Wat should i do??

View 7 Replies View Related

General :: Use Environment Variables In The .bashrc File?

Apr 16, 2011

I am trying to include my directory /usr/sbin in it's serch path for executable files using an environment variable. Would the input be: PATH="/usr/sbin"? And also upon start up, my shell should create the PRINTER environment variable which should resolve to the word sales...would that input be: PRINTER="sales"? If someone could help me with these two questions,

View 3 Replies View Related

General :: How To Create /.bashrc In My Home Directory

Nov 12, 2010

How to create /.bashrc in my home directory? do i make a folder naming it /.bashrc or i make its as a file?

View 7 Replies View Related

General :: Get Path Of Sourced Bashrc File?

Feb 11, 2011

I want to assign the path of a sourced sub.bashrc file to an environment variable. E.g. if I type (or execute) from a known relative location

$ source ../../someDir/sub.bashrc

the sub.bashrc should set a variable like

export MyOwnLocation=/home/user1/unknownlocation/someDir

The problem is I can't use $0 as reference because the script is only sourced not executed. I also don't want to hardcode the path because the location might change and there will be more copies. Is there an easy way to create this information from within the the sourced bashrc file? I use Gnu bash 2.05b on Suse Linux 9.

View 6 Replies View Related

General :: Joining Two Commands In The .bashrc File?

Apr 15, 2011

attending class in the Redhat Academy Website. I was wondering how can you join the two commands of cd/usr & ls successfully in the .bashrc file?

View 10 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

General :: Set Path For Different Software In The Bashrc File?

Aug 24, 2010

I have installed a software and set the variables in the .bashrc file to avoid setting them everytime I would like to run te software. Now I have installed a new software and would like to do the same thing in the .bashrc file.How can I add the path to the new software directory without affecting the first software path.

View 2 Replies View Related

General :: Where To Write JAVA_HOME? In .bashrc Or In .bash_profile

Feb 9, 2010

Where to write JAVA_HOME? In .bashrc or in .bash_profile? What's the difference?

View 1 Replies View Related

General :: How To Use The Alias

Aug 2, 2010

I am going through and old .cshrc file and it contains the following alias:

alias pwd 'echo $cwd'

I used to think that this is how pwd might have been implemented. But looks like thats not the case (because then this alias is meaningless).

View 2 Replies View Related

General :: How To Add New Alias

Feb 18, 2010

I was trying to add new alias "alias ls='ls --color=auto'" in .profile, but it never worked I displayed all the alias that are current available and did not see the one I just added and found this among them:

lsls $LS_OPTIONS
and the LS_OPTIONS is "-N --color=none -T 0"
this is in /etc/csh.cshrc file which I do not have permission to edit.
Is there way to overwrite it?

Also I do not see a .cshrc under my home directory. Can I just make one and source it? Or do I have to link it to some source file that already exists?

View 3 Replies View Related







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