Showing posts with label OS. Show all posts
Showing posts with label OS. Show all posts

Saturday, December 5, 2015

Windows + Ubuntu dual boot : boot loader problem

After trying to uncover my newly installed ubuntu as dual boot with a previous windows installation without much success I finally came to this easy and simple solution.
With boot-repair ou can quickly restore your newly installed linux os by typing the following commands...:
  1. Boot from your live CD/ Bootable USB and choose the option try ubuntu.
  2. CTRL + ALT+ T to open a new terminal
  3. $ sudo add-apt-repository ppa:yannubuntu/boot-repair
  4. $ sudo apt-get update
  5. $ sudo apt-get install boot-repair
  6. Run boot-repair from your system or just type boot-repair from your terminal
  7. On start select  Recommended Repair , then follow up ...
  8.  Soon on restart you will be presented with your grub menu...
  9.  That is all
Enjoy it !

Wednesday, October 21, 2015

Install a new package after Cygwin installation

Have you installed Cygwin and  looking for how to install extra packages without using the setup again ? Then it is possible and apt-cyg is your friend :).
How ?
Yes in fact this package is similar to the apt-get you have in linux .
Just launch your cygwin terminal and fire the following command.

lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
chmod +x apt-cyg
mv apt-cyg /usr/local/bin/
apt-cyg install bc

I found these commands very helpful and all prizes go to Knorv from stackexchange.
Then have fun !!!

Sunday, December 28, 2014

Rename a file in linux

So you have forgotten or are just a newbee looking for how to rename a file in linux, these two tricks are for you:
  1.  Using mv command: yourdir$ mv oldname newname
  2. Using copy and delete: 
  • copy old file to new file with cp command: yourdir$ cp oldname newname
  • delete old file with rm command: yourdir$ rm odname

Tuesday, April 8, 2014

How to turn on or off IIS on windows 7 or windows 8 ?

note: IIS stands for Internet Information Services...
Sometimes troubleshooting some issues with ports or others may require that you make sure your IIS is down or up as it is using by default the port 80. Even though there are many ways to do this I found this one particularly easier and decided to share it with you.

1. Simultaneously press Win + R keys and the Run dialog window pop up
           or
 type run in the lower bottom left textfield (prompting Search programs and files) under All Programs


2.  type: appwiz.cpl and Click OK

  
3. On the top left: click on Turn Windows features on or off
  
4.  Then finally you are there . Most obviously the second branch below Games will be Internet Information Services. You can turn it on or off by just filling or clearing the box...

You are now free to proceed accordingly depending of what you want to do. Stay blessed!


Apache (xampp) not starting on windows 7

Hi, I just pass another dirty 30 minutes trying to sort out this issue. Without this nonsense of Microsoft stopping the support of XP,  I would have never been there even .
 I installed a new version of windows 7 and also installed a latest version of xampp successfully. When I start apache later it couldn't start. Usually this problem is often caused by the port 80 being busy because of Skype, IIS, etc. However I don't have skype installed on my PC yet, even IIS is not running , I even when further in the CMD listing port with > netstat -aon  still no mention of port 80.
 I started realizing that I am dumped this time again my dear Microsoft black box OS (smile).

Solution:

I finally get it started by right clicking the Xampp Control Panel icon on the desktop and  
Run as administrator and boooooommmmmmmm it just fires like a charm. This may not be a standard solution but help you work around. We never make it till some times we fake it. That said stay tuned and don't forget to drop a comment....

Friday, January 10, 2014

View and kill process from Windows command line

How can you view and kill a process from the command line ?
First you need to know the process id (PID). Check from the task manager as show below

For example here my ireport program has a pid = 5880.

Second, you may directly get it from the command by typing the following in the cmd:
cmd> netstat -ona
 
Three, now comes the time to kill our process.
cmd> taskkill /pid 5880

 If it persists you can force it with a force option ( /F )
 cmd> taskkill /F /pid 5880

You may also search from cmd as follow:
cmd> netstat -ona | find ":80"
cmd>netstat -ona | find "LISTENING"
cmd>netstat -ona | find ":80"  | find  "ESTABLISHED"
and so forth.

Thursday, September 12, 2013

How to Disable and Enable the network adapter from cmd in XP

Recently I have come across this problem. With very few precise tutorial available on this, I have decided to dedicate one of my post to it.
Suppose you want to enable and disable the network adapter from the command line of windows xp.
First you need the devcon utility downloadable from here:
  • unzip the devcon.zip folder
  • you will have two folder I386 and ia64 , and one file EULA
  • copy the devcon.exe from i386 if you have a 32 bit system or  from ia64 if you have a 64 bit system.
  • Paste the devcon.exe inside C://Windows/System32/
 Secondly get the device instance ID of the NIC by:
 
  • Right click Start --->Right click computer ---> manage
  •  the manage window appears as follows , then go to Device Manager:
  • Click on Device Manager to expand it, then  at the right side click on Network adapters and right the specific adapter listed below ---> Properties:
  • Under properties ---> Details 
  •  Here the ID will be *DEV_1094*
  Finally , Now that our devcon utility is installed and the device id obtained. Let go to the command prompt ( Start ---> run (cmd) ---> Enter ).

To disable :

C: >  devcon disable *DEV_1094*

To enable :

C:> devcon enable *DEV_1094*


This process can be easily applied to other hardware devices like printer, key board, mouse and more.
Hope you find it useful.

Monday, August 19, 2013

How to view the LAN on linux ?

Usually newbies or newcomers tend to have problems viewing the local area network once they have completed their linux installation. If you are sure that the physical connection is done and working properly, you may check the LISA daemon. Lisa is the background process or system service that allow you to view the LAN.

Accessed from :

System Settings -> Server Settings -> Services
 

Switching between the Terminal and GUI in linux

One of the advantage of using Linux is the ability to switch bet the full screen terminal and the graphical user interface GUI. If you are using  Red Hat , fedora or other related distribution you can do this by:
  • CRLT + ALT + Fn , where n= 1,2,3,4,5,6 to navigate between the 6 different terminal sessions.
  • CRTL + ALT + F7  to return to the graphical user interface.