If you have multiple servers connecting to internet, these servers use Samba to share file with each other. Normally, you will Samba server for this purpose. After you install Samba & configure the server, all servers now can access file sharing now. But there is another issue, you realize that internet users can also access these files. How can we block internet users while still these servers sharing file with each other. There are many solutions, but here is my proposal: We create a virtual interface network, all our servers will have a 2nd virtual private interfaces , to do this you can add someRead More →

A gentleman came to me with his Iphone and asked for help, his iphone didn’t rotate automatically when he changed Iphone orientation. He said that he had done something with the setting, now he could not find it. I don’t remember it too , i go to General -> Settings , there is no option to change there. I did a little google search, and found the way to fix. It’s simple , just swipe up your phone, you will see the option there. Remember that not every application can change the orientation, some just use portrait , some use landscape only.Read More →

Today, i just had interesting case, a client came to me and asked me why she could not insert  page number into her powerpoint slide. Well, i thought it was easy. I sat down at her desk, open the Powerpoint slide, click on Insert -> Slide Number , nothing happened. I checked the Slide Layout, open the Slide Master, yeah, this Layout does not have page number on its footer. I added it to the slide master, go back to my normal view, nothing happened, i selected Reset Slide, the slide became messy, but there was still not page number there. What’s going on here…Read More →

Windows 2003 seems working fine with disk over 2TB, but that’s not entirely right. I had several incidents when using 3TB disk on windows 2003 server. Everything seems working file when your data is less than 2TB, when the data is over 2TB, the partition will be corrupted and your data will be lost. I don’t remember if i use dynamic disk or GPT. Becareful if you need to use disk over 2TB in windows 2003.Read More →

Login to your Ubuntu, and run the following command: openssl req -nodes -newkey rsa:2048 -sha256 -keyout myserver.key -out server.csr It then will ask you some information for the certificate, fill them in and complete the process. Country Name (2 letter code) []: (FR in France for example) State or Province Name (full name) [Some-State]: (your state or province name, name of your département in France) Locality Name (eg, city) []: (the name of your city) Organization Name (eg, company) []: (your organization name) Organizational Unit Name (eg, section) []: (do not fill – advised – or enter a generic term such as “IT Department”.) CommonRead More →

There was a blog post that I have used multiple times to format a drive at or over 3TB in size. Unfortunately the original blog post recently went offline and I had to use the wayback machine to get it’s contents. The original URL of the post is: here and a link to the wayback machine archive of it is: here. If the original author puts the article back online I would be more than happy to link to it and remove the archived version I have posted below. I hope this helps other people as well but I am posting it here mainly as a guide forRead More →

Mounting a Windows (SMB) share on Ubuntu gives us a “cannot allocate memory” error. Executing a command like this: mount -t cifs //toad/Backup /media/backup -o user=username,password=password,iocharset=utf8,file_mode=0777,dir_mode=0777 We get an error like this: mount error(12): Cannot allocate memory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Solution: First, check the permissions on your shared folder. Right-click the folder and selectProperties. Your Windows user must be allocated permissions on both the Securityand the Sharing tabs. Open regedit, and set the following registry key to ‘1’. This key tells Windows to set aside enough system cache for sharing large files. Commenter Raoul Duke (thanks!) adds that this change is unnecessary on Windows 7 and later.Read More →

Debugging Autofs problem If you are having trouble automounting your file systems, want to check where the log that autofs being saved, it may be useful to run automount in the foreground. Stop the autofs daemon sudo service autofs stop Run automount in the foreground with verbose information sudo automount -f -v From another terminal, try to mount your file-systems by changing directories into the mountpoint. Check the output from the first terminal for clues as to why the mount failed or was not attempted.   Hope it help.Read More →