iPhone Process List

Apple Products, Info.Tech, Operating Systems Comments Off on iPhone Process List

I had this problem with my iPhone that drains my battery so fast. A 100% down to 10% in 2 hrs. I don’t blame my hardware because I believe its not causing the issue. Its something on the running applications because when I touch my iPhone, its warm like there’s something processing inside. One of the draining battery applications is the Yahoo! Messenger. But in my case, I don’t have Y! Msgr. Since my iPhone was jailbroken, I installed “top” command and enter to iPhone terminal using PUTTY and kill all the apps which are not on the default iPhone services.


The list below are iPhone process list, you can check them one by one for disable or enable these iPhone Service or not.

Launchd: takes over many tasks from cron, xinetd, mach_init, and init, which are UNIX programs that traditionally have handled system initialization, called systems scripts, run startup items, and generally prepared the system for the user. (do not close)

TQServer: Net Long Company PC Suit daemon (recommend not to close it)

BTServer: Bluetooth Service (BlueTooth) (in my environment with the dock, turn it off iphone not responding)

CommCenter: Communications Center (phone system) (do not close)

configd: to automatically configure and maintain the network (do not close)

cron: regularly scheduled command or script execution (alarm clock might use it, recommend not to close it)

mDNSResponder: Multicast-DNS Responder daemon. (Do not turn off)

lockdownd: so that iPhone can use other SIM card (do not close)

ptpd: the process of connecting itunes (do not close)

fitx: WeFIT Input Method (not recommended to be closed)

mediaserverd: (system sounds) (do not close)

notifyd: inter-process communication (do not close)

SpringBoard: Springboard is no better explanation in English, if you used the installer or ibrickr install a third-party software, you will find the middle of the screen there is a circular symbol loader, and then immediately return to the standby screen iPhone , then this is a Springboard restart the process (do not close)

MobilePhone: I need not explain this right (do not close)

sshd: ssh daemon (you can close it)

crashreporterd: test application crashes the daemon. (Recommend to close)

dock: dock the software process (you decide to use or not)

iapd: ipod is the iphone and other Apple products using a communication protocol, the purpose is to allow other third-party devices such as communication equipment and iphone. (Recommended closure)

syslogd: recording system error logs and status messages (recommend to close)

update: time to refresh the file system cache to prevent data loss caused by system crash (recommend to close). If you want to manually sync the file system cache, in text mode (ssh to connect to the iphone), implementation of the sync command.

crashreporterd, iapd, syslogd, update service can be safely shut down and will not impact on the system. fitx memory for not a lot of information needs to hand in the hair starts, so I do not recommend turning off.


