Alias don’t function Ubuntu Mate 19.04

Folks, i setup a alias on my Ubuntu Mate 19.04 like this

alias up=’apt-get update && apt-get upgrade’

i setup on

nano /etc/bash.bashrc

source /etc/bash.bashrc

put that on the end of the file

but when i do the up “command/alias” they return to me this:

sudo up: commmand not found

if i do only: up

return to me this:

Reading package lists… Done E: Could not open lock file /var/lib/apt/lists/lock – open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin – RemoveCaches (13: Permission denied) W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin – RemoveCaches (13: Permission denied)

Can you help me?


Loading a page for its defined path (url alias) and all its subroutes

I would like to define a Content Type that I could route into its defined url-alias and all its sub-routes.

For example: If I created a node of my content type and set its url alias to ‘/page’ – I would like to load that content in all the following cases:

/page /page/subroute1 /page/subroute2 /page/subroute2/subroute_2_1 

How do I achieve this?

Changing profile pic for a Google domain-level alias

My ‘Google for Business’ apps domain is and in this setup is set up at the alias. So if I create an email, the other alias email is created automatically (I cannot disable it), which means the following emails are essentially the same: (I created this in Google Apps admin) (This is automatically in place)

The thing is, I need to often send email from

When I login to gmail I have to use as the user ID because that’s the main account. My profile pic works fine for this one. But when I then send email as, I cannot see the profile pic.

Where can I set up the profile pic for an alias address that’s at a domain level — in google admin there’s no place to do this.

(Aliases should use the same profile pic anyway, by default. This is a silly and tedious setting from google.)

Thanks for any pointers.

How can I send a DKIM signed email from a domain alias in Gmail?

I have two domains setup with the Google app. Domain A is the primary domain, and domain B is a domain alias to A. Both domains have valid DKIM keys generated, added to the domains DNS as valid TXT entries, and Google apps shows both as ‘Authenticating Email’ in the Admin console.

When sending email from domain A it has the correct ‘DKIM-Signature’ header for domain A and shows as being signed in Google etc. However when I send email from Domain B it has the ‘From’ header as Domain B but the ‘DKIM-Signature’, ‘Sender’ and ‘Return-Path’ headers from Domain A. This is resulting in mail from Domain B failing the DKIM check.

I have set up the domain B email as a ‘Send mail as’ address under Settings -> Accounts, and tried both using the default ‘Send through ‘ as well as trying ‘Send Through SMTP Servers’ using to no avail.

Any ideas on how to make this to work?

Stale Pathauto Alias

I’m just curious how other Drupal developers handle nested path aliases when they are based on another page’s url pattern.

I have a product landing page (it’s a “basic page” node). When it’s created, right now, the url is:


For my product nodes, I set up a path alias to be


This makes my product detail pages nicely nested under “product.” This works fine for a while. But later, if someone changes the product landing page url, the alias for the product nodes will not match.

Say someone edits the product landing url to be:


Then I have a /widgets landing page and a bunch of product nodes with urls like /product/product-name.

Is there a nice way to handle this? Or is it up to content creators to just know they need to update it?

Get connection options for host by alias in Ansible playbook

I’ve got a role, running against localhost:

--- - hosts: localhost   tasks:     ...     - name: Push code to target host       shell: scp -P "{{ ansible_port }}" "{{ home_dir }}/{{ project }}.tgz" root@{{ target_server }}:/home/teamcity/ 

I run this playbook with target_server env var, which is used in one other subtask as target host:

ansible-playbook \ -i 'ansible/hosts' \ --extra-vars "target_server=stage" \ ansible/deliver.yml 

Is there a way to get connection options for scp, describied in ansible/hosts by server alias, passed as env var? The goal is not to pass ansible_port or other connection options twice, but get from already passed server alias target_server.

In other words, if I run playbook --extra-vars "target_server=stage", how can I get ansible_hostname and ansible_port for host 'stage' to use as scp connection options?

Give a File on Google Drive Both a Name and an Alias

I have a bunch of shared files on Google Drive with names like file-061, file-102, file-125 and so on. I’d like to have an alias, say, file-current, that points to the most recent instance of the numbered files. It would be no trouble to update the alias manually as these do not change often, and there are only four sets of them.

