Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Monday, 7 April 2014

Install or Run Emacs without Graphics

No offense but this post is for Linux users. Whenever you install Emacs you get the GUI but sometimes you would be in the terminal and would like to start Emacs (without the GUI). This is simple:
  • At terminal type:
emacs -nw
Or you could add the following line to your .bashrc or .bash_aliases
alias emacs='emacs -nw'
This way, every time you type emacs, Emacs will start without the graphics.

But, let me say this, Emacs is big so if you are gonna just use emacs without the X, then just simply install emacs without X. For that, just install the package emacs(number here)-nox. So, the package would be like emacs23-nox



And that's that.

Thank you for reading and as always please comment.

Thursday, 13 March 2014

Hack A Linux System

Now, in the world of OS, the most secure system is that of Linux. Here I am gonna show you how to break into a linux OS. Basically all you need is the root password to do anything in linux, Right! I have successfully tried it myself. The system I used was LXLE. You just need GRUB to do this trick.

Here's how you do it:
  • Interrupt linux boot. (Basically, keep Shift Key pressed)
  • Now, you have the GRUB menu, highlight the OS and press e for edit
  • Find the line which contains something on the lines
/vmlinuz -somenumber-generic
  •  At the end of said line, add 1 or s or single after a space (I tried with single and 1, but single worked)
  • Boot with the current settings (I can't exactly list how to do so, since it differs in each flavor)
  • By doing just this you may get root access
  • Now, you do whatever you want. But just in case you tried changing root password and it does not give any output. (Well, that's because SELinux is interrupting)
  • Then, type setenforce 0 to switch SELinux into permissive mode and try again. 
  • If it says something on the lines that setenforce is not installed, then install it and try again.
And that's about it. Now, you can pretty much do anything ranging from changing root password to adding new hidden accounts (I am gonna post on it soon) and even changing password of present user accounts or even deleting them.

I don't actually care why you do this. But I just have to say it, this is sweet.

If I didn't mention something or left something out, then please let me know. There are other ways of hacking a linux box which I have not mentioned, so if you do know of it let us all know.

As Always thanks for reading and please comment.

Stuff that most try to do