Tips from our Members

Share your own howto's etc. Not for support questions!

Re: Tips from our Members

Postby Atomic-Fanboy » 2013-06-04 11:47

Practice installing it first.

Install Debian as a guest OS in a virtual machine.
Play with it and mess around a bit.
Once you know exactly how to go and install it to a real hard drive parition, do so.
If you're not sure or confident, then you need to mess around more.

Read : Debian-Reference, Debian-Handbook, Debian Newbie's Guide, Debian-Wiki and anything else Linux or Debian related.

Have fun!
Intel B820 (Dualcore Celeron Mobile 1700MHz) - 8GB RAM
Debian 7.1 Openbox / Win7
Atomic-Fanboy
 
Posts: 13
Joined: 2013-06-02 17:09

Re: Tips from our Members

Postby manishthatte » 2014-05-13 13:33

Here is a tip to install google chrome:

1) Download package filenamechrome.deb to ur comp

2) open terminal

3) login to ur sudo

4) type: sudo dpkg -i <location>filenamechrome.deb

5) type: sudo apt-get -f install

6) Voila...find google chrome in Applications > Internet
Taking baby steps in Debian
User avatar
manishthatte
 
Posts: 15
Joined: 2014-05-12 02:46

Re: Tips from our Members

Postby JTunn » 2015-04-06 08:10

manishthatte wrote:Here is a tip to install google chrome:

1) Download package filenamechrome.deb to ur comp

2) open terminal

3) login to ur sudo

4) type: sudo dpkg -i <location>filenamechrome.deb

5) type: sudo apt-get -f install

6) Voila...find google chrome in Applications > Internet


Works like a charm, cheers! :wink:
JTunn
 
Posts: 2
Joined: 2015-04-06 08:07

Re: Tips from our Members

Postby Bloom » 2018-07-08 09:17

Determining your WAN ip address from the terminal (or in a bash script)

1. Using external means

Code: Select all
curl ident.me ; echo
curl http://checkip.amazonaws.com ; echo


Either of these two work fast. If you haven't got curl and you don't want to or can't install is, you can also use 'wget -O - -q' instead of 'curl -s'.

This one uses dig and the resolver of OpenDNS:

Code: Select all
 dig +short myip.opendns.com @resolver1.opendns.com


The next one is also very fast and uses icanhazip.com but only with commands built-in to every Linux:

Code: Select all
exec 3<> /dev/tcp/icanhazip.com/80 && # open connection
  echo 'GET /' >&3 &&                   # send http 0.9 request
  read -u 3 && echo $REPLY &&           # read response
  exec 3>&-                             # close fd


2. By internal means

Many internet home routers for cable or DSL show a status page with the WAN ip address which doesn't require a login. If so, you can get your WAN ip address from your router.

This is an example for DDWRT:

Code: Select all
curl -s router | grep "ipinfo" | awk -v FS="(IP: |</span)" '{print $2}'

or if a login is needed:
Code: Select all
 curl -s -u username:password router | grep "ipinfo" | awk -v FS="(IP: |</span)" '{print $2}'

Replace 'router' with the hostname or LAN ip address of your router.
Replace username and password by the username and password needed to login to the webinterface of your router.

Many Europeans (including me) have an AVM Fritz1Box router. That one yields the WAN ip address as well, but it's a little more complicated:
Code: Select all
curl -s "http://router.:49000/igdupnp/control/WANIPConn1" -H "Content-Type: text/xml; charset="utf-8"" -H "SoapAction:urn:schemas-upnp-org:service:WANIPConnection:1#GetExternalIPAddress" -d "<?xml version='1.0' encoding='utf-8'?> <s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'> <s:Body> <u:GetExternalIPAddress xmlns:u='urn:schemas-upnp-org:service:WANIPConnection:1' /> </s:Body> </s:Envelope>" |grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'

Replace 'router.' with the actual hostname or LAN ip address of your Fritz!Box router.
(source: https://askubuntu.com/questions/95910/c ... -public-ip)
User avatar
Bloom
 
Posts: 69
Joined: 2017-11-11 12:23

Previous

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable