Your iPhone basically is a Unix (MacOSX) power-based phone, that sounds cool!?
So to speed up your iPhone, you just simply stop un-used, or rarely use services (call daemon in Unix)
Here are 4 steps:
1/ Get access to your iPhone terminal (ssh, MobileTerminal)
2/ Learn launchctl command (with parameter: start, stop, list, load, unload)
3/ Using launchctl with parameter "list" to see un-used, rarely used daemons, and "stop" it, or "unload" it from startup
4/ Move (do not delete - in case you want to get back those services) those .plist file away from /System/Library/LaunchDaemons/
These are links for your reference:
1/ Related to command line: http://www.ifans.com/forums/threads/ssh-daemon-wont-start.87039/
This shows you how to load, unload daemon from startup also
2/ Related to daemons: http://www.ijailbreak.com/how-to/how-to-remove-launch-daemons-to-increase-speed-battery-life-disk-space-part-two/
3/ This week, when I reviewed my post, and after working around I found this very detail and interesting article. It explains very detail which Daemon you can stop & in which situation
http://forums.macrumors.com/showthread.php?t=1371126
Finally, use it at your own risk, but warranty there is no damage to you iPhone, iPad
Leadership & Project Management
Showing posts with label Unix. Show all posts
Showing posts with label Unix. Show all posts
Wednesday, August 1, 2012
Tuesday, June 23, 2009
Clone your system using UDP multi-cast in few minutes
Give it a try! Really fast, it backups used-block only
http://clonezilla.org/
And it's wrapped up by http://www.fogproject.org/index.php
http://clonezilla.org/
And it's wrapped up by http://www.fogproject.org/index.php
Labels:
Backup Restore,
Links,
Linux,
Networking,
Open Source,
Unix
Tuesday, October 14, 2008
FreeNAS: another option for clustering environment
If you ever try to install the clustering environment like Exchange, MSSQL, you will fight with the problem of installing quorum disk. And the problem going bad if your server doesn't work well with NAS (HBA, etc. compatibility issues)
Long time ago, freeNAS was born, along with him was openfiler, etc. these are the simulation for NAS that was shipped with iSCSI, and many other protocols like: FTP, Samba, CIFS, etc. and a Web-based administration tool. And to make more convenient, they was shipped with VMware appliance as well... cool !
And you don't have to invest any NAS device, you just download the ISO (Live CD) or the VMware appliance of FreeNAS, turn it on, configure it! and you will have a NAS device that working through the iSCSI protocol
The remain, is to download iSCSI initiator (Microsoft provides one), and free on many Linux distribution. Configure it to work with your new NAS. You can map 1 iSCSI disk (on your freeNAS) to as much server as you want... you have your own Quorum disk
It works for both Windows, Linux as well. Beside that, freeNAS has many interesting features like: authentication through Active Directory, work as file server, scheduling for backing up, it is built on FreeBSD
Good luck!
Long time ago, freeNAS was born, along with him was openfiler, etc. these are the simulation for NAS that was shipped with iSCSI, and many other protocols like: FTP, Samba, CIFS, etc. and a Web-based administration tool. And to make more convenient, they was shipped with VMware appliance as well... cool !
And you don't have to invest any NAS device, you just download the ISO (Live CD) or the VMware appliance of FreeNAS, turn it on, configure it! and you will have a NAS device that working through the iSCSI protocol
The remain, is to download iSCSI initiator (Microsoft provides one), and free on many Linux distribution. Configure it to work with your new NAS. You can map 1 iSCSI disk (on your freeNAS) to as much server as you want... you have your own Quorum disk
It works for both Windows, Linux as well. Beside that, freeNAS has many interesting features like: authentication through Active Directory, work as file server, scheduling for backing up, it is built on FreeBSD
Good luck!
Labels:
Cluster,
DAS,
freeNAS,
iSCSI,
Linux,
NAS,
Networking,
Open Source,
Unix,
Virtualization,
VMware,
VMware Appliance,
Windows
Saturday, October 4, 2008
Friday, October 3, 2008
shell, environment, .profile, some notes, su - informix
Issue: your binary cannot work, when you change user (su), you schedule (cron) a script to run, but the executed binary inside the script cannot work properly
Reason:
When you change user and forgot to input the '-' paramter, before the username (su informix) instead of (su - informix). Unix won't run .profile (based in the user's home folder) So environment won't configured correctly, etc. $HOME, some kind of environment variable, some initial scripts, etc. So your binary won't work or announce some issues
The same, when you script the cron job, the script will be run in an another shell each time, and by default that shell won't configured (run .profile) so you script will be failed. To avoid this, at beginning of your script, you need to add some codes like:
#!/bin/ksh
/.profile
Reason:
When you change user and forgot to input the '-' paramter, before the username (su informix) instead of (su - informix). Unix won't run .profile (based in the user's home folder) So environment won't configured correctly, etc. $HOME, some kind of environment variable, some initial scripts, etc. So your binary won't work or announce some issues
The same, when you script the cron job, the script will be run in an another shell each time, and by default that shell won't configured (run .profile) so you script will be failed. To avoid this, at beginning of your script, you need to add some codes like:
#!/bin/ksh
Wednesday, September 24, 2008
Finding 1 candidate for QA position, good in system-programming (C#, C++) and Unix/Linux, DBMS is a plus
As my understand so far, there are many good candidates, they have their own blog, so i would use this chance to recruite them. I will search around blog Yahoo 360*, Blogger, Opera to find candidate, anyway, if you like this information, or know someone else, please drop me a message
This position is to work for CSC Vietnam, the most competitive, and attractive company in Vietnam
This position is to work for CSC Vietnam, the most competitive, and attractive company in Vietnam
Tuesday, September 23, 2008
Using Tcl/Expect to automate your administration work, test telecom
After this post, i would like to add more about my project, the project's purpose is to provide ability to do remote commnand (on Windows, Linux, Unix, etc.) and file transfer.
This is a part of my research to do the project's purpose
plink (in putty package) to provide remote command ability
expect to provide ability to interact console application
Tcl/Expect commands:
I'm new to Tcl/Tk/Expect commands, syntax, so this is what i know so far
This is a part of my research to do the project's purpose
plink (in putty package) to provide remote command ability
expect to provide ability to interact console application
Tcl/Expect commands:
I'm new to Tcl/Tk/Expect commands, syntax, so this is what i know so far
Monday, September 22, 2008
Using sharpSSH (C#) to write/customize your own sshclient
or even winscp (open source), or putty (is it possible?)
I was trying to do many investigations on SSH protocol, or some tools/ways like JRE. The purpose to do a remote command-line, and file transfer on all platforms: Windows, Linux, Unix, etc.
1. The first approach is to implement JRE application, but we need to maintain it by the time
2. Try to implement again with C# (and Mono) stupid way
3. Try to implement sharpSSH
Actually, I knew many way/tools to do that, but by the time, i forgot. Now, i'm going back. And i was tried PUTTY command-line family, and it was so impressive
Beside doing: compatibility test, between SSH protocol version, we need to do some test for sheel specification stuff (windows shell, cmd.exe, command.exe, bash, csh shell, etc.) convention between Windows, Linux
plink, pscp, psftp, so great! to do file transfer and remote command-line
That i was told about "client-side"
And here is server-side, for Unix, we used OS-standard, default sshd packages. But on Windows we used openSSH package, or copssh, the reason is, sometime sharpSsh cannot work with openSSH but copssh
Process special character like "\", "/", """, "'", "\\"
We are thinking about Cygwin as Linux env. for another linux-like ssh server
I was trying to do many investigations on SSH protocol, or some tools/ways like JRE. The purpose to do a remote command-line, and file transfer on all platforms: Windows, Linux, Unix, etc.
1. The first approach is to implement JRE application, but we need to maintain it by the time
2. Try to implement again with C# (and Mono) stupid way
3. Try to implement sharpSSH
Actually, I knew many way/tools to do that, but by the time, i forgot. Now, i'm going back. And i was tried PUTTY command-line family, and it was so impressive
Beside doing: compatibility test, between SSH protocol version, we need to do some test for sheel specification stuff (windows shell, cmd.exe, command.exe, bash, csh shell, etc.) convention between Windows, Linux
plink, pscp, psftp, so great! to do file transfer and remote command-line
That i was told about "client-side"
And here is server-side, for Unix, we used OS-standard, default sshd packages. But on Windows we used openSSH package, or copssh, the reason is, sometime sharpSsh cannot work with openSSH but copssh
Process special character like "\", "/", """, "'", "\\"
We are thinking about Cygwin as Linux env. for another linux-like ssh server
XDMP (X-Window protocol) for remoting export GUI on Unix/Linux
If you want to launch (export) a Unix/Linux GUI program on Windows or other Unix/Linux OS
First of all, on the local Unix/Linux, we need to "export" an environment variable "DISPLAY" to your destination host and the port number, eg:
# export DISPLAY=172.16.49.86:0.0
Then of the remote OS (destination), where you want to host your GUI program, you need to install an XDMP Server (eg: xming, Xmanager)
This is basic idea, you can google more information, I will add detail later. Don't forget to turn off any virus scanner programs, firewall
First of all, on the local Unix/Linux, we need to "export" an environment variable "DISPLAY" to your destination host and the port number, eg:
# export DISPLAY=172.16.49.86:0.0
Then of the remote OS (destination), where you want to host your GUI program, you need to install an XDMP Server (eg: xming, Xmanager)
This is basic idea, you can google more information, I will add detail later. Don't forget to turn off any virus scanner programs, firewall
Working directory in Solaris - /export/home
The reason I mention about this is some of us, usually put too much data into /root, but this folder is mounted for system working only. So if disk slices get full, your system couldn't do anything
And, by default, /export/home is the place for you to put any, as much data as you want, without any corruptions to system working directory
And, by default, /export/home is the place for you to put any, as much data as you want, without any corruptions to system working directory
Solaris basic command-line
Một số lệnh cơ bản của Solaris, (kể cả sữ dụng được cho Unix/Linux khác)
- init
Giải thích: Unix, Linux, có nhiều cấp độ vận hành hệ thống, thường từ, 0-5, mỗi cấp độ được sữ dụng cho mục đích khác nhau. Và đây cũng là lý do, bạn có thể cấu hình cho một service của mình chạy được ở cấp độ nào.
Cấp độ thấp nhất: 0, khi máy mới khởi động, cấp độ 3, thường là console với những services cơ bản đã được cấu hình (eg: network), cấp độ 5, bao gồm giao diện đồ họa
Mẹo:
- Bạn có thể thiết lập hệ thống mặc định khởi động ở bất kỳ cấp độ nào bạn muốn (dùng trong trường hợp bạn không muốn sữ dụng đồ họa, muốn hệ thống khởi động nhanh)
- Bạn có thể reset hệ thống bằng cách đưa về cấp độ thấp nhất (0), hoặc đưa về cấp độ thấp (3) sau đó khởi động lại cấp độ cao (5) để reset một số services (đồ họa) ở cấp độ 5
- Đưa về 1, và đưa lên >3, để reset network
Tham khảo: chi tiết về chức năng của các cấp độ
- bash: if you're familiar with bash shell, it makes you happy, use this command to change the shell
- gunzip -d .gz file
- tar xvf .tar file
- init
Giải thích: Unix, Linux, có nhiều cấp độ vận hành hệ thống, thường từ, 0-5, mỗi cấp độ được sữ dụng cho mục đích khác nhau. Và đây cũng là lý do, bạn có thể cấu hình cho một service của mình chạy được ở cấp độ nào.
Cấp độ thấp nhất: 0, khi máy mới khởi động, cấp độ 3, thường là console với những services cơ bản đã được cấu hình (eg: network), cấp độ 5, bao gồm giao diện đồ họa
Mẹo:
- Bạn có thể thiết lập hệ thống mặc định khởi động ở bất kỳ cấp độ nào bạn muốn (dùng trong trường hợp bạn không muốn sữ dụng đồ họa, muốn hệ thống khởi động nhanh)
- Bạn có thể reset hệ thống bằng cách đưa về cấp độ thấp nhất (0), hoặc đưa về cấp độ thấp (3) sau đó khởi động lại cấp độ cao (5) để reset một số services (đồ họa) ở cấp độ 5
- Đưa về 1, và đưa lên >3, để reset network
Tham khảo: chi tiết về chức năng của các cấp độ
- bash: if you're familiar with bash shell, it makes you happy, use this command to change the shell
- gunzip -d .gz file
- tar xvf .tar file
Permit Solaris SSH root login
Here after I will use Vietnamese for this stuff, the reason, there are so many English articles, and I would share this to Vietnamese community. And I will do the same for all other stuffs
Theo mặc định khi bạn cài Solaris, có chọn cài đặt SSH, thì Solaris sẽ được cấu hình bảo mật, không cho phép bạn đang nhập từ xa vào SSH protocol bằng quyền root. Để làm được việc này bạn phải vào:
- /etc/ssh/sshd_config, tìm đến dòng, "PermitRootLogin" và thay đổi tham số từ "no" sang "yes"
- khởi động lại sshd service
Theo mặc định khi bạn cài Solaris, có chọn cài đặt SSH, thì Solaris sẽ được cấu hình bảo mật, không cho phép bạn đang nhập từ xa vào SSH protocol bằng quyền root. Để làm được việc này bạn phải vào:
- /etc/ssh/sshd_config, tìm đến dòng, "PermitRootLogin" và thay đổi tham số từ "no" sang "yes"
- khởi động lại sshd service
Subscribe to:
Posts (Atom)