‘To BackUp Server
strDriveLetter1 = “U:”
strRemotePath1 = “\\10.210.110.13\Backup01\Omega”
strUser1 = “ServerServer”
strPassword1 = “Servers”
‘To QNap
strDriveLetter2 = “Q:”
strRemotePath2 = “\\10.211.244.244\Backup\Omega2009”
strUser2 = “binus\backup”
strPassword2 = “backup1234”
Set objNetwork = WScript.CreateObject(“WScript.Network”)
objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1, strProfile, strUser1, strPassword1
set objNetwork = nothing
Set objNetwork = WScript.CreateObject(“WScript.Network”)
objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2, strProfile, strUser2, strPassword2
set objNetwork = nothing
Silahkan melakukan simulasi testing download CD UN di link di atas.
]]>Sekadar renungan hari ini, agaknya posting ini cukup membingungkan. Mari saya mencoba memaparkan dari awal sampai pada suatu kesimpulan yang tertera di judul posting kali ini.
Manusia / Bani Adam adalah makhluk yang tidak luput dari kesalahan, setiap orang mempunyai dosa. Untuk menghapus dosa-dosa yang kita kerjakan itu kita butuh kepada amalan, seperti yang telah Rasulullah ajarkan, ikutilah perbuatan buruk dengan kebaikan, sesungguhnya kebaikan itu menghapuskan keburukan.
Masalah utama yang kita hadapi bersama adalah amalan kita terlalu sedikit untuk menutup dosa-dosa yang rutin kita kerjakan. Ibarat orang yang gaji bulanannya kurang dan mencoba untuk menutupinya dengan berhutang, lama-kelamaan hutang akan menumpuk, karena memang gaji bulanannya kurang untuk mencukupi biaya hidup selama sebulan penuh. Kalau masalahnya adalah masalah dunia seperti gaji bulanan yang kurang kita bisa berusaha dengan cara lain tanpa meninggalkan pekerjaan rutin kita, sehingga ada penghasilan tambahan yang mungkin bisa menutupi kekurangan biaya untuk biaya hidup dalam sebulan.
Nah sekarang yang menjadi masalah adalah amalan kita ini kurang, tidak mencukupi untuk menutupi dan menghapus dosa-dosa rutin kita. Lalu apa yang bisa kita kerjakan, melipat gandakan amalan mungkin ? Bisa, dan mungkin dapat dilakukan, tapi pertanyaannya cukupkah untuk dapat menghapus dosa-dosa kita ? mungkin tidak, karena betapa banyak dosa-dosa yang rutin kita lakukan dan kita bahkan tidak menyadarinya kalau itu adalah suatu dosa yang insya Allah akan dipertanyakan di akhirat kelak di hadapan Allah.
Ada solusi menarik dari keadaan kita ini, yaitu meraih pahala dengan amalan pasif. Apa itu amalan pasif ? Amalan yang dikerjakan tanpa mengerjakan apa-apa, aneh ya ?
Tepat, amal pasif itu adalah bersabar. Sabar ketika ada orang yang mendzalimi kita, sehingga hijab yang ada antara orang yang didzalimi dengan Allah hilang, do’a kita diijabah dan dosa-dosa digugurkan.
Adanya orang yang mendzalimi kita menghasilkan keuntungan tak berbatas, sesuai dengan amal kesabaran yang kita berusaha lakukan.
Silahkan dicoba solusi alternatif ini.
Wallahu ‘alam bishawab.
Assalamu’alaykum warahmatullahi wabarakatuh.
Log on to your system as the Unix user that the mysqld server runs as (for example, mysql).
Locate the .pid file that contains the server’s process ID. The exact location and name of this file depend on your distribution, host name, and configuration. Common locations are /var/lib/mysql/, /var/run/mysqld/, and /usr/local/mysql/data/. Generally, the file name has an extension of .pid and begins with either mysqld or your system’s host name.
You can stop the MySQL server by sending a normal kill (not kill -9) to the mysqld process, using the path name of the .pid file in the following command:
1 |
shell> kill `cat /mysql-data-directory/host_name.pid` |
Use backticks (not forward quotation marks) with the cat command. These cause the output of cat to be substituted into the kill command.
Create a text file containing the following statements. Replace the password with the password that you want to use.
1 |
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; |
2 |
FLUSH PRIVILEGES; |
Write the UPDATE and FLUSH statements each on a single line. The UPDATE statement resets the password for all root accounts, and the FLUSH statement tells the server to reload the grant tables into memory so that it notices the password change.
Save the file. For this example, the file will be named /home/me/mysql-init. The file contains the password, so it should not be saved where it can be read by other users. If you are not logged in as mysql (the user the server runs as), make sure that the file has permissions that permit mysql to read it.
Start the MySQL server with the special –init-file option:
1 |
shell> mysqld_safe --init-file=/home/me/mysql-init & |
The server executes the contents of the file named by the –init-file option at startup, changing each root account password.
After the server has started successfully, delete /home/me/mysql-init.
You should now be able to connect to the MySQL server as root using the new password. Stop the server and restart it normally.
Re-Post from http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html for Private Note
]]>When we install new Debian Linux System we need to configure how the MTA sends and receives email, the default Debian MTA is EXIM4, just run this command :
1 |
dpkg-reconfigure exim4-config |
Then make the changes that needed
Happy Administer System
]]>When we want to add a script that run automatically at system start up, we need to add the script to rc.d at local machine with this command :
1 |
update-rc.d local defaults |
where local is your own script that located in /etc/init.d
if you just type in your script DebianOS makes you to have an LSB Script, how to make a LSB Script ?
It was easy, just put this commands in your script,
1 |
### BEGIN INIT INFO |
2 |
# Provides: scriptname |
3 |
# Required-Start: $remote_fs $syslog |
4 |
# Required-Stop: $remote_fs $syslog |
5 |
# Default-Start: 2 3 4 5 |
6 |
# Default-Stop: 0 1 6 |
7 |
# Short-Description: Start daemon at boot time |
8 |
# Description: Enable service provided by daemon. |
9 |
### END INIT INFO |
So Debian will accept your script and add it into your machine init script that run in your desire run level.
Happy Administer System !
A week or two I’ve been searching for the solution of the title but unfortunately I could not find any solution that worked for me. I have to upgrade my android tablet to Jelly Bean 4.1.1 because the Need for Speed Most Wanted that I like to play most is not working in 4.0.4 Android in my Tabulet Beat Duos.
The game application data have to be safe, because my children will complain if their savegames gone, but Google can not find any solution that worked great. I have to do it for the first time because no one in Google Search share the solution, so i decide to backup my ICS with three Backup Application
1. Android Shell Backup
2. Go Backup
3. Helium App Backup and Restore
The two backup and restore tool are downloaded and installed from Google Play Store and the Android Shell Backup ( ADB Backup ) run from computer that connected to my tablet via USB Cable.
I don’t want to download all apllication from the first application that installed, so I backup the *.apk with the Clean Master tool. After all the preparation completed I upgraded the ICS ( 4.0.4) to Jelly Bean ( 4.1.1 ) and……………………
1. Android Shell Backup failed to restore the state
2. I installed the program by using the *.apk that have been backed up and restore the app-data by Helium App Backup and Restore, not all app-data can be transferred but the failed-to-transferred app-data is not much.
So the trial-solution is worked for me, things that should be done before the migration is
1. Update all installed program to latest version before backing up
2. After upgraded the Android version to 4.1.1 do a full application update, so the app-data that have been backed up will be restore to the right application version.
Good luck, I hope this solution is worked on any version to any version of Android, but not tested. If you try and working please let me know. Thanks.
]]>Kadang dalam perjalanan kita “berhenti sejenak” untuk satu keperluan, baik perjalanan dalam kita bepergian ataupun dalam “perjalanan hidup” kita. Disadari atau tidak bahwa berhentinya kita di suatu tempat atau di suatu keadaan akan menghabiskan waktu kita jika kita berlama-lama dalam perhentian tersebut.
Telah kita imani juga bahwa sesungguhnya hidup kita ini hanya sebuah persinggahan atau perhentian sejenak untuk melanjutkan hidup kita yang akan berakhir di suatu tempat yang abadi tak berkesudahan.
Jika kita berlama-lama dan tenggelam dalam kesenangan ketika dalam perhentian kita, maka itu akan menghabiskan waktu kita sehingga kita tidak sadar akan kurangnya perbekalan kita untuk perjalanan kita untuk menempuh hidup kita selanjutnya yang masih sangat panjang.
Marilah kita mulai sadar bahwa perbekalan untuk menempuh hidup kita selanjutnya sangatlah penting, tidaklah kita hidup di dunia ini sekadar berhenti untuk sekadar beristirahat dan mengumpulkan bekal untuk perjalanan kita selanjutnya. Berhenti memang menghabiskan waktu, kita dituntut untuk menghabiskan waktu kita dengan hal-hal yang bermanfaat bagi kita, bukan dengan hal-hal yang merupakan kesenangan dalam perhentian semata.
Bukan berarti tukang post blog ini sudah pandai dalam memanfaatkan waktu dalam perhentian ini, sekadar berbagi renungan untuk hari ini.
Jazakumullahu khairan.
Assalamu’alaykum warahmatullahi wabarakatuh
]]>When using MySQL as a backend database, sometimes we need to list the MySQL users to see whom have access to the database server, heres how :
Login to MySQL Database Command Line Interfaces
[sourcecode language=”bash”]
mysql -u mysql-user -p mysql-user-password
[/sourcecode]
Then run this command
[sourcecode language=”bash”]
select user from mysql.user ;
[/sourcecode]
Sometimes we need to know from which machine the user have access, so run this command
[sourcecode language=”bash”]
select host,user from mysql.user ;
[/sourcecode]
Here’s the example of the result
[sourcecode language=”bash”]
+—————-+——————+
| host | user |
+—————-+——————+
| 10.100.150.140 | wp-home-edu |
| 10.100.150.140 | wp-home-org |
| 10.100.150.142 | wp-home-tv |
| 10.100.150.145 | wp-home-sd |
| 127.0.0.1 | root |
| localhost | debian-sys-maint |
| localhost | root |
| walldb | root |
+—————-+——————+
[/sourcecode]
Happy Administer System !
]]>[code language=”bash”]
<VirtualHost>
ServerName somechild.domain.com
Redirect permanent / http://morechild.anotherdomain.com
</VirtualHost>
[/code]
With those setting you’ve made a redirection to morechild.anotherdomain.com when there are requests to somechild.domain.com.
Happy Administer System……….
]]>