Tag Archives: centos

CentOS Console Resolution


Warning: Undefined array key "lang" in /home/kurakin/domains/kurakin.info/public_html/wp-content/plugins/wp-highlightjs/wp_highlight.js.php on line 119

Warning: Undefined array key "lang" in /home/kurakin/domains/kurakin.info/public_html/wp-content/plugins/wp-highlightjs/wp_highlight.js.php on line 119

Warning: Undefined array key "lang" in /home/kurakin/domains/kurakin.info/public_html/wp-content/plugins/wp-highlightjs/wp_highlight.js.php on line 119

Warning: Undefined array key "lang" in /home/kurakin/domains/kurakin.info/public_html/wp-content/plugins/wp-highlightjs/wp_highlight.js.php on line 119

Sometimes you need just a bit bigger console window when you working with your CentOS virtual installation with only NAT network enabled and you are too lazy to mess with port forwarding on VirtualBox or your preferred Virtualization software. Just for few small short experiments.

So, in grub.conf you’ll find something like that (default install using NetInstall image):

title CentOS (2.6.18-238.19.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.19.1.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-238.19.1.el5.img

And you need to add next string to kernel:

console=ttyS0,57600 console=tty0 vga=792

So it would look like:

title CentOS (2.6.18-238.19.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.19.1.el5 ro root=/dev/VolGroup00/LogVol00 console=ttyS0,57600 console=tty0 vga=792
initrd /initrd-2.6.18-238.19.1.el5.img

Other values for vga parameter:

791 - 1024x768, 16 bit
792 - 1024x768, 24 bit
794 - 1280x1024, 16 bit
795 - 1280x1024, 24 bit

After reboot it should work.

CentOS 5 NetInstall HTTP hint

I’m always searching for next two string when I’m doing a NetInstall of CentOS using HTTP as media: “Website Name” and “CentOS Directory”.

As example, to install CentOS 5.6 from mirror.centos.org for 32 bit platform:
Website Name: mirror.centos.org
CentOS Directory: centos/5.6/os/i386

For 64 bit platform:
Website Name: mirror.centos.org
CentOS Directory: centos/5.6/os/x86_64

For my current location and 64 bit platform best chose would be:
Website Name: mirror.duomenucentras.lt
CentOS Directory: centos/5.6/os/x86_64

Yep, it’s easy to remember or to find on the Internet, but I’ll keep them here just for me. I’m sure I’ll forgot this two when I’ll be doing next install someday.

Install SRC.RPM on RHEL4 if no rpmbuild present

Last Friday I had a new challenge in my life as a system administrator. The challenge was to install Munin-node on Red Hat Enterprise Linux 4 Nahant 4. I thought it was easy, until I noticed that it were few x86_64 architecture servers with minimal install, so I had small troubles with SRC.RPMs.

As you may notice from Munin installation instructions there are some dependencies and those dependencies have some more dependencies… and so on… One of them that I had trouble with was sysstat. Dag’s repository that I used for Munin RPM doesn’t have sysstat RPM package at all and in RPM Find you will find only SRC.RPM package for x86_64 (actually sysstat-5.0.5-16.rhel4.src.rpm).

Of course, it would be easy to download and build that SRC.RPM package if rpmbuild would be installed on one of those servers, but it was minimal install and there was no rpmbuild utility. I couldn’t find any proper RHEL4 repository on-line. The only solution I’ve found on-line was to use CentOS 4 RPM. As far as I know from my contacts and RHEL conference – CentOS 4 is compatible with RHEL 4.

So I used the nearest CentOS 4 RPMS mirror (for example <ftp://ftp.pbone.net/mirror/ftp.centos.org/4.8/os/x86_64/CentOS/RPMS/>) and downloaded next RPMs rpm-4.3.3-32_nonptl.x86_64.rpm, rpm-build-4.3.3-32_nonptl.x86_64.rpm, rpm-libs-4.3.3-32_nonptl.x86_64.rpm, rpm-python-4.3.3-32_nonptl.x86_64.rpm (and any dependency they will require) and installed them:

  1. rpm -Uvh rpm-python-4.3.3-32_nonptl.x86_64.rpm rpm-4.3.3-32_nonptl.x86_64.rpm rpm-libs-4.3.3-32_nonptl.x86_64.rpm
  2. rpm -Uvh rpm-build-4.3.3-32_nonptl.x86_64.rpm

Now I can build required SRC.RPM packages.

In order to install SRC.RPM package I use command rpm -ivh, in my case: rpm -ivh sysstat-5.0.5-16.rhel4.src.rpm. Source package will be placed in /usr/src/redhat/SRPMS directory and spec file (that we need for rpmbuild) in /usr/src/redhat/SPECS
Now we need to run rpmbuild -ba with proper path spec file, in my case rpmbuild -ab /usr/src/redhat/SPECS/sysstat.spec.
If everything is OK, at the end you will find RPM package in /usr/src/redhat/RPMS.

Now you can install you package with command rpm -Uvh and I can install my sysstat RPM: rpm -Uvh /usr/src/redhat/RPMS/x86_64/sysstat-5.0.5-16.rhel4.x86_64.rpm

I was lucky – all servers that required Munin-node was x86_64 and created RPM package were compatible with all servers and I didn’t have to repeat all operation with SRC.RPM all over again. I just had to upload it to the server and run rpm -Uvh sysstat-5.0.5-16.rhel4.x86_64.rpm.

Linux и мечты

Давно давно мечтал, года два наверное, заполучить в руки свободную машину (PC), желательно laptop (а в народе просто “лапоть”) и водрузить туда какую-либо дистрибуцию Linux или Unix. Так, что-бы не очень старую, но чтоб свободно можно было перегружать, сносить, переустанавливать.

Наконец моя мечта, моё желание исполнилось. В руки мне попал Dell Latitude D620. Попал он ко мне не совсем “здоровым”: проблемы с памятью и охлаждением. Память ему меняли 3 раза и не помогало ему, поэтому всё валили на охлаждение.

Да, он действительно грелся. Согревался за минут 5, а то и быстрее (зависело от температуры окружающей среды) и зависал, либо падал.

Вскрыл я его, сняв клавиатуру и убедился, что coоler у него работает. Удалил 1 блок памяти, что находился под клавиатурой, запустил его и он продержался достаточно долго, что-бы я установил на него CentOS 5.1 с DVD. Правда, потом, при попытки собрать ffmpeg (ради эксперимента) как он вновь завис. Так как клавиатура была всё ещё снята, я осмотрел все детали охлаждения ещё раз – показалось чисто. Тогда, я на собственный страх и риск, я решил пропихнуть скрепку через его радиатор, чтоб проверить, не забит ли он мелкой пылью. Оказалось забит. Вычистил. Вставил 2 модуля памяти из разных коробок (по шине они совдали, один модуль был родным 512 МБ, второй 1024 МБ из тех что покупали). Работает, т.е. биос проходит до момента загрузки.

Родной Microsoft Windows XP Home на него не встал – при проверке системного обеспечения он падал. Поэтому туда я водрузил CentOS 5.1 с заранее скаченого DVD ещё разок, настроил Wi-Fi сеть, обновил до CentOS 5.2. Но танцы с бубном вокруг драйверов Wi-Fi карты и драйверов видео карты меня не обрадовали, поэтому на следующий день я туда засунул Ubuntu 8.04 LTS.

Оно уже отработало около 2 недель, на нём уже установлен Wine, разное программное обеспечение для редакции видео, некоторые редакторы и прочие программы с которыми я хотел поэксперементировать.

Памятка по CentOs и OpenSSL

Вечно теряю эту информацию (так как она нужна примерно раз в год):

И конечно-же, GPG Quick Start, ну как такое можено было пропустить. Даже ключиком обзавёлся: мой GPG PubKey.