The following tutorial covers the process of installing SUSE Linux to an external USB Hard Drive using the OpenSUSE Live CD. The process is made possible due to a custom Portable SUSE script created by James Rhodes. The user basically boots from the Live OpenSUSE CD and performs the installation via the included YaST2 Install script to install SUSE to a USB Hard drive. Then the user reboots from the Portable SUSE installation and launches the custom script to convert some files in the running SUSE system for portable compatibility.
Tags: external usb hard driveInstallOpenSUSEPortable SUSESUSEUSB SUSEThis setup allows users to log into a Linux client with there Microsoft Active Directory username/password.
linux
against
authenticate
ads
to
via
PAM
LDAP
Client
User:paul_mat
ssh (SSH client) is a program for logging into a remote machine and for executing commands on a remote machine. It is intended to replace rlogin and rsh, and provide secure encrypted communications between two untrusted hosts over an insecure network. X11 connections and arbitrary TCP ports can also be forwarded over the secure channel.
We all know, by default installation of openssh daemon service (sshd), it binds itself to all existing IP address from given host.
Alternatively, if you wish to bind sshd service to selected IP address, this is possible by simply editing /etc/ssh/sshd_config file.
First, always make a backup copy of conf files you wish to edit.
# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.backup
Launch your fave text editor and edit /etc/ssh/sshd_config
#vi /etc/ssh/sshd_config
Go to specific lines that shows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ListenAddress *
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you wish to bind ssh to existing 2 IP address, let’s say 192.168.1.5 and 192.168.1.7 , this could be done by changing the above sshd_config lines to
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ListenAddress 192.168.1.5
ListenAddress 192.168.1.7
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
and Restart sshd daemon using the following command
# service sshd restart
One applicable instance that his can be useful is that when you have a group of ssh users and there are times you need to disconnect all those currently logged in ssh users except your own remote ssh connections. This can be simply done by shutting down the other interface from where those ssh users are currently connected. And ofcourse, you need to be currently connected with the other interface before shutting down the other interface or IP address.
Tags: bind ssh to selected IP address, bind ssh to selected IP address in linux, bind ssh to static ip addressbind ssh to selected IP address, bind ssh to selected IP address in linux, bind ssh to static ip address addthis_url = 'http%3A%2F%2Fwww.debianadmin.com%2Fhowto-bind-ssh-to-selected-ip-address.html'; addthis_title = 'Howto+bind+ssh+to+selected+IP+address+'; addthis_pub = 'david23';
©2007 Debian Admin. All Rights Reserved.
.Debian: Debian Admin Step By Step Tutorials and articles with screenshots
su is run a shell with substitute user and group IDs. su is used to become another user during a login session. Invoked without a username, su defaults to becoming the super user. The optional argument - may be used to provide an environment similar to what the user would expect had the user logged in directly.
Restricting su command to root superuser only is simple.
First, determining the path location of the binary is required using the following command
# which su
returns
~~~~~~~~~~~~~~~
/bin/su
~~~~~~~~~~~~~~~
Remember the current file mode bits and restrictions for su binary
# ls -la /bin/su
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-rwxr-xr-x 1 root root 24284 Apr 28 2007 /bin/su
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Noticed that su binary is world executable and world readable. This basically means anybody can call and execute the su binary and gain access to perhaps stolen password with bash-enabled user accounts. If you wish to change this, you can issue the following command as follows
# chmod 700 /bin/su
So, only root and root alone can call su binary command.
Note that, it is not advisable to do this if your su binary is set to suid root, that has similar attributes like below:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-rwsr-xr-x 1 root root 27052 2007-08-02 18:33 /bin/su
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as it could affect some apps and package that links to suid root-ted su binary.
Tags: restrict su command to superuser, restrict su command to superuser in linux, super user linuxrestrict su command to superuser, restrict su command to superuser in linux, super user linux
Debian: Debian Admin Step By Step Tutorials and articles with screenshots
Let us say that you want to rename all of your “.php5″ files to “.php” files. You can use for loop.
for old in *.php5; do cp $old `basename $old .php5`.php; done
Thats all there is to it. Let us say you need to rename index.php5 to index.php. The way above snippet works is that it loops through current directory and finds all the files with extension “.php5″ and processes ‘one by one. In our index.php5 file example, it finds index.php5 file, does a cp index.php5 `basename index.php5 .php5`.php Tag: Rename multiple files to another extension in LinuxRename multiple files to another extension in Linux
Debian: Debian Admin Step By Step Tutorials and articles with screenshots
Ubuntu 7.04 is the current stable version of the Ubuntu operating system. The common name given to this release from the time of its early development was “Feisty Fawn”.
Before Upgrading You need to remember the following point
Take comple backup of your system before upgrading
Now you need to upgraded my Ubuntu Edgy Machine to Ubuntu Feisty.
We can Use Two methods to upgrade Ubuntu Edgy to Ubuntu Feisty
1) Using GUI
2) Using apt-get
Upgrading Ubuntu Edgy to Ubuntu Feisty
Method 1 - Using GUI
If you want to upgrade using GUI use the following command
gksu “update-manager -c ”
“-c” switch tells it to look for upgrades at all.
You should see the following screen here Now you can see 7.04 is available for upgrade click on upgrade

Now you should see the release notes as follows here you need to click on upgrade

Once you click on upgrade you might get the error “Authentication failed”

You need to fix the above error for this open the terminal and type the “gpg” and press enter once you see the following message
gpg:Go ahead and type your message …

Press Ctrl+C and then start the install process again.
Now you should see the following screen downloading upgrade tool

You need to enter root password and click ok

Preparing the upgrade in progress

You need to confirm the upgrade process by clicking “Start Upgrade”

Download in progress for all the required packages for Upgrade

Installation in progress

If you click on Terminal to see detailed installation in progress

Cleaning Up is in Progress

You need to restart the system to complete the Upgrade by clicking “Restart Now”
Method 2 - Using apt-get
Edit your /etc/apt/sources.list as root. Change every occurrence of edgy to feisty.
Use any prefered editor. If you have a CD-ROM line in your file, then remove it.
sudo vi /etc/apt/sources.list
or
use the following Simple command
sudo sed -e ’s/\edgy/ feisty/g’ -i /etc/apt/sources.list
Now you need to update the source list using the following command
sudo apt-get update
Upgrade using the following command
sudo apt-get dist-upgrade
Double check your process was finished properly using the following commd
sudo apt-get -f install
sudo dpkg --configure -a
Now you need to Reboot your machine to take your new ubuntu 7.04 installation to effect all changes.
Testing Your Upgrade
You can check the ubuntu version installed using the following command
sudo lsb_release -a
Output Looks like below
Distributor ID: Ubuntu
Description: Ubuntu feisty (development branch)
Release: 7.04
Codename: feisty
or
Just type the following command in your terminal
cat /etc/issue
Output Lokks like below
Ubuntu feisty (development branch) \n \l
Tags: general, Other Linux, ubuntu upgrade process, ubuntu upgrade screenshots, upgrade ubuntu 6.10 to ubuntu 7.04, upgrade ubuntu edgy eftgeneral, Other Linux, ubuntu upgrade process, ubuntu upgrade screenshots, upgrade ubuntu 6.10 to ubuntu 7.04, upgrade ubuntu edgy eft
Debian: Debian Admin Step By Step Tutorials and articles with screenshots