Processes:  38 total, 1 running, 1 stuck, 36 sleeping... 201 threads                                                                                                                                                                 13:55:28
Load Avg:  1.83,  1.18,  0.99    CPU usage:  4.63% user,  0.00% sys, 95.37% idle
SharedLibs: num =    0, resident =     0 code,     0 data,     0 linkedit.
MemRegions: num =     0, resident =     0 +     0 private,     0 shared.
PhysMem:   57M wired,   96M active,   50M inactive,  291M used,  214M free.
VM: 11G + 0   27721(0) pageins, 0(0) pageouts

  PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS  RPRVT  RSHRD  RSIZE  VSIZE
  750 top          2.8%  0:00.09   1    21      0      0      0  1184K+  267M
  746 bash         0.0%  0:00.04   1    16      0      0      0  1060K   268M
  745 sshd         0.1%  0:01.04   1    18      0      0      0  1428K   268M
  691 bash         0.0%  0:00.10   1    16      0      0      0  1088K   268M
  690 sshd         0.0%  0:01.16   1    18      0      0      0  1420K   268M
  395 Bump         0.0%  0:01.21  11    66      0      0      0  9604K   340M
  374 MobileMail   0.0%  0:02.55  10   128      0      0      0  8836K   343M
  309 LINE         0.0%  0:23.51  11   192      0      0      0    42M   413M
  271 MobilePhon   0.0%  0:01.98   5    82      0      0      0  6512K   339M
  210 networkd     0.0%  0:00.52   3    50      0      0      0  1068K   269M
  139 myTunes      0.0%  0:01.18   1    10      0      0      0   372K   277M
  127 notifyd      0.0%  0:03.19   4   115      0      0      0  1028K   270M
   73 aosnotifyd   0.0%  0:00.79   4    70      0      0      0  3504K   297M
   72 BTServer     0.0%  0:00.82   3    62      0      0      0  1992K   271M
   71 CommCenter   0.0%  0:12.08  11   214      0      0      0  3420K   284M
   66 SpringBoar   0.2%  1:43.16  20   555      0      0      0    41M   436M
   65 aggregated   0.0%  0:05.62   4    44      0      0      0  1984K   298M
   64 apsd         0.0%  0:01.62   3    86      0      0      0  1780K   287M
   63 assistivet   0.0%  0:01.30   6    68      0      0      0  6240K   333M
   58 configd      0.0%  0:09.70   9   220      0      0      0  2540K   272M
   55 dataaccess   0.0%  0:21.93  11   127      0      0      0  8092K   304M
   54 fairplayd.   0.0%  0:01.84   2    62      0      0      0  3568K   277M
   53 fseventsd    0.0%  0:02.03   4    25      0      0      0   988K   268M
   51 iapd         0.0%  0:01.73   4    94      0      0      0  3348K   289M
   50 imagent      0.0%  0:02.17   4    89      0      0      0  2392K   298M
   48 locationd    0.1%  1:18.24  13   182      0      0      0  7644K   307M
   47 mDNSRespon   0.0%  0:01.51   3    46      0      0      0  1488K   269M
   46 mediaremot   0.0%  0:00.30   3    48      0      0      0  1576K   269M
   45 mediaserve   0.0%  0:04.15  17   265      0      0      0  7160K   304M
   39 lockdownd    0.0%  0:08.90   2    63      0      0      0  2268K   288M
   32 powerd       0.0%  0:08.65   3    62+     0      0      0  1052K+  287M+
   30 syslogd      0.0%  0:01.36   4    58      0      0      0   628K   268M
   26 wifid        0.0%  0:08.63   4   106      0      0      0  2064K   288M
   25 sbsettings   0.0%  0:00.20   2    28      0      0      0  2308K   287M
   24 callblocke   0.0%  0:00.59   2    33      0      0      0  2860K   296M
   22 myTunes      0.0%  0:00.01   1    16      0      0      0   332K   258M
   21 UserEventA   0.0%  0:19.29   9   147      0      0      0  2756K   291M
    1 launchd      0.0%  0:04.99   3   292      0      0      0  1016K   268M

Reference: http://blog.iobit.com/iphone-process-list_4008.html

Centos 6.2: PHP, MySQL and Nginx

Administration, Info.Tech, Linux System Administration, Operating Systems, PHP, Web Development 1 Comment »

I’ve been curious about the word nginx. A lot of posting about nginx. So I do a little research and found out its a HTTP server. So I tried my own research and experiment which all sample configuration can be found at nginx.org. For my experiment, I used Centos 6.2, PHP, MySQL and the Nginx. Here’s you will do it to setup Web Server using Nginx;

Download first the EPEL for Centos 6 (http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/repoview/epel-release.html or epel-release-6-7.noarch.rpm (732)) — purpose for this is so you can install the per-requesites of Nginx like spawn-fcgi.

[root@server ~]# wget http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-7.noarch.rpm

[root@server ~]# rpm -ivh epel-release-6-7.noarch.rpm

[root@server nginx]# yum repolist
Loaded plugins: fastestmirror, protectbase, security
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * epel: ftp.cuhk.edu.hk
 * extras: centos.ipserverone.com
 * updates: centos.ipserverone.com
0 packages excluded due to repository protections
repo id                                                        repo name                                                                                              status
base                                                           CentOS-6 - Base                                                                                        6,294
epel                                                           Extra Packages for Enterprise Linux 6 - x86_64                                                         7,561
extras                                                         CentOS-6 - Extras                                                                                          6
nginx                                                          nginx repo                                                                                                23
updates                                                        CentOS-6 - Updates                                                                                     1,147
repolist: 15,031

Then install nginx.

[root@server ~]# yum -y install nginx

Install PHP, MySQL and other packages.

[root@server ~]# yum -y install php-pear-Net-Socket php-pear php-common php-gd php-devel php php-mbstring php-pear-Mail php-cli php-imap php-snmp php-pdo php-xml php-pear-Auth-SASL php-ldap php-pear-Net-SMTP php-mysql

