$ sudo rsync -av --progress --exclude="filetobeexcluded" --exclude="foldertobeexcluded" /sourcedir /destinationdir
I like cp -r command but this rsync is awesome too!
Hooray!
2017년 4월 4일 화요일
2016년 7월 21일 목요일
Solutions: Windows 8 WiFi Limited / Windows can't communicate with the device or resource (Primary DNS Server)
(To check only solutions quickly, then see last two lines.
There are two wireless routers on 1st and 2nd floor of my company.
One coworker who used 2nd fl. router so far moved down to 1st fl. and a disaster began...
with his saying internet doesn't work in his laptop.
When I tried to connect to 1st fl. router, I met the next.
Msg of horror and terror:
"Windows can't communicate with the device or resource (Primary DNS Server)"
"Limited" & "No Internet"
on Network and Sharing Center dialog of Windows 8
Okay, it's not the first time of my computing history. It happened before with Windows 7 and Windows XP too, and I have figured it with resetting Profiles of Wireless Connections in Windows.
How to do it in Windows 8, let's search after I connect to 2nd fl router...
Same msg! What?! Kidding me?
I could use it before without any problem and now it spits the same msg?
Easy, easy...
of course there should be some way to flush Windows' wireless profiles in 8 too.
Tried this solution (#2) and I could successfully connect to 2nd fl. router.
Yup! Good, good. Now I connect to 1st fl. and, the, same, m,s,g......
"Windows can't communicate with the device or resource (Primary DNS Server)"
"Limited" & "No Internet"
on Network and Sharing Center dialog of Windows 8
same msg!!
Okay! I will just fix it by myself,
with a very direct way.
I opened Wireless Connection Properties of 1st fl router, and
I opened Internet Protocol Version 4 (TCP/IPv4) Properties, and
clicked Advanced... button, and
moved to DNS tab, and
typed the proper IP address (i.e., 192.168.0.1) in Primary DNS IP address blank, and
left the secondary DNS blank empty,
OK, Apply, OK, OK, ...
Tada~!!
It works super fine now.
Solutions:
#1 Typing a proper IP address of wireless router in Primary DNS's IP address blank. (usually it is 192.168.0.1 without the network administrators customizing)
#2 http://www.fixedbyvonnie.com/2013/10/how-to-fix-limited-or-no-connectivity-wi-fi-issues-in-windows-8/#.V5Co6fmrhBc
Thanks a lot, Vonnie.
There are two wireless routers on 1st and 2nd floor of my company.
One coworker who used 2nd fl. router so far moved down to 1st fl. and a disaster began...
with his saying internet doesn't work in his laptop.
When I tried to connect to 1st fl. router, I met the next.
Msg of horror and terror:
"Windows can't communicate with the device or resource (Primary DNS Server)"
"Limited" & "No Internet"
on Network and Sharing Center dialog of Windows 8
Okay, it's not the first time of my computing history. It happened before with Windows 7 and Windows XP too, and I have figured it with resetting Profiles of Wireless Connections in Windows.
How to do it in Windows 8, let's search after I connect to 2nd fl router...
Same msg! What?! Kidding me?
I could use it before without any problem and now it spits the same msg?
Easy, easy...
of course there should be some way to flush Windows' wireless profiles in 8 too.
Tried this solution (#2) and I could successfully connect to 2nd fl. router.
Yup! Good, good. Now I connect to 1st fl. and, the, same, m,s,g......
"Windows can't communicate with the device or resource (Primary DNS Server)"
"Limited" & "No Internet"
on Network and Sharing Center dialog of Windows 8
Hell.... well, all is well, all is well...
I disconnected from 2nd fl router, and repeated #2 solution again, and...same msg!!
Okay! I will just fix it by myself,
with a very direct way.
I opened Wireless Connection Properties of 1st fl router, and
I opened Internet Protocol Version 4 (TCP/IPv4) Properties, and
clicked Advanced... button, and
moved to DNS tab, and
typed the proper IP address (i.e., 192.168.0.1) in Primary DNS IP address blank, and
left the secondary DNS blank empty,
OK, Apply, OK, OK, ...
Tada~!!
It works super fine now.
Solutions:
#1 Typing a proper IP address of wireless router in Primary DNS's IP address blank. (usually it is 192.168.0.1 without the network administrators customizing)
#2 http://www.fixedbyvonnie.com/2013/10/how-to-fix-limited-or-no-connectivity-wi-fi-issues-in-windows-8/#.V5Co6fmrhBc
Thanks a lot, Vonnie.
2016년 7월 6일 수요일
Apache Issues of upgrading Ubuntu Server 12.04 LTS to 14.04 LTS
After '# do-release-upgrade' from Ubuntu Server 12.04 LTS to 14.04 LTS
Reboot, and problem solved.
Apache2 couldn't run itself after the upgrade.
$ sudo service apache2 status
So it was not running.
$ sudo service apache2 start
It showed me some error msg about the reason, but definitely it's caused by the upgrade. Yes, I chose 'Keep current settings' when the new apache2 installation process asked me what to do.
$ cd /etc/apache2
$ mv apache2.conf apache2.conf.old
apache2.conf is my old setting and wasn't compatible perfectly to run new apache2. Of course there was a kind skeleton file for that, 'apache2.conf.dpkg-dist'.
$ mv apache2.conf.dpkg-dist apache2.conf
$ sudo vi apache2.conf
I added a line for phpmyadmin, one more for the ServerName at the end of the conf file.
Include /etc/phpmyadmin/apache.conf
ServerName www.mywebsite.com
When I started apache2 service again, it worked the same as before.
On the dialog of grub setting, I just typed Enter with the default selection of hdd choice.
And, it failed to boot after the dist upgrade and went into its rescue mode.
I googled but couldn't find an exact same case, but it's... grub. Yes, GRUB. ... 2 actually.
I have RAID0 (mirroring) arrayed by mdadm with two of 500GB WD hard drives. So I did it with sdb too.
$ sudo grub-install /dev/sda
$ sudo grub-install /dev/sdb
$ sudo update-grub
Reboot, and problem solved.
Apache2 couldn't run itself after the upgrade.
$ sudo service apache2 status
So it was not running.
$ sudo service apache2 start
It showed me some error msg about the reason, but definitely it's caused by the upgrade. Yes, I chose 'Keep current settings' when the new apache2 installation process asked me what to do.
$ cd /etc/apache2
$ mv apache2.conf apache2.conf.old
apache2.conf is my old setting and wasn't compatible perfectly to run new apache2. Of course there was a kind skeleton file for that, 'apache2.conf.dpkg-dist'.
$ mv apache2.conf.dpkg-dist apache2.conf
$ sudo vi apache2.conf
Include /etc/phpmyadmin/apache.conf
ServerName www.mywebsite.com
When I started apache2 service again, it worked the same as before.
2015년 4월 30일 목요일
Essential Linux Commands (still updating)
gdm: How to stop & restart gdm
Go out from X by Ctrl+Alt+F1 and login to a console first and
$sudo service gdm stop
or
$sudo /etc/init.d/gdm stop
This works for most services in /etc/init.d/ with start/stop/restart.
blkid: How to get UUIDs of hard disks to tweak /etc/fstab
$sudo blkid
$sudo blkid -s UUID
hdparm: Find out Hard disk Spec (brand, model, size, etc.)
$sudo hdparm -I /dev/sda
Changing a target of symlink
instead of
$ rm -f symlink
$ ln -s target symlink
when a target is a file
$ ln -sf new_target symlink
not to mind the target is a directory or a file then
$ ln -sfn new_target_dir symlink
mdadm: Multiple Device Admin (Linux Software RAID)
$ cat /proc/mdstat
$ sudo mdadm /dev/md0 -r /dev/sda1
$ sudo mdadm /dev/md0 -a /dev/sda1
grub: Change the installed hard disk (MBR change, for example, into sda)
$ sudo grub-install /dev/sda
$ sudo update-grub
grub: Change the default boot kernel/OS
$ fgrep menuentry /boot/grub/grub.cfgcopy menuentry text that you want to boot by default,
$ sudo vi /etc/default/grubGRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 4.2.0-16-generic"
(when your new kernel doesn't work properly && grub is already updated with the new kernel's entry, the text of GRUB_DEFAULT above works well)
$ sudo update-grub
2015년 4월 12일 일요일
Recovery of degraded arrays of RAID1 (레이드1에서 동기화 어긋난 하드 디스크 복구)
우분투 12 Saucy. RAID1으로 미러링 중인 두 하드 중 하나가 고장 나거나, 동기화가 어긋난 경우(degraded) 아래와 같이 해당 파티션을 제거 했다가 다시 추가하면 mdadm이 동기화를 다시 시켜서 복구함.
In Ubuntu 12 Saucy, with mirrored two hard drives, /dev/sda and /dev/sdb, which are partitioned as three volumes, 1, 2, and 3, sda's partitions are degraded by some unknown reason. This happens regularly to me around once every other year with two identical WD 500GB hard drives.
To sync the degraded array back, you simply detach (remove) the partition and attach (add) it again like the followings:
Remove the unsynced hard drive
(You may not need to remove the hard drive, because if it has been long since it's degraded, mdadm removes the hard drive by itself.)
Add them again into the array (to run the sync process again)
Then mdadm synchronizes the partitions of the hard drive one by one with its mirrored one. It takes for a while up to the size of the hard drive.
우분투 12 Saucy. RAID1으로 미러링 중인 두 하드 중 하나가 고장 나거나, 동기화가 어긋난 경우(degraded) 위와 같이 해당 파티션을 제거 했다가 다시 추가하면 mdadm이 동기화를 다시 시켜서 복구함.
In Ubuntu 12 Saucy, with mirrored two hard drives, /dev/sda and /dev/sdb, which are partitioned as three volumes, 1, 2, and 3, sda's partitions are degraded by some unknown reason. This happens regularly to me around once every other year with two identical WD 500GB hard drives.
To sync the degraded array back, you simply detach (remove) the partition and attach (add) it again like the followings:
Remove the unsynced hard drive
$ sudo mdadm --remove /dev/md0 /dev/sda1
$ sudo mdadm --remove /dev/md1 /dev/sda2
$ sudo mdadm --remove /dev/md2 /dev/sda3
(You may not need to remove the hard drive, because if it has been long since it's degraded, mdadm removes the hard drive by itself.)
Add them again into the array (to run the sync process again)
$ sudo mdadm --add /dev/md0 /dev/sda1
$ sudo mdadm --add /dev/md1 /dev/sda2
$ sudo mdadm --add /dev/md2 /dev/sda3
Then mdadm synchronizes the partitions of the hard drive one by one with its mirrored one. It takes for a while up to the size of the hard drive.
우분투 12 Saucy. RAID1으로 미러링 중인 두 하드 중 하나가 고장 나거나, 동기화가 어긋난 경우(degraded) 위와 같이 해당 파티션을 제거 했다가 다시 추가하면 mdadm이 동기화를 다시 시켜서 복구함.
2015년 4월 6일 월요일
How to Make an Ejectable Internal Hard Disk Drive (SCSI device) Unejectable
My PC is built with Asrock Z68 Extreme4 gen3 which has a Marvell SATA3 (6G) chipset, and it has a problem that even though I disabled the SATA ports hot-swap in the BIOS, still it shows my internal hard drives in the tray as ejectable devices.
Checking/unchecking the 'Enable safely remove disk' option in the 'Policies' tab of Marvell SATA driver dialog from Device Manager also never worked.
Google and the respectful pre-path-walkers told me the followings:
1. How to Make an Ejectable Internal Hard Disk Drive Unejectable
Check out user12459's answer in the link above.
This no.1 solution works greatly for the hard drives that are shown as a SATA drive, but it doesn't work for the ones which are shown as a SCSI device.
It's little annoying to create a batch file and the shortcut in the Startup folder, not a elegant way
2. How to Make an Ejectable Internal Hard Disk Drive which looks as a SCSI device in the tray Unejectable
Focus on the next line which appears in the linked page no.2 above.
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\VEN_1000&DEV_0054&SUBSYS_197615AD&REV_01\4&1f16fef7&0&00A8" /v Capabilities /t REG_DWORD /d 2 /f
Making the code above as an .bat file and put create a shortcut of the file, and then cut and paste it in the folder that you can open with clicking 'Start' button -> All Programs -> Startup', right-click on it and choose 'Open all users.'
However, you need to tweak some parts of the code above to make it work with your hard drive.
Run 'regedit.exe' and go to 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE\' and find the hard drive which your Windows system recognize as SCSI device.
In my case, it was 'DiskWDC_WD6400AAKS-00H2B0___________________07.04C07' (yes, WesternDigital 640GB HDD) and under it, there was '5&1599dfff&0&2.0.0' that seems like it is kinda ID of the hard drive.
You have to replace the bolded three parts, 'PCI', 'VEN_1000&DEV_...', '4&1f...'
to your information is matched respectively, so with my computer,
P.S. No.2 way is not perfect because Windows refreshes the list of removable devices at a boot time and also when some external device like a USB memory is connected or disconnected.
한글로 쓰려니... 일할 시간도 없고 너무 귀찮... 죄송합니다만 영어로 보세요.
'장치 안전하게 제거하기 내장 하드디스크' '트레이 내장 하드 장치 제거 안 보이게 하는 방법'
Checking/unchecking the 'Enable safely remove disk' option in the 'Policies' tab of Marvell SATA driver dialog from Device Manager also never worked.
Google and the respectful pre-path-walkers told me the followings:
1. How to Make an Ejectable Internal Hard Disk Drive Unejectable
Check out user12459's answer in the link above.
This no.1 solution works greatly for the hard drives that are shown as a SATA drive, but it doesn't work for the ones which are shown as a SCSI device.
It's little annoying to create a batch file and the shortcut in the Startup folder, not a elegant way
2. How to Make an Ejectable Internal Hard Disk Drive which looks as a SCSI device in the tray Unejectable
Focus on the next line which appears in the linked page no.2 above.
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\VEN_1000&DEV_0054&SUBSYS_197615AD&REV_01\4&1f16fef7&0&00A8" /v Capabilities /t REG_DWORD /d 2 /f
Making the code above as an .bat file and put create a shortcut of the file, and then cut and paste it in the folder that you can open with clicking 'Start' button -> All Programs -> Startup', right-click on it and choose 'Open all users.'
However, you need to tweak some parts of the code above to make it work with your hard drive.
Run 'regedit.exe' and go to 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE\' and find the hard drive which your Windows system recognize as SCSI device.
In my case, it was 'DiskWDC_WD6400AAKS-00H2B0___________________07.04C07' (yes, WesternDigital 640GB HDD) and under it, there was '5&1599dfff&0&2.0.0' that seems like it is kinda ID of the hard drive.
You have to replace the bolded three parts, 'PCI', 'VEN_1000&DEV_...', '4&1f...'
to your information is matched respectively, so with my computer,
- 'PCI' to 'IDE'
- 'VEN_1000&DEV_0054&SUBSYS_197615AD&REV_01' to 'DiskWDC_WD6400AAKS-00H2B0___________________07.04C07'
- '4&1f16fef7&0&00A8' to '5&1599dfff&0&2.0.0'
P.S. No.2 way is not perfect because Windows refreshes the list of removable devices at a boot time and also when some external device like a USB memory is connected or disconnected.
한글로 쓰려니... 일할 시간도 없고 너무 귀찮... 죄송합니다만 영어로 보세요.
'장치 안전하게 제거하기 내장 하드디스크' '트레이 내장 하드 장치 제거 안 보이게 하는 방법'
2015년 2월 10일 화요일
LG G Pro F240K (Korean Model) Unrooting and Software Update
LG 지 프로 KT, 언루팅 & 소프트웨어 업데이트
한글 요약: 루팅이 되었기에 OTA 소프트웨어 업데이트를 할 수 없던 젤리빈 LG G Pro(KT버전)를 아래 Way 3에 소개된 방법으로 킷캣으로 업그레이드 할 수 있었다.
Situation: Trying s/w update (4.4.2 Kitkat) on a rooted LG G Pro (F240K) of 4.1.2 Jellybean
Why: Abnormally slowed response recently and needs of unrooted phone
Problem: LG blocked s/w update on a rooted phone
Way 1.
Trying to unroot with keeping 4.1.2
Failed: Couldn't find the unrooting tool which is related to my previous rooting tool.
Way 2.
Using LG Mobile Support Tool
Failed: The program keeps saying the battery is low even though it's fully charged.
Way 3.
Using LG Flash Tool 2014 with the Jellybean KDZ file for F240K
Succeeded: Hurray!
Preparation: LG Mobile Support Tool (B2CAppSetup.exe), LG Flash Tool 2014 (.zip), KDZ file for F240K (.kdz)
I don't know why, but in my case, it stopped at 4% and showed some instructions of rebooting the phone and there was a [Retry] button. Instead of following the sentences I just click the [Retry] button and it proceeded greatly up to 95%, and then the phone was rebooted.
The initial setting steps were begun with the greeting Droid image, but the proceeding bar was 95% still so I was waiting and finally it became 100% without any change on the phone screen. I unplugged the USB cable and checked the s/w version which was changed to Jellybean, of course not rooted.
After 6 times of trials of s/w update from Jellybean to Kitkat, the phone works finely awesome! It responses as a quad-core device. I had to select and install 78 apps manually from my previously installed app list of the Google Play Store but it was a chance for me to organize the unused apps, so no problem.
Big thanks to all xda devs and the uploaders of tools and kdz files. You're super!
한글 요약: 루팅이 되었기에 OTA 소프트웨어 업데이트를 할 수 없던 젤리빈 LG G Pro(KT버전)를 아래 Way 3에 소개된 방법으로 킷캣으로 업그레이드 할 수 있었다.
Situation: Trying s/w update (4.4.2 Kitkat) on a rooted LG G Pro (F240K) of 4.1.2 Jellybean
Why: Abnormally slowed response recently and needs of unrooted phone
Problem: LG blocked s/w update on a rooted phone
Way 1.
Trying to unroot with keeping 4.1.2
Failed: Couldn't find the unrooting tool which is related to my previous rooting tool.
Way 2.
Using LG Mobile Support Tool
Failed: The program keeps saying the battery is low even though it's fully charged.
Way 3.
Using LG Flash Tool 2014 with the Jellybean KDZ file for F240K
Succeeded: Hurray!
Preparation: LG Mobile Support Tool (B2CAppSetup.exe), LG Flash Tool 2014 (.zip), KDZ file for F240K (.kdz)
- Run LGFlashTool2014.exe as an administrator
- Select Type: CDMA
- PhoneMode: EMERGENCY
- Select KDZ file
- Click [CSE Flash]
- Click [Start]
I don't know why, but in my case, it stopped at 4% and showed some instructions of rebooting the phone and there was a [Retry] button. Instead of following the sentences I just click the [Retry] button and it proceeded greatly up to 95%, and then the phone was rebooted.
The initial setting steps were begun with the greeting Droid image, but the proceeding bar was 95% still so I was waiting and finally it became 100% without any change on the phone screen. I unplugged the USB cable and checked the s/w version which was changed to Jellybean, of course not rooted.
After 6 times of trials of s/w update from Jellybean to Kitkat, the phone works finely awesome! It responses as a quad-core device. I had to select and install 78 apps manually from my previously installed app list of the Google Play Store but it was a chance for me to organize the unused apps, so no problem.
Big thanks to all xda devs and the uploaders of tools and kdz files. You're super!
피드 구독하기:
글 (Atom)
Xubuntu: Installing a Printer (Canon G3060 PIXMA)
$ sudo apt install system-config-printer Download the proper driver for linux from Canon website. Turn on the printer and set up its WiFi. C...
-
$ sudo apt install system-config-printer Download the proper driver for linux from Canon website. Turn on the printer and set up its WiFi. C...
-
https://askubuntu.com/questions/1056386/how-do-i-backup-all-gnome-tweaks-configuration From the terminal, execute the following to save y...
-
Put your ' My_Color_Scheme.vim ' file in ~/.vim/colors/ Add the code below into your ~/.vimrc if &term =~ "xterm" ...