How can I accomplish this with Google Drive, other than by uploading two copies of the most current file?

NB: I know about “aliasing” files into multiple folders. I don’t think that helps me, but maybe I’ve missed something.

Why the alias setting can’t work?

Environment: debian9 + apache2.

uname -a Linux debian 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3 (2019-02-02) x86_64 GNU/Linux  /usr/sbin/apache2 -v Server version: Apache/2.4.25 (Debian) 

The configuration file.

sudo  cat  /etc/apache2/sites-enabled/localhost.conf <VirtualHost *:80> DocumentRoot /home/debian9/tmp <Directory /home/debian9/tmp> Options FollowSymLinks AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/ CustomLog /var/log/apache2/ common </VirtualHost> 

localhost/mydoc/build/html/index.html can open the index.html located /home/debian9/tmp/mydoc/build/html/index.html.

Now i want to set an alias for the long url,add a line in /etc/apache2/sites-enabled/localhost.conf.

Alias  /mydoc   "/home/debian9/tmp/mydoc/build/html" 

Restart apache2.

sudo systemctl restart apache2 

Input localhost/mydoc in firefox,it shows an error info:

 You don't have permission to access /mydoc/build/html/ on this server. 

Let’s show the permission.

ls   -al  tmp/mydoc total 32 drwxr-xr-x 4 debian9 debian9 4096 May  5 12:37 . drwxr-xr-x 4 debian9 debian9 4096 May  5 12:38 .. drwxr-xr-x 4 debian9 debian9 4096 May  5 12:38 build 

And compare it with index.html.

debian9@debian:~$   ls   -al  tmp/mydoc/build/html/index.html -rw-r--r-- 1 debian9 debian9 3918 May  5 12:38 tmp/mydoc/build /html/index.html 

Why the Alias setting can’t work for my apache2?

Have alias URL remain alias instead of resolving to target URL

I have a Drupal site with an Event content type. This content type has an Event Categories taxonomy field on it, which, as you can guess, categorizes events.

When you navigate to the URL of a particular term of that taxonomy, you see a sort of calendar view of Events that are tagged with that term.

These term pages have aliases set up, so that instead of, for example, taxonomy/term/436, you can see the taxonomy term page by navigating to, say, /calendar/special-events.

This aliases are used to populate a menu which is used to navigate the calendar and see events only pertaining to one particular taxonomy term.

I am now tasked with integrating this sort of ‘virtual calendar’ (the menu and the taxonomy term pages) into an internal section of the site, which users have to log in to see.

We’ve created the internal section using the context module, using the URL (and user roles) as a condition of the context. For instance, the page /internal/calendar triggers the context to add blocks and other features that make up the internal part of the site (because the URL begins with internal).

However the problem arises when I want to use the calendar menu to place the calendar inside the internal site. The menu links are set to /calendar/special-events— which, if an internal user navigated to, they would lose all the context that makes up the internal site. They will have navigated out of the internal site at that point.

I began to create a second menu, which was essentially the same as the Calendar menu, but all of the links began with /internal/calendar, /internal/calendar/special-events, etc. Sure, it’s duplication, but it’s more or less manageable.

The problem arose when I tried to add a second alias to the taxonomy term page. I went to admin/config/search/path and added an alias, so that the taxonomy term had two aliases:

/calendar/special-events             /taxonomy/term/213 /internal/calendar/special-events    /taxonomy/term/213 

However, when I navigated to /internal/calendar/special-events, the URL in the browser became /calendar/special-events, which is the alias set on the taxonomy term page (the default, or primary, I guess you could call it). So because the URL doesn’t contain /internal, then the context didn’t trigger, and I effectively navigated out of the internal site.

My question: How can I set up a second alias for a taxonomy term page so that it doesn’t get re-written to the default alias?

I also tried setting up a URL pattern at /admin/config/search/path/patterns:

Internal calendar   internal/calendar/[term:name]   Taxonomy term     Vocabulary is event_categories 

But with the pattern, when I navigate to internal/calendar/special-events, The URL remains as such, and the page renders the context items, but the content itself is rendered as a 404. So this does not appear to be a solution each.