Ubuntu :: Bash Set Aliases Not Staying?
Feb 23, 2010
If I set an alias in the terminal it stays.
Code:
alias echo="echo whoaoaaoaoaoaoaoa"
But...if I write a bash script with the identical command and execute it...
Code:
./setalias
echo
I get nothing... How do I fix this?
View 9 Replies
ADVERTISEMENT
May 16, 2010
So I checked the /etc/bash.bashrc file and it doesn't have the
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
I expected it to. So I checked the The /usr/share/base-files, and there it is. Problem is, it isn't part of the system wide bash, or is it? How do I activate the bash_aliases in Lucid Lynx?
Quick un-related question. Is ./ = /.??
View 2 Replies
View Related
Jun 14, 2010
I would like to create some aliases for bash shell. On other Unix/Linux machines I have done this using the alias command like this: alias rm rm -i
When I type that into a terminal on Ubuntu, it looks like alias is not installed. I get this:
bash: alias: rm: not found
bash: alias: rm: not found
bash: alias: -i: not found
I tried adding the alias to .bashrc instead, but then I get the same error message every time I start terminal. Just for fun I tried apt-get install alias, just to see what would happen, and it installed something called libperl-alias instead, and alias still doesn't work.
View 2 Replies
View Related
Sep 26, 2010
Output of my #alias command looks just as normal as one would expect:
Code:
alias +='pushd .'
alias -='popd'
alias ..='cd ..'
alias ...='cd ../..' .....
And still whenever I (as root) type in bash
#ll
which would be short for
#ls- l
i get output of the command
#ls -al
So where aliases for root overwritten? Usually I would expect .bashrc in the /root directory. Or at least .alias file. But there none of those in my current /root. So, my question is where root user gets it's aliases from? This concerns only root user. Normal user has .bashrc and I made up my own aliases in .alias and that's works jut fine. And yes I could make .bashrc file in the /root and .aliases where I would define my own things.
View 4 Replies
View Related
Jul 8, 2011
I just noticed that my .bashrc aliases (eg. alias www='cd ~/data/public_html') don't work from within tmux. They work fine from screen, though.
I don't think I've got anything special in ~/tmux.conf
Code:
# C-a just like in screen
unbind C-b
set -g prefix C-a
[Code].....
View 3 Replies
View Related
Apr 1, 2009
I am able to send a mail message to myself from a server without any problem...
But after I have updated /etc/aliases and added the line for all of root's mail to be routed to me....
Added:
root: myemail@company.com
and ran newaliases to implement it....
If I send a mail message to root, it does not get routed to my email...
View 3 Replies
View Related
Feb 5, 2011
when i zoom in gnome and then exit, it goes back to the old zoom. how can i set it to make it stay zoomed in every time i close/open it?
View 1 Replies
View Related
Feb 7, 2010
I use mousekeys for clicking/double clicking etc - this feature works great in Ubuntu, but I have recently switched to Xubuntu and MouseKeys seems to be turning itself off at random times. I haven't yet uncovered any rhyme or reason as to when or why this happens. I turn on mouse keys and at random times during computer usage mousekeys just turns off.
View 1 Replies
View Related
Feb 18, 2010
My mom has ubuntu 8.04.2, and it does not stay connected on the wireless usb cards. I tried 2 different ones, 1 azio and 1 is something else. But both get connected, but they die out after awhile. I am at work typing this, so I will probably try to move my router up higher or something, but it is weird it cuts out like every 15-30 minutes, and it starts at like 4 bars.
She is running it out of a live DVD( I Know, you shouldnt use a DVD as your main OS) but she only needs the internet, and uses google docs to save stuff or a USB stick. Anyone know what might be the cause of this disturbance in the connection. It is a cable connection, and the main modem is in my room, and we got a netgear router( maybe the problem?). I tried the same exact system/live dvd environment at my work place and it held connection pretty good, but I believe it did disconnect a few times as well.
View 4 Replies
View Related
Jun 4, 2010
I am relatively new to Ubuntu, and Linux, and I am having a problem with it that I was hoping to get fixed. Whenever I try to connect to my home wi-fi network, on Ubuntu 10.04 Lucid Lynx, it keeps disconnecting and reconnecting...which makes it really hard to download various things. It works just fine whenever I used "shudders" Windows Vista but whenever I try to use it on Ubuntu, it won't work properly. The router I bought, to replace my old, broken one, was Linux compatible, or at least that's what it was advertised as. The laptop is an HP G70 and the method I used to download Ubuntu was the Windows Installer.
View 1 Replies
View Related
Jan 11, 2011
So I have Ubuntu 10.10 64 bit, and I'm having strange problems with parts of windows staying up on screen after I close them. Check the attached files to see what I mean. I have Visual Effects turned off, and I've tried removing compiz altogether, but I still see this happen every once in a while.
View 5 Replies
View Related
Mar 6, 2011
I had a blue-hue issue with VLC and Totem.
I re-set the hue on VLC. Everything looks fine. Unfortunately, when I restart VLC it goes back to the blue-hue.
How do I get VLC to retain the hue?
View 3 Replies
View Related
Jul 18, 2011
It was just yesterday when I was using the Ubuntu Software Center, and it worked great. Today, when I open it, it closes right down within a second. If it helps, I'm using Ubuntu 10.04. I restarted Ubuntu, the problem still happens, anyone know what could be causing this?
View 2 Replies
View Related
Sep 1, 2011
I have Hughesnet (which sucks by the way, don't get it, I hate contracts). The FAP states that i can only download 375MB or it shuts me down, however, from 2 to 7 AM you can download all you want. so naturally i use a download scheduler. The only problem is that at night when i shut my laptop lid it disconnects from my router.
View 2 Replies
View Related
Jan 27, 2011
I've noticed that switching to Ubuntu about 6 months ago has made it noticeably more difficult to use the free wifi at my school. When I had Windows 7 on the same laptop, it was much easier to establish and maintain a connection. I know it's not the hardware. My question is: is there some security setting that makes it difficult to use public wifi on Ubuntu? Also, I don't have this problem at home on my WPA2 home wifi network.
View 1 Replies
View Related
Feb 22, 2011
I've had ubuntu installed for a bit now and I want to start using it as my main OS, but the wireless internet will not stay connected. It will connect at first and if I'm lucky it will stay connected for around 15 - 20 minutes. I have a toshiba laptop with an AtherosAR5007EG internal network card.
View 2 Replies
View Related
Jun 16, 2011
I've found that Abiword, which I prefer to Libre Office, when minimised does not remain arrowed on the launcher in 11.04, so it effectively can't be minimised. Can it be made to do this? I've clicked a few icons on the launcher like Brasero's and Synaptic's and found that they still all behave properly but I'm guessing there are other programs that have the Abiword glitch.
View 1 Replies
View Related
Jun 22, 2011
I've recently installed Squeeze on my laptop. All was fine (except for a small change I needed to make to the GRUB code in order to install and boot it) and I find the OS easy to use. I am sure I will be using it for a long time! I might even change my desktop over to Squeeze as well - I'm using Linux Mint 10 at the moment.I have found just one minor problem: the battery icon continuously shows 100% full, even when the indicator on the laptop is showing that it needs recharging - after about two hours' use.This has not happened before:although the laptop is about two years' old, I have had this battery for only a month, so it has not yet done much work!
View 4 Replies
View Related
Dec 5, 2009
I'm getting increasingly aggravated with tis so I figured I would ask and see if there are any insights on this.
I'm currently running F12 on a Dell XPS m1330 laptop. Everything is going great with the exception of pulseaudio. Rather than using the internal mic and speakers I'm using external (usb) Bose companion speakers and and external mic that is integrated into my Microsoft Lifecam Cinema webcam.
Now, when these work, they're spot on. No issues at all. HOWEVER, pulseaudio frequently disregards them and tries to use something else (the internals) or just stops using them. Nothing crashes, nothings broken, they just get "deselected". This happens when I back out of a game or program, log out and login, etc. I then have to jump through a series of hoops to get it configured back for the "correct" setup.
View 3 Replies
View Related
Sep 15, 2015
I recently installed 8.1, the Gnome Classic DE isn't anything near worth using now. What happened to The Gnome Classic that I know and love? I don't mind MATE too much, if only the applets I put in the panel would stay put between logins instead of manifesting wherever The OS decides IT wants them instead of where I placed and locked them.
I'm looking for a way to get back the Gnome Classic I know and love from Wheezy (first choice), or get the applets in MATE to stay where I put them (second choice).
View 7 Replies
View Related
Jun 21, 2011
On my fresh installed 11.4: I boot the desktop entry in GRUB, and it's doing a fast boot. It loads INIT and switchs to runlevel 7. Then the comment:
Code: init: No more processes left
Or something like that. after a CTRL+ALT+DEL and a press on enter during the driver load, it all works fine. Is that just a standard fault, or should I do something? If so, what?
View 9 Replies
View Related
Sep 20, 2010
i want to install a software in my linux machine staying in another user that i have created .It is asking for root access for some command to be execute during installation process.when I am trying to execute "sudo -s" its showing " is not in the sudoers file. This incident will be reported.".what next will i do.I am in my ubuntu machine.
View 3 Replies
View Related
Nov 21, 2009
I install fedora 12, but a problem shows up. The sound is too low, so I go to the terminal and run alsamixer. Pulse audio is for default, so I check Mi card Hd Nvidia and make the sound louder, but wend I shut down the PC and star up again, the settings are Low again. So I don't know how the set up the system to save the parameters.
View 3 Replies
View Related
Oct 15, 2010
I can connect to my school's wireless network using the standard network manager, but often (not always) it repeatedly disconnects and reconnects every few minutes. Occasionally it also prompts me for the security information again (even after it previously connected successfully).
By running iwconfig when it's on the fritz, I can see that it's often switching access points for the network - which is what I think is causing the problem. It disconnects and reconnects even when the signal strength for the current AP is fine, and it will often switch to an AP with a weaker signal strength.
$sudo lshw -C network
Code:
description: Wireless interface
product: Realtek Semiconductor Co., Ltd.
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:05:00.0
logical name: wlan0
[Code]...
View 4 Replies
View Related
Jan 16, 2010
When I set up Twin View in the nVidia config tool (as either a regular user or as root), it only lasts until I log out and log back in (i.e. restart x) or until I restart the machine. In either case once I get to the log in splash screen again, it is only operating on one monitor, and when I log in I have to reconfigure in order to get Twin View back. How can I get the configuration to stay?
More info below:
I just installed opensuse 11.2 on an AMD 64 bit 3800. It has an nVidia GeForce 7600 GS card. I installed the nVidia driver no problem and can access the nVidia config app as a regular user or as root. Both access via KDE run level 5. That is, in a GUI desktop environment. I set up Twin View fine (it is kind of clunky process, but it does recognize my monitor resolutions fine) and click apply and I get the twin view I want. I clicked on save x config but all it does is bring up a file save dialog with a 'browse' button. Isn't this supposed to automatically know where the X config file is and update it? If it isn't, what file am I supposed to look for to save over? I looked in /etc/X11 and only found the following files:
./rstart/config
./xdm/xdm-config
./xdm/SuSEconfig.xdm
./fs/config
./proxymngr/pmconfig
View 2 Replies
View Related
Feb 16, 2011
I installed postfix on my ubuntu server.I have created some users.How can I create e-mail aliases?For example, I have a user named "light" and I want to create for him an e-mail address.
View 3 Replies
View Related
Feb 10, 2011
In an old thread mzilikazi posted several aliases for several common apt-get, apt-cache, dpkg commands and options. I thought this was a great idea and adopted my own list. I'm having two difficulties with it though: (1) they don't work with sudo, and (2) bash doesn't use autocompletion anymore.
1. sudo I've placed the aliases in the .bashrc profiles of my user and of root, and logged back in. As root the aliases work. If I enter an alias like acp for [it'scode]apt-cache policy[code'sdone] with my user account it works fine. Sweet sudo, however, apparently doesn't support bash aliases. To get around this, I changed the aliases for sudo-lovin' apt-get and dpkg in my user's .bashrc from [code!]alias agi="apt-get install"[!edoc] to [code!]alias agi="sudo apt-get install"[nocode]. Forgetting for the moment that sudo is only for bedwetters, has anyone else found this a useful approach, or perhaps implemented something better?
2. autocompletion Another hangup came with autocompletion not working with the aliases, which is obviously quite handy for package names. A google I once knew told me a thing or two about that. I don't get down with funky-chunky foreign web scripts I can't interpret... which so far is all of them... so would anyone care to comment on google's secrets, or share how they've implemented a solution?
View 2 Replies
View Related
Sep 8, 2010
but I tried to resolve all forms and failed. Want to add some aliases to my system, I put the snippet below in my /etc/profile but nothing happened. Also tried to put in ~/.profile and ~/.bashrc but nothing worked.
What am I doing wrong?
## /etc/profile
# Section my own aliases
alias cp="cp -ip"
alias mv="mv -i"
alias rm="rm -i"
alias grep="grep --color -i"
View 5 Replies
View Related
Oct 15, 2009
Upon a fresh install of Fedora 11 (and as a Fedora n00b), I noticed there are several aliases defined for me.
Code:
$ alias
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
[code]...
files had these aliases. So where are they?
View 14 Replies
View Related
Aug 27, 2010
Code:alias pms='wmname LG3D && pms'So that PS3 Media Server has a GUI and not just a blank window... this works if run from terminal but not when typed in my menu... how can I get Awesome to use the alias? Using:Code:{ "PS3 Media Server", "wmname LG3D && pms" }doesn't work.
View 2 Replies
View Related