Install spawn-fgi

[root@server ~]# yum -y install spawn-fcgi

Download and setup the spawn-fcgi to init.d (spawn-fcgi init.d script (711))

[root@server ~]# wget http://bash.cyberciti.biz/dl/419.sh.zip
[root@server ~]# unzip 419.sh.zip
[root@server ~]# mv 419.sh /etc/init.d/php_cgi
[root@server ~]# chmod +x /etc/init.d/php_cgi

Start PHP app server and check if running

[root@server ~]# /etc/init.d/php_cgi start
[root@server ~]# netstat -tulpn | grep :9000
tcp        0      0 127.0.0.1:9000              0.0.0.0:*                   LISTEN      1843/php-cgi

Configure nginx.conf for PHP based webserver for WordPress, Drupal & Joomla (Download: nginx.conf (709)).

[root@server nginx]# cat nginx.conf

user  nginx;
worker_processes  1;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;

    server {
        listen 80 default_server;
        server_name .nginx.ph;
        access_log /var/log/nginx/nginx.ph_access_log;
        error_log /var/log/nginx/nginx.ph_error_log;

        index index.html index.php index.htm;

        root /home/camilord/public_html;

        location / {
           # if you're just using wordpress and don't want extra rewrites
           # then replace the word @rewrites with /index.php
           try_files $uri $uri/ @rewrites;
        }

        location @rewrites {
           # Can put some of your own rewrite rules in here
           # for example rewrite ^/~(.*)/(.*)/? /users/$1/$2 last;
           # If nothing matches we'll just send it to /index.php
           rewrite ^ /index.php last;
        }

        # This block will catch static file requests, such as images, css, js
        # The ?: prefix is a 'non-capturing' mark, meaning we do not require
        # the pattern to be captured into $1 which should help improve performance
        location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
                # Some basic cache-control for static files to be sent to the browser
                expires max;
                add_header Pragma public;
                add_header Cache-Control "public, must-revalidate, proxy-revalidate";
        }

        # remove the robots line if you want to use wordpress' virtual robots.txt
        location = /robots.txt  { access_log off; log_not_found off; }
        location = /favicon.ico { access_log off; log_not_found off; }

        # this prevents hidden files (beginning with a period) from being served
        location ~ /\.          { access_log off; log_not_found off; deny all; }

        location ~ \.php {
                fastcgi_param  QUERY_STRING       $query_string;
                fastcgi_param  REQUEST_METHOD     $request_method;
                fastcgi_param  CONTENT_TYPE       $content_type;
                fastcgi_param  CONTENT_LENGTH     $content_length;

                fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
                fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
                fastcgi_param  REQUEST_URI        $request_uri;
                fastcgi_param  DOCUMENT_URI       $document_uri;
                fastcgi_param  DOCUMENT_ROOT      $document_root;
                fastcgi_param  SERVER_PROTOCOL    $server_protocol;

                fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
                fastcgi_param  SERVER_SOFTWARE    nginx;

                fastcgi_param  REMOTE_ADDR        $remote_addr;
                fastcgi_param  REMOTE_PORT        $remote_port;
                fastcgi_param  SERVER_ADDR        $server_addr;
                fastcgi_param  SERVER_PORT        $server_port;
                fastcgi_param  SERVER_NAME        $server_name;

                fastcgi_pass 127.0.0.1:9000;
        }

       #location ~ \.php$
       #{
       #    root           html;
       #    fastcgi_pass   127.0.0.1:9000;
       #    fastcgi_index  index.php;
       #    fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html$fastcgi_script_name;
       #    include        fastcgi_params;
       #}
    }
}

Restart Nginx

[root@server ~]# service nginx restart

I think that’s it.. it should be working because its working on my CentOS linux box. 🙂

Reference:

  1. http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/
  2. http://www.cyberciti.biz/faq/rhel-fedora-centos-linux-enable-epel-repo/
  3. http://www.thegeekstuff.com/2012/06/enable-epel-repository/
  4. http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/repoview/epel-release.html
  5. http://wiki.nginx.org/ServerBlockExample
  6. http://kbeezie.com/view/nginx-configuration-examples/

 

Manage Apache Download Speed and Traffic Limits

Administration, Linux System Administration, Operating Systems 1 Comment »

