User Tools

Site Tools


how_tos_linux_servers

Logging on to the server

The first thing you gotta do is to login to the linux box; My personal favorite is puTTy You can download it here:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Choose the PuTTy.exe for Windows

Maintenance and Troubleshootings

This are just some basic checking to make sure that pervasive service is running on the server

To check if pervasive service s running use this command:

/etc/init.d/psql status

To start pervasive service run this command:

/etc/init.d/psql start

To restart pervasive service run this command: (make sure everyone is out)

/etc/init.d/psql restart

Running pervasive monitor on Linux Servers

Linux cli servers doesn't run Pervasive Monitor

You must be signed in to a workstation (Windows Based or Linux GUI)

Run pervasive monitor like you normally would:

Connect to the server and login as this: By default;

Type in the hostname or IP of the linux server

username: admin

no password required, And thats it!

Transfer from Linux Servers to Windows

Transfer file from remote to local pc In this example, transfer all files (/var/www/html) from remote server called server1 to local directory called /backup:

scp -r user@server1:/var/www/html/ /backup

Transfer file with SCP from remote to other remote server In the following example, transfer all files (/var/www/html) from remote server called server1 to another server called server2:

scp -r user@server1:/var/www/html/ user@server2:/var/www/html/

Common server checking

To check if what Linux OS the server is running (either 32bit or 64bit) type in this command

uname -m

This would give you either: i386 (old school protocol for 32-Bit), i686 (is modern 32-bit OS that includes extensions and performance-enhancements for most Pentium-class CPUs and AMD processors) or x86_64 (This would be a 64-Bit)

To check what is the current version thats running:

cat /etc/redhat-release

Or

cat /etc/*release*

(Both works fine)

To check what's running on the server

top

Check disk space

df

Detailed disk space

df -a

View users as list:

cat /etc/group | cut -d":" -f1

To have all the details of the users:

cat /etc/passwd

To see only who is currently on at a given moment:

who

To get only the usernames of people using the system

ls /home/

You can use the following command to just return users who have a home directory under /home (useful if you are not interested in “special” users):

cat /etc/passwd | grep /home | cut -d: -f1
how_tos_linux_servers.txt · Last modified: 2011/10/27 13:16 by ihernandez