-
Cannot open your terminal ‘/dev/pts/1’ – please check. Fixed
If you want to enter the screen started by another user whose password you dont know login as root or as sudo bash . su thatuser before screen -r SCREENNUM run script /dev/null
-
No space left on device: AH00023: Couldn’t create the rewrite-map mutex
To clear all semaphores owned by the apache user: Raw ipcs -s | awk -v user=apache ‘$3==user {system(“ipcrm -s “$2)}’
-
checking network speed via dd and nc
On one machine, run: nc -v -l 2222 > /dev/null (Make sure you’re not blocking connections to 2222!) On a second machine, run: dd if=/dev/zero bs=1024K count=512 | nc -v $IP_OF_FIRST_MACHINE 2222 dd will give you your speed: 536870912 bytes (537 MB) copied, 4.87526 s, 117 MB/s
-
forcing apt-get to always use ipv4 instead of ipv6
echo ‘Acquire::ForceIPv4 “true”;’ | sudo tee /etc/apt/apt.conf.d/99force-ipv4
-
Command line view webcam from ubuntu to browser
This took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked. First install motion: ~> sudo apt-get install motion Then create a config file: ~> mkdir ~/.motion ~> nano ~/.motion/motion.conf In it, the bare minimum to run a web server and view it […]
-
disable renaming of ethernet interfaces in ubuntu 14.04
Having problem with auto renaming of network interfaces from eth0->em1 or xyz , here is the fix . added one line to /etc/default/grub: GRUB_CMDLINE_LINUX_DEFAULT=”biosdevname=0″ and rebooted after update-grub
-
Making bootable USB from MAC osx without any apps
Convert the .iso file to .img using the convert option of hdiutil e.g., hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso Note: OS X tends to put the .dmg ending on the output file automatically. Z Run diskutil list to get the current list of devices. Z Insert your flash media. Z Run diskutil list again […]
-
Linux Find All File Names With White Spaces
How do I find all files with one ore more blank space (while spaces) in their name under UNIX like operating systems? Simple use ls command along with egrep to list only file names with white spaces ls | egrep ‘. ‘ if you want to do it recursively ls -R | egrep ‘. […]