It is currently Sat Dec 21, 2024 6:27 pm

News News of Linux specific

Site map of Linux specific » Forum : Linux specific

Linux specific questions/information are gathered here. The main thrust of topics are applied to Centos/RedHat(RH)/Debian/Ubuntu/Gentoo distributives
Forum rules
All information is given AS IS

Setup bonding interface (Debian case)

The Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical "bonded" interface. The behavior of the bonded interfaces depends upon the mode; generally speaking, modes provide either hot standby or load balancing services. Additionally, link integrity monitoring may be performed.

https://www.kernel.org/doc/Documentatio ... onding.txt

On Debian first install the ifenslave package, necessary to enable bonding:
Code: Select all
apt-get install ifenslave

Decide which bonding mode is desired ...
Read more : Setup bonding interface (Debian case) | Views : 15071 | Replies : 0


Letsencrypt certbot Centos 7 Nginx

Letsencrypt (link) provides free SSL certificates for websites. Process of issuing certificate (and renewal) is greatly simplified by certbot scripts (former letsencrypt-auto) written in python.
Here we will install certbot on Centos 7 and issue SSL certificate for example.com/www.example.com running on Nginx.

Certbot installation instructions can be found at certbot.eff.org or at GitHub repo.
Certbot is packaged in the EPEL repository. Enable EPEL on your system and install Certbot:
Code: Select all
yum install epel-release
yum install certbot
...
Read more : Letsencrypt certbot Centos 7 Nginx | Views : 9273 | Replies : 0


Add trusted root CA (Centos case)

Sometimes you my require to add custom root CA certificates to trusted list on your server.
In this example we will add Root Certificate and Intermediate Certificate from CAcert free community-driven Certificate Authority.

General solution can be found at their wiki, but it lacks details about update-ca-trust method.

First, we install ca-certificates package:
Code: Select all
yum install ca-certificates

Then enable dynamic CA configuration feature:
Code: Select all
update-ca-trust enable

Time to download root and intermediate certificates in PEM format:
wget ...
Read more : Add trusted root CA (Centos case) | Views : 9256 | Replies : 0


Gentoo - view all packages installed from overlays

It`s easy if you have eix installed:
Code: Select all
eix -Jc
Read more : Gentoo - view all packages installed from overlays | Views : 5834 | Replies : 0


CPUfreq scaling_governor oneliner

Short oneliner to set CPU scaling governor to 'performance':
Code: Select all
echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
Read more : CPUfreq scaling_governor oneliner | Views : 5209 | Replies : 0


Disable KDE baloo indexer

In order to disable Baloo indexer you may do the following:
Code: Select all
cp /usr/share/autostart/baloo_file.desktop ~/.kde4/share/autostart/
echo "Hidden=True" >> ~/.kde4/share/autostart/baloo_file.desktop

It will prevent start of Baloo service on KDE start for a current user.
Read more : Disable KDE baloo indexer | Views : 5839 | Replies : 0


Make centos5 64bit yum install only x86_64 packages

Everytime you install or update packages with yum on Centos5/RHEL5, it tries to install both x86_64 and i386 versions of the package if both are available.
This problem arise only on Centos5 because yum defaults to:
Code: Select all
multilib_policy=all

what means install all available architectures of package. For example, if you are running 64bit system, yum will first try to install package.x86_64, if it`s not available yum will fall back to i386 and noarch.
This was changed ...
Read more : Make centos5 64bit yum install only x86_64 packages | Views : 6523 | Replies : 0


Default gateway on different subnet (linux case)

By default linux distributions (not only) expect that default gateway IP address belongs to configured subnetwork on the interface and is not a broadcast address.
As a result we will receive the following error trying to define gateway outside of configured network:
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:16:3E:29:5A:82
inet addr:10.10.10.10 Bcast:10.10.10.15 Mask:255.255.255.248
inet6 addr: fe80::216:3eff:fe29:5a82/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2522216 errors:0 dropped:0 overruns:0 frame:0
TX packets:61813 errors:0 dropped:0 overruns:0 ...
Read more : Default gateway on different subnet (linux case) | Views : 12266 | Replies : 1


Install Red5 open source flash server (CentOS)

Red5 is an Open Source Flash Server written in Java that supports:
Streaming Video (FLV, F4V, MP4, 3GP)
Streaming Audio (MP3, F4A, M4A, AAC)
Recording Client Streams (FLV and AVC+AAC in FLV container)
Shared Objects
Live Stream Publishing
Remoting
Protocols: RTMP, RTMPT, RTMPS, and RTMPE

As Red5 is written in Java, let`s install it on the server:
Code: Select all
yum install java-1.6.0-openjdk.x86_64  java-1.6.0-openjdk-devel.x86_64

Ant is needed to compile RED5 code. Ant comes in binary form, so we`ll ...
Read more : Install Red5 open source flash server (CentOS) | Views : 5705 | Replies : 0


column - columnate lists

Found useful for myself the following CLI utility: column.
Just compare the user friendliness of the following output:
# cat /proc/mounts
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
/dev/sdb3 / ext4 rw,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
rc-svcdir /lib64/rc/init.d tmpfs rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0 ...
Read more : column - columnate lists | Views : 2956 | Replies : 0


 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22

cron