Debian :: Add Some Aliases To System?
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
ADVERTISEMENT
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
Nov 10, 2010
Not really a linux specific thing I have gooled the heck out of it and tried nslookup -a and a few other options nothing gets me what I need. The question is I have a machine with several aliases in dns. How do I do a nslookup and display all the aliases for a system.
I am trying to see if something it aliased correctly but i cannot list all the names a system is know by.
I am sure its something simple I am missing with a switch.
View 2 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
Oct 28, 2010
I recently P2V'd a debian box, and the aliases file (/etc/aliases) is no longer working. As the physical machine is still working, this machien has been renamed to buzz1 [from buzz].
I changed /etc/mailname, /etc/exim4/update-exim4.conf.conf [and ran the update-exim4.conf script] and also ran newaliases. however it still does not seem to be applying the aliases file:
Live Physical Machine:
buzz:~# exim -bt root@buzz.domain.com
R: system_aliases for root@buzz.domain.com
R: smarthost for cronjobs@domain.com cronjobs@domain.com
<-- root@buzz.domain.com
[Code]....
View 7 Replies
View Related
Apr 3, 2010
I'm facing a strange networking problem here. I'm running Debian Lenny in an OpenVZ container and my network setup is as follows:
link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
[code]...
View 4 Replies
View Related
Dec 21, 2010
Related to my last post in that it is another email issue, but something else I am having a problem with.
Debian Lenny on virtual KVM (32-bit, v5.0.7)
With Postfix it is necessary to have an alias for root, eg: root: someuser
In theory, and as far as I am aware, this can also be something like: root: someone@someaddress.tld
When I use the latter, though, the following happens whenever my system tries to redirect root email messages, but not when I use the root: someuser method in the aliases file (and, yes, I do know to use newaliases after amending the file).
The firewall is not an issue (tested with and without the firewall), nor are the resolvers, and the DNS for accounts on the box is all okay and fully propagated. Also, changing the email address to something like this.address@google.com does not work, either, - same error message.
View 2 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
Jan 25, 2010
I need a How to: on setting up IP Aliases for Apache2 IP-Based Virtual Hosts
View 2 Replies
View Related
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
View Related
Aug 5, 2011
Below are few of my questions that i am worried about.
1. alias command will list me all aliases. How to find where these aliases are located?
2. Please suggest me few resources on XWindows
View 5 Replies
View Related
Jan 17, 2010
I wrote a small script :
#cat myscript.sh
NEWFILE=dojas.sh
touch $NEWFILE
in that script I create some alias commands an pipe them to a new shell script (called dojas.sh) however after execution of that script , I do not see the aliases jan1 and jan2 in my terminal. Even if I execute the dojas.sh srcipt manually , I do not see the aliases in the alias output of my terminal. The only way I can make the aliases active is do the following : cat dojas.sh copy and paste the alias rules, and they are active in my session. How can I make sure that I can activate aliases and they are active in my terminal from a script ?
Note : I am not interested in .bashrc file, I want them to be active in my current session.
View 5 Replies
View Related
Jun 2, 2011
I have /var on it's own partition. Should i direct mail, in /etc/alises, sent to root to my normal local user or will /var end up getting filled up with mail, if i do that?Also:I went on the forums for dynDNS.com, explaining that i was setting up a network that includes a web server and a mail server. They rightly pointed out that i only needed to set up a DNS A record for webserver.dyndns.org. The mail server would be located by this DNS A record, as both machines share the same external I.P address(the external I.P of my ADSL router). So my mail addresses could be me@webserver.dyndns.org. So both machines would be reachable with the same DNS A record, and port-forwarding on my ADSL router would determine which host got which requests. That's what they said i should do for my scenario.
Bearing this in mind what should the values of $myhostname, $mydomain, $mydestination and $myorigin be?
My current thoughts, on the simplest way to do this, are:If $myhostname is mailserver.webserver.dyndns.org, then $myorigin can be webserver.dyndns.org, then $mydomain is webserver.dyndns.org and $mydestination has it's DEFAULT setting(mydestination = $myhostname localhost.$mydomain localhost).This the simplest workable approach right?, if not what are the best values for these parameters?.Also I have /var on it's own partition. Should i direct mail, in /etc/alises, sent to root to my normal local user or will /var end up getting filled up with mail, if i do that?
View 1 Replies
View Related
Dec 14, 2010
On a small Linux appliance using Busybox to provide the usual suspects, I'd like to create an alias "ll" that would translate to "ls -al" like I'm used to. Apparently, "alias" is not part of Busybox:
Code:
> echo $SHELL
/bin/sh
> ls -al /sbin/sh*
lrwxrwxrwx 1 1000 1000
7 Jan 1 2007 /sbin/sh -> busybox
> alias ll='ls -al'
alias: not found
View 2 Replies
View Related
Sep 8, 2010
Fetchmail +sendmail played nice together, until I installed hylafax, and added an alias it requires. I just ran the usual makemap command on aliases to make aliases.db, and that's there the trouble began. Fetchmail appeared to hang, at any email account that had email in it, at the RCPT stage. I finally read the warning at the top of /etc/mail/aliases that says to run newaliases.
View 1 Replies
View Related
Aug 22, 2010
How can I get aliases working as root? Here is my Slackware 13.1's /etc/profile file followed by my *Slackware 11's* /etc/profile file [as a comparison]. My Slackware 11's root aliases work in addition to my username ones *without* needing a separate .bashrc in my home dir. In S13.1 I have created a .bashrc for my username and it works fine, but I want those same aliases operating when I'm root, and cannot for the life of me figure how to achieve it.
S13.1 /etc/profile:
# /etc/profile: This file contains system-wide defaults used by
# all Bourne (and related) shells.
# Set the values for some environment variables:
export MINICOM="-c on"
export MANPATH=/usr/local/man:/usr/man
export HOSTNAME="`cat /etc/HOSTNAME`"
export LESSOPEN="|lesspipe.sh %s"
export LESS="-M"
# If the user doesn't have a .inputrc, use the one in /etc.....
View 15 Replies
View Related
Jul 18, 2010
I am running KDE and currently using Konsole as my terminal emulator. I am finding that if I start a konsole from the menu list I can type alias and see a list of default aliases plus the ones I have define in my .bash_login file.
The problem seems to occur on restarting KDE. I generally leave everything open and when KDE restarts everything comes back. Saves me having to do it myself.
Unfortunately when the konsoles pop up they no longer have the aliases. There will be none of the predefined ones, nor the ones that I have defined.
Would I be better off using a more standard alternative like xterm in this case or is this something that has a simple explanation?
I suspect it has something to do with not being a login shell. If I look at the Profile in the menu for the konsole it specifically says "/bin/bash -l" for the command on the new one that I opened up, but "/bin/bash" for the one that was automatically brought back.
Is there some reason KDE would do this? Running Slackware 13.1 64 bit. KDE 4.4.3
View 4 Replies
View Related
Jun 18, 2010
My system is F13 (upgraded from F11) with all of the latest patches available. I haven't gone through and combined all of the rpmnew configuration files, but none of them seem to address networking.I'm trying to get subinterfaces (secondary IP addresses) to work in Fedora 13. So far, I have been able to configure them on the command line, but not to get them to persist on booting.My base address for the NIC is: A.B.C.254. It is statically assigned.
View 5 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
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
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
May 10, 2009
I sent a mail to an aliases group from MS office 2003/2007 outlook. But every reciepient got four copies for that mail. It also occured another aliase group. The mail is configured in Linux Postfix.
View 2 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
Jul 22, 2011
I'm trying to make it possible to see my logfiles on a browser. For instance, I want to browse to [URL] and see a listing of all my logfiles. Because the logfiles reside outside of the web content directory, I'm trying to set up an Alias. Here's how I'm doing it:
Code:
Alias /logfiles /path/to/my/logfiles
<Directory /path/to/my/logfiles>
Order allow,deny
Allow from all
</Directory>
Then I restart apache /etc/init.d/httpd restart
When I browse to [URL] I get a 404. I've been online all morning looking for a solution and all I find is what I've already done. BTW, this is a RHEL 5 on a LAMP stack.
View 6 Replies
View Related
May 6, 2010
I have a sendmail server in my compani and I have a aliase that send one email for every employee but there are people that is not employee sending mail for this aliase and I need to avoid it some one have to do that.
View 10 Replies
View Related
Jul 27, 2011
For a project that I have been assigned to, I need to send emails to a business partner(business_partner.com) from one production server. However, my emails neither reach their destination nor bounce back to me.
Working with our business partner's IT support, the following error was discovered in their maillogs:
Quote:
Further analysis by my IT support shows that emails are successfully sent out ("Message accepted for delivery"):
Quote:
The app I coded is not using a public internet email address (e.g. me@hidden_domain_name.com) to send these notifications.
Instead, it uses an intranet email address (the server's where my code resides: user_name@servername.hidden_domain_name.com).
We created an alias but it made no change. Would adding my public internet email address to "trusted-users" file (we use sendmail)
View 3 Replies
View Related
Mar 22, 2009
I want to write a little time-saving alias for my .cshrc file that will move files and then cd to the directory I've moved them to. What I can't quite figure out is the syntax to say 'move all the arguments except the last one.' Here is what I have:
alias follow 'mv !:1-$-1 !:$; cd !:$'
This actually seems to work, but it also gives me an irritating error:
mv: cannot stat `destinationdirectory/-1': No such file or directory
Similarly, I tried:
alias follow 'mv !:*$#argv-1 !:$; cd !:$'
Again the move and cd are successful, but again there is an error:
mv: cannot stat `destinationdirectory/0-1': No such file or directory
View 1 Replies
View Related
Aug 17, 2010
let me show you my config and tell me if its ok
Its pretty simple:
eth2 -> 192.168.1.0
eth2:0 ->192.168.50.0
eth1 and eth0 are the net interfaces, 1 router each to provide wan failover (not implemented here)
Hosts:
loc1 eth2:192.168.1.0/24
loc50 eth2:192.168.50.0/24
Interfaces
net6 eth0 detect
net7 eth1 detect
- eth2 192.168.1.255,192.168.50.255
Masq
eth0 eth2
eth1 eth2
eth2 eth2
Policy
all all ACCEPT info
Rules
SECTION NEW
REJECT loc50 loc1 all
Zones
fw firewall
net6 ipv4
net7 ipv4
loc1 ipv4
loc50 ipv4
Problems / Doubs:
1) Is the hosts file required?
2) I guess I need doing masq from local to each external, and also from local to local even if they share the same interface, hence the eth2 eth2 in the masq file...
3) So is shorewall well implemented in these scripts to handle aliases?
View 2 Replies
View Related