Unfortunately you /boot partition must still use ext3! There is no support with the minimal install of centos 6.3 with grub bootloader version 0.97 for ext4. Buyer beware!
cat ~/.ssh/id_rsa.pub | ssh email@example.com 'cat - >> ~/.ssh/authorized_keys'
Don’t forget you need local permissions set properly to use ssh keys.
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
If you have ever wondered how to run a firewall/router from just memory, you are in luck. Both “Nano” version of OPNsense and pfSense will work great in the following flavor.
Configuration files are saved on the removable media and the read/write filesystem is stored in RAM!
Create your new directory at /Volumes/YourDrive/Documents
Copy your data to the new directory in Finder
sudo rm -rf ~/Documents && ln -s "/Volumes/R1/Documents/" ~/Documents
OVH.net : Easiest and most reliable – supporting version 6.0 with a (BETA) caution sign at the moment
LeaseWeb : Easy with a custom build – you can request this with a new build or update with a ticket
Hetnzer : complicated and expensive to install – AVOID – but it can be done if you have to
sudo apt-get install -y curl g++ gawk m4 make patch ruby tcl PATH=~/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin unset LD_LIBRARY_PATH PKG_CONFIG_PATH yes | ruby -e "$(curl -fsSL https://raw.github.com/Linuxbrew/linuxbrew/go/install)" brew doctor brew install gcc --with-glibc brew tap homebrew/dupes brew install git brew install coreutils findutils gawk gnu-sed gnu-which grep make ruby PATH=$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin brew install hello && brew test hello; brew remove hello
apt-get update && apt-get dist-upgrade curl -s https://mailinabox.email/setup.sh | sudo bash curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash wget https://packages.gitlab.com/gitlab/gitlab-ee/packages/ubuntu/trusty/gitlab-ee_8.11.6-ee.0_amd64.deb/download mv download download.deb dpkg -i download.deb
Here are some simple stats from the new block storage available over at DigitalOcean. Tested on a 1gb droplet.
hdparm -t /dev/sda Reads
Timing buffered disk reads: 536 MB in 3.01 seconds = 178.15 MB/sec
Timing buffered disk reads: 586 MB in 3.01 seconds = 194.63 MB/sec
Timing buffered disk reads: 574 MB in 3.00 seconds = 191.32 MB/sec
hdparm -T /dev/sda Cached Reads
Timing cached reads: 15090 MB in 2.00 seconds = 7551.96 MB/sec
Timing cached reads: 15056 MB in 2.00 seconds = 7535.53 MB/sec
Timing cached reads: 14810 MB in 2.00 seconds = 7411.46 MB/sec
time sh -c "dd if=/dev/sda of=ddfile bs=8k count=1000000 && sync"; rm ddfile Writes
8192000000 bytes (8.2 GB) copied, 49.4442 s, 166 MB/s
Linux Distro of Choice (GNOME Ubuntu 16.04) – best home desktop experience on Linux today. Competes with LinuxMint, but without all the mintyness.
Windows Distro of Choice: Windows 10 Enterprise, Available with FreeBiz Spark MSDN Access
Mac Distro of Choice : Hackintosh 10.11.4 / Clover Bootloader
What’s your daily driver?
Untangle is a firewall and gateway server that is one of the best on the market today.
The Zotac Zbox ID91 is a Mini ITX PC.
Americans may not be so familiar with the Zotac brand but they offer a wide variety of integrated PC’s that are usual for both home media servers and powerful business machines.
I purchased the ID91 on Amazon for $350.99 – additionally you will need to add a Hard Drive and Memory (DDR3 SO-DIMM)
If you don’t want to deal with hassle of installing a hard drive or memory, the ID91 Plus is available with a 500GB (Non-SSD) hard drive.
The ID91 is based on the H81 Express platform. Sporting Dual Gigabit Ethernet ports this model is perfect for anyone wanting to run a Linux Firewall or Gateway.
For the mission of a home based ad-blocking gateway – I chose the ID91 as it comes with a i3 4130T(dual-core, 2.9 Ghz) processor.
This configuration is sufficient to handle a VERY fast connection. We are talking Fiber speeds without a problem, I am currently on a 400mb connection without any slowdown with a full Untangle configuration.
Total Cost = $449.22
- Unbox your ID91
- Install Memory + SSD
- Hookup monitor, keyboard, mouse.
- Boot via Untangle USB – I had to use the traditional ISO to get it to work properly, this can be found here.
- Install with default configuration options – you will easily be able to identify incoming wan and outgoing network adapters by plugging them in during the installation process. Once plugged in you will get a green light in the Untangle installer. I would recommend you mark your ports at this time, to designate incoming (WAN) and outgoing (LAN).
- Plug in your wires –
- Connect to your device at the default address of 192.168.2.1 with your username and password set during the installation.
- Add services as required to your network, by default Untangle will handle DHCP and NAT. I highly recommend adding the Web Filter and Ad-Blocking.
- Spend some time learning the new interface, you will soon see you’re time has paid off – and Untangle is really the perfect firewall for the SOHO/Home environment.
Enjoy the internet now without Facebook ad’s – Pre-roll ads on YouTube – and the protection of a real firewall.
Untangle has earned it’s place in my favorite pieces of software, days after the initial installation I have not had to restart the box or fiddle – things just work, and these days it’s hard to find software that just works this well out of the box.
The ThinkPad x201 is a great platform for Ubuntu 10.04. The default installation contains an outdated version of the Thinkpad BGN wireless drivers. After first boot you can see networks(not all available), and connect to some – but in general this will give you difficulties. The recommendation is to first update your installation via-Ethernet to automatically download the patch. Upon restart, you will have a fully functional Ubuntu installation.
This is where and how it was solved:
The process of adding a new FTP user with SSH access to a Plesk / CentOS server is more difficult than it needs to be. Plesk will only allow you to add WebUsers to your domains which have FTP accounts, not full SSH accounts. Here is the quick and dirty. We want our new user to be in chroot jail and to inherit the same permissions as another user on the system. The user will be restricted to the top level directory you define (for example httpdocs in this case).
Login as Root:
cat /etc/passwd/ | grep 'anyusername'
This will return:[cci]anyusername:x:10009:2524::/var/www/vhosts/anydomain.com:/bin/bash[/cci]
The first set of numbers after “:x:” is the UID or User Identifier. We will use this in the next command to copy the same permissions.
useradd -u 10009 -o -d /var/www/vhosts/anydomain.com/httpdocs/ -g psaserv -s /usr/local/psa/bin/chrootsh newusername
Replace “anydomain.com” with your domain, and “newusername” with the new user you would like to add.
Gives the user a password.
usermod -s /bin/bash newusername
For an in-depth discussion on working with rssh, chroot, and users – see UnixCraft
One of the most recent problems I stumbled upon while running Backtrack, or any other linux distro for that matter is setting the region on a wireless card. The typical procedure is :
iwconfig wlan0 channel 13
And commonly you will get
error for wireless regquest ''set frequency''
set failed on device wlan0 ; invalid arugment
There is an easy fix for this that will allow you to change the region mode your wireless adapter is in.
iw reg set FR
iw reg set US
More on IW here.
After much hunting around and reading through the Plesk Administrator Guide I finally found an easy way for creating multiple e-mail accounts in batch! This is not a MySQL hook or database related, but stems from the logic of wanting to create multiple accounts at once.
To create an e-mail account in Plesk, first login to your server via SSH.
Execute the following:[cci]/usr/local/psa/bin/mail –create firstname.lastname@example.org -passwd newpassword-cp-access false[/cci]
If you want to run a batch, create a script:
#/bin/bash /usr/local/psa/bin/mail --create email@example.com -passwd newpassword-cp-access false /usr/local/psa/bin/mail --create firstname.lastname@example.org -passwd newpassword-cp-access false /usr/local/psa/bin/mail --create email@example.com -passwd newpassword-cp-access false /usr/local/psa/bin/mail --create firstname.lastname@example.org -passwd newpassword-cp-access false