How to get standard 80×25 console instead of SVGA console in Fedora Linux
Aug 24th
If you want to get good old 80×25 console in text mode of Fedora, you need to pass “nomodeset” option to the kernel.
Open the file /etc/grub.conf or /boot/grub/grub.conf file and “nomodeset” option to the “kernel” line of the active boot entry.
kernel /vmlinuz-2.6.28.24 ro root=/dev/sda2 rhgb quiet nomodeset
How to disable graphical boot in Fedora
Aug 23rd
To disable graphical boot in Fedora, you need to modify system configuration.
Open the file “/etc/sysconfig/init” and change the line “GRAPHICAL=yes” to “GRAPHICAL=no“. This only disables Fedora from using graphics mode during start up. So Fedora shows the text bar during start up.
However if you want to disable graphical login screen and move to text mode completely, you need to edit the following line in “/etc/inittab” file.
Change
id:5:initdefault:
to
id:3:initdefault:
In the above line, “5″ means graphical mode login and “3″ means text mode login.
How to change home directory of a user in Linux
Aug 21st
Ensure you have shadow-utils package installed.
yum install -y shadow-utils
Use the following command to set new home directory /home/newhome for user “myuser”.
usermod -d /home/newhome myuser
How to change user login name in Linux
Aug 20th
Ensure you have shadow-utils package installed
yum install -y shadow-utils
Then run the following command to change an existing login name “olduser” to “newuser”.
usermod -n newuser olduser
How to build in silent mode using GNU make
Aug 19th
Use the following command for absolutely silent build
make -s
Use the following command for absolutely silent build except printing directory before and after processing.
make -s -w
How to define local links in a web page
Aug 18th
The local links in a web page are called anchors.
To define an anchor in a HTML page, create a dummy “a” link as shown below.
<a id="chapter1"></a>
Create a link that user can click on to go to the previously defined anchor.
<a href="#chapter1">Chapter1</a>
Simple usage of sed command
Aug 17th
The following examples show you how sed command can be used as a powerful alternative to general commands like head, tail etc.
Let us consider the below input file for all the examples explained here.
[neo@techpulp ~]# cat input.txt Line1 Line2 Line3 Line4 Line5 Line6 Line7 Line8 Line9 Line10 Line11 Line12 Line13 Line14 Line15 Line16 Line17 Line18 Line19 Line20 [neo@techpulp ~]#
Print all lines
[neo@techpulp ~]# sed -e '' input.txt Line1 Line2 Line3 Line4 Line5 Line6 Line7 Line8 Line9 Line10 Line11 Line12 Line13 Line14 Line15 Line16 Line17 Line18 Line19 Line20 [neo@techpulp ~]#
Do not print first 10 lines of input. Here “d” stands for deletion.
[neo@techpulp ~]# More >
How to resolve xinetd startup errors in Linux
Apr 13th
The best way to solve any service start up errors in Linux is to run them manually with debug mode on. The difficulty comes from finding exact command line arguments to be passed (as if it were started by Linux start up scripts) and also disabling default daemon mode for the server command. You can easily find the options to enable debug mode for the server by quickly looking at man page.
For example, you can use following command to run xinetd service in the foreground with debug on.
[root@techpulp ~]# /usr/sbin/xinetd -d -dontfork
10/4/13@00:34:14: DEBUG: 3657 {handle_includedir} Reading included configuration file: /etc/xinetd.d/chargen-dgram More > What is the best alternative to WinZip
Jan 18th
If you are tired of commerical software WinZip, The best free software alternative to WinZip is 7-zip.
In fact 7-zip is better than WinZip as it supports more formats like BZIP2, RPM etc along with its own format 7z.
7-zip in Windows
The 7-zip can create archives of following formats.
- 7z, ZIP, GZIP, BZIP2 and TAR
The 7-zip application can unzip following formats
- 7z, ZIP, GZIP, BZIP2 and TAR
- ARJ, CAB, CHM, CPIO, DEB, DMG, HFS, ISO, LZH, LZMA, MSI, NSIS, RAR, RPM, UDF, WIM, XAR and Z.
This is best compatible with UNIX flavours as it supports the archives seen on UNIX systems like GZIP, TAR, BZIP2, More >
How to install VLC Media Player on Fedora
Jan 17th
Fedora doesn’t distribute VLC media player as part its core and updates. So you need download rpms from rpmfusion.org as shown below.
[root@techpulp ~]# rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm [root@techpulp ~]# yum install -y vlc [root@techpulp ~]# yum install -y mozilla-vlc
Off the above, installing mozilla-vlc is optional as it installs a browser plug-in for Mozilla/Firefox Browser.


Recent Comments