Recently I helped one of my client to setup a VPS on DigitalOcean (DO). The price is very competitive (the cheapest plan is $5 per month) and they offer SSD as the storage. I highly recommend to give a try if someone is looking for a virtual hosting.
Actually a VPS is just a server running on other location. Once you subscribe a plan and start to OS, it's your responsibility to maintain the system.
The steps below are to enhance the security once the server is deployed ( we are using Ubuntu 14.04 in this case). The objective is to harden the server so that it can only be accessed from a client with ssh
1. Setup ssh keyfrom a linux server at home or office. Assumed you have a linux client with a user "user1"
Thursday, September 24, 2015
Friday, September 11, 2015
Getting the hard disk detailsFirst we use smartctl to get the details, you can see there are 3 disks. 2x WD Green 2TB 5400rpm and 1x HP 500GB 7200rpm. The HP one is bundled and I think it's not enough for me to store my data So I buy the WD disks and make it as a mirror.
#smartctl -i /dev/sda
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.14.51-1-lts] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Green
Device Model: WDC WD20EZRX-00D8PB0
Serial Number: WD-xxxxxxxxxx
LU WWN Device Id: 5 0014ee 6055d1735
Firmware Version: 80.00A80
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Fri Sep 11 17:09:32 2015 HKT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Friday, August 28, 2015
Everybody is facing a problem: too many password to remember. If there are too many to store in brian, then its time to store somewhere else. Some people will simply write on a notebook, some will store it in an excel, and some will download a password manager such as KeePass/KeePassX and LastPass. But as a Linux guy I would like to try another tool in command line: Pass (http://www.passwordstore.org/)
Why need a command line password manager? Having a command line password manager can provide flexibility:
- you use SSH to connect to the Linux so it is secure and you can view a password of a particular account without touching a mouse
- you can write simple script to deal with the passwords. for example, generate a number of account/ password pair, or dump a password list
- This tool is very lightweight. You can store your passwords in a Raspberry Pi !
If you visit the website you may find it is not difficult to use. However, there are some tricks
1. You must setup gpg keyrings before initialising the pass store
2. The name of the pass store is the ID of the gpg key.
Once you setup the pass store you are good to enjoy this tool.
The following steps are the example:
Friday, June 28, 2013
To restore HP-UX (11i, 11.23 should work) from a backup (make_tape_recovery)
- Login MP console and recycle it
- "CO" to console
- Within that "10 seconds", press any key and see the menu
---- Main Menu --------------------------------------------------------------- Command Description ------- ----------- BOot [PRI|ALT|
] Boot from specified path PAth [PRI|ALT] [ ] Display or modify a path SEArch [DIsplay|IPL] [ ] Search for boot devices COnfiguration menu Displays or sets boot values INformation menu Displays hardware information SERvice menu Displays service commands DIsplay Redisplay the current menu HElp [
- Insert the tape and run "SEA" to search devices
Main Menu: Enter command or menu > SEA Searching for potential boot device(s) This may take several minutes. To discontinue search, press any key (termination may not be immediate). IODC Path# Device Path (dec) Device Path (mnem) Device Type Rev ----- ----------------- ------------------ ----------- ---- P0 0/0/2/0.0 ide.0 Random access media 1 P1 0/1/1/0.0 intscsia.0 Random access media 1 P2 0/1/1/1.4 intscsib.4 Sequential access media 1 Main Menu: Enter command or menu >
- "P2 0/1/1/1.4 intscsib.4 Sequential access media 1" -> which is the tape drive