I’ve been experimenting on how I can limit the download speed via Apache configuration. This method is good for file-sharing website and for hosting servers. In my case, I am using Centos 5.5 and Apache 2.2.3 + mod_cband 0.9.7.5.

So, here’s what you will do… Assume you already installed the Apache.

  1. Install Apache Development libraries by casting “yum -y install apache-devel”
  2. Download “mod_cband” from http://dembol.org/blog/mod_cband/ or direct download link at http://dembol.org/downloads/cband/mod-cband-0.9.7.5.tgz

Follow steps (must be root mode)…

cd ~
wget http://dembol.org/downloads/cband/mod-cband-0.9.7.5.tgz
tar xzvf mod-cband-0.9.7.5.tgz
cd mod-cband-0.9.7.5
./configure
make
make install

To check if successfully installed, type just like below and must have same result:

[root@localhost ~]# cat /etc/httpd/conf/httpd.conf | grep mod_cband.so
LoadModule cband_module       /usr/lib/httpd/modules/mod_cband.so

Then add the code below at httpd.conf then save and restart apache.

CBandScoreFlushPeriod 1
CBandRandomPulse On

Next is add a “scoreboard”

mkdir /var/www/scoreboard
chown apache:apache /var/www/scoreboard/

Final steps is create an vhost entry at /etc/httpd/conf.d just like this (in my case, I created cband.com as my vhost);

[root@localhost conf.d]# cat cband.com.conf
<VirtualHost *:80>
    ServerAdmin webmaster@cband.com
    DocumentRoot /home/cband.com/public_html
    ServerName cband.com
    CBandSpeed 1024 10 30
    CBandRemoteSpeed 50kb/s 3 3
    CBandLimit 500M
    CBandExceededSpeed 128 5 15
    CBandScoreboard /var/www/scoreboard
    CBandPeriod 4W
    CBandExceededURL http://cband.com/exceeded.html

    <Location /cband-status>
      SetHandler cband-status
    </Location>
    <Location /cband-status-me>
      SetHandler cband-status-me
    </Location>

    ErrorLog logs/cband.com-error_log
    CustomLog logs/cband.com-access_log common
</VirtualHost>

[root@localhost conf.d]#

After you created the vhost file, restart your apache.

You can check the status of certain vhost by accessing the URL: http://cband.com/cband-status

or another status URL: http://cband.com/cband-status-me

Further Explanation:

  1. CBandSpeed 1024 10 30 — Overall apache performance. Max bandwidth speed is 1024bits per secs. 10 requests per secs. 30 max connections
  2. CBandRemoteSpeed 50kb/s 3 3 — Individual apache performance. Max bandwidth speed is 50kb/s, max 3 requests/s and max 3 connections
  3. CBandLimit 500M — 500MB max bandwidth limit
  4. CBandExceededSpeed 128 5 15 — Bandwidth speed limit at 128kbps, 5 request/s and max of 15 connections
  5. CBandScoreboard /var/www/scoreboard — scoreboard location
  6. CBandPeriod 4W – time to refresh
  7. CBandExceededURL http://cband.com/exceeded.html — if bandwidth exceeded, redirect to the specified URL.
You can use the following units in the mod_cband directives:

Transfer speeds:

    kbps: 1024 bits per second
    Mbps: 1024*1024 bits per second
    Gbps: 1024*1024*1024 bits per second
    The default is kbps.

Transfer quotas:

    K: 1000 bytes
    M: 1000*1000 bytes
    G: 1000*1000*1000 bytes
    Ki: 1024 bytes
    Mi: 1024*1024 bytes
    Gi: 1024*1024*1024 bytes
    The default is K.

Time periods:

    S: seconds
    M: minutes
    H: hours
    D: days
    W: weeks
    The default is S.

Reference:

Download mod_cband file:

Gambas 2.x in Ubuntu

Gambas, Info.Tech, Operating Systems, Software Development Comments Off on Gambas 2.x in Ubuntu

Its been a while that I’m not using Linux especially Ubuntu. While reading in CDO Information Technology Group in facebook, one person ask about an opensource similar to visual basic and somebody answer that use GAMBAS. So I searched and found GAMBAS and its samples. I’m getting curious more. So install VMware 7.1 and downloaded Ubuntu 11.04. Also installed right away the GAMBAS after the OS installation.

 

