<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Linux-Noob Forums - Tips and Tricks]]></title>
		<link>https://www.linux-noob.com/forums/</link>
		<description><![CDATA[Linux-Noob Forums - https://www.linux-noob.com/forums]]></description>
		<pubDate>Sat, 09 May 2026 11:41:02 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Useful Linux Tools]]></title>
			<link>https://www.linux-noob.com/forums/thread-186.html</link>
			<pubDate>Sat, 03 Mar 2012 21:16:34 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3499">inittux</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-186.html</guid>
			<description><![CDATA[<br />
I just came across a problem myself that Linux installer will only see one of my disks after making a RAID array. And I didn't think of downloading any tools that are useful to have when working with Linux. So starting a list of what would be useful tools for when working with Linux.<br />
<br />
 <br />
<br />
List of Useful tools:<br />
<br />
 <br />
<br />
1. bootable usb/dvd with liveCD/DVD or other bootable Linux distro<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I just came across a problem myself that Linux installer will only see one of my disks after making a RAID array. And I didn't think of downloading any tools that are useful to have when working with Linux. So starting a list of what would be useful tools for when working with Linux.<br />
<br />
 <br />
<br />
List of Useful tools:<br />
<br />
 <br />
<br />
1. bootable usb/dvd with liveCD/DVD or other bootable Linux distro<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Installing Microsoft fonts]]></title>
			<link>https://www.linux-noob.com/forums/thread-465.html</link>
			<pubDate>Tue, 11 May 2010 11:12:15 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=856">hybrid</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-465.html</guid>
			<description><![CDATA[<br />
This is an update to anyweb's tutorial <a href="http://&lt;___base_url___&gt;/index.php?/topic/23-how-to-install-microsoft-ttf-fonts-in-red-hat/" target="_blank" rel="noopener" class="mycode_url">How to Install Microsoft TTF Fonts in Red Hat</a>. Since that tutorial was written, it is much easier with most modern distributions to install the fonts.<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">Why do you want the Microsoft fonts?</span><br />
<br />
 <br />
<br />
Most Linux distributions ship without this pack of fonts distributed by Microsoft, but most websites assume that you have this base set of fonts installed. What that practically means is that many websites will have weird-looking fonts and will not display as the designer intended. Installing the fonts makes your Linux web browsing experience much more familiar and again, things look as intended!<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">How to Install</span><br />
<br />
 <br />
<br />
In most distributions, it is now very simple to download and install the font pack in one step.<br />
<br />
 <br />
<br />
Go to your package manager or software management application (e.g. Ubuntu Software Centre) and search for <span style="font-weight: bold;" class="mycode_b">msttcorefonts</span>. Choose to install that package.<br />
<br />
 <br />
<br />
If you can't find or don't want to use the graphical package manager, you can go to a terminal and do:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>sudo apt-get install msttcorefonts</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
(for Debian, Ubuntu, Linux Mint etc.)<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>su -c "yum install msttcorefonts"</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
(for Fedora, CentOS, RHEL, etc.)<br />
<br />
 <br />
<br />
Once the package has been downloaded and installed, you will need to log out and log back in so that your web browser so that it has access to the fonts. Fire up your browser again and you should start to see web pages rendering in the way they were designed to, with those Microsoft fonts.<br />
<br />
 <br />
<br />
If you are still having problems and the new fonts aren't showing up, try running this command as root:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>sudo fc-cache -fv</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
That should be it!<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
This is an update to anyweb's tutorial <a href="http://&lt;___base_url___&gt;/index.php?/topic/23-how-to-install-microsoft-ttf-fonts-in-red-hat/" target="_blank" rel="noopener" class="mycode_url">How to Install Microsoft TTF Fonts in Red Hat</a>. Since that tutorial was written, it is much easier with most modern distributions to install the fonts.<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">Why do you want the Microsoft fonts?</span><br />
<br />
 <br />
<br />
Most Linux distributions ship without this pack of fonts distributed by Microsoft, but most websites assume that you have this base set of fonts installed. What that practically means is that many websites will have weird-looking fonts and will not display as the designer intended. Installing the fonts makes your Linux web browsing experience much more familiar and again, things look as intended!<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">How to Install</span><br />
<br />
 <br />
<br />
In most distributions, it is now very simple to download and install the font pack in one step.<br />
<br />
 <br />
<br />
Go to your package manager or software management application (e.g. Ubuntu Software Centre) and search for <span style="font-weight: bold;" class="mycode_b">msttcorefonts</span>. Choose to install that package.<br />
<br />
 <br />
<br />
If you can't find or don't want to use the graphical package manager, you can go to a terminal and do:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>sudo apt-get install msttcorefonts</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
(for Debian, Ubuntu, Linux Mint etc.)<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>su -c "yum install msttcorefonts"</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
(for Fedora, CentOS, RHEL, etc.)<br />
<br />
 <br />
<br />
Once the package has been downloaded and installed, you will need to log out and log back in so that your web browser so that it has access to the fonts. Fire up your browser again and you should start to see web pages rendering in the way they were designed to, with those Microsoft fonts.<br />
<br />
 <br />
<br />
If you are still having problems and the new fonts aren't showing up, try running this command as root:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>sudo fc-cache -fv</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
That should be it!<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[how to build Customize DVD]]></title>
			<link>https://www.linux-noob.com/forums/thread-750.html</link>
			<pubDate>Tue, 27 Jan 2009 16:45:45 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3250">slackman</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-750.html</guid>
			<description><![CDATA[<br />
i have CentOS 5.2 DVD and i copy image all DVD to image file (linux.iso) and change ks.cfg in this below<br />
<br />
 <br />
<br />
# ks.cfg : Created by Instalinux at Tue Nov 18 23:07:32 PST 2008<br />
<br />
# COE-Profile used: Custom<br />
<br />
lang en_US<br />
<br />
langsupport --default en_US<br />
<br />
mouse generic3ps/2<br />
<br />
keyboard us<br />
<br />
install<br />
<br />
timezone --utc Asia/Bangkok<br />
<br />
rootpw --iscrypted JBxtfQL27O.XE<br />
<br />
network --bootproto static --ip 192.168.1.2 --netmask 255.255.255.0 --gateway 192.168.1.1 --nameserver 192.168.1.1 --device eth0<br />
<br />
network --bootproto static --ip 172.168.1.1 --netmask 255.255.255.0 --device eth1<br />
<br />
cdrom<br />
<br />
selinux --disabled<br />
<br />
firewall --disabled<br />
<br />
clearpart --all --initlabel<br />
<br />
zerombr yes<br />
<br />
bootloader --location=mbr<br />
<br />
part /boot --size 75 --fstype ext2<br />
<br />
part / --size 1500 --grow --fstype ext3<br />
<br />
part swap --size 512 --fstype swap<br />
<br />
 <br />
<br />
%packages<br />
<br />
@admin-tools<br />
<br />
@development-tools<br />
<br />
@development-libs<br />
<br />
@system-tools<br />
<br />
@base<br />
<br />
@core<br />
<br />
@dns-server<br />
<br />
@editors<br />
<br />
@ftp-server<br />
<br />
@java<br />
<br />
@java-development<br />
<br />
@legacy-network-server<br />
<br />
@legacy-software-development<br />
<br />
@legacy-software-support<br />
<br />
@mysql<br />
<br />
@network-server<br />
<br />
@server-cfg<br />
<br />
@text-internet<br />
<br />
@web-server<br />
<br />
kernel-devel<br />
<br />
lm_sensors<br />
<br />
net-snmp-libs<br />
<br />
net-snmp<br />
<br />
mrtg<br />
<br />
iptraf<br />
<br />
mc<br />
<br />
php-mysql<br />
<br />
php-cli<br />
<br />
php-common<br />
<br />
php-dba<br />
<br />
php-devel<br />
<br />
php-gd<br />
<br />
php-imap<br />
<br />
php-ldap<br />
<br />
php-mbstring<br />
<br />
php-ncurses<br />
<br />
php-odbc<br />
<br />
php-pdo<br />
<br />
php-snmp<br />
<br />
php-xml<br />
<br />
php-soap<br />
<br />
php-xmlrpc<br />
<br />
bind-chroot<br />
<br />
bind-devel<br />
<br />
bind-libbind-devel<br />
<br />
bind-libs<br />
<br />
bind-sdb<br />
<br />
bind-utils<br />
<br />
binutils<br />
<br />
binutils-devel<br />
<br />
caching-nameserver<br />
<br />
system-config-bind<br />
<br />
ypbind<br />
<br />
 <br />
<br />
%post<br />
<br />
mkdir -p /etc/nax/install/<br />
<br />
cp -rf /tmp/cdrom/rar-3.7.0-0.1.beta1.el5.rf.i386.rpm /etc/nax/install/<br />
<br />
cp -rf /tmp/cdrom/naxpacketv2008-fc8.tar /etc/nax/install<br />
<br />
 <br />
<br />
 <br />
<br />
it's all package select install working fine. but post install it's not working<br />
<br />
 <br />
<br />
1. i copy rar-3.7.0-0.1.beta1.el5.rf.i386.rpm to  "CentOS" directory (** CentOS directory include all rpms)<br />
<br />
2. i copy naxpacketv2008-fc8.tar to "CentOS" directory also. ** it's my application<br />
<br />
 <br />
<br />
after installed i looking in /etc/nax/install directory   rar-3.7.0-0.1.beta1.el5.rf.i386.rpm,naxpacketv2008-fc8.tar not found<br />
<br />
 <br />
<br />
how to working.<br />
<br />
 <br />
<br />
ext.<br />
<br />
1. i want to use shell script in post install section also. like this(install-core.sh in naxpacketv2008-fc8.tar)<br />
<br />
 <br />
<br />
#!/bin/sh<br />
<br />
#### linux core #####<br />
<br />
cd /etc/nax/install<br />
<br />
cd src<br />
<br />
cp -rf linux-2.6.23.1.tar.bz2 /usr/src/<br />
<br />
cp -rf iptables-1.3.8.tar.bz2 /usr/src/<br />
<br />
cd /usr/src<br />
<br />
bunzip2 linux-2.6.23.1.tar.bz2<br />
<br />
bunzip2 iptables-1.3.8.tar.bz2<br />
<br />
tar -xvf linux-2.6.23.1.tar<br />
<br />
tar -xvf iptables-1.3.8.tar<br />
<br />
cd linux-2.6.23.1<br />
<br />
make bzImage<br />
<br />
make modules<br />
<br />
make modules_install<br />
<br />
make install<br />
<br />
cd ..<br />
<br />
cd iptables-1.3.8<br />
<br />
chmod +x extensions/.layer7-test<br />
<br />
make KERNEL_DIR=/usr/src/linux-2.6.23.1<br />
<br />
make install KERNEL_DIR=/usr/src/linux-2.6.23.1<br />
<br />
cd /etc/nax/install/src<br />
<br />
cd l7<br />
<br />
make install<br />
<br />
##### iptables #########################<br />
<br />
cd /sbin<br />
<br />
mv iptables iptables.old <br />
<br />
mv iptables-save iptables-save.old <br />
<br />
mv iptables-restore iptables-restore.old  <br />
<br />
ln -s /usr/local/sbin/iptables iptables <br />
<br />
ln -s /usr/local/sbin/iptables-save iptables-save <br />
<br />
ln -s /usr/local/sbin/iptables-restore iptables-restore <br />
<br />
##########################################<br />
<br />
#### ipp2p #########<br />
<br />
cd /etc/nax/install/sysconfig/ipp2p-0.99.14<br />
<br />
make clean<br />
<br />
make<br />
<br />
cp -rf libipt_ipp2p.so /usr/local/lib/iptables/<br />
<br />
insmod ipt_ipp2p.ko<br />
<br />
depmod -a<br />
<br />
cp ipt_ipp2p.ko -rf /lib/modules/2.6.23.1/kernel/net/ipv4/netfilter/<br />
<br />
##### service ###<br />
<br />
rpm --force -ivh *.rpm<br />
<br />
cp -rf modsecurity_crs_10_config.conf /etc/httpd/modsecurity.d/<br />
<br />
 <br />
<br />
 <br />
<br />
very thank for any anwser.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
i have CentOS 5.2 DVD and i copy image all DVD to image file (linux.iso) and change ks.cfg in this below<br />
<br />
 <br />
<br />
# ks.cfg : Created by Instalinux at Tue Nov 18 23:07:32 PST 2008<br />
<br />
# COE-Profile used: Custom<br />
<br />
lang en_US<br />
<br />
langsupport --default en_US<br />
<br />
mouse generic3ps/2<br />
<br />
keyboard us<br />
<br />
install<br />
<br />
timezone --utc Asia/Bangkok<br />
<br />
rootpw --iscrypted JBxtfQL27O.XE<br />
<br />
network --bootproto static --ip 192.168.1.2 --netmask 255.255.255.0 --gateway 192.168.1.1 --nameserver 192.168.1.1 --device eth0<br />
<br />
network --bootproto static --ip 172.168.1.1 --netmask 255.255.255.0 --device eth1<br />
<br />
cdrom<br />
<br />
selinux --disabled<br />
<br />
firewall --disabled<br />
<br />
clearpart --all --initlabel<br />
<br />
zerombr yes<br />
<br />
bootloader --location=mbr<br />
<br />
part /boot --size 75 --fstype ext2<br />
<br />
part / --size 1500 --grow --fstype ext3<br />
<br />
part swap --size 512 --fstype swap<br />
<br />
 <br />
<br />
%packages<br />
<br />
@admin-tools<br />
<br />
@development-tools<br />
<br />
@development-libs<br />
<br />
@system-tools<br />
<br />
@base<br />
<br />
@core<br />
<br />
@dns-server<br />
<br />
@editors<br />
<br />
@ftp-server<br />
<br />
@java<br />
<br />
@java-development<br />
<br />
@legacy-network-server<br />
<br />
@legacy-software-development<br />
<br />
@legacy-software-support<br />
<br />
@mysql<br />
<br />
@network-server<br />
<br />
@server-cfg<br />
<br />
@text-internet<br />
<br />
@web-server<br />
<br />
kernel-devel<br />
<br />
lm_sensors<br />
<br />
net-snmp-libs<br />
<br />
net-snmp<br />
<br />
mrtg<br />
<br />
iptraf<br />
<br />
mc<br />
<br />
php-mysql<br />
<br />
php-cli<br />
<br />
php-common<br />
<br />
php-dba<br />
<br />
php-devel<br />
<br />
php-gd<br />
<br />
php-imap<br />
<br />
php-ldap<br />
<br />
php-mbstring<br />
<br />
php-ncurses<br />
<br />
php-odbc<br />
<br />
php-pdo<br />
<br />
php-snmp<br />
<br />
php-xml<br />
<br />
php-soap<br />
<br />
php-xmlrpc<br />
<br />
bind-chroot<br />
<br />
bind-devel<br />
<br />
bind-libbind-devel<br />
<br />
bind-libs<br />
<br />
bind-sdb<br />
<br />
bind-utils<br />
<br />
binutils<br />
<br />
binutils-devel<br />
<br />
caching-nameserver<br />
<br />
system-config-bind<br />
<br />
ypbind<br />
<br />
 <br />
<br />
%post<br />
<br />
mkdir -p /etc/nax/install/<br />
<br />
cp -rf /tmp/cdrom/rar-3.7.0-0.1.beta1.el5.rf.i386.rpm /etc/nax/install/<br />
<br />
cp -rf /tmp/cdrom/naxpacketv2008-fc8.tar /etc/nax/install<br />
<br />
 <br />
<br />
 <br />
<br />
it's all package select install working fine. but post install it's not working<br />
<br />
 <br />
<br />
1. i copy rar-3.7.0-0.1.beta1.el5.rf.i386.rpm to  "CentOS" directory (** CentOS directory include all rpms)<br />
<br />
2. i copy naxpacketv2008-fc8.tar to "CentOS" directory also. ** it's my application<br />
<br />
 <br />
<br />
after installed i looking in /etc/nax/install directory   rar-3.7.0-0.1.beta1.el5.rf.i386.rpm,naxpacketv2008-fc8.tar not found<br />
<br />
 <br />
<br />
how to working.<br />
<br />
 <br />
<br />
ext.<br />
<br />
1. i want to use shell script in post install section also. like this(install-core.sh in naxpacketv2008-fc8.tar)<br />
<br />
 <br />
<br />
#!/bin/sh<br />
<br />
#### linux core #####<br />
<br />
cd /etc/nax/install<br />
<br />
cd src<br />
<br />
cp -rf linux-2.6.23.1.tar.bz2 /usr/src/<br />
<br />
cp -rf iptables-1.3.8.tar.bz2 /usr/src/<br />
<br />
cd /usr/src<br />
<br />
bunzip2 linux-2.6.23.1.tar.bz2<br />
<br />
bunzip2 iptables-1.3.8.tar.bz2<br />
<br />
tar -xvf linux-2.6.23.1.tar<br />
<br />
tar -xvf iptables-1.3.8.tar<br />
<br />
cd linux-2.6.23.1<br />
<br />
make bzImage<br />
<br />
make modules<br />
<br />
make modules_install<br />
<br />
make install<br />
<br />
cd ..<br />
<br />
cd iptables-1.3.8<br />
<br />
chmod +x extensions/.layer7-test<br />
<br />
make KERNEL_DIR=/usr/src/linux-2.6.23.1<br />
<br />
make install KERNEL_DIR=/usr/src/linux-2.6.23.1<br />
<br />
cd /etc/nax/install/src<br />
<br />
cd l7<br />
<br />
make install<br />
<br />
##### iptables #########################<br />
<br />
cd /sbin<br />
<br />
mv iptables iptables.old <br />
<br />
mv iptables-save iptables-save.old <br />
<br />
mv iptables-restore iptables-restore.old  <br />
<br />
ln -s /usr/local/sbin/iptables iptables <br />
<br />
ln -s /usr/local/sbin/iptables-save iptables-save <br />
<br />
ln -s /usr/local/sbin/iptables-restore iptables-restore <br />
<br />
##########################################<br />
<br />
#### ipp2p #########<br />
<br />
cd /etc/nax/install/sysconfig/ipp2p-0.99.14<br />
<br />
make clean<br />
<br />
make<br />
<br />
cp -rf libipt_ipp2p.so /usr/local/lib/iptables/<br />
<br />
insmod ipt_ipp2p.ko<br />
<br />
depmod -a<br />
<br />
cp ipt_ipp2p.ko -rf /lib/modules/2.6.23.1/kernel/net/ipv4/netfilter/<br />
<br />
##### service ###<br />
<br />
rpm --force -ivh *.rpm<br />
<br />
cp -rf modsecurity_crs_10_config.conf /etc/httpd/modsecurity.d/<br />
<br />
 <br />
<br />
 <br />
<br />
very thank for any anwser.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Beryl.]]></title>
			<link>https://www.linux-noob.com/forums/thread-1090.html</link>
			<pubDate>Mon, 26 Nov 2007 06:01:06 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=2628">DonL</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1090.html</guid>
			<description><![CDATA[<br />
So I have installed beryl, nvidia drivers for gforce fx 5200, and avant.  Beryl and avant start on startup.  I figured that out on my own (freaking Sweeet).  Well heres what I have.  I have the Microsoft wireless photo keyboard.  So when I turn my Volume up or down. There is a white box that appears on my screen.  My terminal window is completely white still after doing updates.  and my awm dont show the launchers i have added to the application.  Everything is a plain white box.  Any Help would be really helpfull.  Thanks<br />
<br />
 <br />
<br />
Distro-Ubuntu 7.10<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
So I have installed beryl, nvidia drivers for gforce fx 5200, and avant.  Beryl and avant start on startup.  I figured that out on my own (freaking Sweeet).  Well heres what I have.  I have the Microsoft wireless photo keyboard.  So when I turn my Volume up or down. There is a white box that appears on my screen.  My terminal window is completely white still after doing updates.  and my awm dont show the launchers i have added to the application.  Everything is a plain white box.  Any Help would be really helpfull.  Thanks<br />
<br />
 <br />
<br />
Distro-Ubuntu 7.10<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Stop and Start Terminal]]></title>
			<link>https://www.linux-noob.com/forums/thread-1224.html</link>
			<pubDate>Tue, 07 Aug 2007 17:11:28 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=740">znx</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1224.html</guid>
			<description><![CDATA[<br />
When using a terminal you might be aware of the ^Q and ^S (that is Ctrl + q or Ctrl + s), these start and stop the terminal.<br />
<br />
 <br />
<br />
Say a terminal is scrolling lots and lots of information, obviously you can't read it, so you could do ^S, which would freeze the terminal at that point. Then you can read, do ^Q to start it again and so on.<br />
<br />
 <br />
<br />
Personally, in these days where terminals hold hundreds (or thousands) of lines there is little point. In fact most people probably just run the command again and use more/less to scroll the output.<br />
<br />
 <br />
<br />
I sometimes find that when I am using a terminal, with say irssi, that I accidently hit Ctrl+s. This will then cause irssi to stop and it will finally timeout and drop the server, needless to say a bit of a pain.<br />
<br />
 <br />
<br />
So here is the tip, you can unset the key press, ensuring that you don't accidentally hit the key.<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; stty stop ''</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
As simple as that. There is little need to unset the start key press as you will not be able to stop it now. You can add that line into you bashrc and then it will never affect you again.<br />
<br />
 <br />
<br />
For those that are interested you can see the current tty setup with:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; stty -a</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Never forget that every little niggle that can be removed can improve your productivity <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
When using a terminal you might be aware of the ^Q and ^S (that is Ctrl + q or Ctrl + s), these start and stop the terminal.<br />
<br />
 <br />
<br />
Say a terminal is scrolling lots and lots of information, obviously you can't read it, so you could do ^S, which would freeze the terminal at that point. Then you can read, do ^Q to start it again and so on.<br />
<br />
 <br />
<br />
Personally, in these days where terminals hold hundreds (or thousands) of lines there is little point. In fact most people probably just run the command again and use more/less to scroll the output.<br />
<br />
 <br />
<br />
I sometimes find that when I am using a terminal, with say irssi, that I accidently hit Ctrl+s. This will then cause irssi to stop and it will finally timeout and drop the server, needless to say a bit of a pain.<br />
<br />
 <br />
<br />
So here is the tip, you can unset the key press, ensuring that you don't accidentally hit the key.<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; stty stop ''</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
As simple as that. There is little need to unset the start key press as you will not be able to stop it now. You can add that line into you bashrc and then it will never affect you again.<br />
<br />
 <br />
<br />
For those that are interested you can see the current tty setup with:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36; stty -a</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Never forget that every little niggle that can be removed can improve your productivity <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[SSH Break]]></title>
			<link>https://www.linux-noob.com/forums/thread-1244.html</link>
			<pubDate>Fri, 20 Jul 2007 16:46:55 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=740">znx</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1244.html</guid>
			<description><![CDATA[<br />
Being very used to killing telnet connections with Ctrl+] (or ^]) then <span style="font-weight: bold;" class="mycode_b">quit</span>, I wanted a simpler method with SSH.<br />
<br />
 <br />
<br />
Basically what this is for is, lets say your remote shell has hung up on you. Normally what I would do is open another shell and kill the process. This is obviously a pain to keep doing.<br />
<br />
 <br />
<br />
A quick bit of googling and I found this:<br />
<br />
<a href="http://www.theclonchs.com/wiki/SSHBreak" target="_blank" rel="noopener" class="mycode_url">[/url]<a href="http://www.theclonchs.com/wiki/SSHBreak" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://www.theclonchs.com/wiki/SSHBreak" target="_blank" rel="noopener" class="mycode_url"></a>[url=http://www.theclonchs.com/wiki/SSHBreak]http://www.theclonchs.com/wiki/SSHBreak</a><br />
<br />
 <br />
<br />
You can either edit the global ssh_config as the example in that URL says (<span style="font-style: italic;" class="mycode_i">/etc/ssh/ssh_config</span>) or in the local user configuration (<span style="font-style: italic;" class="mycode_i">~/.ssh/config</span>).<br />
<br />
 <br />
<br />
So to test that you have it working properly do:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>mark@tone ~ % ssh localhost<br />
Password: &lt;password&gt;<br />
Last login: Fri Jul 20 15:45:45 2007 from localhost<br />
mark@tone ~ % <br />
mark@tone ~ % Connection to localhost closed.</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
So I typed <span style="font-weight: bold;" class="mycode_b">Enter ~.</span> and it quit. No more hung ssh connections! YAY<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Being very used to killing telnet connections with Ctrl+] (or ^]) then <span style="font-weight: bold;" class="mycode_b">quit</span>, I wanted a simpler method with SSH.<br />
<br />
 <br />
