Posts tagged with "Ubuntu"

Free SSL Certificates with LetsEncrypt and Ajenti-v

This is a quick post on how to use LetsEncrypt SSL certificates on your Ajenti-v setup .

Ajenti-v will probably be supporting this natively at some point, there is an open issue on their Github here. But in the meantime you can just follow these steps to start using LetsEncrypt now.

You can click this link and head to ‘Getting Started’ or you can just run these commands to install LetsEncrypt in the folder of your choice:

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt

So now LetsEncrypt is installed, LetsEncrypt doesn’t yet support nGinx and since that’s what I’m using I’ll assume that’s what you’re using, the automatic function won’t work for us so we will have to use the ‘certonly’ option.

Run the following command and follow the steps.

service nginx stop
./letsencrypt-auto certonly

Now you should get a message like:

Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/yourdomain.com/fullchain.pem.

You can now restart nginx by running:

service nginx start

Now that we have the cert, it’s time to see how we fit this into Ajenti. Open up the websites tab of Ajenti and open whatever website you’ve decided to do this for, hit the SSL tab and you will get this window:

Ajenti Certs Window

So the first box gets filled in with what the wizard returned to us:

/etc/letsencrypt/live/yourdomain.com/fullchain.pem

The second box gets filled in with the certificates private key:

/etc/letsencrypt/live/yourdomain.com/privkey.pem

Now Ajenti knows what certificate to use, it is time to turn SSL on, lets get the Advanced configuration out of the way first:

ajenti-advanced-cert.png

The ‘Custom top level configuration’ you see will automatically redirect users accessing your website on http:// to the https:// domain.

Lastly we just need to change the website port from the default 80 to SSL’s 443:

ajenti-ssl-ports.png

Apply changes, and check to make sure your website is still redirecting.


Posted on March 21, 2016

The Perfect Web Server - Nginx, Ajenti, Ubuntu

ajenti-dashboard.png

I’ve done a lot of installing of web servers over the last while, some of which have been effortless, others a thorn in my side. I’ve decided to compile a guide for my latest server setup that I’ve fallen in love with;

First a breakdown of what we’ll be installing today;

Nginx : (pronounced Engine X) is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Nginx doesn’t rely on threads to handle requests. Instead it uses a much more scalable event-driven (asynchronous) architecture. This architecture uses small, but more importantly,predictable amounts of memory under load. Even if you don’t expect to handle thousands of simultaneous requests, you can still benefit from Nginx’s high-performance and small memory footprint. Nginx scales in all directions: from the smallest VPS all the way up to clusters of servers.

Ajenti : “The admin panel your servers deserve.” Easily extensible using Python. Plugin development is fast and pleasant with rich APIs. Includes lots of plugins for system and software configuration, monitoring and management.

Ajenti V : A plugin for Ajenti that makes website setup easy – including app servers, database, and routing.

Ubuntu : If you don’t know what Ubuntu is we’re in trouble.

Now I’m going to take a leap of faith and assume you can either install Ubuntu yourself or figure out how to get a server with it already. A DigitalOcean droplet works perfectly here. So lets log in as root and run all this:

#Insall Ajenti
apt-get update
wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
apt-get update
apt-get install ajenti
service ajenti restart
# Uninstall Apache2
sudo apt-get autoremove && sudo apt-get remove apache2*
# Install Ajenti-v
apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm php5-mysql
# If you <3 Ruby
apt-get install ajenti-v-ruby-unicorn ajenti-v-ruby-puma
# If you need Python
apt-get install ajenti-v-python-gunicorn
# If you need nodeJS
apt-get install ajenti-v-nodejs
# If you want FTP
apt-get install ajenti-v-ftp-pureftpd
# If you want mail
apt-get install ajenti-v-mail
# If you want POP support (for gmail etc.)
apt-get install courier-pop
# Restart All Services
sudo service php5-fpm restart
sudo service nginx restart
sudo service ajenti restart