Installing GAMBAS 2.x
Installing GAMBAS 2.x in Ubuntu

So after installation, as a first app — the “Hello World!”. so I start creating a new project and test typing lil’ codes. Coding results below;

 

GAMBAS First App

GAMBAS First App

Conclusion: GAMBAS is just like MS Visual Basic with some little differences in coding. Hope GAMBAS will be fully developed and become mature, with this Linux Desktop Application Developer will raise (and I want to be one of the developers! hahahaha…).

Comments: I like GAMBAS.. so cute! hahahahaha… want to explore more about this software.

For more information about GAMBAS, please visit http://gambas.sourceforge.net/en/main.html

 

MySQL 5.5 changing data folder

Administration, Info.Tech, Operating Systems, SQL: Structured Query Language Comments Off on MySQL 5.5 changing data folder

Today, I’m having problem with my MySQL. I bought new computer and want to transfer my databases from my old PC (using winXP) to new PC which is using windows 7. When I copied all my databases from data folder from my old computer and paste it to my new PC at “C:\Program Files\MySQL\MySQL Server 5.5\Data”, and restart the MySQL, I can’t see my databases. I found a solution from www.fossplanet.com and here’s the step (I slightly modified the step since i have different problem…)

  1. create folder in “C:\MySQLData”
  2. copy all files from “C:\Users\All Users\MySQL\MySQL Server 5.5\data” to “C:\MySQLData”
  3. go to RUN and type services.msc and stop MySQL service
  4. at “C:\Program Files\MySQL\MySQL Server 5.5” — edit the my.ini and change the datadir value to your new MySQL data folder which is “C:/MySQLData/”
  5. after changing the datadir, at Services window (services.msc) start again your MySQL
  6. then cast command in MySQL CLI “show databases” and you should get your migrated databases showing… 🙂

 

——————-

thanks to:

Rolando A. Edwards
MySQL DBA (SCMDBA)

Load Balancing in Windows XP

Administration, Info.Tech, Operating Systems Comments Off on Load Balancing in Windows XP

I have an small office in my house and got two internet connections. Yet I want both connections will be used. So I found a solution to tweak the system. So here’s what we will do;

Requirements:

  1. 2 NICs
  2. REGEDIT

Guidelines:

Go to start menu and select RUN, then type “regedit” and a Registry Editor will appear. Go to “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters” and right click and mouse over to NEW then select DWORD value. Name the DWORD entity to RandomAdapter and change the value to 1 to make the selection of NICs randomly.

 


System Key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
Value Name: RandomAdapter
Data Type: REG_DWORD (DWORD Value)
Value Data: (0 = disabled, 1 = enabled)

 

Reference: http://www.pctools.com/guides/registry/detail/951/

IPTABLES – Logging and dropping traffic in a single rule

Info.Tech, Operating Systems 1 Comment »

Many people who are familiar with IPCHAINS (the predecessor to IPTABLES) are familiar with the ability to simply tack on a ‘-l’ to also log rules which match that rule. In IPTABLES this is not done the same way and no such option exists.

To accomplish the same task in IPTABLES you could simply put a identical rule with a LOG action before every drop rule, but that will fill your script with copies of the same rule and force updates in multiple locations. This is therefore not an ideal solution.

The cleanest method of accomplishing this is to create a new chain which does both the LOG and DROP for you. The following IPTABLES rules will create a LOGDROP chain.

# Create the LOGDROP chain
 iptables -N LOGDROP > /dev/null 2> /dev/null
 iptables -F LOGDROP
 iptables -A LOGDROP -j LOG --log-prefix "LOGDROP "
 iptables -A LOGDROP -j DROP

The first rule in this set creates the new chain. The output is sent to /dev/null because if you attempt to run this twice on the same system, you will get an error saying the chain already exists. It's up to you if you want to see that message or not.
The second rule flushes the contents of the chain, again, so that if you run it twice on the same system you don’t have duplicate rules in the chain.

The third rule LOGS the traffic with the added “LOGDROP” prefix and the fourth rule DROPs the traffic

What this now means is that you can easily log and drop traffic or even log and accept traffic (with minor modifications to the above), by creating a rule such as this:

# Log and drop all connections to the HTTP port
 iptables -A INPUT -p tcp --dport 80 -j LOGDROP

