Posts

Showing posts with the label ubuntu

Disabling Graphical Boot on Ubuntu Server 1804

An a server it has no advantage the GRUB and the Linux kernel is booting up in graphical mode, as it is only hiding the potential error messages. The following is a simple receit to switch it off.

Virtual Box on Ubuntu Desktop 1604

Oracle VirtualBox runs well on Ubuntu 1604 host, but you should know how to set it up to have a good user experience with it. It this article I will show you 4 pitfalls, and how to avoid them. 1. Default installations fails referring to kernel module failed 2. Can not connect remotely with RDP 3. Windows guest display is flickering/unity menu overlaps guest full screen 4. Can not set second screen to full screen

Setting ethernet interface speed in /etc/network/interfaces

There is an easy way to set the network interface speed in Ubuntu 14.04: In the iface section of the /etc/network/interfaces  you can add the link-speed and link-duplex parameters, to pass them to ethtool. The example below sets the link speed to 100 Mbit/sec: iface eth1 inet static         address 192.168.1.120         netmask 255.255.255.0         network 192.168.1.0         link-speed 100         link-duplex full

Intel SS4200 NAS doesn't start, because old linux images, modules and headers

Some days ago, my SS4200, running Ubuntu 1404 server from an USB pendrive did not start :-( The investigation was painful, because I had to take out the VGA card from my desktop computer and put it to the SS4200 with all the cables for PCI-E and power, and after doing all this changes, I could see, that the machine is still not starting. To handle the situation I have booted up a systemrescuecd from a second USB pendrive, and after some investigation it turned out, that the root disk on the original 4 Gigabyte pendrive become full :-( Some more investigation revealed that the reason was a lot of unused linux kernel versions with all of their headers, modules and other files. To fix the problem I manually removed them:  dpkg --get-selections linux* to list them, and sudo apt-get  purge *package* to delete all not needed. But today I have put back the VGA card to my computer and searched for a better solution, end there is a very nice script to do it in one ste...

Ubuntu Server 1404 hangs at GRUB screen after boot failure

In the standard Ubuntu Server installation if there was a problem during the boot process, next time you start the machine it will stop at the GRUB menu and wait for manual interaction. On headless machines this is not desired, but you can avoid it using the following settings: Edit /etc/default/grub and add the following line: GRUB_RECORDFAIL_TIMEOUT=1 Then run: sudo update-grub Next time the machine will not stop if there is a boot error. Source: http://askubuntu.com/questions/55551/how-can-i-force-ubuntu-to-boot-on-a-stuck-boot-menu

Installing Ubuntu 1404 to Intel SS4200 NAS on external pendrive

The Intel SS4200 is a, now already discontinued, NAS product, with the advantage that it is an x86 computer, designed to hold 4 SATA HDD drives, which makes it ideal candidate  to install Ubuntu Server on it. After the unsuccessful installation to a bulit in  CF card in my previous blog , finally I decided to install the operating system to an external pendrive. Here is how to install it: Install Ubuntu Server 1404 on the pendrive The easiest way is to set up a virtual machine on your PC (I have used VMWare Player), where you connect the pendrive to the virtual machine, connect the Ubuntu Server Install CD image as the CD rom and simply install the Server to the pendrive. In the SW selection select OpenSSH, Samba and LAMP, the later for the case if you would like to do some custom web interface to your box. When installing GRUB, install it to the MBR of the pendrive. After installation, try if it is working in the vitrual machine, but as VMWare Player do not boot im...

Installing Ubuntu Server 14.04 on Intel SS4200 NAS

Some years ago I bought an Intel SS4200 NAS , specially for the purpose to install custom "firmware" on it. It has a standard PC hardware with an 1.6 Ghz Celeron processor, 4 bays for SATA drives and it has a community dedicated to HW and SW modifications. Originally I have installed Ubuntu Server 10.04 on it using an external flash drive, but recently I refreshed the system to Ubuntu Server 14.04 on a Compact Flash card connected to the internal IDE connector using adapter. Here I will describe how I have installed 10.04 and how I did it for 14.04. I did the installation only once, I have some toughs that were I could have done it more easy, but after the system became operational I did not go back and test if the simplifications working in theory would work in practice. EDIT: Unfortunately after a lot of experimenting, it turned out, that the pata_legacy driver is painfully slow and the normal drivers coming with Ubuntu 14.04 doesn't recognize the parallel ATA...

Installing Lubuntu 13.10 on Fujitsu-Siemens Amilo L7320

My 75 years old mother was using very happily an Amilo L7320 laptop with Ubuntu 10.04, but after an (non intended) upgrade to 12.04 the machine became very slow, and sometimes crashing. Looking into it revealed, that the machine has slowed down very much and even on the command line is vas extreemly slow. After some considerations I have decided to use Lubuntu 13.10, in order to have a supported operating system, which is designed to run on older hardware. For some unclear resons the USB installers created with the normal USB creation tools (Unetbootin, UniversalUSBInstaller, LinuxLiveUSBCreator) were not working so finaly I have used a rewritable CD to install the operating system. The installation was strait forward, the installer run without any problem, but after restarting we got an empty black screen :-( Fixing video display problems For the impatient I continue straight with the solution, but later I will provide some information about how could I identify the prob...

Stripped LVM (RAID 0) performance on a NAS system

Image
Now I am setting up a new NAS and to be able to decide if I should use Stripped LVM I did some measurements. Stripped LVM means the the data volume is spread across 2 physical disks and data reads and writes are executed in parallel to the two disks, so in theory this will duplicate the disks speed. However stripping has one disadvantage that if one of the disks fails then all data is lost, while with normal volumes, there are chances that from the functional disk it is possible to restore the data. The NAS has a Gigabit Ethernet LAN connection so in theory 125 MBytes/sec speeds can be achieved. To do the tests I have set up two 200 GByte logical volumes on the LVM containing two 4 Tbytes physical disks, one stripped across the two disks and the other without stripping. First I measured the speed within the NAS, using the linux DD command: On the normal volume: >dd if=/dev/zero of=/media/data/Adatok/test bs=1M count=2000      2000+0 records in 2000+0 records out...

Installing Ubuntu server 12.04 LTS from pendrive on an old PC to create a NAS

I have a pretty old PC from 2003 which I have been using for some time as a NAS. It is a standard desktop PC (self built), but it has 8 IDE hard drives ranging from 200 Gbyte up to 500 Gbyte. The total capacity of the drives is around 2 T and I just decided to give a refresh to the system to back up my digital videos to it. I have been using FreeNAS 7.2, which is pretty nice, but it is BSD based and as I have more experience with linux and especially with Ubuntu Server so I decided to upgrade to that one. Here comes a short guide on how to setup Ubuntu Server on a machine to work as a simple NAS. Installing Ubuntu Server from pendrive (Flash memory) Today this should be a strait forward thing, you take the installation ISO image, with some tool you copy it to a pendrive you plug it into the machine and install it, but in my case I run into plenty of problems. By the end I have solved all of them, but here is a list of how to solve them one by one. 1) Copy the ISO to a pendri...

Trying to reach the highest disk speed on home server

Image
Last autumn, before installing my Ubuntu home server I had great plans to do network file speed benchmarks between different operating systems to select the best operating system for my home server. The plan was excellent, but after a bit more than one month of testing I realized, that if I ever want to have that server up and running I should cancel these tests and go strait to the installation. In this post I will write about the results in that month. Original intention The plan was simple, I had the new hardware for the server, I had installation disks for Windows Server 2008 R2, Ubuntu, OpenSuse and Solaris. On the client side I had a quad processor 2 gig memory computer with Windows 7 RC, Windows XP and OpenSuse 11.1 and had an older computer with and old Athlon processor running at 2 GHz and 1 Gig of memory. So I intended to install all 4 server operating systems, test them from the 3 client operating system available on the faster client machine and from the XP on the slow...

Linux tools for PDF processing

In the company where I work, we have some very nice Canon ImageRunner copy machines. One of the advantages of these machines is that they have fast and good quality scanning possibilities, so they can be used for scanning bigger quantities. In normal cases you can set up these machines to send the scanned documents to email addresses, or to store them directly on computers, but in my company the email size is limited to 10 megabytes and we have chip card authentication, therefore I can not set up the copy machine to store documents directly to computers. But nothing is lost, because the ImageRunners have a web interface and I have written a small tool, to download the scanned documents from the copy machine to a local folder. The only disadvantage is, that you can only download the documents page by page, the color images in re jpg format and the black and whites in tiff. Here are some tricks what I have used to convert them to PDF documents. Converting TIFF to PDF For this I ha...

Home server based on Ubuntu Server 9.10

I have just bougth a new HW to replace my pretty outdated home server and decided to install Ubuntu server on it. The hardware itself is a standard desktop PC, with and Athlon II X2 CPU and 4 Gigabytes of RAM. This amount of RAM is only needed because I plan to run Virtual Machines on the server, which is consuming a lot of memory. I have 3 SATA disks in the machine one with 250G and two each 1T. The 250G disk is ment for the system, while the 2 bigger disks will form the 2T data storage part. The basic networking funcions like DHCP, DNS are provided by a Ericsson W25 3G router so this server is mainly to provide storage for the Windows and Linux computers at home. As a server running continuosly consumes a lot of power, this server can be remotely shut down and waken up, to run only when it is needed. So here are the steps of the installation: Install Base System: Download the Ubuntu Server 9.10 64 bit version and do a standard installation. I have used a 20 G install partitio...