Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

22 November, 2015

Migrate to Open Media Vault (OMV) NAS

My Ubuntu server crash last month for unknown reason. After some investigation finding out Ubuntu the latest update break the server, I am trying to get it restores hard. Almost 80% of my data in the main drive corrupted even when running RAID 1 setup. It is unimaginable update can do so much damage.

I decided to gave up reinstalling Ubuntu server since I have to reconfigure remote access and reinstall most of the software again. Why not just jump into NAS OS this time. FreeNAS doesn't work well for me previously so I tried Rockstor. However, it didn't work as well for some reason trying to get the installer to load. Without wasting too much time finding solution. I made final choice going look back at Open Media Vault (OMV).

The OMV installation was fast and easy to set up, this time I decided to install directly into 160GB SATA HDD which I plan to migrate into SSD drive in the future once solving the hard disk space issue first. The only problem I encounter was OMV plugins were somewhat limited. This is due to the copyright related so you have to find another way. OMV Extra. Once installed, those removed plugins will be made available.

So far the OMV is running great after I am familiar with the configurations and testing.The only thing I will be avoiding is updating and delaying at least three or one month cycle before applying. This is just to avoid having another unexpected crash.

20 April, 2015

Taking Unfinished ‘Introduction to Linux’

The unfinished ‘Introduction to Linux’ course at edX that I didn’t complete last year left hanging. Since I am starting to find Linux more interesting than ever and decided to give myself a chance to study again on IT fields area. The course however requires understanding all three popular Debian, SUSE and Fedora which is quite challenging and time keeping up.

The direction is uncertain if I should move on to the self-paced Essentials of System Administration training course after completing edX. At this unemployment time and struggle year, I have to be extra careful what to spend wisely on because unexpected things do happen. Like my car broke down again and luckily so far not that serious.

Well, I will see how it goes when reaching the exam section until satisfactory result of my leaning to decide again.

24 September, 2014

The Struggle with X11vnc Rebuilding Ubuntu Server

And then I got stuck again getting remote access to work. It’s funny out of all the great features, only the remote access is not the friendliest in Linux setup. There is no proper standard guide so far I could find on the internet for X11VNC. However, after a long spending trying out different guide that doesn’t work at all, I can now confirm only one guides actually tested working during my struggle.

Without doubt, this whole thing is funny and stupid. But as long the X11VNC able to work in startup on my headless server is all I need to access anytime. The first guide I follow is using the steps from Digital Drugs. I tested running the script below to confirm first before I proceed further.

start on login-session-start

script

/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -auth /var/run/lightdm/root/:0 -display :0 -passwd "MyPasswd" -forever -bg -o /var/log/x11vnc.log

end script

The TightVNC in my Window machine was successfully able to connect. Well, problem occurs. The password doesn’t recognize when I key in ‘MyPasswd”. So what went wrong? I have no idea to be honest. I went on looking on the previous guide by updating another code into the last script like below.

start on login-session-start

script

x11vnc -rfbauth -rfbport 5901 -auth /var/run/lightdm/root/:0 -display /etc/x11vnc.pass -forever -bg -o /var/log/x11vnc.log

end script

There are a lot changes and code remove in the script by following others. For example like the password column I replace with -passwd "MyPasswd" to sudo x11vnc -storepasswd /etc/x11vnc.pass in the script as recommended by many. Yet again, not working.

Frustrated as usual. I tried to remember to find my last bookmark and follow the steps of 'Setting up X11vnc' at Ubuntu Forum as shown below.

  1. Install x11vnc: sudo apt-get install x11vnc
  2. Set the password: vncpasswd ~/.vnc/passwd (vncpasswd is included with vnc-common, which is installed by default)
  3. Make it auto-start when the user logs in and show which port we're running on (useful if you run multiple vnc servers) the port will be put in ~/.vnc/port.txt: sudo gedit /usr/local/bin/sharex11vnc Paste in the following code:
#!/bin/sh

x11vnc -nap -bg -many -rfbauth ~/.vnc/passwd -desktop "VNC ${USER}@${HOSTNAME}"|grep -Eo "[0-9]{4}">~/.vnc/port.txt

# comment out the following if you don't want a popup telling you which port you're using.
zenity --info --text="Your VNC port is `cat ~/.vnc/port.txt`"


  1. sudo chmod 755 /usr/local/bin/sharex11vnc

  2. System->Preferences->Sessions->Startup Programs then click Add and type in sharex11vnc

Add the code and restart, it finally works. This got me into thinking, are those scripts above are all wrong in the first place? But I can ensure that the first script that I tried does indeed work, just the password doesn't work even I change the password code. I'm not good in Linux, so it's hard to argue unless someone from the experts point out the problem.

13 July, 2014

Old Computers Reboot with Open Source #3

peppermint

This is the second Linux OS 32bit test on the old custom PC I assemble. Peppermint Five was released last month built on a Long Term Support (LTS) code base, Ubuntu 14.04. It was a right timing to find out the lightweight distro that aim design for speed. So the question is, how well does it really perform? I got to admit, it’s good.

02 July, 2014

Old Computers Reboot with Open Source #2:

shot_lubuntuAfter success assemble an old PC from working hardware parts previously. I finally run a couple hour of test on the Lubuntu to see how well it going to perform and stability last Friday. Before that, here are the hardware specs information builds for the test are Pentium 4 2.4Ghz (Socket 478), EPOX EP-P4MKI mATX, 1GB Kit DDR RAM, 80GB IDE HDD and Geforce 2 MX 64MB Geforce 5500MX 256MB.

How good is Lubuntu in my opinion? Not entirely satisfactory. Despite many good reviews on the distribution by the Linux community, it is not entirely the true lightweight version as describe. Of course, I ran a full update before testing and moreover, my setup exceeds the system minimum requirement too. Still, it performance are very slow in many scenario for normal tasking and also discover the Python process somehow using high CPU load for no reason. I am no Linux expert, so I have to check on the web for answer.

It appears some program is causing the Python using high load CPU. I do not know as you need to run the terminal and do some command typing to trace the culprit. To be honest, the solution weren’t really helpful because you have to either kill it manually to resolve the issue or install program to reduce the CPU load. The problem will continue to come back once you open another programs so this is too troublesome for normal user.

I will continue seek out others and read more user comments on various Linux news sites for better suggestion on the lightweight Linux rather entirely reading the reviewer only. My next test will be Peppermint, Majaro and again, Linux Mint Debian version.

Featured Post

JoyToy X Warhammer 40K: Grey Knights - Castellan Crowe

This is the first champion character I wanted to collect from the Grey Knights wave 1 when I first saw it in the W40K: Chaos Gate – Daemon H...