Recently I wanted to be able to backup my Mac via TimeMachine, but unfortunately I did not have a large enough HDD to back up, so I’ve decided to backup to one of my servers. Not until recently that was not an option until I ran into a blog post that produced an step by step configuration to run successfully, but what I did find out was that my server was getting full and TimeMachine did not do a good enough job deleting old backups. So, I found a single command to limit the backups, but what I found was that if the plist has been already copied (meaning a backup was already ran), the new limits won’t be recognized. So you will need to run a new backup with carrying the limits on the new plist to the server.
Below are the steps to successfully be able to config a TimeMachine backup server with limits on your backups so you don’t run out of storage 😉 .
Ensure that you have a ubuntu 20.04 LTS image running with enough storage to perform the backups
Run sudo apt install -y netatalk avahi-daemon
Run sudo vi /etc/netatalk/afp.conf
Add a section for your Time Machine: [Time Machine] path = /media/path/to/backups time machine = yes
Create a directory to act as the Time Machine: sudo mkdir -p /media/path/to/backups
Run sudo chown nobody:nogroup /media/path/to/backups
Run sudo chmod 777 /media/path/to/backups
Restart netatalk: sudo service netatalk restart
Now, on your Mac, before doing anything else, might be smart to put a limit on your backup. The command below will put a 100GB limit. sudo defaults write ~/Library/Preferences/com.apple.TimeMachine MaxSize 102400
At this point… you should be able to open the Time Machine settings in System Preferences and use Select Disk… to pick your new Time Machine backup drive. Where /media/path/to/backups should show up on the path.
I’ve been exploring dockerizaton lately more and more and I think I like the idea of having my apps in containers. I am not going to lie, it does take some time to get used to, but it is pretty cool the things that you can do.
One thing that I think I wanted to accomplish was able to run X11 apps through docker. I found Docker Headless VNC container and that was slick. Where I was able to run a whole Xfce environment within a Docker container!!! kudos to those folks. Now, my challenge was that in my case, I didn’t want a fat image and/or configure each app to download of configuring. So, this wasn’t my solution at this time. So, I decided to explore further and found a way to run X11 from a Docker container in macOS. Below are the steps on how to accomplish this.
Install socat which is a “multipurpose relay.” This will allow us to call the display.
brew install socat
Create you local Dockerfile. In this particular case, I am using Ubuntu latest (which at the time of this post is 16.04.1 LTS). On your terminal, you can do “vi Dockerfile” and paste the info from below in that file.
RUN apt-get update && apt-get install -y firefox
RUN useradd -ms /bin/bash developer && \
echo "\ndeveloper ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
ENV HOME /home/developer
Then, let’s build the Docker image by doing the following…
docker build -t firefox .
Now, on a different terminal, run the following command…
If you install the new version of Ubuntu 11.10 Oneiric Ocelot you will notice that it comes with Unity installed in order to make a better OS experience. That could be very well true, but I do like to see my system monitor and see how my PC is behaving. Now, it can not be easily done with unity, but if you would like to do it, go to the link below and you will be able to find steps by using PPA in order to get your system monitor on unity. Also, if you don’t like unity you could go back to gnome, but that is something different that is not being cover in this article. 🙂
The following steps below from Ubuntu will guide you in terms of successfully upgrading your Ubuntu system from Natty Narwhal 11.04 to Oneiric Ocelot 11.10.
To upgrade from Ubuntu 11.04 on a desktop system, press Alt+F2 and type in “update-manager -d” (sans quotes) into the command box. Update Manager should open up and display following message: “New distribution release ‘11.10’ is available. Click Upgrade and follow the on-screen instructions”.
To upgrade from Ubuntu 11.04 on a server system, follow the steps listed below: Step 1: Install the update-manager-core package (if it is not already installed). Step 2: Use following command sudo do-release-upgrade -d to launch the upgrade tool. Step 3: Follow the on-screen instructions. Note that the server upgrade is now more robust and will utilize GNU screen and automatically re-attach in case of dropped connection problems, for example.
just in case you didn’t know i created not too long my first linux bash script. the reason why i developed this was because i was getting tired of backing up my ubuntu linux system every six months. so, if you would like to be able to backup certain selected folders and files you could download a copy by going to Ubuntu Backup Before Upgrade site.
i’ve been using the older version of openoffice and i wanted to upgrade to 3.0 in ubuntu. well it is not as easy as … i download the files and then click upgrade. there are repositories that i need to download in order to install them properly. you will be using ppa (personal package archive) in order to have such of installation.
so what i did in order to have this upgrade automatically is the following steps:
first you will need to open “synaptic package manager“
go to “third-party software” tab and then click on “add”
add this following line deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
now reload the package information the synaptic package manager and then upgrade
alright… i know that i am currently working on a paper but i had to do this. just as it right now i just experience the best application that i could ever imagine. i really hate people that chat through facebook chat and i really hate to be bother while i am stalking others :D. so what it is what i am talking about… the facebook integration to pidgin in order to use it as a instant message application, just like if you were using yahoo, msn, icq and others.
now i will be able to chat with my friends with no problem from my instant messenger. that is why i love open source applications, it gives you the freedom to use it which ever way you want it.
so in order to have facebook on your im you will need to get…
this small tutorial will illustrate how to have your usb working with virtualbox. virtualbox has the usb support disable by default. if you want to have your usb to work properly with virtualbox you would have to perform the following steps.
this tutorial applies for ubuntu 8.10. but it might work with other distros.
type “sudo gedit /etc/init.d/mountdevsubfs.sh“
go to the following block #
# Magic to make /proc/bus/usb work
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount --rbind /dev/bus/usb /proc/bus/usb
change it to #
# Magic to make /proc/bus/usb work
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb
now go type “sudo gedit /etc/fstab”
copy and paste the following code to your fstab none /proc/bus/usb usbfs devgid=1000,devmode=664 0 0
you are almost done. now reboot your computer and you should be good to go.
before i show you how to install tor in ubuntu hardy, i am going to explain a little bit what exactly tor is.
Tor is a software project that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security. Tor protects you by bouncing your communications around a distributed network of relays run by volunteers all around the world: it prevents somebody watching your Internet connection from learning what sites you visit, and it prevents the sites you visit from learning your physical location. Tor works with many of your existing applications, including web browsers, instant messaging clients, remote login, and other applications based on the TCP protocol.
Retrieved from torproject.org
So if you want more information go and visit torproject.org and you will be able to answer all your questions. so now lets go and install tor in ubuntu.
Open your “Terminal” and type “sudo apt-get install tor”
now, on your “Terminal” make a copy of the configuration file from privoxy folder. in my case would be “sudo cp /etc/privoxy/config /etc/privoxy/config-backup”
make a new file with “sudo nano /etc/privoxy/config”
paste the following information:
# Generally, this file goes in /etc/privoxy/config
# Tor listens as a SOCKS4a proxy here:
forward-socks4a / 127.0.0.1:9050 .
actionsfile standard # Internal purpose, recommended
actionsfile default # Main actions file
actionsfile user # User customizations
# Don’t log interesting things, only startup messages, warnings and errors
#debug 0 # show each GET/POST/CONNECT request
debug 4096 # Startup banner and warnings
debug 8192 # Errors – *we highly recommended enabling this*