32
votes
Create a shortcut for URL?
This solution is multi-platform also:
Create a new simple text file with an .html extension and whatever name you want.
Edit the file with the program you want and add this content:
<html>
...
20
votes
URL protocol handlers in basic Ubuntu Desktop
xdg-mime
Maybe more elegant (in this example I use "apt", change it for any other scheme):
Check registered MIME-types in /usr/share/applications/defaults.list.
Add the apt.desktop file (...
18
votes
How to access micro8ks's dashboard web UI?
I just use
microk8s dashboard-proxy
which results in
Checking if Dashboard is running.
Dashboard will be available at https://127.0.0.1:10443
Use the following token to login:
...
16
votes
Accepted
URL protocol handlers in basic Ubuntu Desktop
Open ~/.local/share/applications/mimeapps.list and add a line like:
x-scheme-handler/apt=apturl.desktop
9
votes
Accepted
Extracting website URL
Open the terminal and type:
sudo apt install lynx
lynx -dump -listonly -nonumbers "https://www.ubuntu.com/" | uniq -u
This command improves upon the previous command by redirecting the output to ...
9
votes
How to open a link in browser from gedit?
This can be done with the nice gedit plugin open-uri-context-menu. I have tested this plugin on the three supported LTS releases:
Xenial Xerus LTS (gedit 3.18.3)
Trusty Tahr LTS (gedit 3.10.4)
...
9
votes
Create a shortcut for URL?
I needed something like this, but Gnome (now?) requires *.desktop files to be in specific locations, so using those directly wouldn't solve my problem, as I wanted web-links for reference mostly in ...
7
votes
How can I encode and decode percent-encoded strings on the command line?
Similar to Stefano ansqer but in Python 3:
python3 -c "import urllib.parse, sys; print(urllib.parse.quote(sys.argv[1]))" æ # to percent-enconding
python3 -c "import urllib.parse,...
6
votes
Create a shortcut for URL?
Add this to your ~/.bashrc:-
function createUrlShortcut {
if [ "$#" -ne 3 ]; then
echo "Illegal number of parameters. Usage : createUrlShortcut Name Url FileBaseName"
fi
printf "[...
6
votes
How do I change hyperlink colours in LibreOffice Impress?
Tools > Options > Application Colors
Then scroll down to "Unvisited links" and "Visited links"
6
votes
Create a shortcut for URL?
Additionally, like all solutions that involve a command line, one can do it with a the mouse in three steps in a Chromium like browser :
Click on the menu (the three vertical dots on top right).
...
6
votes
Accepted
How to access micro8ks's dashboard web UI?
You can get the IP with
kubectl -n kube-system get service/kubernetes-dashboard -o go-template={{.spec.clusterIP}}
which shows the IP address which you need to access with https:// prefixed in your ...
5
votes
How to change what xdg-open does with ssh://user@ip liniks
For any other late comers, with more recent versions of this issue - This link was the total solution for me: https://lithostech.com/2014/04/get-ssh-protocol-links-working-in-ubuntuchromeunity/
...
5
votes
How to reset external protocol handler in Chrome?
On Windows, this setting now appears to be located at
~/AppData/Local/Google/Chrome/User Data/Default/Preferences
Do a search for excluded_schemes. It will be a dictionary of custom protocol names ...
5
votes
Extracting website URL
See this answer from superuser.com:
wget --spider -r --no-parent http://some.served.dir.ca/
ls -l some.served.dir.ca
There are free websites which will do this for you and convert the output to ...
5
votes
Accepted
From what url snaps are downloaded?
The first two hosts it will hit are api.snapcraft.io and dashboard.snapcraft.io. However the snaps are delivered via a content delivery network (two in fact, I believe) so it's not as simple as one ...
4
votes
Accepted
Location of the URLs of the open tabs of Chromium browser in Ubuntu
We can find which are Chromium's directories within user's home directory in this way:
find $HOME -type d -name *mium -exec echo {} \;
The result should be:
/home/<user>/.config/chromium
/...
4
votes
Accepted
how do I parse this url in ubuntu
Use this command:
echo 'https://vimeo.com/library/videos/angular-fire-theme/table-of-contents' | cut -d / -f6
This splits the URL (taken from standard input, hence the echo) by / and outputs the ...
3
votes
Location of the URLs of the open tabs of Chromium browser in Ubuntu
$ perl -nwle '$h{$_}++ for /http[[:print:]]+/g; END{print for sort keys %h;}' \
~/.config/chromium/Default/Current\ Session
is a reworked version of @pa4080's (that I was unable to simply add as a ...
3
votes
How to open a link in a PDF with the error: "Unable to open external link. Failed to execute child process “sh” (Permission denied)"?
If the Brave browser is set to the default browser, this error occurs, but it doesn't occur if Firefox or Chrome are set to default. I have posted an issue here.
3
votes
Accepted
recursive curl -l to get end state of a webpage
To follow redirects use the -L flag:
curl -L mywebpage.com
Manpage of curl:
-L, --location
(HTTP/HTTPS) If the server reports that the requested page has moved to a different location ...
3
votes
Accepted
libreoffice calc: Importing csv full of URL's
Ok, I got an answer. You need to just find and replace (under Edit):
http:.*|file:.*
with:
=HYPERLINK("&","Some text here")
Then check the box for: "regular expression" and finally, "replace ...
3
votes
How to download a file from a website via terminal?
I did these steps
From Oh-my-zsh,
brew install wget
wget https://github.com/sencha-extjs-examples/QuickStart/archive/master.zip
3
votes
How to access micro8ks's dashboard web UI?
You can run
kubectl describe service/kubernetes-dashboard -n kube-system
and then you can go to the Endpoints specified https://<ip>:<port>. So in my case https://10.1.43.61:8443
Name: ...
3
votes
Accepted
"Invalid desktop entry file" when using "Type=Link" in .desktop files on Lubuntu 20.04
The only solution I found is to directly use the .desktop entry as firefox application:
[Desktop Entry]
Type=Application
Name=Open Askbuntu
Exec=firefox https://askubuntu.com
Lxqt seems to take the ...
2
votes
How to change what xdg-open does with ssh://user@ip liniks
I wanted to change what xdg-open does with ssh:// links, to replace konsole with yakuake as handler. And this is what I did on my Kubuntu 15.10 (KDE Frameworks 5.15.0):
found out what's the handler:
...
2
votes
Create a shortcut for URL?
This way will work in All OS {Android, Linux, Windows, Mac}
Create a File With your shortcut name with extension .html
e.g. google.html
open in text editor and paste
<script>
window.location....
2
votes
Accepted
Download a file from a share download link with wget
I found a solution: https://superuser.com/a/1239026
It's an firefox plugin that captures the link with session ID etc..
and it provides a command you could paste in the console for curl or wget.
If ...
2
votes
Create a shortcut for URL?
Edit: using Type=Link is superior (see accepted answer).
As some others suggested, a desktop file launching the browser with the url as an argument works really well.
I would like to add that you can ...
2
votes
Create a shortcut for URL?
You can just copy the following into a text file and save it with a .desktop file extension in the desktop folder
[Desktop Entry]
Type=Application
Exec=google-chrome http://google.com
Name=the name of ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
url × 120firefox × 12
command-line × 11
apache2 × 9
google-chrome × 7
shortcuts × 7
server × 6
bash × 6
browser × 6
networking × 5
gnome × 5
lubuntu × 5
.desktop × 5
wget × 5
downloads × 4
webserver × 4
14.04 × 3
12.04 × 3
18.04 × 3
scripts × 3
dns × 3
chromium × 3
thunderbird × 3
curl × 3
https × 3