<br />
Basically what this is for is, lets say your remote shell has hung up on you. Normally what I would do is open another shell and kill the process. This is obviously a pain to keep doing.<br />
<br />
 <br />
<br />
A quick bit of googling and I found this:<br />
<br />
<a href="http://www.theclonchs.com/wiki/SSHBreak" target="_blank" rel="noopener" class="mycode_url">[/url]<a href="http://www.theclonchs.com/wiki/SSHBreak" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://www.theclonchs.com/wiki/SSHBreak" target="_blank" rel="noopener" class="mycode_url"></a>[url=http://www.theclonchs.com/wiki/SSHBreak]http://www.theclonchs.com/wiki/SSHBreak</a><br />
<br />
 <br />
<br />
You can either edit the global ssh_config as the example in that URL says (<span style="font-style: italic;" class="mycode_i">/etc/ssh/ssh_config</span>) or in the local user configuration (<span style="font-style: italic;" class="mycode_i">~/.ssh/config</span>).<br />
<br />
 <br />
<br />
So to test that you have it working properly do:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>mark@tone ~ % ssh localhost<br />
Password: &lt;password&gt;<br />
Last login: Fri Jul 20 15:45:45 2007 from localhost<br />
mark@tone ~ % <br />
mark@tone ~ % Connection to localhost closed.</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
So I typed <span style="font-weight: bold;" class="mycode_b">Enter ~.</span> and it quit. No more hung ssh connections! YAY<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[vi/vim tips]]></title>
			<link>https://www.linux-noob.com/forums/thread-1344.html</link>
			<pubDate>Mon, 04 Jun 2007 21:46:59 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=36">Ritter</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1344.html</guid>
			<description><![CDATA[<br />
Consult <a href="http://lagmonster.org/docs/vi2.html" target="_blank" rel="noopener" class="mycode_url">[/url]<a href="http://lagmonster.org/docs/vi2.html" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://lagmonster.org/docs/vi2.html" target="_blank" rel="noopener" class="mycode_url"></a>[url=http://lagmonster.org/docs/vi2.html]http://lagmonster.org/docs/vi2.html</a> for more, I found its a pretty good reference.<br />
<br />
 <br />
<br />
However one option seems understated.  If you want to delete everything from the cursor to the end of the file you'd do (while out of INSERT mode):<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>dG</code></div></div><br />
<br />
<br />
<br />
The d tells vi to delete, the G tells vi to go to the end of the file.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Consult <a href="http://lagmonster.org/docs/vi2.html" target="_blank" rel="noopener" class="mycode_url">[/url]<a href="http://lagmonster.org/docs/vi2.html" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://lagmonster.org/docs/vi2.html" target="_blank" rel="noopener" class="mycode_url"></a>[url=http://lagmonster.org/docs/vi2.html]http://lagmonster.org/docs/vi2.html</a> for more, I found its a pretty good reference.<br />
<br />
 <br />
<br />
However one option seems understated.  If you want to delete everything from the cursor to the end of the file you'd do (while out of INSERT mode):<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>dG</code></div></div><br />
<br />
<br />
<br />
The d tells vi to delete, the G tells vi to go to the end of the file.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[SSH and BASH]]></title>
			<link>https://www.linux-noob.com/forums/thread-1506.html</link>
			<pubDate>Thu, 22 Mar 2007 23:37:57 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=740">znx</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1506.html</guid>
			<description><![CDATA[<br />
How many times have I seen people using SSH aliases to shorthand the long statements they need to type to login:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>alias ssh-home="ssh -p 12345 znx@somelong.hostname.com"</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Now whilst this eases the pain, you are missing some real magic that SSH and BASH can provide you! So lets get started:<br />
<br />
 <br />
<br />
Edit/Make the <span style="font-weight: bold;" class="mycode_b">~/.ssh/config</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Host some<br />
&nbsp;&nbsp;HostKeyAlias somelong.hostname.com<br />
&nbsp;&nbsp;HostName somelong.hostname.com<br />
&nbsp;&nbsp;User znx<br />
&nbsp;&nbsp;Port 12345</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Now what's that all about you say, well now the original long top line can be replaced with:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>ssh some</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
MAGIC!<br />
<br />
 <br />
<br />
But that's not all, you can infact setup BASH to provide you with a tab completion on those new short hostnames!<br />
<br />
 <br />
<br />
Edit/Add to your <span style="font-weight: bold;" class="mycode_b">~/.bashrc</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>HOSTFILE=~/.hosts<br />
<br />
function _ssh() {<br />
 local cur<br />
 cur=&#36;{COMP_WORDS[COMP_CWORD]}<br />
 if [ "&#36;{cur:0:1}" != "-" ]; then<br />
COMPREPLY=( &#36;(awk '/^Host '&#36;2'/{print &#36;2}' &#36;HOME/.ssh/config) )<br />
 fi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
 return 0<br />
}<br />
<br />
complete -F _ssh ssh sftp scp<br />
complete -A hostname ssh sftp scp</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Edit/Add to a <span style="font-weight: bold;" class="mycode_b">~/.hosts</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>192.168.1.2&nbsp;&nbsp;some.long.host hostname<br />
192.168.1.3 other.long.host host</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
To update the current shell you are running do:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>source ~/.bashrc</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Now here is the magic:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>ssh s&lt;TAB BUTTON&gt;</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
At which point you will be given the option of "some" or "some.long.host". Better than all that is this, when you edit your ~/.ssh/config or your ~/.hosts to update or add a new host, it is INSTANTLY in your tab complete.<br />
<br />
 <br />
<br />
Weeeeee!<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>ssh home<br />
ssh work<br />
ssh somefriend<br />
ssh here<br />
ssh there</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
 <img src="https://www.linux-noob.com/forums/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" />  Love Linux  <img src="https://www.linux-noob.com/forums/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
How many times have I seen people using SSH aliases to shorthand the long statements they need to type to login:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>alias ssh-home="ssh -p 12345 znx@somelong.hostname.com"</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Now whilst this eases the pain, you are missing some real magic that SSH and BASH can provide you! So lets get started:<br />
<br />
 <br />
<br />
Edit/Make the <span style="font-weight: bold;" class="mycode_b">~/.ssh/config</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Host some<br />
&nbsp;&nbsp;HostKeyAlias somelong.hostname.com<br />
&nbsp;&nbsp;HostName somelong.hostname.com<br />
&nbsp;&nbsp;User znx<br />
&nbsp;&nbsp;Port 12345</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Now what's that all about you say, well now the original long top line can be replaced with:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>ssh some</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
MAGIC!<br />
<br />
 <br />
<br />
But that's not all, you can infact setup BASH to provide you with a tab completion on those new short hostnames!<br />
<br />
 <br />
<br />
Edit/Add to your <span style="font-weight: bold;" class="mycode_b">~/.bashrc</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>HOSTFILE=~/.hosts<br />
<br />
function _ssh() {<br />
 local cur<br />
 cur=&#36;{COMP_WORDS[COMP_CWORD]}<br />
 if [ "&#36;{cur:0:1}" != "-" ]; then<br />
COMPREPLY=( &#36;(awk '/^Host '&#36;2'/{print &#36;2}' &#36;HOME/.ssh/config) )<br />
 fi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
 return 0<br />
}<br />
<br />
complete -F _ssh ssh sftp scp<br />
complete -A hostname ssh sftp scp</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Edit/Add to a <span style="font-weight: bold;" class="mycode_b">~/.hosts</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>192.168.1.2&nbsp;&nbsp;some.long.host hostname<br />
192.168.1.3 other.long.host host</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
To update the current shell you are running do:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>source ~/.bashrc</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Now here is the magic:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>ssh s&lt;TAB BUTTON&gt;</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
At which point you will be given the option of "some" or "some.long.host". Better than all that is this, when you edit your ~/.ssh/config or your ~/.hosts to update or add a new host, it is INSTANTLY in your tab complete.<br />
<br />
 <br />
<br />
Weeeeee!<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>ssh home<br />
ssh work<br />
ssh somefriend<br />
ssh here<br />
ssh there</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
 <img src="https://www.linux-noob.com/forums/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" />  Love Linux  <img src="https://www.linux-noob.com/forums/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Do You Miss the "Win Key" in Linux?]]></title>
			<link>https://www.linux-noob.com/forums/thread-1779.html</link>
			<pubDate>Mon, 09 Oct 2006 15:21:45 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=1138">SendDerek</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1779.html</guid>
			<description><![CDATA[<br />
The credit for figuring out how to do this goes out to Scott from TheOpenSourceWeblog.<br />
<br />
 <br />
<br />
I had dugg this tutorial or "how to" a few weeks ago, and although there were only 9 diggs, I still figured it was a trick worth mentioning around here. <br />
<br />
 <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>Coming from Windows myself, I used the "win key" or the "super" key heavily to get to the Start menu, but now after switching to Linux with the KDE desktop, I sure do miss that key. And I'm too lazy to press Alt+F1. This is a guide that will get that "win key" working in Linux again. Although it's a guide for KDE, it can work in GNOME as well.</blockquote>
Here's the direct linky:<br />
<br />
<a href="http://opensource.weblogsinc.com/2005/05/27/miss-the-win-key-in-linux-use-kde/" target="_blank" rel="noopener" class="mycode_url">[/url]<a href="http://opensource.weblogsinc.com/2005/05/2...-linux-use-kde/" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://opensource.weblogsinc.com/2005/05/2...-linux-use-kde/" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://opensource.weblogsinc.com/2005/05/2...-linux-use-kde/" target="_blank" rel="noopener" class="mycode_url">http://opensource.weblogsinc.com/2005/05/2...-linux-use-kde/</a><br />
<br />
 <br />
<br />
Here's the link if you want to digg it:<br />
<br />
<a href="http://digg.com/linux_unix/Do_You_Miss_the_Win_Key_in_Linux_Here_s_How_to_Get_it_Back" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://digg.com/linux_unix/Do_You_Miss_the..._to_Get_it_Back" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://digg.com/linux_unix/Do_You_Miss_the..._to_Get_it_Back" target="_blank" rel="noopener" class="mycode_url"></a>[url=http://digg.com/linux_unix/Do_You_Miss_the..._to_Get_it_Back]http://digg.com/linux_unix/Do_You_Miss_the..._to_Get_it_Back</a><br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
The credit for figuring out how to do this goes out to Scott from TheOpenSourceWeblog.<br />
<br />
 <br />
<br />
I had dugg this tutorial or "how to" a few weeks ago, and although there were only 9 diggs, I still figured it was a trick worth mentioning around here. <br />
<br />
 <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>Coming from Windows myself, I used the "win key" or the "super" key heavily to get to the Start menu, but now after switching to Linux with the KDE desktop, I sure do miss that key. And I'm too lazy to press Alt+F1. This is a guide that will get that "win key" working in Linux again. Although it's a guide for KDE, it can work in GNOME as well.</blockquote>
Here's the direct linky:<br />
<br />
<a href="http://opensource.weblogsinc.com/2005/05/27/miss-the-win-key-in-linux-use-kde/" target="_blank" rel="noopener" class="mycode_url">[/url]<a href="http://opensource.weblogsinc.com/2005/05/2...-linux-use-kde/" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://opensource.weblogsinc.com/2005/05/2...-linux-use-kde/" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://opensource.weblogsinc.com/2005/05/2...-linux-use-kde/" target="_blank" rel="noopener" class="mycode_url">http://opensource.weblogsinc.com/2005/05/2...-linux-use-kde/</a><br />
<br />
 <br />
<br />
Here's the link if you want to digg it:<br />
<br />
<a href="http://digg.com/linux_unix/Do_You_Miss_the_Win_Key_in_Linux_Here_s_How_to_Get_it_Back" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://digg.com/linux_unix/Do_You_Miss_the..._to_Get_it_Back" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://digg.com/linux_unix/Do_You_Miss_the..._to_Get_it_Back" target="_blank" rel="noopener" class="mycode_url"></a>[url=http://digg.com/linux_unix/Do_You_Miss_the..._to_Get_it_Back]http://digg.com/linux_unix/Do_You_Miss_the..._to_Get_it_Back</a><br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Linux packag List.]]></title>
			<link>https://www.linux-noob.com/forums/thread-1781.html</link>
			<pubDate>Mon, 09 Oct 2006 08:24:22 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=1424">munyit</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1781.html</guid>
			<description><![CDATA[<br />
Can somebody help me, how to find out the packages that been install to my computer(Linux).<br />
<br />
Is there any command to do that..?<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Can somebody help me, how to find out the packages that been install to my computer(Linux).<br />
<br />
Is there any command to do that..?<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[HOW TO: Set a particular process to run on a specific cpu ( SMP )]]></title>
			<link>https://www.linux-noob.com/forums/thread-1860.html</link>
			<pubDate>Mon, 07 Aug 2006 22:15:54 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=908">bluemoon</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1860.html</guid>
			<description><![CDATA[<br />
OK, Well znx needs to be thanked once again for this.<br />
<br />
 <br />
<br />
Where this can be used for example:<br />
<br />
 <br />
<br />
If you are running 4 gaming servers assuming you are using Dual Xeon processors with HT ( classed as 4 cpu's in linux)<br />
<br />
 <br />
<br />
Server 1 uses 60% CPU Usage<br />
<br />
Server 2 Uses 60% CPU Usage<br />
<br />
Server 3 Uses 20% CPU Usage<br />
<br />
Server 4 Uses 20% CPU Usage <br />
<br />
 <br />
<br />
Rather than letting the distro automtically assign CPU's it is sometimes better for you to do it manually. In this instance it would make server to have<br />
<br />
 <br />
<br />
Server 1 using CPU0<br />
<br />
Server 2 using CPU1<br />
<br />
Server 3 + 4 using CPU2<br />
<br />
 <br />
<br />
Leaving you with a spare CPU.<br />
<br />
 <br />
<br />
Example of how to install this in Debian / Redhat / Other:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># apt-get install schedutils</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Redhat<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># up2date schedutils</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Other<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># rpm -ivh schedutils*</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
 <br />
<br />
If you have a particular process running and it will  retain the same PID throughout then you can do the following command:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># taskset -c 1 -p 13545</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
'-c 1- = Which cpu you wish the process to run on. In my example this can be set to Either ( CPU0, CPU1, CPU 2, CPU3 )<br />
<br />
 <br />
<br />
'-p 12345- Is the process, if the process does not retain the same PID then you need to do the following:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># taskset -c 3 ./server1.sh</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
If the 'respawning' script needs to be run in screen, you would do:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>screen -m -d -s -- taskset -c 3 ./server1.sh</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
The parent and child, no matter how many times new children (therefore new PIDs) it will still run on CPU3 ( -c3 )<br />
<br />
 <br />
<br />
More information on this can be found @ <a href="http://www.cyberciti.biz/tips/setting-processor-affinity-certain-task-or-process.html" target="_blank" rel="noopener" class="mycode_url">[/url]<a href="http://www.cyberciti.biz/tips/setting-proc...or-process.html" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://www.cyberciti.biz/tips/setting-proc...or-process.html" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://www.cyberciti.biz/tips/setting-proc...or-process.html" target="_blank" rel="noopener" class="mycode_url">http://www.cyberciti.biz/tips/setting-proc...or-process.html</a><br />
<br />
 <br />
<br />
And more information about re-spawning scripts can be found @ [url=&lt;___base_url___&gt;/index.php?showtopic=1746]</a><a href="http://&lt;___base_url___&gt;/index.php?showtopic=1746" target="_blank" rel="noopener" class="mycode_url">[/url][url=&lt;___base_url___&gt;/index.php?showtopic=1746]</a><a href="http://&lt;___base_url___&gt;/index.php?showtopic=1746" target="_blank" rel="noopener" class="mycode_url">https://www.linux-noob.com/forums/index.php?showtopic=1746</a><br />
<br />
 <br />
<br />
I hope this helps.<br />
<br />
 <br />
<br />
Sorry if some of the lingo is incorrect. I tried my best, im a linux noob <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
 <br />
<br />
Thanks to znx again.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
OK, Well znx needs to be thanked once again for this.<br />
<br />
 <br />
<br />
Where this can be used for example:<br />
<br />
 <br />
<br />
If you are running 4 gaming servers assuming you are using Dual Xeon processors with HT ( classed as 4 cpu's in linux)<br />
<br />
 <br />
<br />
Server 1 uses 60% CPU Usage<br />
<br />
Server 2 Uses 60% CPU Usage<br />
<br />
Server 3 Uses 20% CPU Usage<br />
<br />
Server 4 Uses 20% CPU Usage <br />
<br />
 <br />
<br />
Rather than letting the distro automtically assign CPU's it is sometimes better for you to do it manually. In this instance it would make server to have<br />
<br />
 <br />
<br />
Server 1 using CPU0<br />
<br />
Server 2 using CPU1<br />
<br />
Server 3 + 4 using CPU2<br />
<br />
 <br />
<br />
Leaving you with a spare CPU.<br />
<br />
 <br />
<br />
Example of how to install this in Debian / Redhat / Other:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># apt-get install schedutils</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Redhat<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># up2date schedutils</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Other<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># rpm -ivh schedutils*</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
 <br />
<br />
If you have a particular process running and it will  retain the same PID throughout then you can do the following command:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># taskset -c 1 -p 13545</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
'-c 1- = Which cpu you wish the process to run on. In my example this can be set to Either ( CPU0, CPU1, CPU 2, CPU3 )<br />
<br />
 <br />
<br />
'-p 12345- Is the process, if the process does not retain the same PID then you need to do the following:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># taskset -c 3 ./server1.sh</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
If the 'respawning' script needs to be run in screen, you would do:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>screen -m -d -s -- taskset -c 3 ./server1.sh</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
The parent and child, no matter how many times new children (therefore new PIDs) it will still run on CPU3 ( -c3 )<br />
<br />
 <br />
<br />
More information on this can be found @ <a href="http://www.cyberciti.biz/tips/setting-processor-affinity-certain-task-or-process.html" target="_blank" rel="noopener" class="mycode_url">[/url]<a href="http://www.cyberciti.biz/tips/setting-proc...or-process.html" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://www.cyberciti.biz/tips/setting-proc...or-process.html" target="_blank" rel="noopener" class="mycode_url"></a><a href="http://www.cyberciti.biz/tips/setting-proc...or-process.html" target="_blank" rel="noopener" class="mycode_url">http://www.cyberciti.biz/tips/setting-proc...or-process.html</a><br />
<br />
 <br />
<br />
And more information about re-spawning scripts can be found @ [url=&lt;___base_url___&gt;/index.php?showtopic=1746]</a><a href="http://&lt;___base_url___&gt;/index.php?showtopic=1746" target="_blank" rel="noopener" class="mycode_url">[/url][url=&lt;___base_url___&gt;/index.php?showtopic=1746]</a><a href="http://&lt;___base_url___&gt;/index.php?showtopic=1746" target="_blank" rel="noopener" class="mycode_url">https://www.linux-noob.com/forums/index.php?showtopic=1746</a><br />
<br />
 <br />
<br />
I hope this helps.<br />
<br />
 <br />
<br />
Sorry if some of the lingo is incorrect. I tried my best, im a linux noob <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
 <br />
<br />
Thanks to znx again.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Xen 3.0 Install Script for RHES 4]]></title>
			<link>https://www.linux-noob.com/forums/thread-1871.html</link>
			<pubDate>Wed, 02 Aug 2006 15:44:31 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=1363">russoaks</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1871.html</guid>
			<description><![CDATA[<br />
I'm having a problem with the xen-install-rhel4.1 script while attempting to install Xen on RedHat 4 - I'm getting stopped at this point:      <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>eval `/etc/xen/scripts/grubread.pl &#36;active_kernel_version &lt; &#36;{GRUB_CONF}`<br />
if [ -z "&#36;GRUB_ROOT" -o -z "&#36;FS_ROOT" ]; then<br />
&nbsp;&nbsp;&nbsp;&nbsp;echo "Unable to update &#36;{GRUB_CONF}." &gt; /dev/stderr<br />
&nbsp;&nbsp;&nbsp;&nbsp;exit 1<br />
fi</code></div></div><br />
<br />
<br />
<br />
What are the -z and -o options for and how are they being used here?  If I can get a better understanding of what is happening, I can figure out a work around or be able to fix the issue.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I'm having a problem with the xen-install-rhel4.1 script while attempting to install Xen on RedHat 4 - I'm getting stopped at this point:      <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>eval `/etc/xen/scripts/grubread.pl &#36;active_kernel_version &lt; &#36;{GRUB_CONF}`<br />
if [ -z "&#36;GRUB_ROOT" -o -z "&#36;FS_ROOT" ]; then<br />
&nbsp;&nbsp;&nbsp;&nbsp;echo "Unable to update &#36;{GRUB_CONF}." &gt; /dev/stderr<br />
&nbsp;&nbsp;&nbsp;&nbsp;exit 1<br />
fi</code></div></div><br />
<br />
<br />
<br />
What are the -z and -o options for and how are they being used here?  If I can get a better understanding of what is happening, I can figure out a work around or be able to fix the issue.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Exit program & Messages trouble]]></title>
			<link>https://www.linux-noob.com/forums/thread-1898.html</link>
			<pubDate>Sun, 16 Jul 2006 22:17:01 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=17">lia</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1898.html</guid>
			<description><![CDATA[<br />
Is there any way of being able to EXIT a program without having all my windows to close?<br />
<br />
 <br />
<br />
EG. Ctrl+Alt+Del and then chose which program you wanna terminate (if its not responding etc)<br />
<br />
 <br />
<br />
Im on FC4 and FF<br />
<br />
 <br />
<br />
--------------------------<br />
<br />
 <br />
<br />
Also, here on the forum I have noticed lately that if I want to respond to a few comments under a same topic, my comments end up squeezed into ONE instead of multiple.<br />
<br />
 <br />
<br />
Why and what can I do about it?<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Is there any way of being able to EXIT a program without having all my windows to close?<br />
<br />
 <br />
<br />
EG. Ctrl+Alt+Del and then chose which program you wanna terminate (if its not responding etc)<br />
<br />
 <br />
<br />
Im on FC4 and FF<br />
<br />
 <br />
<br />
--------------------------<br />
<br />
 <br />
<br />
Also, here on the forum I have noticed lately that if I want to respond to a few comments under a same topic, my comments end up squeezed into ONE instead of multiple.<br />
<br />
 <br />
<br />
Why and what can I do about it?<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Hardening FC4]]></title>
			<link>https://www.linux-noob.com/forums/thread-2024.html</link>
			<pubDate>Fri, 21 Apr 2006 14:55:47 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=990">cyris</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2024.html</guid>
			<description><![CDATA[Hello everyone. Over the next few days I would like to do a security review on my FC4 server at home. I was wondering if anyone could recommend any hardening applications that would assist me in this process?<br />
]]></description>
			<content:encoded><![CDATA[Hello everyone. Over the next few days I would like to do a security review on my FC4 server at home. I was wondering if anyone could recommend any hardening applications that would assist me in this process?<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Building a POP3 Mail Server]]></title>
			<link>https://www.linux-noob.com/forums/thread-2034.html</link>
			<pubDate>Sun, 16 Apr 2006 09:40:46 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=387">jsn06</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2034.html</guid>
			<description><![CDATA[You want to set up a POP3 mail server<br />
]]></description>
			<content:encoded><![CDATA[You want to set up a POP3 mail server<br />
]]></content:encoded>
		</item>
	</channel>
</rss>