As you can see, you now simply use the LOGDROP target in order to log and drop any traffic you want. You must ensure that you define the LOGDROP target BEFORE you attempt to use it in a rule.
If anyone has any comments or corrections for this, please let me know using the comment system below.

Article From: http://www.techbytes.ca/techbyte136.html

Generating SSL certificates using OpenSSL

Administration, Info.Tech, Operating Systems Comments Off on Generating SSL certificates using OpenSSL

Based on Centos Wiki on HowTo SSL – http://wiki.centos.org/HowTos/Https

I simplified the procedure to create a bash script. Here’s the code;

#!/bin/bash
umask 077

echo ""
if [ $# -eq 0 ] ; then
 echo $"Usage: `basename $0` <DOMAIN_NAME> [...]"
 echo ""
 exit 0
fi

for target in $@ ; do

 keyFile=${target}.key
 crtFile=${target}.crt
 csrFile=${target}.csr

 echo $keyFile
 echo $crtFile
 echo $csrFile

 # Generate private key
 openssl genrsa -out $keyFile 1024 

 # Generate CSR
 openssl req -new -key $keyFile -out $csrFile

 echo ""
 echo "Please enter the number of days which SSL Certificate will be valid:"
 read DAYS
 echo ""

 # Generate Self Signed Key
 openssl x509 -req -days $DAYS -in $csrFile -signkey $keyFile -out $crtFile
done

Or download the script below…

Download: gencert (673) bash script

How to add gencert command to your system:

  1. Download the gencert bash script
  2. Extract the file
  3. chmod u+x gencert
  4. then copy the gencert file to /bin/
  5. Wallaah! You’re done!

CEntOS: Securing FTP (vsftpd) and SSH

Administration, Info.Tech, Operating Systems 1 Comment »

SECURING FTP

Use chroot_local_user=YES then the vsftpd.chroot_list becomes a list of users to NOT chroot. So… you said chroot ALL users but ftpuser.

Notice the commented out lines.
In /etc/vsftpd/vsftpd.conf:

chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

edited /etc/vsftpd.chroot_list:
add users only that DO NOT NOT NOT NOT get chrooted.

use /sbin/nologin
edited /etc/passwd entry for ftpuser:

ftpuser:X:#:#:FTP User Account:/home/ftpuser/./:/sbin/nologin

————

chroot_local_user=YES
chroot_list_enable=YES

means that by default ALL users get chrooted except users in the file

chroot_local_user=NO
chroot_list_enable=YES

means that by default ONLY users in the file get chrooted.

See the difference?

Article by: JordanH

Final Configuration:

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list

pasv_enable=YES
port_enable=NO
pasv_min_port=60000
pasv_max_port=64000

# ftp settings
connect_from_port_20=YES

# User Settings
pasv_promiscuous=YES
dirlist_enable=YES
download_enable=YES

SECURING SSH

Edit /etc/ssh/sshd_config and at the bottom of the file, add these lines…

# Allowed users to login SSH
#AllowUsers root user002
# Disallow users in logging in at SSH
#DenyUsers user001

Ubuntu Professional Certification

Administration, Info.Tech, Operating Systems Comments Off on Ubuntu Professional Certification
Ubuntu Girl

Ubuntu Girl

Today, I tried to answer the pre-test of UPC or the Ubuntu Professional Certification… and the result was…

Dear Camilo III,

Thank you very much for taking part in the pre-training assessment.

Your score is 9, which means that you are probably over-qualified for this course.

As a next step we suggest that you read through the Deploying Ubuntu Server Edition course overview found here: http://www.ubuntu.com/training/certificationcourses/server and then complete the corresponding online assessment.

Ubuntu Training courses are taught by Canonical-trained Ubuntu Certified Instructors. The Deploying Ubuntu Server Edition course is available through online training and classroom training, so you can can learn in the environment that suits you best.

Visit: www.ubuntu.com/training for more information.

Best regards and good luck
The Ubuntu Training Team

How flattering!! I admit it, I’m not that good… but anyway, the test is so easy.. hahahaha.. 🙂 And one thing, I don’t have a dollars to pay the $1,600 for the Deploying Ubuntu Server Edition Certification. Its like PhP 76,800.00 in my country, that is 9 months to save my whole salary. hahahaha.. Damn! I will starved to death if I will take the exam… 😛

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in