Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Monday, April 18, 2016

Removing Old Kernel header Linux




dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | grep -E "(image|headers)" | xargs sudo apt-get -y purge
taken from here http://tuxtweaks.com/2010/10/remove-old-kernels-in-ubuntu-with-one-command/ 


if doesnt work, tried this

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

Fixing Additional Guest in Virtualbox ( case lubuntu and trisquel )

 

 

Lubuntu 


Windows 10 64bit running Lubuntu 14.04 in a Virtual Box.
My bidirectional copy-paste was working fine until i did some header updates. Doing the following fixed it for me.
sudo apt-get install virtualbox-guest-dkms

Trisquel


Just
sudo apt-get update 
sudo apt-get install dkms

Wednesday, December 3, 2014

Hilangin bootloader linux ( ubuntu ) dengan Windows Setup CD or Live USB



Note: gw gunain live usb windows7

Dengan Windows Vista, Windows Server 2008, Windows 7, Windows 8 / live usb :

  1. Boot ke Live usb atau CD lalu:
  2. Cari kata kata "Repair your computer" dan klik.
  3. Cari "Command Prompt" lalu klik
  4. Ketik kata di bawah ini lalu enter.
  5. bootsect /nt60 SYS /mbr
     

 Dengan Windows 2000, Windows XP atau Windows Server 2003 CD :



  1. Boot ke cd lalu masuk ke "Recovery Console" dengan cara pencet "R" 
  2. ketik kata kata ini:
    fixmbr
     
  3. Tekan "Y" lalu ketik "exit"

Dengan  Windows 98 CD:

  1. Boot ke command prompt lalu ketik
    fdisk /MBR

Monday, December 1, 2014

Upgrade or Updating application from old release and unsuported by ubuntu or linux mint

I still using linux mint 10 for vmware. Doing good but now getting error like this

So I got from http://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release ( taken for my notepad only ) all credit belong there

and this what solving my matter, commandline only make it simple.

http://askubuntu.com/a/237118 ( taken from here as my notepad ) all credit belong there

What are 404 errors

The 404 or Not Found error message is a HTTP standard response code indicating that the client was able to communicate with the server, but the server could not find what was requested.
The web site hosting server will typically generate "404 - Page Not Found" web page, when users attempts to follow a broken or dead link.

Why are we facing 404 errors

Ubuntu follows the approach of two different release cycles:
Normal Ubuntu releases are supported for 9 months. LTS releases are supported for 5 years.
Past releases may have different support schedules (for example, normal releases (before 13.04) used to be supported for 18 months, while LTS releases (before 12.04) used to be supported for 3 years on the desktop and 5 years on the server).
EOL: Once the support period for a particular release is over; they are called End Of Life (EOL) and all the updates and package repositories for that Release are transferred to a different server which results in 404 errors while running sudo apt-get update. You can confirm if your release has become EOL by going to this page. If your Ubuntu release is mentioned under "End Of Life (EOL)" Table, then the release is no longer supported and you should try to upgrade to a newer supported release. However, if you wish to continue using this unsupported release, you would have to make necessary modifications in /etc/apt/sources.list to point to the old-releases server of Ubuntu.

Steps to make necessary modifications

  1. Open your Terminal:
    • Press Ctrl + Alt + T; OR
    • If you have Gnome: ApplicationsAccessoriesTerminal; OR
    • If you have Unity: press Super (the key between Left Ctrl and Left Alt) and query for Terminal.
  2. Run the following command:
    gksudo gedit /etc/apt/sources.list
    
    input your user password and press Enter.
  3. Find the first line which doesn't start with #. Suppose you are running Karmic Koala (Ubuntu 9.10): it should be like the following line:
    deb <siteurl> karmic main restricted
    
    where, <siteurl> is your preferred server - http://gb.archive.ubuntu.com/ubuntu in your case (for example).
  4. Press Ctrl + H to replace your <siteurl> with http://old-releases.ubuntu.com/ubuntu.
    • Search for: http://gb.archive.ubuntu.com/ubuntu ie; <siteurl>
    • Replace with: http://old-releases.ubuntu.com/ubuntu and
    • Press Replace All
  5. Once again:
    • Search for: http://security.ubuntu.com/ubuntu (this exact url for all the Ubuntu Releases — whatever be the present server that you are using)
    • Replace with: http://old-releases.ubuntu.com/ubuntu
    • Press Replace All
  6. Save your file and exit Gedit.
  7. Run the following command:
    sudo apt-get update
    
There you go. No 404 Errors this time. You can now install all the available packages for your Ubuntu Release. You can also run sudo apt-get dist-upgrade to install any Security/Bug-fix updates which have not yet been installed but you won't get any further Security/Bug-fix updates from Ubuntu.

Tuesday, December 18, 2012

Ubuntu Freezing? Piece of Cake

Safely reboot after Ubuntu freezes.
===========================

Have you ever had the problem that Ubuntu freezes ? You type on your keyboard,
you move the mouse but nothing really happens. As last resort we use the
"Hard reset" button. Everybody knows this is bad for your pc,
it can causse severe damage to your hardware.

So now we ask ourselve... Is it possible to reboot the system in a safe way?
The answer is: YES!

First you got to find your SysRq button on your keyboard, mostly it's the same as Prt sc (print screen).

- To use this magic, you should check the value of "/proc/sys/kernel/sysrq" file by typing the following command:
cat /proc/sys/kernel/sysrq

- If it prints "1", your good to go. If not edit it with the following command :
sudo echo "1" > /proc/sys/kernel/sysrq

- When your Ubuntu freezes, simply press and hold :
Alt + SysRq

- While holding the Alt and SysRq keys down, type the following keys in order, pausing for several seconds in between each key:
reisub


Command list:
---------------------
r – Puts the keyboard into raw mode, taking control of it away from the X server.
e – Sends the terminate signal to all processes, asking them to end gracefully.
i – Sends the kill signal to all processes, forcing them to end immediately.
s – Flushes data from your cache to disk.
u – Remounts all file systems read-only.
b – Reboots your computer.

Saturday, December 15, 2012

[SOLVED] Installing Backtrack 5 R3 in Lenovo G475 AMD

Mau installing Backtrack menyebabkan sistem berantakan...

UNETBOOTIN, UNIVERSAL USB, POWERISO, no luck (LIVE USB), bahkan gw bela belain burning ke dvd, udah abis 2 DVD nggak mau install juga...

Nah kalau kalau nemuin masalah kayak gitu

Akhirnya gw pake ini

http://www.linuxliveusb.com

Dan WORKED Like charm...

Have a tried...