Friday, August 19, 2016

Auto-mount of .Sparsebundle Image (Network Share)

Friday, August 19, 2016
Today i was at client site. Had to set the .sparsebundle used by Time Machine Backup to be auto-mounted after server reboot on Mac OS X. I referred to the tutorial below;
Quick Tip: How to Mount a Time Machine Network Drive at Login
When i used the script exactly the same (of course the path has to be changed accordingly), it was throwing out errors like directory not found, image not recognized etc. What i did was i went back to basically running the script one by one the terminal and saw how it came about. So here below is the final script to make it happen:
try
mount volume "smb://servername/dir"
end try
do shell script "hdiutil attach /Volumes/dir/filename.sparsebundle"
Then, do these;

Applescript Editor -> Export as App to Documents -> Drag and drop to Login Items

Try restarting the server and verify if the .sparsebundle is mounted automatically.

Tuesday, March 15, 2016

SQL Server Configuration Manager Missing After Windows Server 2012 Upgraded to 2012 R2

Tuesday, March 15, 2016

I had this issue after I upgraded the operating system from Windows Server 2012 to 2012 R2. The SQL Server 2012 on the same server worked fine until I needed to access to SQL Server Configuration Manager for troubleshooting on some issue related to using SCCM 2012. That was when I realized SQL Server Configuration Manager was now missing.

The solution for the issue is as below:
1. On a SQL server running the same version of SQL Server (2012 SP1) and installation features, I opened the folder C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft SQL Server 2012; (please take note that this is hidden folder)

2. Copied the folder Configuration Tools to the same folder on the SQL Server with the missing link to SQL Server Configuration Manager.

Reference: http://thoughtsonopsmgr.blogspot.my/2014/01/quick-trick-where-is-sql-server.html

KVM Switch

Keyboard, Video, Mouse. Abbreviated to KVM.

Since last three weeks ago, when i went into the server room at my co., i thought i saw a magical monitor (but it was actually a KVM, not monitor) that could switch displays of different computers in one key press. And i was like, 'Uh what is this? How can it work this smart. Waah kagum.' :D I was curious on how it actually works since, but did not get a chance to ask and know what it exactly was.

However, yesterday, surprisingly i got the opportunity to see, touch and actually play with KVM switch when my boss told me to try setting up the device to connect few servers in our unit room. So basically KVM switch is used to control multiple computers/servers from one or more, keyboard, monitor and mouse. :) On the switch, you have the buttons to change the display of the computers you desire. So you no longer have to connect and reconnect different servers to a monitor, keyboard and mouse each time you want to use them.

Nice. :D

P/s: Drafted in 2011 and posted only today :)

Disk (E:) Missing in Virtual Machine

I encountered an issue with my VM today where when I wanted to open an application console (Configurations Manager Console), the icon and everything were missing. I even tried to basically double-click on the menu with the missing icon, but nothing happened. So i checked the partition and found out that there was only system disk available which is (C:). And i know that all the application files and configurations are all in separate disk.

I looked at the VM setting in the Hyper-V Manager and things just looked good. So i continued checking on the Disk Management and saw that the (E:) disk was offline. What i did was then right-clicked, and select Online and afterward rebooted the VM.

When the VM was up again, now i could find all the disks that are supposed to be there and the Configurations Manager application is running fine.

To wrap it up, one of the things to be done when you encounter this kind of issue, try to look into Computer Management -> Disk Management and check if all the disks are online or offline.

That's all.

Tuesday, March 29, 2011

Error solved at 00:17

Tuesday, March 29, 2011
jr@Ellen:~/Desktop/Finalized$ ruby finish.rb -f ~/Desktop/Malwarefortest/test3.\{OVL\}\{PE\}
./ssdeep.rb:8: uninitialized constant Ssdeep (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from finish.rb:6


I renamed my older file in the same directory with "finish.rb" from "ssdeep.rb" to "newly.rb". :)

Or i could have just dumped that "ssdeep.rb" to trash. :D

Saturday, March 12, 2011

Errors with 'require' in Ruby - Ubuntu 10.04

Saturday, March 12, 2011
I encountered some errors when running my code, just out of the blue; so i googled but didn't manage to find answers for the problem.

./curb.rb:17:in `gets': No such file or directory - 6fd9c1c6b63137c7d93139472696b2e3 (Errno::ENOENT)
from ./curb.rb:17
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from main.rb:18

I had a hunch though, that it might have something to do with my gem, that i tried my luck updating it using the command;

$ sudo gem update -- system

And here is the list of newly updated gems;

$ gem list

*** LOCAL GEMS ***

aaronh-chronic (0.3.9)
abstract (1.0.0)
actionmailer (3.0.5, 2.3.5, 2.3.4)
actionpack (3.0.5, 2.3.5, 2.3.4)
activemodel (3.0.5)
activerecord (3.0.5, 2.3.5, 2.3.4)
activeresource (3.0.5, 2.3.5, 2.3.4)
activesupport (3.0.5, 2.3.5, 2.3.4)
arel (2.0.9)
builder (2.1.2)
bundler (1.0.10)
chronic (0.3.0, 0.2.3)
columnize (0.3.2, 0.3.1)
curb (0.7.12, 0.6.6.0)
erubis (2.6.6)
gemcutter (0.7.0, 0.3.0)
haml (3.0.25, 2.2.17)
hoe (2.9.1, 2.5.0)
hpricot (0.8.4)
i18n (0.5.0)
json_pure (1.5.1, 1.2.0)
linecache (0.43)
mail (2.2.15)
mime-types (1.16)
mysql (2.8.1)
parseconfig (0.5.2)
polyglot (0.3.1)
rack (1.2.1, 1.0.1)
rack-mount (0.6.13)
rack-test (0.5.7)
rails (3.0.5, 2.3.5, 2.3.4)
railties (3.0.5)
rake (0.8.7)
RedCloth (4.2.7, 4.2.2)
ruby-debug (0.10.4, 0.10.3)
ruby-debug-base (0.10.4, 0.10.3)
rubyforge (2.0.4, 2.0.3)
rubygems-update (1.6.2, 1.5.0)
sprockets (1.0.2)
system_timer (1.0)
thor (0.14.6)
tlsmail (0.0.1)
treetop (1.4.9)
tzinfo (0.3.24)
whenever (0.6.6, 0.4.1)


And taraaa... Everything works fine now~ :)

Monday, February 22, 2010

Installation of Curb

Monday, February 22, 2010
Again, this morning i had a problem in installing the curl library onto my desktop@office. Thanks for not bringing the power charger for Ellen, Achiq.

But it was good anyways. Since now i figured out the exact commands to install curb, not like yesterday when installing it on the laptop. So many installation commands had been used yet errors kept flooding in, till finally a miracle (?? ahaha) happened. :D

So, basically when you typed;

$ sudo gem install curb

And this produced error like;

Building native extensions. This could take a while...
ERROR: Error installing curb:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
"-fno-strict-aliasing -g -g -O2 -fPIC $(cflags)"
checking for curl-config... no
checking for main() in -lcurl... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.


Then, do this where you will type in;

$ sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev

and,

$ sudo gem install curb

Nanikore?? TBC.
 
@Chiq & Stuff © 2008. Design by Pocket