You should now be able to log in to your Ajenti control panel at https://yourserver.com:8000 with:

username: root
password: admin

Now that’s done you’ll notice if you open /etc/nginx/nginx.conf that files inside /etc/nginx/conf.d/ are loaded before any other .conf files, this is where you should put any additional configuration for Nginx. However if you are just configuring a specific domain or website you should just put the configuration in the Ajenti website configuration’s advanced section.


Posted on February 18, 2015

Esprimo Mobile v5535 and Ubuntu 10.10

fujitsu_siemens_esprimo_mobile_v5505_v5545.jpg

So I ended up picking up a cheap Esprimo Mobile v5535 a few days ago, long story short; laptop broke, Argos have sent it off for repairs that will take 2-3 weeks, that’s the last time I buy a laptop from Argos.

Anyway the Esprimo Mobile isn’t exactly a cutting edge laptop, if you said it was outdated you wouldn’t be wrong. When I got it the OS installed was Windows Vista, “ambitious” I thought, of course I can’t have any kind of computer without tinkering with it endlessly to find out the best way performance wise for it to be running, Ubuntu was in my head from the start but an apparently broken CD-drive was putting an end to that.. I’ve never tried to install Ubuntu from a network and I wasn’t going to start now, (USB wasn’t an option in boot) instructions on Ubuntu’s Support don’t make a network install look simple!

A few Registry edits later, (one too many in-fact) I had the CD-drive working but Windows locked in that state of “somethings missing, would you like to use Startup Repair?” and then when using Startup repair just rebooting the computer into the same cycle. No worries though at this stage I just began installation of Ubuntu. I was surprised to see that the Wi-Fi worked from the get-go, is nDiswrapper ever needed any more? 😛 The only issue was the resolution seemed to go no higher than 800×600.. Of course a few google searches later and I found this article which explains how to install the drivers for SiS Graphics.

Using their default Xorg.conf and driver I rebooted only to find the machine now screwed graphic wise, lines all down the screen changing.. I originally thought it was the refresh rate but hell this is Linux, you could set every setting to the absolute worst one possible and still be able to change back, where is that option Windows? So I switched to a terminal window (Ctrl + Shift + F5 (any F key) for those interested) opened up Xorg.conf and using sudo nano changed what seemed to be affecting the graphics; Option "UseTiming1366" "yes" to Option "UseTiming1366" "no" (didn’t know yet if it was the problem) rebooted and finally got a 1280×800 resolution!

So the point of this story is; It’s great how in Linux you’ll mess something up and still be able to repair it via a terminal window, and if you need better resolution on your Esprimo Mobile click this link .


Posted on February 04, 2011

Earcandy in Ubuntu Jaunty

EarCandy is a volume manager for PulseAudio that fades applications in and out based on your current activity. Meaning it can do handy things like muting your music playing when you decide to turn on a youtube video. EarCandy can sniff out applications to tell what kind of application they are

Screenshots:

earcandy.png

earcandy2.png

How to install Earcandy on Ubuntu Jaunty

You can do this by using the following command:

sudo kate /etc/apt/sources.list

Then add the following to the end of the file:

