Daily commands #9
Some general commands I’ve learned recently.
Ubuntu experience.
Wait for it …
Some general commands I’ve learned recently.
sudo iptables -t nat -I PREROUTING -p tcp -d $PUBLICIP --dport 80 -j DNAT --to 10.0.0.1:80
sudo iptables -A FORWARD -p tcp -d 10.0.0.1 --dport 80 -j ACCEPT
Spotify is probably the best way to listen music online and it’s also available on linux operating systems which is awesome. You can install it just by running the following commands:
Use commands as root
sudo -s
Use $USER
instead of your username in commands.
Display load usage on CPU, RAM or harddisk
sudo apt-get install indicator-multiload
Just discovered Geary, a simple and beautiful email client for linux. Still in its early days but I think it has a great potential.
Today I celebrate one week since I started this awesome little blog. Beer for everyone!
Since Docker is the future (satire) I decided to try it out.
If you’re running Ubuntu on a laptop machine you might be interested in squeezing more battery life out of it.
Open the Terminal and type
sudo gedit /etc/rc.local
Add the following line before exit 0
and save
echo 400 > /sys/class/backlight/intel_backlight/brightness
In my case the maximum value for brightness seems to be 976 so 400 should be ok.
I wanted to try the Ubuntu backup feature and got the following error, although the backup was completed.
Install Git
sudo apt-get update
sudo apt-get install git
Ubuntu 15.04 Vivid Vervet has this nice feature that lets you open the terminal inside a directory by hitting right click. This is how you add it on 14.04 LTS.
After some recent updates a lot of things are no longer working properly. Touchpad, brightness level controls from keyboard, high cpu usage and temperature. Also, for some reason only the first CPU core is recognized. Probably some other issues too but who has the patience. I’m using an old laptop with the Intel i5 first generation mobile CPU and onboard graphics so might be a driver problem.
I decided to trash everything and install Ubuntu 14.04 and so far so good.
Here we go again!
I’ve recently discovered Asciinema which lets you record and share your terminal sessions. It’s pretty neat and lightweight, the only downside is that if you make the recording public (required if you want to embed the video in your site) it will appear on the Asciinema homepage too, some people might not enjoy that.
Ad: DigitalOcean is a simple cloud hosting built for developers. Get 2 months free!