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

Saturday, 11 January 2014

Which process uses port 8080?

# fuser 8080/tcp

Monday, 16 September 2013

/etc/network/intefaces

iface eth1 inet static address 192.168.2.9 netmask 255.255.255.0 gateway 192.168.2.1 dns-nameservers 192.168.2.1 8.8.8.8
==========================================================
auto eth1 iface eth1 inet dhcp wpa-ssid fooAP wpa-psk foopassword

Sunday, 27 November 2011

Linux: sudo without password

Edit sudoers and add your username so that it doesn't need password to sudo:
$ sudo visudo
myusername ALL=(ALL) NOPASSWD: ALL

Friday, 29 April 2011

I cannot get an IP (dhclient fails) because my Ethernet cable is not 100Mbps and Full Duplex as Ubuntu anticipates

If you ethernet cable is 10Mbps and Full Duplex then inform Linux for this:

$ sudo mii-tool -F 10baseT-FD eth0
$ sudo dhclient eth0

Monday, 25 April 2011

Screen flickers when I play game

solution: disable Visual Effects (System->Preferences->Appearance->Visual Effects->None)

Friday, 22 April 2011

troubleshooting "wireless is disabled"


check status:
$ sudo rfkill list

enable all:
$ sudo rfkill unblock all

fsck ntfs


do not mount the disk

$ sudo apt-get install ntfsprogs
$ sudo fsck -t ntfs /dev/sdc

Set default applications for certain filetypes


Edit /home/$user/.local/share/applicaions/defaults.list



You may find all the possible mime types by looking into /usr/share/mime/types file and all the possible .desktop files on /usr/share/applications/

References
http://hwoarang.silverarrow.org/?p=624