deb http://ppa.launchpad.net/earcandy-devel/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/earcandy-devel/ppa/ubuntu jaunty main
``
Then you can install earcandy by using the following command!
```bash
sudo apt-get install earcandy

Posted on September 28, 2009

Got kUbuntu 9.04 on disc!

As of 5th April 2011, ShipIt has ended. Source

Kubuntu_disc.jpg

My address has finally been sorted, there was some confusion with the post man and where I lived since moving into the newly built apartment, but today kubuntu 9.04 “Jaunty Jackalope” came through the door!

With its world-renowned Ubuntu core and the KDE 4.2 desktop, Kubuntu 9.04 gives users a well-rounded, feature-filled and elegant desktop.

Best of all these cd’s are free thanks to Shipit and ubuntu! Check it out here ! I recommend anyone that has to fix computers to get themselves one, live cd’s really can be a lifesaver!


Posted on September 25, 2009

Google Chrome on Ubuntu

If your using Ubuntu you can now start using Chrome, or Chromium at least, which is based on it. Daily builds of Chromium can be got from here.

You’ll need to add the following repositories to get Chromium:

Note: Substitute interpid with jaunty or hardy as needed!

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main

Then you can then install it by opening a terminal and do the following command:

sudo apt-get install chromium-browser

Of course this is still in Pre-Alpha so make sure to keep another browser installed! ;)


Posted on September 22, 2009

Autoinstalling .Debs on Firefox

I was trying to use a get .debs website the other day and with a lot of frustration of firefox saying Firefox does not have the correct protocol to open this file [.apt] I finally figured out that I did not have apt-url installed on kUbuntu.

This can be fixed by simply opening a terminal window and typing:

sudo apt-get install apturl

Then restart firefox. Go to download another .deb / .apt file and when it asks you what you would like to use to open the file browse to /usr/bin and pick whatever installs your programs.


Posted on September 17, 2009

Ubuntu Cheat Sheets

Somehow I lost the original files of these, I’ve updated to use cheat sheets provided by Gary Woodfine.

Cheat sheets are handy, you ever get stuck you just look up at the wall where you have your cheat sheet right there providing you the answers you need! Moving to Ubuntu is a big step for alot of people, cheat sheets can make that so much easier! So in regards to that, here are two cheat sheets to make your life handier!

Download em, Print em and put em somewhere creative


Posted on September 12, 2009

MoBlock - Peerguardian for Linux

log1.png

MoBlock is now deprecated. It’s official successor is PeerGuardian Linux (pgl). It is highly recommended to use pgl instead of MoBlock. You can found out more on the official wiki of the peerguardian project.

With all the recent activity in Ireland with the MPAA you can’t be too safe anymore, you no longer know if someone from the MPAA is lurking in your computer watching everything you download and just waiting for the perfect time to send you that court summons.

Program’s can be installed to prevent people like this getting access to your computer, on Windows you have PeerGuardian, for Linux you have MoBlock. We can’t really tell how effective these peer blocking tools are but in this day and age it’s better to have some security rather than no security!

I’m going to just focus a little more on the power of MoBlock though, which is rumoured to soon be the official PeerGuardian for windows.

Installation is a breeze if your using Ubuntu Jaunty, for other .deb users read here.

First open up a terminal and edit your sources.list you can do this by typing the following:

sudo kate /etc/apt/sources.list

This opens “kate” for you using admin privilages. Add the following to the bottom of the file.

deb http://ppa.launchpad.net/jre-phoenix/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/jre-phoenix/ppa/ubuntu jaunty main

You will also have to enable the universe module, this should already be enabled just look for:

deb http://archive.ubuntu.com jaunty main universe

Next you’ll want to add the gpkg key of the program. To make it trusted, do this by typing the following into a terminal

gpg --keyserver keyserver.ubuntu.com --recv 9C0042C8
gpg --export --armor 9C0042C8 | sudo apt-key add -

Then it’s a walk in the park:

sudo aptitude update
sudo aptitude install moblock blockcontrol mobloquer

After it’s installed you will be guided through configuring moblock! Good luck! :D


Posted on August 26, 2009

Eyetoy as a Webcam on Ubuntu

EyeToy.png

People say using linux is complicated. That just isn’t true anymore. Back when I first started using Ubuntu there was not much support for using the Eyetoy as a webcam. Now however using the eyetoy as a webcam is a walk in the park!

Just open up a terminal window and copy the following into it:

sudo apt-get update
sudo apt-get install ov51x-jpeg-source module-assistant
module-assistant a-i ov51x-jpeg

And as easy as that, your webcam is working!


Posted on August 21, 2009